World: r3wp
[Red] Red language group
older newer | first last |
Dockimbel 8-Jan-2012 [4321x2] | Cortex-M3: Andreas mentioned that it requires the Thumb2 instruction set, so, it won't work with the current Red ARM backend. |
If there's is a corresponding instruction in Thumb2 for each one we currently use in the ARM backend, a new port could be quickly made (but don't expect me working on this one in the next months, it's too low priority). | |
Pekr 8-Jan-2012 [4323] | that's ok .... |
Andreas 8-Jan-2012 [4324] | We support ARMv5+ at the moment. So that means ARM9E, ARM10E, XScale, ARM11, Cortex-A based cores should work fine. Most notably, Cortex-M won't (as those cores only support the Thumb instruction set). Neither will StrongARM (which is ARMv4). |
Pekr 8-Jan-2012 [4325] | thanks ... |
Andreas 8-Jan-2012 [4326] | I have a rather nice Cortex-M3 based board lying around as well. So maybe I'll get around to tackle the Thumb profile some day :) |
Pekr 8-Jan-2012 [4327] | Doc - what layer will be e.g. events implemented in? Red/System, or Red? I mean - will you use your own implementation, or will you adopt some libraries for concurrency, events, e.g. libevent, liboop, etc.? |
Dockimbel 8-Jan-2012 [4328x6] | We'll start simple, so implement our own internal event loop which will have a Red/System backend and a frontend at Red level, probably following the R3 port model. |
I don't see the necessity for an external lib for concurrency or events management, when the OS are already providing everything we need (I guess that pthread lib is standard part of Linux now?). | |
Float support so far: --- Red/System [ ] #import [ LIBC-file cdecl [ cos: "cos" [ x [float!] return: [float!] ] ] ] pi: 3.14159265358979 printf ["%.14f" cos pi] --- outputs: -1.00000000000000 | |
The only drawback for now is that 64-bit values break the typed/variadic stack layout (meant for 32-bit values only). I need to find a workaround for that. | |
So, currently PRINT and PRINT-WIDE can't be used with floats. | |
(I haven't pushed the float branch yet, I still need to improve this first version) | |
Kaj 8-Jan-2012 [4334] | PThreads are the native Linux threads implementation for a number of years |
Dockimbel 8-Jan-2012 [4335] | Pushed first version of float preliminary support in `float-partial` branch, please read the commit logs for more info: https://github.com/dockimbel/Red/commit/bea1aa7fc4b6f7b6acf57d304d90235300734580 |
Kaj 8-Jan-2012 [4336x9] | I've got my binding with the C math library to work, so all the ANSI C math functions are available now |
It works on Linux and should also work on Windows | |
On Mac, the math library path may have to be adjusted | |
On Syllable, I get: | |
*** Runtime Error 101: no value matched in SWITCH *** at: h | |
This looks like an error in the runtime to me, quite possibly not even float related | |
It could be an unknown signal group in POSIX.reds | |
The default error definition on a signal doesn't work anymore since the last SWITCH change | |
The at: report is also odd | |
Dockimbel 9-Jan-2012 [4345x3] | The x87 FPU init code wasn't stable when I pushed the commit yesterday night, and I forgot to launch the test suite. It should be ok now. |
Hmm, your error report looks odd indeed, I'll fire up my Syllable image and try to reproduce it. | |
The latest hello script and my float test script above are both working ok on my Syllable image. | |
Kaj 9-Jan-2012 [4348] | Please have a look at the signal handling code. It doesn't comply with SWITCH semantics anymore |
Dockimbel 9-Jan-2012 [4349x3] | Kaj: have you tested again with latest commit? This issue should be fixed now, I've left some lines commented in _PRINT function, so that pointers and structs addresses were not printed anymore, that matches with your buggy error report. |
Kaj's article on OSNews translated in Chinese for OSEye.net: http://www.oseye.net/kb/show/2774 | |
I wonder what is written on the orange banner on top of the Android screenshot? | |
Kaj 9-Jan-2012 [4352x3] | Cool :-) |
Thanks, I'll test again | |
They have taken over Syllable articles before | |
MikeL 9-Jan-2012 [4355] | Kaj, Will float deployment in Red allow GTK range widgets to be supported in your binding? |
Kaj 9-Jan-2012 [4356x8] | I think so, but you won't be able to calculate such things yourself yet. Do you need them? |
Floats work better on Linux now. Before, it crashed when combined with other code | |
On Syllable, I now get: | |
*** Runtime Error 101: no value matched in SWITCH *** at: 80000C2Eh | |
Indeed, I don't see the SWITCH fixed in POSIX.reds | |
The fact that it crashes with a signal in the first place, I can fix with the workaround from bug #129, so this is another case this bug affects | |
Basically, nothing works without LibC initialisation code, except programming the kernel directly and exclusively | |
What's the ETA for fixing this? I would like to promote all the bindings, on OSNews and such, but I can't really do so as long as they don't work on Syllable | |
BrianH 9-Jan-2012 [4364x2] | Do you have an unhandled choice in SWITCH? Rather than return an undefined value (since Red/System doesn't have none!) it triggers an error instead. Put in a default clause. |
Of course if that's not the problem, never mind. | |
Dockimbel 10-Jan-2012 [4366x2] | Right, the SWITCHes in POSIX.reds need default clauses. I need to see which signal is raised on Syllable that is not listed in ***-on-signal. |
LibC init code: I need to have a deeper look in the init/exit libC routines first to see what's exactly happening there before wiring it in Red/System. I'll do that once I finish the current work on partial float support. | |
MikeL 10-Jan-2012 [4368x2] | Kaj, I am doing very simple UI now using GTK based on your Doc-Kaj work. It is totally adequate for what I need to do in the next month but after that I want to add value to my users with the range widget and some others such as Calendar. I think they will allow me to build smaller more precise user interfaces quickly. |
I have been looking for keyboard event handling in GTK with little luck. Is this gtk_key_snooper_install () how to detect Home,End, PgUp, PgDn keys? | |
Kaj 10-Jan-2012 [4370] | I haven't looked into that yet, but I'll keep it in mind for the coming time |
older newer | first last |