World: r3wp
[Red] Red language group
older newer | first last |
Kaj 29-Jun-2011 [2635x3] | Got cURL to read a website and print it: |
curl-begin curl-global-all session: curl-new-session curl-set session curl-set-upload? as variant! no curl-set session curl-set-url as variant! "http://rebol.com" curl-do session curl-end-session session curl-end | |
Not as concise as READ "http://rebol.com"but we'll get there | |
Kaj 30-Jun-2011 [2638x2] | Added a higher level interface that reduces that to |
curl-begin session: curl-new-session curl-read session curl-do session "http://rebol.com" curl-end-session session curl-end | |
NickA 30-Jun-2011 [2640] | Next: wxWidgets :) |
Kaj 30-Jun-2011 [2641x4] | They say it's a man year work to port it |
In any case, I'm not going to do it | |
But I can upload a file to FTP now | |
That's direct from disk, so large files can be uploaded without using much memory | |
GrahamC 1-Jul-2011 [2645] | Can you do multiple uploads concurrently? |
Kaj 1-Jul-2011 [2646x3] | No, I can upload one file from disk exclusively. The binding is two days old |
For multiple concurrent uploads before next week, use my R3 binding | |
Of course, if you use the 0MQ binding in combination with the cURL binding, you can do multiple concurrent uploads from disk only | |
Kaj 2-Jul-2011 [2649] | I've implemented a callback framework and used that to implement sending a data block from memory, instead of direct from a file |
Dockimbel 2-Jul-2011 [2650] | So callbacks are working fine? No more issues? |
Kaj 2-Jul-2011 [2651] | A callback used internally by cURL is fine, yes, on Linux. We'll see what a progress callback does with trying to print floats |
Dockimbel 2-Jul-2011 [2652] | Are you using a version of Red/System that includes my deeper fix for callbacks from 2011-06-30 (commit log: Merge branch 'callbacks-cconv')? |
Kaj 2-Jul-2011 [2653x2] | If it was committed before the last few hours, I have it |
Is that not in the trunk branch? Then I don't have it | |
Dockimbel 2-Jul-2011 [2655] | I have merged it in main branch 2 days ago. |
Kaj 2-Jul-2011 [2656x2] | Two days seems like a long time ago. :-) If that was the final fix for 0MQ on Linux, then I already had it |
But that was earlier, wasn't it? Then I have only tested the latest callbacks with cURL | |
Dockimbel 2-Jul-2011 [2658] | Right, it was the final fix for callbacks (for the 0MQ issue). |
Dockimbel 3-Jul-2011 [2659x2] | Kaj: we have decided to replace the "struct" and "pointer" by "declare". Please read this post: http://groups.google.com/group/red-lang/browse_thread/thread/9c407676e2335919?hl=en |
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. :-) |
older newer | first last |