Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

pleac

 [1/23] from: bry:itnisk at: 10-Oct-2003 15:36


Anyone seen this before, http://pleac.sourceforge.net/ PLEAC - Programming Language Examples Alike Cookbook. No rebol entry sadly.

 [2/23] from: doug::vos::eds::com at: 10-Oct-2003 11:32


This reminds me of another project I started where I compare rebol side by side with perl,php, and java. http://vvn.net/egppr/jppr.php?id=5 or http://vvn.net/egppr/jppr.php?id=6 Using Java is sometimes like driving a SEMI-TRUCK-AND-TRAILER down to the corner store, when all you really need is to hop in your Chevy Pickup (rebol) to get the job done...That is why I love rebol .... See for example.... http://vvn.net/egppr/egppr.php?id=5&l1=java&l2=rebol Also, the problem (possible issue) I see with PLEAC is they don't have examples that compare code side by side with similar pseudo code. All that said, I still think PLEAC is great idea, so I will begin to contribute REBOL code to PLEAC .... ... setting up myself to contribute some scripts to PLEAC in rebol right now. - Doug

 [3/23] from: doug:vos:eds at: 10-Oct-2003 11:49


PLEAC says this in their FAQ. { 9. I'd like to contribute to Pleac using this particular compiler/library Great! But, please double-check that this compiler/library is released under a free (as explained by GNU, not free of charge) license, as we won't accept code only usable under a non-free OS/compiling environment. } Could that be why we don't see rebol on the list? What do you think?

 [4/23] from: greggirwin:mindspring at: 10-Oct-2003 10:58


Hi Doug, VD> { 9. I'd like to contribute to Pleac using this particular compiler/library VD> Great! VD> But, please double-check that this compiler/library is released under a free VD> (as explained by GNU, not free of charge) license, as we won't accept code VD> only usable under a non-free OS/compiling environment. } VD> Could that be why we don't see rebol on the list? Sounds likely to me. Doesn't mean we couldn't do our own though! (well, not me right now, as I'm way over-committed as usual :) -- Gregg

 [5/23] from: carl:cybercraft at: 24-Dec-2003 22:39


On 11-Oct-03, bryan wrote:
> Anyone seen this before, http://pleac.sourceforge.net/ PLEAC - > Programming Language Examples Alike Cookbook. No rebol entry sadly.
Okay rebolers, there's a challenge for you. How quickly can you get REBOL to near the top of the list? Which currently is... perl, 100.00% done python, 48.57% done ruby, 44.43% done guile, 30.00% done merd, 28.86% done ada, 26.00% done haskell, 20.86% done tcl, 20.71% done java, 14.00% done pliant, 9.43% done ocaml, 7.86% done commonlisp, 6.29% done c++, 3.43% done pike, 2.00% done erlang, 1.86% done forth, 1.71% done php, 1.43% done masd, 0.57% done nasm, 0.29% done REBOL's supposed to be nice and quick, right? Can you prove it? -- Carl Read

 [6/23] from: greggirwin:mindspring at: 10-Oct-2003 17:06


Hi Carl, CR> Okay rebolers, there's a challenge for you. How quickly can you get CR> REBOL to near the top of the list? Which currently is... Without the book, the hardest part will be figuring out what the real goal is. :) -- Gregg

 [7/23] from: carl:cybercraft at: 24-Dec-2003 22:39


On 11-Oct-03, Gregg Irwin wrote:
> Hi Carl, >> Okay rebolers, there's a challenge for you. How quickly can you >> REBOL to near the top of the list? Which currently is... > Without the book, the hardest part will be figuring out what the > real goal is. :)
Yeah. It'd help a lot if you knew perl too. There is a mailing list for the site though, so you could ask when stumped about something or other. -- Carl Read

 [8/23] from: bry:itnisk at: 11-Oct-2003 16:08


well the interesting thing might be in what subject areas for each language are mainly implemented. if you look at python for example 0% of pattern matching is implemented, in fact I don't think any of the languages complete pattern matching except for Perl, 0% of internet services and 0% sockets are implemented. 100% of Numbers and so forth: http://pleac.sourceforge.net/pleac_python/t1. html This might also better demonstrate the right tool for the job principle. Of course another problem is programmer time. As it follows the Perl cookbook that's the one which will have 100% done (pissy comments removed on second-thought.)

 [9/23] from: bry:itnisk at: 11-Oct-2003 16:11


here for example is the Perl side for internet services: http://pleac.sourceforge.net/pleac_perl/inter netservices.html could just go out to the library and cut and paste about 90% of these.

 [10/23] from: bry:itnisk at: 11-Oct-2003 16:18


damn. they should do it free as in beer then it could be for rebol/core.
> PLEAC says this in their FAQ. > > { 9. I'd like to contribute to Pleac using
this particular compiler/library
> Great! > > But, please double-check that this
compiler/library is released under a free
> (as explained by GNU, not free of charge)
license, as we won't accept code
> only usable under a non-free OS/compiling
environment. }
> Could that be why we don't see rebol on
the list?
> What do you think? > -----Original Message-----
<<quoted lines omitted: 3>>
> Subject: [REBOL] pleac > Anyone seen this before,
http://pleac.sourceforge.net/ PLEAC - Programming

 [11/23] from: greggirwin:mindspring at: 11-Oct-2003 8:48


Hi Bryan, bic> damn. they should do it free as in beer then bic> it could be for rebol/core. There's a free /View too don't forget! --Gregg

 [12/23] from: krobillard:cox at: 11-Oct-2003 14:39


I followed a link off the Pleac site to the ROT13 implementation page (http://www.miranda.org/~jkominek/rot13/). The REBOL version posted there is unbelievably bad! It's so bad that I suspect it was sent in as a joke. I sent the webmaster the version below. I just hope the site is still being maintained. I'd hate for someone to think REBOL is so cumbersome. REBOL[] foreach c input [ cap: c and 32 c: c and complement cap if (c >= #"A") and (c <= #"Z") [ c: c - #"A" + 13 // 26 + #"A" ] prin to-char c or cap ] prin "^/" -Karl Robillard

 [13/23] from: tomc:darkwing:uoregon at: 11-Oct-2003 19:23


the author of the rebol version, Teknovore<[grx--jvj--bet]> also submitted versions in 15 other languages... and recomends not using rebol. me thinks he may have outreached his grasp with languages On Sat, 11 Oct 2003, Karl Robillard wrote:

 [14/23] from: carl:cybercraft at: 24-Dec-2003 22:39


On 12-Oct-03, Karl Robillard wrote:
> I followed a link off the Pleac site to the ROT13 implementation > page (http://www.miranda.org/~jkominek/rot13/). The REBOL version > posted there is unbelievably bad! It's so bad that I suspect it was > sent in as a joke.
Note the: "; Note to other who might consider using REBOL: Don't." I suspect the writer didn't know REBOL very well at all - maybe his first attempt at a REBOL script? ;)
> I sent the webmaster the version below. I just > hope the site is still being maintained. I'd hate for someone to
<<quoted lines omitted: 10>>
> prin "^/" > -Karl Robillard
-- Carl Read

 [15/23] from: carl:cybercraft at: 24-Dec-2003 22:39


On 12-Oct-03, Karl Robillard wrote:
> I followed a link off the Pleac site to the ROT13 implementation > page (http://www.miranda.org/~jkominek/rot13/). The REBOL version
<<quoted lines omitted: 12>>
> ] > prin "^/"
I got wondering if REBOL's case-insensitivity could be put to good use with this problem, and came up with the following. Not much difference in code-size to your approach, but different-looking, anyway... rebol [] text: input forall text [ letter: to-string text/1 if all [letter >= "a" letter <= "z"][ text/1: text/1 + either letter < "n" [13][-13] ] ] text: head text print text -- Carl Read

 [16/23] from: carl:cybercraft at: 24-Dec-2003 22:39


On 12-Oct-03, Carl Read wrote:
> On 12-Oct-03, Karl Robillard wrote: >> I followed a link off the Pleac site to the ROT13 implementation >> page (http://www.miranda.org/~jkominek/rot13/).
Going by most of the examples I've checked on the site it seems they'd like characters to be printed one at a time, so here's a modified version of the script I just posted... rebol [] foreach char input [ letter: to-string char if all [letter >= "a" letter <= "z"][ char: char + either letter < "n" [13][-13] ] prin char ] prin "^/" -- Carl Read

 [17/23] from: joel:neely:fedex at: 12-Oct-2003 7:36


Hi, Carl, How about a slightly more REBOL-intensive variation? Carl Read wrote:
> Going by most of the examples I've checked on the site it seems they'd > like characters to be printed one at a time, so here's a modified
<<quoted lines omitted: 8>>
> ] > prin "^/"
rot13: func [s [string!]] [ foreach char s [ prin any [ select/case "anabobcpcdqderefsfgtghuhivijwjkxklylmzm" char select/case "AZABOBCPCDQDEREFSFGTGHUHIVIJWJKXKLYLMZM" char char ] ] prin newline ]

 [18/23] from: andreas:bolka:gmx at: 12-Oct-2003 14:54


Hi Joel, Sunday, October 12, 2003, 2:36:46 PM, Joel wrote:
> How about a slightly more REBOL-intensive variation? > rot13: func [s [string!]] [
<<quoted lines omitted: 7>>
> prin newline > ]
sorry the nit-picking, but i guess the first #"Z" in the second sequence should rather be an #"N" :) -- Best regards, Andreas

 [19/23] from: carl:cybercraft at: 24-Dec-2003 22:40


On 13-Oct-03, Joel Neely wrote:
> Hi, Carl, > How about a slightly more REBOL-intensive variation?
Interesting, though I have an aversion to look-up tables unless needed for speed reasons. So hard to spot errors in them unless computer-generated. ;) I sent my version to that site, so perhaps you could too, (which would make three new REBOL ones to it at least), though whether the site's still being maintained remains to be seen. [Snip of scripts - see previous posts.] -- Carl Read

 [20/23] from: bry:itnisk at: 13-Oct-2003 11:16


>From the pleac homepage which someone pointed to here after my first
post: I'd like to contribute to Pleac using this particular compiler/library Great! But, please double-check that this compiler/library is released under a free (as explained by GNU, not free of charge) license, as we won't accept code only usable under a non-free OS/compiling environment. To which my original reply was something like: damn! However, the pleac approach might be something for the Rebol cookbook anyway, solving the problems solved in O'Reilly's Perl cookbook, making the Rebol cookbook not just a newbie intro but also a promotional tool.

 [21/23] from: carl:cybercraft at: 24-Dec-2003 22:40


On 13-Oct-03, bryan wrote:
>> From the pleac homepage which someone pointed to here after my >> first
<<quoted lines omitted: 6>>
> environment. > To which my original reply was something like: damn!
Oh - so pleac and REBOL can't mix. Joel's and my script are for the Rot13 page though, (yes, we should've changed the subject-line), and as it already has a REBOL script, they're okay there. Carl.
> However, the pleac approach might be something for the Rebol > cookbook anyway, solving the problems solved in O'Reilly's Perl
<<quoted lines omitted: 14>>
> site's still being maintained remains to be seen. > [Snip of scripts - see previous posts.]
-- Carl Read

 [22/23] from: joel:neely:fedex at: 13-Oct-2003 6:57


Thanks, Andreas! Andreas Bolka wrote:
>>rot13: func [s [string!]] [ >> foreach char s [
<<quoted lines omitted: 8>>
> sorry the nit-picking, but i guess the first #"Z" in the second > sequence should rather be an #"N" :)
You're absolutely right. I didn't proofread (or test enough)! -jn-

 [23/23] from: greggirwin:mindspring at: 13-Oct-2003 9:49


Hi Bryan, b> However, the pleac approach might be something for the Rebol cookbook b> anyway, solving the problems solved in O'Reilly's Perl cookbook, making b> the Rebol cookbook not just a newbie intro but also a promotional tool. I don't think the O'Reilly cookbooks all try to solve the same problems in different languages, so we probably don't need to either; based on my view that focusing on cookbook answers tailored to REBOL and how it is used will be of greater value. That said, if anyone wants to tackle it, I'm all for it. I'm for anything that helps promote REBOL. :) Just my 2 cents. -- Gregg

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted