World: r3wp
[Red] Red language group
older newer | first last |
Endo 27-Oct-2011 [3635] | Good progress Kaj. |
Claude 27-Oct-2011 [3636] | thank you very much kaj and dockimbel ;-) |
Kaj 28-Oct-2011 [3637x2] | Thanks. I've upgraded the Fossil server for the binding repositories to 1.20 |
Nice new features are side-by-side diffs and support for symbolic links | |
Luis 28-Oct-2011 [3639x2] | which is the address of the GTK repository |
? | |
Kaj 28-Oct-2011 [3641] | http://www.red-lang.org/p/contributions_21.html |
Luis 28-Oct-2011 [3642] | thanks ! |
Kaj 29-Oct-2011 [3643] | Looks like Nenad will get 39 bits ARM immediate values :-) |
Dockimbel 29-Oct-2011 [3644x2] | Getting 32-bit literals pools to be generated reliably would already be an achievement ;-) |
For ARM 64-bit, I just hope we won't have to continue to use literals pools... | |
Andreas 29-Oct-2011 [3646] | Looks like Nenad will get 39 bits ARM immediate values :-) Most likely not. A64 (the ARM 64-bit instruction set) will have 32-bit fixed length instructions as well. |
Kaj 29-Oct-2011 [3647] | Implemented a dialect shortcut in most layout styles by adding a bare string element, to make the label directive optional |
Kaj 30-Oct-2011 [3648x6] | The end of Daylight Savings Time gave me an hour extra today, so I wrote a web browser: |
http://red.esperconsultancy.nl/screenshots/LazySundayAfternoon-Browser.png | |
It does Flash and everything | |
Here's the code: | |
#include %GTK-WebKit.reds home: "http://www.red-lang.org/" address: function [ [cdecl] widget [gtk-entry!] data [gtk-scrolled-window!] ][ web-browse web-get-view data gtk-get-entry-text widget ] browser: browse home gtk-view window [ gtk-position-center "Lazy Sunday Afternoon Browser" vbox [ field [home :address browser] gtk-tight browser gtk-full ] ] | |
The executable is 21 KB | |
Dockimbel 30-Oct-2011 [3654] | Great work Kaj! :-) |
Kaj 30-Oct-2011 [3655] | Thanks |
Dockimbel 30-Oct-2011 [3656] | So now we can run REBOL code in Topaz executed inside a Red/System driven web browser. ;-) |
james_nak 30-Oct-2011 [3657] | Kaj, no way! That's cool. |
Kaj 30-Oct-2011 [3658x2] | What the Doc ordered: |
http://red.esperconsultancy.nl/screenshots/Topaz-in-RedSystem-browser.png | |
james_nak 30-Oct-2011 [3660] | Kaj, this may be a dumb question but what OS are you using? |
Kaj 30-Oct-2011 [3661] | Linux Mint 10, "Julia" |
james_nak 30-Oct-2011 [3662] | Thanks. I was wondering if you were using Syllable. |
Kaj 30-Oct-2011 [3663] | Unfortunately, not yet, but in the next step I hope to integrate this in Syllable Server |
Ashley 31-Oct-2011 [3664] | Wow, this is the sort of stuff to showcase Red with, "A browser in only 21Kb, a ... in only ...". Fantastic progress guys. |
Endo 31-Oct-2011 [3665] | Wow! That's great! Cool work Kaj! |
ddharing 31-Oct-2011 [3666] | Very nice, Kaj. |
Kaj 31-Oct-2011 [3667] | Thanks. It's remarkable how big the gap is between the low and high hanging fruit. I've spent ten years on Syllable and REBOL, and three hours on this browser so far, including the WebKitGTK+ binding |
Geomol 31-Oct-2011 [3668] | :) The cool factor! |
Gregg 31-Oct-2011 [3669] | Very cool indeed Kaj. |
Kaj 31-Oct-2011 [3670x2] | Reviewed some Python, Ruby and Haskell bindings for GTK, and they all look like my Goodbye Cruel World example in various incarnations, instead of my Hello World example :-) |
GTK's, and other IDEs', idea has always been that Glade, and now a newer interface builder, makes it easier, but combining a generated XML interface definition manually with some code language doesn't compare to Red/System | |
Dockimbel 1-Nov-2011 [3672] | Kaj: you might want to add something to the comments here: https://gist.github.com/1326101#comments |
Kaj 2-Nov-2011 [3673] | Done, thanks |
MikeL 3-Nov-2011 [3674] | For the RED import, I am getting "Compilation Error: attempt to redefine existing function name: printf" when trying to compile the example for variadic http://static.red-lang.org/red-system-specs-light.html Get same message for "free" when trying to compile example from 9.1 #import. What novice error am I making? |
Dockimbel 3-Nov-2011 [3675] | You can't reuse a function name in Red/System. `printf`and `free` are already defined in the runtime source code (%red-system/runtime/). If you provide alternative names (not used by the runtime) for those imported functions, it will work correctly. |
Kaj 5-Nov-2011 [3676] | Doc has got Red/System running on Android |
AdrianS 6-Nov-2011 [3677] | Great to hear! What kind of output is the app able to do? |
Dockimbel 6-Nov-2011 [3678x4] | Console output only for now. |
Being able to make GUI apps on Android requires at least two more steps: - have Red/System linker be able to generate shared libraries - build a generic Java bridge to be able to instanciate java objects, invoke methods and receive events | |
A shorter, but less efficient path, could be to use TCP sockets (or a lib like ZeroMQ) to setup a communication channel with the generic Java bridge. | |
Also the NDK could have been an interesting option, but AFAIU, it compiles C/C++ sources to Dalvik bytecode, so natively interfacing with Red/System binaries might not be possible. | |
Pekr 6-Nov-2011 [3682x3] | Are "native" Android GUI apps posible? I mean - e.g. GTK based ones. Or if View would be ported - it uses own methods to draw stuff, no? Although windowing is native, so probably some link to JAVA still required. Pity MeeGo did not become popular instead (pure Linux based IIRC) |
I finally find some time to read Red/System doc, and I have a novice question - what is basically the difference of cdecl or stdcall? Respectively - when wrapping API stuff, how do I know which one to use? I expect this area is for more skilled C developers, than occassional interface users? | |
In 13.6.2: isn't there a typo? show-args 123 -p hello it would output: count: 4 1: test-logic2 2: 123 3: -p 4: hello I would expect 1: being a "show-args" | |
older newer | first last |