World: r3wp
[Rebol School] Rebol School
older newer | first last |
Alexandr 23-Nov-2008 [945x2] | If I only was a bit sure that there would be enoough compatibility between R2 and R3, I probably would begin to learn rebol and write programs I need without Russian living this part for a future, when R3 would be released. But who can point me how much of compatibility would it be and in which places of rebol? Maybe syntax would change so much that one would have to rewrite scripts from the beginning? Who knows.. |
Henrik, can you tell me where is it possible to find that Linux port? I'd like to test it with all it's flaws but as I said I couldn't find anything from alpha for Linux at all | |
Henrik 23-Nov-2008 [947x2] | syntax won't change much. it's the underlying conventions, dlalects and UI that will change, so if you learn R2, it will be easy to move to R3. |
Alexandr, the port was internal. Not released. | |
Alexandr 23-Nov-2008 [949x3] | Thanks for the tip, probably I really would begin with that without unicode in hope I would add this possibility later! |
Ah, internal...I see. | |
As for now I have to write my very simple program in gtkdialog and I must say it doesn't inspire me at all after reading and trying many rebol scripts and wondering how simple can simple things be :-) | |
Henrik 23-Nov-2008 [952] | very understandable. :-) |
Sunanda 24-Nov-2008 [953] | <If I only was a bit sure that there would be enoough compatibility between R2 and R3...> They will be highly compatible, but with enough changes to break many scripts. As far as I know there is no definitive list of confirmed incompatibilities on the R3 wiki. A quick scan of the R3 blog offers some clues: http://www.rebol.net/cgi-bin/r3blog.r?index=0 |
Vladimir 24-Nov-2008 [954] | Does anybody have any experience with Lucene full text search library? Its written in java... one of my friends who mostly uses python says its exellent and very fast. Is there anything like that in rebol besides simple rebol functions like find, select ? |
PeterWood 24-Nov-2008 [955] | You could take a look at Sunanda's skimp - http://www.rebol.org/documentation.r?script=skimp.r |
Gregg 24-Nov-2008 [956] | I think Maarten looked at Lucene. He can confirm when he checks in here. He's done some other indexing R&D as well, so will have good input. |
GiuseppeC 15-Dec-2008 [957] | Not sure it is the right group. Could someone please remind me how to use read/custom to read and post cookies ? |
Vladimir 29-Dec-2008 [958] | Is there a way to scan a document from Rebol script, and to use it in program as file or image ? To start scaning using available Twain or Wia drivers? Or external exe or dll ? |
Graham 29-Dec-2008 [959x2] | Yes |
see the scanning routines I wrote on rebol.org | |
Sunanda 29-Dec-2008 [961] | Graham is being too modest to provide an exact link :-) http://www.rebol.org/view-script.r?script=eztwain.r |
Graham 29-Dec-2008 [962] | too lazy is the reality |
amacleod 29-Dec-2008 [963] | Graham, Does that only work woth the commercial version of EZTwain? Or does Classic work too? |
Graham 29-Dec-2008 [964x2] | no idea ... that was in 2006! |
I think NickA has also posted some scanning stuff on the mailing list, or on his website. | |
amacleod 29-Dec-2008 [966] | Thanks |
Vladimir 30-Dec-2008 [967] | Thanks.... I'm also lazy to search rebol.org.... its easyer to ask here :) |
NickA 30-Dec-2008 [968] | My code was to capture from video source, but may provide some useful clues: http://www.rebol.org/view-script.r?script=web-cam.rThe same script with constants most clearly defined, is here: http://guitarz.org/files/capture.r |
Janko 2-Jan-2009 [969] | I wondered this for long time, and never found it... does rebol have a native equivalent of HL functions like map, reduce, filter ? |
Steeve 2-Jan-2009 [970] | HL ? |
Janko 2-Jan-2009 [971x3] | higher level ... ok sorry Higher Order Functions |
functions that take functions as parameters, map, reduce, filter are basic functions for functional programming | |
I know I can write them on my own but because rebol is more of a functional language with all kinds of power features I am not sure if something like this isn't already in | |
Steeve 2-Jan-2009 [974x2] | huuu... don't see you point, as far i know, they are easy to simulate with some rebol instructions. |
with which language are you comparing ? | |
Janko 2-Jan-2009 [976] | no specific language I will write map in rebol and show you , it should be a simple function |
Steeve 2-Jan-2009 [977x2] | but what is your reference ? map can have many implementations depending the language... |
*many specifications | |
BrianH 2-Jan-2009 [979] | REBOL doesn't include the standard higher-order functions, though they can be written in REBOL. Since there is no way to practically specify literal function values that work properly, the standard in REBOL is to use blocks for control function parameters rather than functions. Even though we are making the series mezzanines more friendly to function values, even in R3 the standard HOFs are being translated to REBOL style before inclusion. |
Steeve 2-Jan-2009 [980] | hmm... |
BrianH 2-Jan-2009 [981x2] | So R3 has a MAP, but it takes a word and a block of code as parameters instead of a function. |
And REDUCE means something different. | |
Janko 2-Jan-2009 [983x3] | aha thanks , yes rebol's reduce has a different meaning I know |
if you are using blocks which seems fine as it's even shorter and more agile (and similar to quotations in factor), but how do blocks define which parameter is which , in case of map it must take 1 parameter in case of reduce 2 ? | |
I am not too deeply familiar of what blocks are, I suppose these are [ block of code ] that you can then "do" | |
BrianH 2-Jan-2009 [986] | The blocks take no parameters - the calling functions take additional parameters of the argument word(s). |
Janko 2-Jan-2009 [987] | uh, I don't understand what is what.. I will rather wait and see how it's done in R3 :) |
BrianH 2-Jan-2009 [988x2] | So R3's MAP takes 3 parameters: - The data - The word or block of words that will serve as "parameters" for the block. - The block of code. >> help map USAGE: MAP 'word data body DESCRIPTION: Evaluates a block for each value(s) in a series and returns them as a block. MAP is a native value. ARGUMENTS: word -- Word or block of words to set each time (local) (word! block!) data -- The series to traverse (block!) body -- Block to evaluate each time (block!) |
>> map x [1 2 3] [x * x] == [1 4 9] | |
Janko 2-Jan-2009 [990] | aha, I get it , that is nice |
BrianH 2-Jan-2009 [991] | >> map [x y] [1 2 3 4 5 6] [x * y] == [2 12 30] |
Janko 2-Jan-2009 [992] | cool |
BrianH 2-Jan-2009 [993] | We will see what other HOFs we will add to R3, in REBOL style. FOLD looks promising :) |
Janko 2-Jan-2009 [994] | great, well map and fold are the most used ones by far |
older newer | first last |