AltME: REBOL3

Messages

DocKimbel
Endo, could you benchmark this one?
flatten: func [blk][load form blk]
It's probably fast but wouldn't work well for all datatypes.
Endo
Hi, yes it is faster;
>> benchmark2/iteration [flatten x] [flatten2 x] 1000
Execution time for the #1 job: 0:00:02.969
Execution time for the #2 job: 0:00:01.625  <-- Ladislav's version
But it has some undesired effects like:
>> flatten [ "3 4"  "5 6" ]
== [3 4 5 6]
And fails on non-loadable values:
>> flatten [ " '3 " ]
** Syntax Error: Invalid word-lit -- '3

Bo
So, I'm fighting with 'call and other stuff for a project. I'm trying to launch FLITE which is a TTS engine. It works perfectly fine if I run it from a shell, like follows:
    flite "this is a test"
But if I try to run it from Rebol that was launched in that exact same shell, I get:
    >> call/wait [{flite} {"this is a test"}]
    Home directory not accessible: Permission denied
    audio_open_alsa: failed to set sample rate near 8000. Invalid argument.
Also, if I try:
    call/wait/shell {flite "this is a test"}
same error. Any ideas?
Ashley
call/wait/output {cmd /C "c:\Program Files\flite\flite.exe" "this is a test"}
Oops ... sans the /output refinement
Also, I'm assuming Windows here

Gregg
Some things are unhappy if you don't use /show. A workaround, if you launch them a lot, is to use call/show "" once at the top of your app. This primes things so they work.
Permission wise, have you tried running rebol as admin? In addition to Ashley's trick, try using a fully qualified path to the exe you're launching.
I haven't seen that exact error, so these are just my normal CALL tricks when I have issues.

Gregg
parse "12345" [2 skip -1 skip]
** Script error: value out of range: -1
** Where: parse
** Near: parse "12345" [2 skip -1 skip]
Is it a bug that negative skip values aren't supported?
Bo
Ashley: Thanks for the input, but I'm using Linux.
Gregg: In R3, 'call doesn't have a /show refinement.
Gregg
Ah, right, R3. Are you using the latest from Atronix? I had issues with earlier versions.
Bo
Yes, latest Atronix version.

Arie
Hi, can somebody point me to the latest r3-gui.r3 on the web? I find it very difficult to know what to use these days ;-) Atronix, Saphirion, RT website which is very outdated ...
Also, is there a REBGUI port for R3 available?
Henrik
There is no RebGUI for R3, as far as I know.
WRT, R3 GUI, well, I guess someone needs to dedicate more time to it.
NickA
Arie, the Atronix version is kept up most right now:  http://www.atronixengineering.com/downloads  The r3gui.r3 loaded by the 'load-gui in that version is at  http://rebol.atronixengineering.com/r3/r3-gui.r3    You need to use their version of r3 with that version of r3-gui.r3.
amacleod
Is there  a r3-view for raspberry pi?
amacleod
OK, got it...."load-gui" using arm binary....cool

Last message posted 161 weeks ago.