World: r3wp
[!REBOL3-OLD1]
older newer | first last |
Pekr 22-May-2007 [2221] | another one - why do I need to explicitly state "do task"? Why there is extra set of brackets in make task! [[]] example? |
Gabriele 22-May-2007 [2222] | in R3 it's called actor instead of handler, and the reason is that it is internally very different from r2 handlers. |
Pekr 22-May-2007 [2223] | ok, thanks for the actors explanation :-) |
Gabriele 22-May-2007 [2224x2] | make has been changed so that it does no more take variable number of args |
so if you want to provide a spec for the task you use a block inside the arg block | |
Pekr 22-May-2007 [2226] | re tasks - it does not look natural to me ... you don't start your rebol script by stating [REBOL [] code-here] |
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? :) |
older newer | first last |