World: r4wp
[#Red] Red language group
older newer | first last |
Gregg 26-Dec-2012 [4923] | I added a checklist for consoles and IDEs. Put suggestions there to gather ideas. |
DocKimbel 26-Dec-2012 [4924x2] | Gregg, that RSharp version was pretty complete, it was implementing something like 60-70% of R2 functions/natives/actions. |
A partial system object was even present. | |
Gregg 26-Dec-2012 [4926x2] | Yeah, I was surprised when REPEAT worked. |
And nice line editing. | |
DocKimbel 26-Dec-2012 [4928] | I have fixed the main issue in Red runtime for the REPL to work properly, now I just need to extend a bit the tokenizer (LOAD) to handle blocks and a few more details before releasing the code. The current tokenizer is very crude, I will rework it in the next days. |
Gerard 26-Dec-2012 [4929x3] | Hi Doc, |
@ Doc : Will the interpreter have included (some time in the future) some of the debug features planned for R3 (Hooks, stack ops, etc...) ? That would be nice but it's just my wish list ;-) | |
@ Doc, Thanks a lot for this REPL implementation. this is welcome for newcomers I think. | |
DocKimbel 26-Dec-2012 [4932x8] | Debugging features: sure, but maybe not the same as R3. I have a `stack` native in my notes to add, not sure what `hooks` refers to? |
Red REPL preliminary release (be sure to read the commit log before trying it): https://github.com/dockimbel/Red/commit/744bcb072e8f850bd7b9f1e778fe172446f29416 Just compile %tests/console.red and run it! | |
Reminder: error trapping is not yet implemented, so better type working code or you'll be quickly back to Windows console. ;-) | |
This is just a 4 days work, most of the code was implemented in the first 24h, the rest was spent debugging it and adding minor features. | |
I plan to continue working on it until 1st January to add Unicode support to the tokenizer and make the interpreter on par with the current compiler. I will then resume the work on object and ports. | |
I might also implement a cross-platform console if nobody shows up to do the job. | |
BTW, when you call functions from the console (FIRST, PROBE, LAST,...) defined in %boot.red, the interpreter will use the compiled version instead of evaluating their body....this is just to make Kaj even more confused. ;-) | |
I will also probably make a new major release, bumping the version to 0.4.0 when the REPL will be completed. | |
Gerard 26-Dec-2012 [4940] | Hi Doc: Here is about the above Debug Hook mention. It is drawn from http://www.rebol.net/r3blogs/0011.html.Don't miss some interesting comments from the 16 then posted. |
Kaj 26-Dec-2012 [4941] | Is this console only for Windows? |
DocKimbel 26-Dec-2012 [4942] | Currently yes, I thought making a ncurses-based one too, but my time was sucked out by bugfixing. |
Gerard 26-Dec-2012 [4943] | @Doc : Don'T miss the STACK function too. |
Kaj 26-Dec-2012 [4944] | Hm, I'll have to confiscate Natasja's laptop again, then |
DocKimbel 26-Dec-2012 [4945] | Don't you have a Windows VM on a Linux box? |
Kaj 26-Dec-2012 [4946] | Yeah, I'll try WINE first, but R# looks awful on it |
Gerard 26-Dec-2012 [4947] | @DOc : I forgot the link fopr the STACK SPECS and suggested use. Here it is : http://www.rebol.net/r3blogs/0075.html |
DocKimbel 26-Dec-2012 [4948] | Gerard: thanks for the links. It is too early for debug hooks, when Red IDE will be there, it will be completly integrated with Red, so those debug hooks as a public interface will probably be unnecessary. |
Gerard 26-Dec-2012 [4949] | @Doc : Just to be useful with assymetry in series, do you remember this TAKE discussion ? http://www.rebol.net/r3blogs/0082.html |
Kaj 26-Dec-2012 [4950] | Not terribly confused by boot.red being compiled; I would expect anything shipped to be precompiled. Perhaps thinking about it will reveal the mystery :-) |
Gerard 26-Dec-2012 [4951] | Thanks for your last reply Doc. It's interesting you'va such a golbal vision ! |
DocKimbel 26-Dec-2012 [4952x3] | For the stack, I was planning to add a stack trace on errors display in Red, the current REBOL error report is too poor to be able to quickly and accurately locate the code lines involved. |
Just a small notice: please do not post yet any bug reports about the REPL to github, it is too early. | |
Gerard: reading the comments from your links, all the features people mention are on my todo-list for the Red IDE. ;-) | |
Gerard 26-Dec-2012 [4955x2] | @Gregg : "I'll match donations made by 31-Dec up to USD$200" I just spent 100 Euros a few minutes ago (about 135 $ CAD) - Sorry! my personal funding is not good enough to give more ... at this moment ! Xmas is a past thing now so I plan to do better with the New Year coming ... |
@Doc : Don't despair Doc. We are all behind you - even if I don't code for now, as I'm a first day addict, I'll follow your efforts regularly and other's too! May be some day I'll be able to send my own code ... for something useful ! | |
Kaj 26-Dec-2012 [4957x2] | That's excellent |
Doc, it looks like the new dynamic registration support will also make it easier to implement user defined types? | |
DocKimbel 26-Dec-2012 [4959x2] | Yes, that was the idea from the beginning. Until now, I have implemented only datatype registration (just missed a dynamic type ID attribution). |
I didn't need native/action tables until now, the interpreter made me add them sooner than I planned. Extending Red with new natives is already possible using simply routines. For new dynamically added datatypes , it will be soon possible too at Red/System level and with an appropriate interface, from Red directly (with routines when needed). | |
Kaj 26-Dec-2012 [4961] | Very cool |
DocKimbel 26-Dec-2012 [4962] | Gerard: thanks very much for your support! I have good faith in Red and its future. I have a strong will to make all my plans for Red happen. If I can continue to work on it fulltime for a year more, I am convinced that, one way or another, Red will have its momentum far beyond the AltME community. |
Gerard 26-Dec-2012 [4963x2] | @Doc : About the R2/R3/Red console enhancements, I've always missed the MS way to move/select from left to right (on a word by word basis - MOVING on a word-by-word is CTRL+left / right Arrow and adding the SHIFT key in combination with the CTRL means SELECT - it's that simple) but going to the beginning or ending of the line is at least a welcome start ... if we want to go this way - and then going right or left on a character basis - as is for now! And for right-handed ppl it would also be welcome to restore the old MS way of handling the current left-handed ppl to do CTRL-X / C / V - which were CTRL-DEL or SHIFT-DEL / CTRL-Insert / SHIFT-Insert - but this kind of thing I can add myself when time comes ... it's just a matter of being more productive - it's far from being a "caprice des Dieux". For opponents : If you've never experimented it - you then never used it either on a regular basis and you can't catch why I regret this not being supported anymore in recent MS software too ... but this is deceptive either from them since it costs so few to leave it there in the first place. However I must admit that on my iPhone and other mobile tools I will miss it in anyway - until I code my own keyboard for this use too !!! |
But Doc I dont' plan you to code these enhancements - it's just a reminiscenceof what I had to leave behind with the years that I found useful to me - but hard to memorize at first. | |
DocKimbel 26-Dec-2012 [4965] | Gerard: those are details that can be easily added once the cross-platform console will be implemented. If you or someone else will send me pull requests for such features at the appropriate time, I will be glad to accept them. |
Gerard 26-Dec-2012 [4966] | @Doc : I never thought you would do so much work in a so short time. If my support can help you a bit to go further and leave behind - with the help of the other donators - the bad feeling of having to work elsewhere to get money for your living, then it's a pleasure for me to do it as much as I can. Keep up the good work Doc and have a happy new Year form Quebec, Canada. |
DocKimbel 26-Dec-2012 [4967] | Thanks Gerard, it does help for sure! I wish I could have done more, but as french people use to say: "A chaque jour suffit sa peine." ;-) |
Gerard 26-Dec-2012 [4968] | And my "remerciements" have to go to every direct and indirect contributor too (Carl S, KaJ, Peter, Andreas, Ladislav, BrianH, Nick, Maxim, Pekr, Jerry, many guys of the French and other international communities too ... name them - there's too much to name all of them without leaving someone behind). My best wishes to you all Gang- you're forming an exceptionally tight and prosperous team. Your tools are the best I saw for being productive and easyness of use. Let's the Red/Red-System combination, to be the future C language replacement as the new World's low/high level language mix of choice. Not to be without mentioning the REBOL and its loyal followers too (many of the same Red contributors but many more like Robert, Cyphre, Henrik ... and many others which have found their way while we were waiting for R3 to become open source, like Gabriele, Geomol ... - without which we would never be here now. |
Kaj 26-Dec-2012 [4969x4] | Thanks :-) |
Wow, the interpreter and console add all of 3.5 KB to a Red executable ;-) | |
Wait, that's probably the console. The interpreter also seems to be in an empty executable | |
It barely runs under wineconsole 1.2.2 though. The character output is borked | |
older newer | first last |