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

World: r3wp

[Red] Red language group

Dockimbel
3-Jul-2011
[2660]
I will be waiting for you to upgrade your bindings before making 
the announcement (hope we can do it tomorrow). I have some things 
to add in the specification and red-lang.org site to dust off in 
the meantime (well, tomorrow would be nice ;-)).
Kaj
3-Jul-2011
[2661]
I just checked that all the bindings still work with the current 
Red, so the syntax should be the only thing left to change
Dockimbel
3-Jul-2011
[2662]
Ok, if I merge it now with the main branch, can you make the changes 
shortly after?
Kaj
3-Jul-2011
[2663]
Definitely
Dockimbel
3-Jul-2011
[2664x5]
I will wait until tomorrow to make the announcement anyway.
Ok, doing the merge...
Merged.
Going to bed now, will update the web site tomorrow and post an announcement 
on the blog.
(tomorrow => later today)
Kaj
3-Jul-2011
[2669x5]
Ehm, my bindings still work :-)
I only had to make a few changes to the example scripts
This either exposes my preparations for thread safe code, or the 
fact that I haven't written any substantial applications yet :-)
I've extended the read function in the cURL binding to store a file 
being received directly to disk, instead of just printing it
Like sending directly, this has very low memory use
Kaj
4-Jul-2011
[2674x3]
I've confirmed that the Empty and Hello examples still run on Syllable, 
but the cURL binding currently segfaults
I've confirmed that the bindings still work on Windows, at least 
on WINE
The cURL binding seems to work there, too
Dockimbel
4-Jul-2011
[2677]
Thanks for all those tests.
Andreas
4-Jul-2011
[2678]
Kaj, do you have gdb on Syllable? If so, please run the curl example 
via gdb and add the output of "backtrace" to the bug report. Thanks!
Kaj
4-Jul-2011
[2679x2]
The last reports were that GDb doesn't work anymore, but I'll try
http://www.red-lang.org/2011/07/redsystem-goes-beta.html
Kaj
5-Jul-2011
[2681]
http://development.syllable.org/news/2011-07-05-02-54-Red-System-programming-language-now-beta.html
Janko
5-Jul-2011
[2682]
wow, that is fast development!
GrahamC
5-Jul-2011
[2683]
Absolutely!
Dockimbel
5-Jul-2011
[2684]
I wish it could go faster. :-)
Endo
5-Jul-2011
[2685]
Wow! veeery nice news! Thanks guys!
Maxim
5-Jul-2011
[2686]
really good work guys!
Kaj
5-Jul-2011
[2687]
http://www.osnews.com/story/24921/Red_System_Reaches_Beta_Loads_Syllable_Shared_Libraries
Dockimbel
5-Jul-2011
[2688]
hehe, again on OSNews! Thanks Kaj!
Kaj
5-Jul-2011
[2689x2]
My pleasure
As long as you keep Red relevant for Syllable, I can get it on OSNews 
;-)
Dockimbel
5-Jul-2011
[2691]
Sounds like an invitation to rapidly fix the cURL binding issue. 
;-)
Kaj
5-Jul-2011
[2692x2]
Yeah, it's a tricky one
I was going to ask you if you considered sending the beta to plnews.org, 
but it seems to be gone
Dockimbel
5-Jul-2011
[2694x2]
If you can provide a minimal example exhibiting the issue, I should 
be able to locate the problem from the disassembled code.
I will make post a news on freshmeat.net tonight (I still have some 
things to change on the web site).
Kaj
5-Jul-2011
[2696x2]
I'm not used to working at that low level, so I'm moving a bit slowly 
on it
We're becoming popular. The trolls are very quick to respond now
Dockimbel
5-Jul-2011
[2698]
:-)
Kaj
5-Jul-2011
[2699x4]
http://development.syllable.org/documentation/introduction/part-1.html
GDB on Syllable currently only supports real-time debugging, as crashed 
applications do not generate a 
core" file (crash dump)."
If GDb still works, I guess that prevents me from getting a backtrace
The kernel log is probably the best backtrace we can get
Andreas
5-Jul-2011
[2703x3]
real-time debugging
 should be fine.
(unless that means something different than i suspect it does.)
1. compile a binary using red as usual
2. instead of running the binary directly, run it via gdb:

    $ gdb builds/hello
    (gdb) run

3. when the program segfaults, you should be back in gdb
4. print a backtrace using "backtrace":

    (gdb) backtrace
Kaj
5-Jul-2011
[2706x4]
The problem with the current GDb on Syllable is that it doesn't know 
how to load shared libraries, so it can't load cURL
backtrace says it has no stack
The issue with shared libraries seems to be limited to the fact that 
cURL can use libdl. I don't know what was different now, but I got 
a GDb trace. Will put it on the tracker
The crashes seem to happen when cURL calls the C library, so outside 
the Red program. I'm not sure it's useful to disassemble a minimal 
Red example