World: r4wp
[#Red] Red language group
older newer | first last |
PeterWood 20-Aug-2012 [1123x4] | What we want is ability to call %rsc.r from anywhere, compiling a program from working dir (or relative to working dir) and producing the binary in the working dir. Please can we also supply a second argument to rsc.r for the output dir/file name (the gcc -o option with improvements). If the second argument is a dir then the executable is written to that dir instead of the current working dir. If the second argument is a file then the executable is saved with that name. |
(That would really help with quick-test). | |
I just checked on my old machine, I did re-wrtie the lib tests on OS X 10.6 but on OS X 10.7. | |
I meant that I re-wrote the lib tests on OS X 10.7 not 10.6. | |
DocKimbel 21-Aug-2012 [1127x2] | Did you install Xcode including the Unix libs? I have Xcode installed, but don't know if it includes Unix libs or not...how can I check that? |
The -o command-line option for %rsc.r is already there (and since a while). ;-) | |
Oldes 21-Aug-2012 [1129] | I was reviewing my old iMagick.reds binding for a while and found that it the current version I cannot write something like: DrawComment: "DrawComment" [ ;== Adds a comment to a vector output stream ;-- void DrawComment(DrawingWand *wand,const char *comment) wand [DrawingWand!] ;the drawing wand. comment [c-string!] ;comment text ] It throws: *** Loading Error: invalid comment string Do we really need to have 'comment word such an important? I'm pretty sure I would never use it in declarations (as a comment). |
DocKimbel 21-Aug-2012 [1130x2] | It should be allowed imported functions spec block. |
*allowed in | |
Oldes 21-Aug-2012 [1132x2] | I don't like it:/ Could it be at least used only with string after comment word? |
There are some issues with context which I found.. 1. WITH is not able to find enums defined in CONTEXT c: context [ #enum SomeEnum! [FooFalse FooTrue] test: does [ print FooTrue ] ] with c [ test ;prints 1 ;; print FooTrue ;<-- *** Compilation Error: undefined symbol: FooTrue ] | |
DocKimbel 21-Aug-2012 [1134] | Yes, we currently lack some tests for covering combination of WITH and all namespace-aware type of elements. |
Oldes 21-Aug-2012 [1135] | 2. #enum fooEnum! [x y: x z] ;<-- possible c: context [ #enum SomeEnum! [foo boo: foo] ;<-- *** Compilation Error: cannot resolve literal enum value for: c/boo ] |
DocKimbel 21-Aug-2012 [1136] | Could it be at least used only with string after comment word? I'm not sure what you mean? |
Oldes 21-Aug-2012 [1137x6] | limmit comment only on strings... but right, one would not see an error while used with block and expecting comment and not just some definition. |
Personaly I use only: comment {something} never: comment [something] | |
And as I'm recently coding not just in REBOL, I like shorter multine comments used in other languages /* */ | |
comment in REBOL is just native function which takes one argument and does nothing. >> comment (x: 2 + 2) x == 4 | |
So in Red/System it should not be handled in loader | |
(but I know it's just a sugar and I can rename 'comment into 'text in the declaration above).. The problem is, that I don't write these manually. | |
DocKimbel 21-Aug-2012 [1143x5] | Issue 1. fixed. |
Issue 2. fixed. | |
Comment: you're right, it should work more like in REBOL. Resolving it in loader was an attempt at reducing compiler overhead on processing it. | |
After checking loader's code, it was just checking comment's syntax, not processing it. | |
In the current implementation, 'comment can only be used at root level (so not nested in IF, EITHER, ... body blocks). So, it's not true multiline comment support. | |
Kaj 21-Aug-2012 [1148] | The SQLite binding now works on OS X, thanks to Peter |
DocKimbel 21-Aug-2012 [1149x2] | Good news! |
Oldes: I've changed the 'comment implementation to be more like REBOL, so it consumes the next expression, but does not generate code for it (so you're above example with 'x won't work in Red/System). Also, it cannot be used in functions spec blocks anymore, so we still don't have a true multiline comment support. Suggestions about that are welcome. | |
james_nak 21-Aug-2012 [1151] | Doc, I see you have recently updated quite a few things (on http://www.red-lang.org) . Good job. |
DocKimbel 21-Aug-2012 [1152] | James: thanks! More interesting stuff is coming soon. ;-) |
james_nak 21-Aug-2012 [1153] | ohhh! |
Pekr 21-Aug-2012 [1154] | Lookinf forward to whatever progress is made :-) |
Kaj 21-Aug-2012 [1155x2] | Glad about COMMENT :-) |
I'm also glad it doesn't have side effects | |
DocKimbel 21-Aug-2012 [1157x2] | We still lack a proper multiline comment solution that works everywhere, though. |
Pekr: expect a firework of new features and progress until christmas. ;-) | |
Pekr 21-Aug-2012 [1159x2] | No side projects? Well, we will have to keep you alive via some donation from time to time then :-) |
dynamic/shared libraries support? Ability to generate a DLL? Is it e.g. any prerequisite to come to Android, or just useful generally? | |
DocKimbel 21-Aug-2012 [1161x2] | I have a short-term customer project, but it's a week or so of work and I can work part-time on it. I also have another webapp (cheyenne-based) project that I work on from time to time, I'll publish it when it will be fully functional, I'm pretty sure you'll like it. Currently only Kaj knows what it is about, as I started it last time I've visited him. ;-) |
Ability to generate DLL, yes. It is a prerequisite for Android (and probably iOS/OSX) support. | |
james_nak 21-Aug-2012 [1163] | That sounds really great. |
PeterWood 21-Aug-2012 [1164] | Having /* */ comments in Red/System would be a very good idea for me. Boron uses /* */ for multilne comments. |
DocKimbel 22-Aug-2012 [1165x5] | I think I should find a web page that compares multiline comment syntax for main languages to see if there's any good alternative to the C way. |
BTW, for those not following me on Twitter (raise your hand!), I just got my first Red/System DLL working on Windows. ;-) | |
So now, who wants to write R3 extensions in Red/System? ;-) | |
As Red/System compiler is written in R2, you could imagine a full toolchain library for R2 that could integrate Red/System deeply with R2, imagine: >> foo: make-native [a [integer!] return: [integer!]][a + 1] >> foo 123 == 124 MAKE-NATIVE here would compile the Red/System function, emit a DLL, load it and map the function back. ;-) | |
I don't receive notification emails anymore for the newly added github issues...If I activate Settings->Notification->Watching->Email, I get them again, but also from all others repo I'm watching...Is there a way to only get the notifications by email for the repos I'm owning? | |
james_nak 22-Aug-2012 [1170x2] | Does this help? https://github.com/blog/1204-notifications-stars |
Someone else wrote: So the 'solution' I found to this was to set up filters for the various repository emails by filtering on email list. The list filtering is mentioned here on the github blog: https://github.com/blog/967-github-secrets (scroll down the page a bit). I would then just forward the emails from selected repositories to the "correct" email address. | |
DocKimbel 22-Aug-2012 [1172] | Thanks for the links James, I'm watching and have starred my Red repo, so I should receive those notifications... |
older newer | first last |