World: r3wp
[Red] Red language group
older newer | first last |
Dockimbel 19-Apr-2011 [1171] | cd %red-system/tests/ do %run-all.r |
Kaj 19-Apr-2011 [1172] | That's cheating, that was ported from Boron ;-) |
Dockimbel 19-Apr-2011 [1173x2] | hehe :-) |
Kaj: BTW, Andreas added ELF sections table support a few days ago, so, does it help a bit loading executables on Syllable? | |
Kaj 19-Apr-2011 [1175] | Yes, I saw that and want to test it, but I'm very busy. Maybe I'll get to it tomorrow |
PeterWood 19-Apr-2011 [1176] | Kaj :That's cheating, that was ported from Boron ;-) Not true. That was my initial intention but simple-test was felt to be too heavy for Red/System so I built a lighter one. By the way, the boron framework was ported from REBOL ... .... and back again :-) |
Kaj 19-Apr-2011 [1177] | OK. Sorry, I didn't mean it in the strict sense, more as predecession :-) |
BrianH 19-Apr-2011 [1178] | Given the potential licensing issue, it's best to be careful about that. *GPL is a one-way street. |
PeterWood 19-Apr-2011 [1179] | simple-test.b is just a script written in boron. I don't believe it is GPL because of that just as all Java code is not GPL because Java is GPL. |
BrianH 19-Apr-2011 [1180x2] | Cool. |
Though the "all Java code is not GPL because Java is GPL" thing doesn't apply to GPL2, which is why the Classpath exception was made. GPL3 fixes this though. | |
PeterWood 19-Apr-2011 [1182] | Oh, I didn't realise that Java was released under GPL2. I thought it was only under Sun's proprietary licence until it was issued under GPL3. |
BrianH 19-Apr-2011 [1183x3] | (getting off topic) The main problem was that GPL2 code *written* in Java was illegal to *run on* proprietary JVMs and link to even the bundled Java libraries. The same goes for GPL2 code written in REBOL. LGPL2 is a little more legal for running on proprietary languages, barely. |
There were and are a lot of popular GPL2 apps written in Java, but none of them are legal to run (ish, depending on distribution). | |
(closer to on topic) The same goes for GPL REBOL scripts, like the BEER framework before its relicensing. | |
Kaj 19-Apr-2011 [1186x2] | Brian, please, this is just FUD. There is no GPL in play at all here. Boron is LGPL |
I notice you write *GPL, and while I could agree with stating that GPL is a one-way street, LGPL is not | |
BrianH 20-Apr-2011 [1188x5] | LGPL projects can be mixed with or incorporate code of other licenses, with some acceptable limits, more or less. However, the code itself can't be adapted to projects with more permissive or closed licenses, without carrying over those restrictions, or in the case of LGPL quaranteening the code in seperately linkable portions. Less restrictions than GPL, more than Classpath, but still one-way. Not FUD, but definitely off topic. |
Porting code in Boron itself - rather than code that was just written in Boron - to Red itself without relicensing it would make Red mixed-license, BSD and LGPL. Going the other way, porting code in the Red project to the Boron project wouldn't affect the license of Boron; it could stay LGPL only. | |
None of this affects user code written in either language though. | |
And the original authors of any LGPL code in Boron could relicense it as BSD if they want it added to Red. No problem, if the author agrees to it. | |
quaranteening -> quaranteeing I miss the auto-spellchecking of web browser text boxes when in AltME :( | |
PeterWood 20-Apr-2011 [1193] | I believe that it is most unlikely that any code will be ported from boron to Red because Red will first be written in REBOL and eventually in Red whilst boron is written in C. |
Kaj 20-Apr-2011 [1194x3] | Yes |
Brian, it's FUD because you are changing the topic. You're jumping from the effect of the licence of platforms on application code to the ability to mix and match platform code | |
You're also steering the topic to discussing the GPL, which has nothing to do with this | |
BrianH 20-Apr-2011 [1197x2] | None of this affects user code written in either language though. When I realized that Peter was talking about user code, not code from Boron itself, I said "Cool." and then just clarified something based on what Peter said next. It was not steering the conversation, though I apologize if it gave that impression. License compatibility for contributions is a real problem (which is why I reacted to the FUD remark), but it is a problem with limited scope, and is solveable even within that scope. My response to that FUD remark gives the overview of the limited scope of the problem, and how to get around it (relicensing with author permission). No unsolveable problems. |
I am firmly of the belief that all problems are solveable, so FUD is against my principles. Sorry if I took offence at your initial FUD remark. | |
Kaj 20-Apr-2011 [1199] | I am sure you mean well. That's why I keep pointing out that these issues should not be conflated :-) |
BrianH 20-Apr-2011 [1200x2] | Peter changed the topic when he said "I don't believe it is GPL because of that just as all Java code is not GPL because Java is GPL.", and that is what needed clarification. Unfortunately, I couldn't move that message to the Licensing group, or edit my responses to be more clear (stupid AltME). |
Sorry, that went in the wrong group. | |
Oldes 20-Apr-2011 [1202x4] | What about using just: p: integer! instead of: p: pointer [integer!] |
hm... probably not.. because it would be problematic with aliases | |
btw... in the example in chapter 4.6.6 is probably typo: foo: func [ /local c [pointer! [integer!]] s [c-string!] ][ c: get-hello s: as c-string! c/value prin s ] there should be just: c [pointer [integer!]] as used above. | |
same in 4.7... or is it by design? | |
Dockimbel 20-Apr-2011 [1206x3] | let me see that... |
Do you mean pointer instead of pointer! ? | |
These two are different, pointer! is used to refer to the datatype and have to be used in function's spec blocks. Pointer (without !) is a keyword (like struct) used to represent a literal pointer value. | |
BrianH 20-Apr-2011 [1209] | You're using the http://issue.cc/r3/546style AS operation? |
Dockimbel 20-Apr-2011 [1210] | Adding to this, pointer! can also be used for type casting (following AS keyword). |
BrianH 20-Apr-2011 [1211x2] | Is that typecast changing the integer to a c-string! (a kind of pointer to byte), or is it changing the pointer to the integer to a c-string!? |
It seems to me that the latter would be: s: as c-string! c | |
Dockimbel 20-Apr-2011 [1213x3] | In the example from 4.6.6, c/value refer to the pointed integer value, so it is the former, integer! -> c-string! (== pointer! [byte!]) |
Exactly. | |
I might have been inspired by your ticket (I remember vaguely reading it a long time ago). Using AS for type casting, was a natural extension of the as-string / as-binary syntax from R2. | |
BrianH 20-Apr-2011 [1216x3] | As was the ticket. Remember that in Red proper, AS should do conversions, not casting, for safety. Given all this typecasting, it is looking more and more like Red proper should have the handle! type instead of pointers, where a handle! would be a pointer-like thing with no dereferencing, arithmetic, or value setting or getting in Red itself. Then let Red/System cast the handle! to whatever pointer type it needs to. |
And then back to a handle! if it's going to be passed back to Red code. | |
Pardon my mistake if you weren't thinking of Red/System as being a bit like unsafe code sections in C#, JNI code in Java, or extensions in R3. | |
Dockimbel 20-Apr-2011 [1219x2] | Yes, that is a good option. Red has to be safe, that's one of the main reason for having Red/System dialect. |
No mistake, that is a correct way to see the separation between Red and Red/System. | |
older newer | first last |