World: r3wp
[Red] Red language group
older newer | first last |
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 [2931x5] | 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 | |
Also, dragging the window during the rendering doesn't visibly slow down the rendering on Syllable, while it clearly stutters on Linux | |
Gregg 11-Aug-2011 [2936] | That's fantastic Kaj. |
Kaj 11-Aug-2011 [2937x2] | I can read a bitmap image now and blit it to the screen |
http://web.syllable.org/images/screenshots/Desktop/0.6.6/Red-SDL-binding-on-SyllableDesktop-0.6.6.png | |
GrahamC 12-Aug-2011 [2939] | Impressive |
Endo 12-Aug-2011 [2940] | That's cool! |
Dockimbel 12-Aug-2011 [2941x2] | http://www.colineau.fr/rebol/downloads/demoTTS_Red.zip Demo of a dialog, using the Google TTS api. a custom dll has been written, based on the reference : http://www.codeproject.com/KB/audio-video/GoogleTTS-Ebook-Reader.aspx This demo is only executable under windows, and requests an Internet link Tested with Windows XP and red/system 0.2.1 compilation: do/args %rsc.r %demoTTS.reds -t Windows" |
Nice little demo and works very well. | |
Kaj 12-Aug-2011 [2943] | I've tested that my bindings are still compatible with the new release |
Dockimbel 12-Aug-2011 [2944] | Good to know. |
Kaj 12-Aug-2011 [2945] | Ooh, Text To Speech. Nice! |
Dockimbel 12-Aug-2011 [2946x2] | Yeah, good complement to your gfx binding to make a nice demo for the SFD 201. :-) |
2011 | |
Kaj 12-Aug-2011 [2948] | I assume it's Windows code? I wouldn't be interested in it, but you can |
Dockimbel 12-Aug-2011 [2949x2] | The DLL is compiled for Windows, but maybe jocko could build it for Linux or Syllable too. |
Or you can just make a wrapper on Google's TTS service using the cURL binding. | |
Kaj 12-Aug-2011 [2951x2] | If he ported that C++ code, it's bound to Windows. But yes, it could be done with cURL. Leaves the small matters of binding sound in SDL and MP3 decoding :-) |
From the Windows article: | |
older newer | first last |