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

World: r3wp

[!REBOL3-OLD1]

Gabriele
22-May-2007
[2227]
you don't?
Pekr
22-May-2007
[2228]
no :-)
Gabriele
22-May-2007
[2229]
all my scripts start with a rebol header.... do won't execute them 
otherwise :)
Pekr
22-May-2007
[2230x3]
I can 'do %script.r, which does not contain whole script enclosed 
in special brackets ... well, it loads it into block, so actually, 
yes, but :-)
it is imo confusing - not compatible with how we specify scripts 
... but maybe I confuse it with modules. Simply put, typical rebol 
code is REBOL [header] body, not REBOL [ header] [body]
task definition looks exactly like the latter ....
Gabriele
22-May-2007
[2233]
afair you can:


 t: make task! [some code here] ; no spec, not sure it's supported 
 but i think so

or:

  t: make task! [[header] some code here]
Pekr
22-May-2007
[2234x2]
without the word REBOL , that is :-)
ah, ok then ....
Gabriele
22-May-2007
[2236x5]
or maybe carl made it like make function!
make function! [[spec] [body]]
(i'm going from memory... i think modules were described as i said 
above so tasks should be similar, but function-like makes sense too 
if the header is mandatory)
anyway these are the kind of things that are going to change during 
the alpha phase in june
ie. we let some developers play with it just so that we can make 
final decisions on this stuff.
Pekr
22-May-2007
[2241x3]
hmm, at least 4 of my msgs lost ....
seems ok now ... well, I just said that the syntax looks ugly - too 
many brackets :-)
but what is definitely issue to me is that it is not imo consistent 
with how we construct scripts ...
Gabriele
22-May-2007
[2244]
well it's basically going from make task! spec body to make task! 
reduce [spec body]
Pekr
22-May-2007
[2245]
and task for me is kind of higher level construct as script or modules 
are ... well, kind of "instance" of "environment"
Gabriele
22-May-2007
[2246x2]
so you just write a wrapper task: func [header body] [make task! 
reduce [header body]]
if you look at it this way... i'd actually want it to not support 
the above example at all.
Pekr
22-May-2007
[2248]
ok, so then take my note for the discussions .... pekr did not like 
task syntax :-)
Gabriele
22-May-2007
[2249]
:)
Pekr
22-May-2007
[2250]
btw - could scheme be seens as a "class" for port?
Gabriele
22-May-2007
[2251]
yes, i think carl described it exactly like that.
Pekr
22-May-2007
[2252x2]
or is scheme different things? It seems to me it contains mostly 
definitions?
aha, ok .... at some point, Carl blogged about classes/objects in 
R3, but maybe I am confused? What happened to that concept? IIRC 
it was related to some low level stuff, to save memory or something 
like that ...
Gabriele
22-May-2007
[2254x2]
carl hasn't mentioned that at the devcon.
imho it's not really that important once you have user types.
Pekr
22-May-2007
[2256x2]
was it that one? http://www.rebol.net/r3blogs/0035.html
we will have user types?
Gabriele
22-May-2007
[2258]
yes... carl said he had some issues while implementing them
Pekr
22-May-2007
[2259x3]
implementing what? classes, or custom user types?
if we will have custom user types, isn't it what you wanted? :-)
I am sure you will not like following, but I would rename mutex - 
that is typical IT related term, which makes sense to programmers, 
but which has no particular meaning to me.  Why not 'lock? or anyting 
else?
Sunanda
22-May-2007
[2262]
Mutex is an ugly term. But it is precise. Lock could mean several 
things, including shared locks rather than exclusive locks.
Gabriele
22-May-2007
[2263]
custom user types (question above)
Gregg
22-May-2007
[2264]
Semaphore? Longer, I know.
Pekr
22-May-2007
[2265]
Semaphore sounds more logical .... it at least means something ....
Maxim
23-May-2007
[2266x2]
and most amiga coders already know about what it means ;-)
which is probably about 95% of rebolers, I guess.
Henrik
23-May-2007
[2268x2]
well, I used Amiga Basic once...
not exactly the pinnacle of programming :-)
Rebolek
23-May-2007
[2270]
the one by Microsoft, distributed with OS1.3? :)
Henrik
23-May-2007
[2271x2]
yes
that was before I hated Microsoft, but I couldn't understand quite, 
why my old C64 had a faster Basic
sqlab
23-May-2007
[2273]
If 95% of rebol user are really former Amigans, then it is sad. This 
looks as if they have chosen Rebol just because of  the merits of 
Carl S for the Amiga and his popularity under the Amiga users .
Pekr
23-May-2007
[2274]
sqlab - maybe that is why REBOL did not get popular enough - the 
Amiga curse :-)
Gregg
23-May-2007
[2275]
I'm not an Amigan, though I do have one book on 3D graphics programming 
in Amiga BASIC, and I have a good friend who had an Amiga and a Video 
Toaster. I didn't know who Carl was until I found REBOL.
sqlab
23-May-2007
[2276]
That's the same for me. I came to Rebol looking for an easy solution 
to a communication project.