World: r3wp
[rebcode] Rebcode discussion
older newer | first last |
Volker 15-Oct-2005 [394x2] | Right. WOuld be nearly another kind of markup for most things. This computed gotos may not work, but the rest should. |
tcc, even available as library. But x86 only afaik. | |
Pekr 15-Oct-2005 [396] | so you could e.g. convert rebcode to dll and redirect the call, to get native C level speed? Hmm, sounds like there are some options for the future :-) |
Volker 15-Oct-2005 [397x2] | Yes, that would be possible. Similar to doing it with a jit, only slower compilation and bigger compiler. |
Butmost easy to start with IMHO. Once it works, Carl cant resist to beat it with something own anyway :) But not really possible without access to rebol-values. | |
BrianH 15-Oct-2005 [399] | Volker, you wouldn't need to provide hooks if you pass those values as parameters. |
Pekr 15-Oct-2005 [400] | I wonder if there would be someone so insane to try convert rebol interpreter iself into rebcode :-) |
Volker 15-Oct-2005 [401] | But we are talking rebcode, and rebcode can do more. for example you can write a forall in rebcode, but not with routines. |
Pekr 15-Oct-2005 [402] | ... hmm, that would be slower after all, forget that .... |
Volker 15-Oct-2005 [403] | I guess Carl will be that insane, one day, in hollydays. :)) |
BrianH 15-Oct-2005 [404] | Pekr, that's the compiler I was thinking to build :) |
Volker 15-Oct-2005 [405x2] | I guess Pekr did not mean to compile rebol, but to have a real interpreter, as the one which is now in c. |
or? | |
Pekr 15-Oct-2005 [407x2] | Volker, I know, but some time ago I though that e.g. you have rebol block for e.g. and I thought that there might be some api, kind of DOM, so that from C library, you would access it via such structure and you would manipulate rebol datatype value directly |
I e.g. did small dll some time ago to do some histogram etc. stuff with image. Image is easy - four bytes of values per pixel - worked well, but I modified binary value directly. Now imagine how would you work with rebol block in C level eventually :-) | |
Volker 15-Oct-2005 [409] | Yes, that is what i would want too. then you can jit rebcode with a c-compiler. |
BrianH 15-Oct-2005 [410x2] | Volker, I've heard that some people are trying to make tcc portable (to ARM so far) but they aren't that far yet. |
That's why I suggested LLVM. | |
Volker 15-Oct-2005 [412] | AFAIK AmigaDE has good compilers for various cpus, around 40k. But that means money. |
BrianH 15-Oct-2005 [413] | Or for that matter, Mono is available as a library, and you can access the .NET runtime that way too. |
Volker 15-Oct-2005 [414] | Or java. Problem with that is, they are not optimized for unions, and rebol depends on them. |
BrianH 15-Oct-2005 [415] | Oh well, now that there is an official (alpha) release of rebcode, I submitted my HERE directive to RAMBO. |
Volker 15-Oct-2005 [416] | But Carl said once, a good jit like ADE would take him a month. Now if we can put him that long on vacation.. :)) |
Pekr 15-Oct-2005 [417x2] | BrainH: use RT Q & A group here, that might be faster :-) |
hmm, but most of that stuff is several times the size of rebol itself :-) | |
Volker 15-Oct-2005 [419] | Jump on Gabriele when he shows up.. |
Pekr 15-Oct-2005 [420] | Isn't there really a stuff like 40KB, free, crossplatform, so that we could have it "onboard"? :-) |
BrianH 15-Oct-2005 [421] | I tried that. It only worked with things they were already working on. Gabriele and my sleep schedules have very little overlap :( |
Volker 15-Oct-2005 [422] | IIRC tcc is around 100, but with c-parseron board. |
BrianH 15-Oct-2005 [423] | Pekr, that would mean Forth :) |
Pekr 15-Oct-2005 [424] | BrianH: if HERE is really important, then I suggest you to use even more drastic methods to get Gabriele's attention, like telling him Pizza and Spaggeti don't come from Italy and that Italy can't play decent football :-)) |
BrianH 15-Oct-2005 [425] | I've never seen an Italian try to play football. Oh, do you mean soccer? :) |
Pekr 15-Oct-2005 [426] | yes, soccer, they are quite good in it :-) |
BrianH 15-Oct-2005 [427] | Never been to Italy (that includes DevCon2005, darnit), so I'll take your word for it. |
Pekr 15-Oct-2005 [428] | BrianH - where're you from? |
BrianH 15-Oct-2005 [429] | Chicago, Illinois, USA |
Volker 15-Oct-2005 [430] | Spaggethi not from italy? MAybe this helps arguing? http://science.slashdot.org/article.pl?sid=05/10/15/022201&tid=14 :) |
Pekr 15-Oct-2005 [431] | that's quite far away from here :-) But isn't it close to Sassneranch? Maybe you could visit Carl to talk to him personally :-) |
BrianH 15-Oct-2005 [432] | Ah, but proper pizza is from Chicago :) |
Pekr 15-Oct-2005 [433] | :-) |
BrianH 15-Oct-2005 [434x2] | That's more than a thousand miles away. Not a quick jaunt. |
Mapquest say that just to get to their zip code, it would take 31 hours 55 minutes in time, 2194 miles in distance. | |
Gabriele 15-Oct-2005 [436] | i already asked Carl about HERE. he hasn't aswered yet, but that does not mean he won't. |
BrianH 15-Oct-2005 [437x3] | In rebcode, testing not x, before ==> after: true ==> false false ==> true none ==> none (three-valued logic, SQL here we come) 1 ==> 0 (bitwise) 1.0 ==> 1.0 (unchanged) a ==> REBOL goes away without warning (where's that type inferencer?) |
Thanks Gabriele! I wasn't meaning to be a jerk - I meant it about Carl being busy :( | |
Now you have a nice RAMBO entry to work with. | |
Gabriele 15-Oct-2005 [440] | indeed, i was referring to Petr's message, rather than yours. :-) |
BrianH 15-Oct-2005 [441x3] | Well, I think putting an entry in the Rebol Enhancements group or in RAMBO beats drivinf 2194 miles :) |
What did Carl mean about rebcode modifying memory? I'm a little worried about these use-an-opcode-wrong, REBOL-goes-away errors. | |
That NOT x crash can be worked around by doing a SETT x GETT x to make sure the value is compatible. | |
older newer | first last |