World: r3wp
[Rebol School] Rebol School
older newer | first last |
kib2 6-Feb-2009 [1541] | :) |
shadwolf 6-Feb-2009 [1542x2] | but rebol is easy you don't have to practice it 10 hour a day to be able to do insane things with it |
i would say parse is really the thing i need to understand further and heavy work on (you can write a 500 pages book only about parse and all it's subtilities) | |
kib2 6-Feb-2009 [1544] | I've been programming in Python for 6 years now. When I became fed up with it 3 months ago, I've tried maybe 15 langages since, and now I've got 2 or 3 good candidates. |
Geomol 6-Feb-2009 [1545] | There's even a local REBOL page for you french guys: http://www.rebol-france.org/ |
shadwolf 6-Feb-2009 [1546x2] | yes ^^ |
from here you can access rebelBB (forum built using parse) or the wiki with lots of documents | |
Geomol 6-Feb-2009 [1548] | kib, you might also find this page interesting: http://www.rebolforces.com/ Some good articles in the REBOL/Zine there. There were written years ago, but still good, I guess. |
kib2 6-Feb-2009 [1549x2] | Thanks for those links (I already know rebol-france). I just discovered there are a lot of books on Rebol (I've bought the last one in French): http://www.rebol-france.org/index.cfm?content_id=13 |
Do you know good Rebol hosting plans ? | |
shadwolf 6-Feb-2009 [1551x3] | good question and hum apart the one you will set yourself i don't know |
after that depends on how deep you want your rebol to be embeded to your website | |
if you want to use rebol like php you can use cheyenne! | |
kib2 6-Feb-2009 [1554] | shadwolf: from what I've read, it's just a cgi script....but free.fr does not support them! |
shadwolf 6-Feb-2009 [1555] | cheyene! is a web server writed in rebol to execute rebolscripts but i don't know free hosters proposing it |
kib2 6-Feb-2009 [1556] | ok, thanks. I'll have a look at it. |
Henrik 6-Feb-2009 [1557] | I use Cheyenne with my HTML dialect to host small dynamic pages that take a few minutes to write. |
kib2 6-Feb-2009 [1558] | Henrik: and you're self hosting ? |
Henrik 6-Feb-2009 [1559] | on my laptop at the moment. |
kib2 6-Feb-2009 [1560] | Henrik: so when your laptop is off, your site too ?! |
Henrik 6-Feb-2009 [1561x2] | yes :-) |
I have no better solution right now. I plan slicehost, linode or similar later. | |
shadwolf 6-Feb-2009 [1563] | if i was president i would ban apach and impose cheyenne! :O |
kib2 6-Feb-2009 [1564] | Henrik: where are your pages ? |
Henrik 6-Feb-2009 [1565] | http://rebol.hmkdesign.dk/files/r3/gui/ |
kib2 6-Feb-2009 [1566] | Henrik: you wrote the R3 gui demo ? |
shadwolf 6-Feb-2009 [1567x3] | i like the gold progress bars henrik ^^ |
sliders in 032 are nice too | |
toggle ar too big in my opinion a toggle is to be put in a list of parameters | |
Henrik 6-Feb-2009 [1570x2] | I only skin R3. I did not write the demo. Skin is far from finished. |
(the gold progress bars are long gone. :-)) | |
Geomol 6-Feb-2009 [1572] | kib, if you wanna see, what can be done with REBOL, take a look at Canvas RPaint (see group Canvas). It's an port of the old DPaint for the Amiga made in REBOL. More than 12'000 lines of REBOL source (600kb) or 176kb compressed. |
kib2 8-Feb-2009 [1573] | Hi, can someone help ? |
Janko 8-Feb-2009 [1574] | about what? |
kib2 8-Feb-2009 [1575x2] | Janko: thanks. I'm starting and don't understand why this snippet does not work : http://clojurepastebin.appspot.com/1003 |
In fact, I don't even know if it's the right way to write a 2 arguments function. | |
Geomol 8-Feb-2009 [1577] | Most REBOL programmers use FUNC, and not FUNCTION, because it's easier. Let me see, if I can rewrite your function with func... |
kib2 8-Feb-2009 [1578] | Geomol: I just followed the book I bought, it tells me that func uses globals, and globals may not be the best no ? |
Geomol 8-Feb-2009 [1579x4] | hm, you can make locals with FUNC. |
It doesn't work, because RETOUR isn't defined. You just declare it (as a block). You need to actually make the block. | |
quartile: func [ liste [block!] /local malong retour ][ retour: clear [] malong: length? liste either (modulo malong 2) [ insert retour (length? liste) ] [ print "longueur impaire" ] return retour ] | |
That may not be, what you want. I haven't figured out yet, what you want the function to do. :-) | |
kib2 8-Feb-2009 [1583x2] | Geomol: thanks! so when you declare an object, it's not build ? |
don't mind about that function purpose : it does nothing interesting at the moment | |
Geomol 8-Feb-2009 [1585x2] | :-) Careful. We have to get the terms right, because they mean something, declare, object, etc. |
Examples of words, that get declared (defined or known from now on) and also get build: a: none b: 42 c: make block! 16 If you specify words to be local to a function, they don't get declared (build). It just mean, that when you refer to those words, they will be local to the function. | |
kib2 8-Feb-2009 [1587] | Geomol: right, i'll try to take care of my vocabulary :) |
Geomol 8-Feb-2009 [1588] | so my-func: func [ var1 var2 /local var3 var4 ][ ..... ] In this, var1 and var2 are two arguments to the function. var3 and var4 are treated local to the function, but they're not created yet. |
kib2 8-Feb-2009 [1589] | Thanks Geomol, that's clearer now. I had to go for lunch, I'll be back in a few mins. (I've got a lot of questions, I find my book not clear at all). |
Geomol 8-Feb-2009 [1590] | An example: >> fibonacci: func [i /local n old-n older-n] [n: 1 old-n: 0 loop i [older-n: old-n old-n: n n: old-n + older-n print n]] >> fibonacci 5 1 2 3 5 8 |
older newer | first last |