World: r4wp
[#Red] Red language group
older newer | first last |
DocKimbel 17-Jun-2013 [8448x2] | Rewrite bridge: that was my intention, but I gave up after hitting a few walls in Java reflective abilities. So, I just optimized the memory usage of the current one and improved it. |
Objects are required to build a cross-platform mobile API for Red. That way, you would use the same API for accessing universal mobile services and hardware from Red, like contacts, phone calls, SMS, GPS, Bluetooth,... | |
Pekr 17-Jun-2013 [8450x2] | ok, now I understand. So objects are next it seems? |
I mean - needed for parse, networking etc. anyway? | |
DocKimbel 17-Jun-2013 [8452x2] | In the meantime, you will only have a platform-specific API, but as soon as objects are done, we could add some nice abstraction layers on top of it. |
Yes, objects are becoming uber-urgent. :-) | |
Pekr 17-Jun-2013 [8454] | OK, so will ask in a different way (wrt Android) - will there be any official release, an example published, or even a blog article? If not, I will post as we go. If so, I might wait, so that we can refer ppl to download it and try to do their own small steps ... |
DocKimbel 17-Jun-2013 [8455x4] | Parse: not necessarily, it was just a requirement from Gab. |
Networking needs I/O, I/O needs ports, ports needs objects. :-) | |
If you mean by "official release" a 1.0, we're still far from that. | |
I might mention it briefly in the next blog entry. I would like to make merge the dyn-lib-emitter branch and make a new release. As the Java and Android bridges will be included, I will mention them. | |
Pekr 17-Jun-2013 [8459x2] | ok, any timing? I mean - since thursday I will be out for 4 days .... |
(there is no need to rush those things, I can wait) | |
DocKimbel 17-Jun-2013 [8461] | New release: Tuesday or Wednesday. |
Pekr 17-Jun-2013 [8462] | OK, good to know to plan ahead .... |
DocKimbel 17-Jun-2013 [8463] | Depends on how stable the ARM version of the bridge will be (and how much time I will take to fix it if required). |
Pekr 17-Jun-2013 [8464x2] | So I post a teaser, and later on will mention full new release, once the merge is in place and/or eventually blog article appears ... |
btw - is ELF emitter finished? Noticed Cyphre used some of Adrian's work for R3 droid port too ... | |
DocKimbel 17-Jun-2013 [8466x3] | I also plan to add a quick support for compiling kernel drivers for Windows. It shouldn't take long and some users need it, so I will give it a quick try. |
Post a teaser: go on with spreading the teaser! :) | |
ELF: no it's not, Andreas hasn't found time for it yet, but I can't wait anymore, so I'll merge it in master this week. | |
Kaj 17-Jun-2013 [8469x6] | Arnold, all sorts of constructs with pointers are valid, but the correction I gave is the correct translation of the C source |
pointer/value: value | |
stores a value in an array. There are such examples in the Red manual | |
pointer: :value | |
initialises the pointer itself. It sets the address of where the array is in memory | |
You have to initialise a pointer before you can use it | |
Arnold 17-Jun-2013 [8475] | I copied this from the documentation: http://static.red-lang.org/red-system-specs.html#section-4.8 paragraph 4.8.3 Dereferencing |
Kaj 17-Jun-2013 [8476x3] | Yes, but the C code is not dereferencing the pointer there; it's initialising the pointer |
The example in 4.8.8 is what you need | |
http://static.red-lang.org/red-system-specs.html#section-4.8.8 | |
Arnold 17-Jun-2013 [8479] | Yes, in one way or another this is a trick to check if the initialisation step already has been performed. Hopelessly overcomplicated if you ask me. |
Kaj 17-Jun-2013 [8480] | It's confusing, yes, but it's typical C code. And it's by the holy Knuth, so you can't question it ;-) |
Arnold 17-Jun-2013 [8481] | Time for the Red rebolution to improve the readability of software. I have been playing with the Mersenne Twister code, from C to Red/System. There is no unsigned integer in Red/System? |
Kaj 17-Jun-2013 [8482x2] | No, just integer! |
If you use it as unsigned, you have to check very carefully what you're doing with the highest bit | |
Arnold 17-Jun-2013 [8484] | Unsined integers is on the wish-list for Red/System v2 https://github.com/dockimbel/Red/wiki/Red-System-v2-Wish-List point 29 |
DocKimbel 17-Jun-2013 [8485x3] | You can always have an unsigned integer using a simple pointer. |
Also, "unsigned" is just a convention, the data is same as the signed version. | |
As Kaj said, you can achieve the same calculation with signed integers, you just need to be careful. | |
Maxim 17-Jun-2013 [8488x2] | one question for Red/System. can it already, ( or is it planned ) to export static libs for use within (C/C++, other?) compiler/linkers? |
this would be an nice way for users to try red and progressively replace their binary code base, one source file at a time... instead of a whole project at once. | |
Kaj 17-Jun-2013 [8490] | Yes, not yet, but it's in the roadmap. Currently, you can replace a project one shared library at a time, or one 0MQ service at a time |
DocKimbel 18-Jun-2013 [8491x3] | I have a new test pre-release version for Android, could some of you test it on different devices? http://static.red-lang.org/hello2.apk |
It should display an input field and a "Do" button, allowing you to evaluate arbitrary Red code. The result of evaluation scrolls up, below the button. | |
On Nexus4, it doesn't run. I would like to see how it reacts on other 4.x devices and also older ones. It runs fine on my HTC 2.3.5. | |
Bo 18-Jun-2013 [8494] | On my Motorola XT881 running 4.1.2, Red opens and then immediately closes again. |
DocKimbel 18-Jun-2013 [8495] | Thanks Bo. Anyone with a 4.0.x device? |
XieQ 18-Jun-2013 [8496x2] | It runs fine on my Motorola ME525+ 2.3.6, but can't use PRINT, is that OK? |
And on my ONDA Pad 4.1.1, it's opens and then immediately closes again. | |
older newer | first last |