r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Red] Red language group

Dockimbel
17-Jul-2011
[2793]
Yes, have a look at the hello.reds source code: https://github.com/dockimbel/Red/blob/master/red-system/tests/hello.reds
Kaj
17-Jul-2011
[2794]
You're too good for us :-)
Oldes
17-Jul-2011
[2795]
I like colors... I'm looking forward to see colorized console one 
day:)
Dockimbel
19-Jul-2011
[2796]
Implemented support for argc, argv and env for UNIX platforms, will 
publish it tomorrow when Windows support will be ready too.
Kaj
19-Jul-2011
[2797x2]
Cool, thanks!
That enables another large class of programs
Endo
20-Jul-2011
[2799]
great! now it's getting more useful.
Dockimbel
20-Jul-2011
[2800x2]
Command line arguments access now available: http://groups.google.com/group/red-lang/browse_thread/thread/4b8cb7a5a49308ba?hl=en
Tested ok on all OS (including Syllable).
Kaj
20-Jul-2011
[2802]
Great, I was just looking over it, and couldn't see anything wrong 
yet
Dockimbel
20-Jul-2011
[2803]
In my first release, I wrongly read ESP data instead of [ESP] for 
Syllable.
Kaj
20-Jul-2011
[2804]
Ah, the detail devil :-)
Dockimbel
20-Jul-2011
[2805]
I once offered a little glowing "code protecting" angel statue to 
one of my developers. It was supposed to keep devil out of your code 
if you kept it close to your screen. Can't find it online anymore, 
maybe that would help...:-)
Kaj
20-Jul-2011
[2806]
:-)
Dockimbel
21-Jul-2011
[2807]
New Red/System document is available: BNF language grammar description 
(by Rudolf W. Meijer)
http://static.red-lang.org/A_BNF_grammar_of_Red_System.pdf
Gregg
29-Jul-2011
[2808]
Very cool Doc (and Rudolf).
Kaj
29-Jul-2011
[2809x2]
I've cleaned up my cURL binding enough to put it in a repository:
http://red.esperconsultancy.nl/Red-cURL
Endo
31-Jul-2011
[2811]
very nice work!
Kaj
31-Jul-2011
[2812]
Thanks
Dockimbel
1-Aug-2011
[2813]
cURL link added to Contributions section: http://www.red-lang.org/p/contributions.html
Kaj
6-Aug-2011
[2814]
I'm temporarily bored with all the cURL bindings, so I've started 
working on an SDL binding
Oldes
7-Aug-2011
[2815]
good choice:)
Endo
7-Aug-2011
[2816]
that's nice!
Kaj
7-Aug-2011
[2817x4]
I thought you would like it, Oldes :-)
We'll see how far we can get with sound and graphics without floats
I can open and close a window now. Imagine VIEW [ ] :-)
I can have a window without any borders, so you could make your own 
window manager
Dockimbel
7-Aug-2011
[2821x2]
Got variable-arguments functions (with optional runtime type info) 
working in Red/System. Will release it tonight or tomorrow. RTTI 
is allowed only for variable-arguments functions for now. I could 
be extended to fixed arity functions,but only if I need it for building 
Red.
Kaj: are you working on a SDL-based View clone?
Kaj
7-Aug-2011
[2823x4]
Well, let's first get some pixels in those windows :-)
Hm. I'm developing on Syllable Server. On Syllable Desktop, I can 
load the SDL library and print its version, but it segfaults on opening 
a window
It's the same bug that crashes cURL. It doesn't even get to opening 
the window, it prevents the SDL library from properly initialising
When I add C library initialisation, SDL also initialises
Dockimbel
7-Aug-2011
[2827]
So it works out of the box on Linux but not on Syllable OS?
Kaj
7-Aug-2011
[2828]
Yes, exactly like cURL
Dockimbel
7-Aug-2011
[2829]
Have you investigated what is causing that difference on Syllable?
Kaj
7-Aug-2011
[2830]
Not deeper than the LSB spec you found that lists possible functionality 
that any implementation can put in there
Dockimbel
7-Aug-2011
[2831]
I mean: it looks like Syllable is not initializing the C lib the 
same way as other OS.
Kaj
7-Aug-2011
[2832]
It would be surprising if it would, because this is very OS specific
Dockimbel
7-Aug-2011
[2833]
Maybe you could find out what is causing that in Syllable and fix 
it?
Kaj
7-Aug-2011
[2834x2]
There's nothing to fix. This is how it's implemented in Syllable's 
case
Most of the adaptation of Syllable to standard software is in the 
C library. This is where the handshake between kernel and userland 
is done in common systems
Dockimbel
7-Aug-2011
[2836]
Well, then I am ok to add that libC init call in Syllable's runtime 
part (runtime/syllable.reds) as long as it doesn't need any other 
OS-specific additions in Red/System.
Kaj
7-Aug-2011
[2837x2]
OK, thanks. It will also be needed on other systems, though, in forms 
specific to their C library. I've already included the deviations 
for Linux
I haven't tested it yet, but I'm sure that without it, things such 
as get-env won't work
Dockimbel
7-Aug-2011
[2839]
I won't add it for other OS until it becomes mandatory for Red.
Kaj
7-Aug-2011
[2840]
That's fair enough. I also like to postpone things until they're 
proven necessary :-)
Dockimbel
7-Aug-2011
[2841]
BTW, this call could prevent Red from working on Syllable as that 
libC init is a blackbox. I especially fear a clash with Red and libC 
thread init routines.
Kaj
7-Aug-2011
[2842]
It would be much worse if it weren't a black box. :-) You'd have 
to duplicate all the initialisations done in there for all systems 
and all C libraries and all versions of them