r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3-OLD1]

Steeve
31-Dec-2009
[20578]
Who's that optimizer ?
BrianH
31-Dec-2009
[20579]
The "REBOL optimizer" is a running joke. The best way to optimize 
your REBOL code is to post it publicly in AltME or R3 chat and dare 
people to improve it. Then the community tries to one-up each other 
to improve it :)
Steeve
31-Dec-2009
[20580]
-_-;
BrianH
31-Dec-2009
[20581]
It's the best optimizer known to man :)
Steeve
31-Dec-2009
[20582]
sure :)
BrianH
31-Dec-2009
[20583x2]
For certain project domains, R3 interpreted code can be faster than 
compiled code, once it's been through the REBOL optimizer.
That happened with some REBOL-vs-Java code the other day here.
Steeve
31-Dec-2009
[20585]
but there is several criteria to optimize something.
- Best Speed
- Shortest code
- shortest memory overhead
- best ratio of above criteria
BrianH
31-Dec-2009
[20586x2]
An interesting example of that is AJOIN. The R3 version has less 
memory overhead, the R2 version in 2.7.7 is faster.
Oh, and that means that the mezzanine is faster than the native :)
Steeve
31-Dec-2009
[20588]
rare
BrianH
31-Dec-2009
[20589x2]
Not really, for code that plays to REBOL's strengths. It happens 
quite often.
Rare for the kind of thing you tend to do though (emulators, iirc).
Rebolek
1-Jan-2010
[20591]
throw/catch does not work in R3?
Carl
7-Jan-2010
[20592]
Testing.
BrianH
7-Jan-2010
[20593]
Bolek, THROW and CATCH work in R3 but there is a strange interaction 
with TRY.
Graham
10-Jan-2010
[20594]
How about we have some more refinements to read ??
Pekr
11-Jan-2010
[20595]
Graham: my reply from R3 Chat:  I think that we will not get much 
refinements for read/write functions. The planned ones were /string 
(text) and /as (enconding). What you want is read working in a streamed 
way. We might get it in future, but I doubt we get what you propose.
Graham
11-Jan-2010
[20596]
Why not?  Because refinements slow down 'read?
Pekr
11-Jan-2010
[20597x2]
And maybe design of read/write was never actually finished ;-)
16-Apr-2008: Prunning down read and write - http://www.rebol.net/r3blogs/0127.html

11-Nov-2009: Finalising read and write - http://www.rebol.net/r3blogs/0294.html
Graham
11-Jan-2010
[20599]
well, I guess we could specifiy it in the /as block
Pekr
11-Jan-2010
[20600x2]
I don't know. Just read realated discussions - many opinions, what 
read/write should (not) do ...
I am with ones proposing having read/write as simple as possible, 
adding just /as for codec support. Codec API should be defined, the 
same way as we have Device API, port API, etc. /string should be 
no excuse .... in the past (1.2 days), Holger posted to IOS:

read http://something.com:my-callback
Graham
11-Jan-2010
[20602]
read/as ftp://ftp.rebol.com/matrix.avi[ file: %movies/matrix.avi 
]

and to resume


read/ask/seek ftp://ftp.rebol.com/matrix.avi[ file: %movies/matrix.avi 
 ] current-file-size-of-matrix.avi
Pekr
11-Jan-2010
[20603]
hmm, but /as was proposed to specify just type of encoding IIRC, 
not some other functionality ... some of us wanted /as being more 
general, allowing you to specify a codec to decode. Codecs are so 
far inefficient (not streamed), because you have to read all data 
firts, then pass it to encode/decode.

Carl never posted a resolution to read/write case ....
Graham
11-Jan-2010
[20604x2]
Need some way to pass parameters to scheme actors.  Andreas is using 
read/lines !
I think my schemes are making R3 unstable.  Tried to post a message 
and got from chat


rebol system error #1301: invalid datatype 99 ... should never happen 
...
Steeve
11-Jan-2010
[20606]
Well, we don't need of specific refinements, cause we can pass a 
block to read (which is converted to a port!).

>> read [scheme: 'ftp host: ... path:... other_data: ....]


The  block format could be used to pass other parameters in a more 
handy way.


>> read [ftp://ftp.rebol.com/matrix.avifile: %movies/matrix.avi]


And the good news, is that it's absolulty possible to have something 
like that now.
We just have to patch the function: system/intrinsic/make-port
Pekr
11-Jan-2010
[20607x2]
Steeve - it is good we have you here :-)
btw - some time ago someone stated here, that current https scheme 
is done "old school". Was that you? Isn't now the right time to define 
the better way (if any) to aproach schemes and networking? :-)
Graham
11-Jan-2010
[20609]
Well, I am using a write spec block ...
Steeve
11-Jan-2010
[20610x2]
sorry again (it's true i said this)
easy to talk hard to do
Graham
11-Jan-2010
[20612x2]
Steeve .. don't waste your time on a r2 chat .. there's no traffic 
on there.  Spend your time on schemes :)
We need a place to set a system timeout ...
Steeve
11-Jan-2010
[20614x2]
To my mind, we need a better framework to design shames using a FSM 
dialect
shames=schemes
Graham
11-Jan-2010
[20616]
Like uniserve?
Steeve
11-Jan-2010
[20617x2]
;-)
uniserve has some good ideas
Graham
11-Jan-2010
[20619]
Or do you mean use a dialect to define the scheme?
Steeve
11-Jan-2010
[20620]
yes a dialect to construct schemes
Graham
11-Jan-2010
[20621]
meta programming
Steeve
11-Jan-2010
[20622]
Rebol is especially good with those things
Pekr
11-Jan-2010
[20623]
someone did FSM in the past. Gregg? Henrik?
Graham
11-Jan-2010
[20624]
Gregg
Pekr
11-Jan-2010
[20625]
One from gabriele - http://www.colellachiara.com/soft/Misc/qml/fsm.rlp
Henrik
11-Jan-2010
[20626]
Ladislav has done one too. Time for a FSM battle?
Graham
11-Jan-2010
[20627]
I suspect that you have to write a few schemes to see what is needed 
and then write the scheme dialect