World: r3wp
[Red] Red language group
older newer | first last |
Endo 9-Aug-2011 [2885] | we can use PrintN for single argument: PrintN "Hello" --> Print ["Hello" lf] |
Dockimbel 9-Aug-2011 [2886x2] | I considered PRINT-FORM but I've found it not meaningful enough. PRINT-WIDE is a better hint at what the function does. |
I will publish these changes tomorrow morning and will bump the version number, as they would break most of existing scripts. I will write a blog entry to describe the changes. | |
Kaj 9-Aug-2011 [2888] | Did you do any performance improvements? I just updated after a bit over a month and my SDL test, drawing a gradient, is a lot faster :-) |
Pekr 9-Aug-2011 [2889] | I wonder why we use lf, instead of a newline. Then we add a description to the doc, something like lf adds a newline :-) |
Kaj 9-Aug-2011 [2890] | LF is shorter, and newline was already defined |
Dockimbel 10-Aug-2011 [2891] | Did you do any performance improvements? I did a few small code optimizations, but they should not have noticeable effects. Maybe your code relies on a tight loop that benefited from them? |
Pekr 10-Aug-2011 [2892] | btw - what's the resolution re floating support in Red/System? Kaj is now trying to port SDL, so I wonder if for the gfx (which was not planned to be the RED's target),it will be the necessity,or not? |
Dockimbel 10-Aug-2011 [2893] | Floating point support will come to Red/System when the float! Red datatype will be implemented. |
Pekr 10-Aug-2011 [2894] | And float is planned, right? |
Dockimbel 10-Aug-2011 [2895x2] | Of course, there is just a lot of other feature that are much higher in priority. |
features | |
Kaj 10-Aug-2011 [2897x3] | Basic SDL does not require floats yet, so I have some room left to grow :-) |
What's becoming a problem first is the lack of 16 bits integers. They're in structs and arrays, so I have to do trickery now to access them | |
Maybe I imagined the speed improvement. My previous experiments were the night before, and I don't have those executables anymore | |
Pekr 10-Aug-2011 [2900] | Will Arduino support bring us an ARM support? Hmm, maybe not - it seems to be an Atmel, not ARM? |
Kaj 10-Aug-2011 [2901x2] | The small Arduinos are AVR, the bigger Netduinos are ARM |
The first embryonic support for both is already done, if I'm not mistaken | |
Dockimbel 10-Aug-2011 [2903x2] | Arduino boards use AVR 8-bit MCU (microcontroller), the Netduinos use a 32-bit MCU equivalent to an ARMv4 IIRC. The port for AVR 8-bit has started but it is still highly experimental. The ARM port started by Andreas targets ARMv5 architecture IIRC. |
16-bit integers: Red/System does not need them, but interfacing with external libraries might require it, especially for struct members. I wonder if adding support for a int16! pseudo-datatype, only limited to struct members would be hard to add...Will have a look at it, once all the current pending tasks will be done. | |
Pekr 10-Aug-2011 [2905] | as for "pending tasks" - is there any list,of what is being currently worked on, other than the website roadmap? |
Kaj 10-Aug-2011 [2906x2] | 16 bits arrays also need to be manipulated, with 16 bits access and pointer arithmetic |
Lots of external functions take 16 bits arguments. Are they 16 or 32 bits on the stack? | |
Dockimbel 10-Aug-2011 [2908x2] | For IA-32 CPU, it is always 32-bit on stack. |
List of tasks: yes, on my paper notebook. They usually cover 1 to 3 days of work and are updated frequently. | |
Pekr 10-Aug-2011 [2910x2] | so still mostly working on Red/System, to be powerfull enough to write RED in? |
I just wonder - if Carl would decide one day to "port" R3 to Red/System, would it mean, that the resulting executable would run at the target platforms supported by Red/System? | |
Dockimbel 10-Aug-2011 [2912] | Mostly working on Red now (memory allocator is done, tokenizer will start soon), but some Red/System improvements and fixes are still needed. |
Pekr 10-Aug-2011 [2913] | Where you will write stuff like devices (in R3 terminology), events, tasking/threading, simply a native stuff? As a RED/System? Or will it be RED itself (will not it be slow then?) I just would like to understand it a bit :-) |
Dockimbel 10-Aug-2011 [2914x2] | R3 -> Red/System: not sure if it would be an advantage or not. Currently, from a performance POV, C is still faster. (Think about current Red/System as C without optimizations turned on). |
The "native" layer in Red is Red/System, so almost all that stuff will be coded in Red/System with some interfacing layer in Red. | |
Pekr 10-Aug-2011 [2916] | Aha, so Red/System is just a general REBOL/C like language. We still need to wrap native functionality/libraries, to get tasking, events, etc. Btw - do you plan to utilise liboop, libevent, pthreads libraries, or will you write everything from scratch/your (REBOL) way? |
Dockimbel 10-Aug-2011 [2917x2] | Tasking will be brought by actor! datatype which will use a pool of OS threads underneath. I am not sure what you mean precisely by "events". Liboop and libevent are nice libraries, but probably overkill for Red, so I will implement similar low-level OS bindings specifically for Red (probably merged in the actor abstraction). For OS threads, I will pick up the API provided natively by each OS. |
Kaj, do you have already some gfx demo to show using Red/System + SDL or are you preparing something for the Software Freedom Day? | |
Kaj 10-Aug-2011 [2919x2] | Just a lame gradient, but I'm preparing for SylCon, September 3 |
Do you need one? | |
Dockimbel 10-Aug-2011 [2921] | For the Software Freedom Day, any Red/System cool demo is welcome. |
Kaj 10-Aug-2011 [2922x2] | I'll definitely have more then, that you can show |
I'm programming redshift now and I've already found fault with the first SDL example ;-) | |
Dockimbel 10-Aug-2011 [2924] | You mean Redshift in Red/System? |
Kaj 10-Aug-2011 [2925x2] | No, in SDL in 24 bits modes |
I can finally paint a pixel in any video mode, but the SDL example for 24 bits is broken, and I've also hit another bug in Red | |
Dockimbel 10-Aug-2011 [2927] | Nice! Waiting for your bug report... |
Kaj 10-Aug-2011 [2928x2] | Got to analyse it first |
I can't analyse them as fast as you fix them :-) | |
Dockimbel 10-Aug-2011 [2930] | Fortunately for me ;-) |
Kaj 10-Aug-2011 [2931x4] | It's up. This was the hardest to trace until now |
All video modes also work on Syllable | |
I'm happy to report that raw SDL performance is almost twice as fast on Syllable as on Linux: a rendering that takes five seconds on Linux with X11 takes three on Syllable | |
This is on the same machine, in the same resolution, with hardware specific drivers installed on each | |
older newer | first last |