[REBOL] Compiler for Rebol ? Re:(10)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): The new experimental versions of REBOL/Linux/x86 come with libtermcap statically linked, so there should be no more conflicts with libc5/6. Great! -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Compiler for Rebol ? Re:(8)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): [EMAIL PROTECTED] wrote: Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Carl's support for MS operating systems doesn't keep me from using any of several varieties of Unix/Linux (except Debian, but that's another issue!), MacOS, etc. What's wrong with Debian? I am just being curious because that is the distribution I am using... - Jussi THIS time, the box set up for the mtg was running Debian. Both the public beta of /View and the current rlse of /Core blew up instead of running. Yes, that's the demo effect! :) I hope you tested rebol on that machine _before_ the demo... I didn't report it at the time because the box was Debian Unstable, and assumed that maybe the guy who set it up was just a little too close to the edge. Since then, I've seen traffic on this list indicating that others have had problems with REBOL on Debian, so perhaps my experience wasn't so unique or box-owner-dependent after all??? Yes, problem was the guy running the box, not Debian not even it's unstableness. The root of the problem lies in rebol using an _ancient_ library called termcap. Debian does not have this library in it's normal distribution but in _oldlibs_ as it is very old it is compiled against libc5. As other libraries and rebol are compiled against libc6 and those two don't mix the crash occurs. The guy running the box just has not removed the old libtermcap. He surely has no programs depending on it anymore. The workaround is to remove the libtermcap and make link from libncurses to libtermcap. So, it is not Debian's fault that the guy wanted to keep an old libc5 library installed. Sure Debian is somewhat harder to install than RedHat. But it has some other virtues (atleast for power users and opensource enthusiasts). And for my part, no I was not up for the task either and had libtermcap installed once, but that has been long gone. I surely wondered about the problem for a long time. I would suggest REBOL to include a warning to the readme on this. It seems that a lot of people have debian installed with the libtermcap. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Compiler for Rebol ? Re:(6)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Carl's support for MS operating systems doesn't keep me from using any of several varieties of Unix/Linux (except Debian, but that's another issue!), MacOS, etc. What's wrong with Debian? I am just being curious because that is the distribution I am using... - Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] rebol weak points (i think) Re:(12)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): ASM [ lda Stuff add 1 ... ] Hmmm... Looks like 6502 assembler. The processor that powered the Terminator. No, I'm not kidding. Just watch carefully the next time you see the movie :) 680x actually, IIRC. It's been a while. I stand corrected. Actually 6502 does not have instruction ADD... How silly of me for not remembering :) -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] linux help Re:
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): I installed Monkey Linux, a MiniLinux on my 486 laptop. The only user is root. If possible make another usename for normal use. I created a .profile in ~ which has set REBOL_HOME=/rebol as the environment variable. OK. The rebol binary is chmod +x As it should. REBOL won't run. What am I missing? I have tried both libc5 and libc6 binaries. It won't run... In which directory are you at the moment? What is the error? I will be able to help more with more information provided. I am shooting in the dark, but is rebol binary included in your path? Try $ /rebol/rebol This should then run Rebol. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] does REBOL run on Palm or not? Re:(12)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): .Net is FUD. The are stealing from others. Look at what is amiga doing with Tao technology Much cooler and will win. I pray for times where good technologies wins over commerce Keep on praying, but historically it seems that good technology is just not enough to make it. Let's think VHS, was that technologically the best format? IBM PC, the best computer? Windows, the best operating system? Intel x86, the best CPU architechture? If we think just the technology none of those were the best but they have shown to be extremely successful as they have had other virtues that were more important for their success. Oh, what a wonderful place world would be if good technology would always win, but that really happens quite seldom. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Standardize REBOL? Re:
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hi guys at RT, I'm not one of them, but anyway. Do you plan to submit REBOL specs to a standard committee? If so, when will it be expected? To standardize a language takes a _long_ time and it would be preferred that the language in subject of standardizition is quite stable. REBOL is still quite a oung language and new features are added to it and old features are refined. In my point of view there is no possibility for standardization. It is not even needed at the moment as there is just one company making REBOL products. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] rebol weak points (i think) Re:(10)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): ASM [ lda Stuff add 1 ... ] Hmmm... Looks like 6502 assembler. The processor that powered the Terminator. No, I'm not kidding. Just watch carefully the next time you see the movie :) Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] linux help Re:(3)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): I would LOVE to be able to install a "plain" Linux on my Dell Latitude 433MC 486/33 laptop, but I only have a floppy drive. I've looked for linux distributions which I can install from floppy, but it seems I can only find CD-ROMs. More than Linux, I'd like to put a BSD on the laptop, but again I can only find CD-ROMs. If installing over the net is acceptable to you. FreeBSD could be an alternative. Also some linux distributions are installable over the net. You just download a few diskimages for boot and rest is loaded over the net. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Associative Array Re:(2)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Rebol can't do large associative arrays (more than a couple thousand keys) nearly as efficiently as Perl. That should not be a surprise as associative arrays are implemented as native in perl and interpreted in REBOL. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] REBOL does not work on Debian Linux 2 2 Re:(2)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hi, long time ago I had mysterious segmentation faults in Debian. I am no Linux expert, but it was some problem with libc5/libc6 incompatibility. Yes, they don't mix. If they are linked to same program the program dumps a core. I'm very disappointed with Linux shared libraries compared to Amiga's. If Linux developers make everything dependant on everything and can't guarantee backwards compatibility, I'd rather use statically linked executables. Libraries on Linux are different from Amiga, but they are not that bad once you get used to them. The main advantage over Amiga libraries is that you can easily have several versions of libraries on same system and when properly used and the system is installed correctly they don't interfere with each other. You could not do this on Amiga always when updating libraries one risked the stability of the system. All Amiga libraries were not that good on compatibility. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] REBOL does not work on Debian Linux 2 2 Re:(3)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): I was told to use rebol041.tar.gz instead of rebol042.tar.gz That failed because it required libtermcap.so.2 and we only have a symbolic link from libncurses.so to libtermcap.so libncurses is compatible with libtermcap. Just make a link from libtermcap.so.2 to libncurses.so[whatever-version-you-have]. Run ldconfig as root, this might not be necessary, but just to be on the safe side. And run rebol. It should work You can indentify missing libraries and library conflicts with ldd. You can run ldd on libraries too to see which libraries they require. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] REBOL does not work on Debian Linux 2 2 Re:(4)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Interesting, I was told to use rebol041.tar.gz instead of rebol042.tar.gz That failed because it required libtermcap.so.2 and we only have a symbolic link from libncurses.so to libtermcap.so I'm using the xxx041.tar.gz versions and didn't have to make any changes. Hmmm... Why are you using libc5 version? Libc5 is almost obsolete, if you are running relatively new distribution of Linux there should be no reason to run libc5 binaries (if libc6 binaries are available) Using xterm, i only get the segmentation fault message using /Core, both /View and /Command work ok. This is probably because Core, View and Command depend on different libraries. Investigate with ldd. I'm also logged in as root. Don't! There is no need to run rebol as root. Rebol is quite safe, but really do not run anything as root unles 1. You know what you are doing and 2. It is absolutely necessary. You can do a lot of harm rto your system as root by accident. Been there, done that. :) Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Rebol for Debian Linux Re:
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hi there, I have little problems to run Rebol on my Debian Box. Rebol can not find "libtermcap.2.so", but the lib5c and lib6c libraries are installed. Can I solve this problem with a soft-link??? Yes, indeed. # cd /lib # ln -s libncurses.so.5 libtermcap.2.so # ldconfig Should make rebol work. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] REBOL Official Guide in the Czech Republic? Re:(2)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): I believe Petr recently got his, that's the only other Czech order I know of Mail to all of Europe this summer seems incredibly SLW. Well, I got mine quite quickly, it took just some two weeks as I recall. I have no means of checking, but I got it just a few days after I sent a message on this list asking whether someone else had received it on this continent. Thanks, Ralph. I sure have no complaints about the speed of delivery. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Windows Scripting Host Re:(2)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Russell [EMAIL PROTECTED] wrote: Does REBOL/core or REBOL/view us the Windows Scripting Host (a feature of Win98). I want to disable it to prevent virus infections. Unfortunately REBOL doesn't support the ActiveScript interface. Yes, unfortunately. I have been programming some Intranet -applications with VBS and ASP all summer and almost not a day has passed being annoyed on VBS and hoping that I could do it with REBOL. I can't because of my superiors and yes, they have a good point there, others on our vast IT staff (4 persons) don't know REBOL and VB is the language used and best known. VB, well I don't actually hate it, but I do strongly dislike it. I who once liked MS Basic 7.0 (on C128) very much, but I was young then. Some years later I liked AMOS too, but let's not talk about it :) -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Smooth scrolling. What's requiered? Jim? (was) Multimedia quality (was) One disk OS + REBOL Re:(12)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): I am an amigan and so I came to PC area from the world of very smooth scrolling. Every PC man should go and look at original screen dragging on Amiga. Smooth even on 14Mhz Amiga 500 (or was it even 7 Mhz? :-) IIRC it was hardware supported feature, but not sure. A500 was using 68000 running at 7MHz. Screendragging was done on hardware using copper to change som gfx-registers on the fly. Holger sure can explain better :) -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Network related problem with the Experimental releases
Hi, I am suffering with a problem with the experimental releases of Rebol. I am unable to read data over HTTP from anywhere but my own domain. I have tried to tweak with the proxy settings, but with no success. I am hoping there is something I have overlooked and someone on th list could give me some assistance. I am also cc:ing this mail to [EMAIL PROTECTED], although I have reported this problem also earlier. With Core 2.3 networking works without a proxy. With proxy set works HTTP fine. FTP, FINGER and maybe some others don't. This is of course not a big problem as it is possible to specify different proxy servers for different protocols. Netscape works though fine with FTP. Using Experimental Core without proxy allows me to read files only from this domain (abo.fi) no other that I've tested works. FTP works fine without proxy. If proxy is on I can not read files over http even from this domain. Also FTP is not working but this was expected. Something has changed between the released versions and the experimental versions. As one works and other don't. I have tested this program on Linux (libc6), Windows98, BeOS and FreeBSD. All tests were on this same machine and gave same results. At work experimental version of Core works like a charm. If any of you have any ideas to solve this problem it would be great. Yours, Jussi P.S. Enhancement request: Would it not be possible to determine the type of proxy automatically? I have not had to know it for installation of any other program. It would make installing rebol easier for common users. -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Network related problem with the Experimental releases Re:
Hi, An addition, after reading Galt's mail I realized that I should test the plain tcp connection. And that works! With and without the proxy following happens: REBOL/core (Experimental) 2.4.34.4.2 set-net [none none none none none none] read http://www.rebol.com connecting to: www.rebol.com ** Access Error: Network timeout. ** Where: read http://www.rebol.com p: open tcp://www.rebol.com:80 insert p {GET / HTTP/1.0^/^/} loop 100 [prin first p] print [] HTTP/1.1 200 OK Date: Fri, 25 Aug 2000 19:23:14 GMT Age: 533 Server: Apache/1.3.6 (Unix) mod_frontpa set-net [none none none "yok.cache.utu.fi" 80 'generic] read http://www.rebol.com connecting to: www.rebol.com ** Access Error: Network timeout. ** Where: read http://www.rebol.com close p p: open tcp://www.rebol.com:80 insert p {GET / HTTP/1.0^/^/} loop 100 [prin first p] print [] HTTP/1.1 200 OK Date: Fri, 25 Aug 2000 19:23:14 GMT Age: 678 Server: Apache/1.3.6 (Unix) mod_frontpa So the problem seems not to be just with proxy but with REBOL. Some more work with network guys. :) The proxy or something else on our net surely affects rebol as it worked just fine at my workplace. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Interfaces to C code Is there a mailing list archive? Re:
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): 1- Given that REBOL is distributed as a binary, I was wondering how one might compile in support for external FORTRAN or C or C++ libraries... Currently no. There are ways to use external libraries but they are not something to suggest. The upcoming REBOL/Command that already exists as a beta version let's you use libraries. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Index? Re:
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Is there an alternative for: a: "101" foreach item a [print index? item] 1 2 3 Obvious to you REBOL gurus this generates an error. But it illustrates clearly what I want to do. Damn, index? is native! :) Anyone have some helpful alternatives. Ummm... I don't have clue what you are trying to do, but maybe following will help: while [not tail? a] [ print index? a a: next a ] Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Sherman Re:(2)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): [EMAIL PROTECTED] wrote: Does anyone on the list have knowledge on faith of Sherman the Compiler? I tried to find it yesterday, but it has moved from it's old location. I would also be happy if someone has the source on his harddrive, so maybe he could mail it to me. Sherman was private project of Joe Marshal, former emplyee of RT. It was REBOL 1.x compatible, so will not be of any use to current REBOL versions. Yes, I'm aware of that, but I'm still interested in getting sherman. Just to look a bit in the source and do some testing. So anyone? If you have source to Sherman or know where it exists please answer. - Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Sherman
Does anyone on the list have knowledge on faith of Sherman the Compiler? I tried to find it yesterday, but it has moved from it's old location. I would also be happy if someone has the source on his harddrive, so maybe he could mail it to me. Yours, Jussi P.S. I'll be away for the weekend I'll be able to respond on Monday. -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Blue Truck for Sale Re:(3)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): send rebol://demo.rebol.net/cool-blue-truck [ when cute girl watching [ while police not detected [ press brake to floor press accelerator to floor when rpm hits 5000 release brake ] holler "REBOLwantsyababy!" out window ] ] Hmmm... Are you sure you have taken your medications today, Carl? :) In any case, I like you better like you are today, a kewl demo and a new dialect on the works, keep on rocking... Seriously, I know the feeling that comes with lack of sleep and that sure is fun and productive (at least as long as it lasts :) Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Rebol's argument handling is broken Re:(4)
Hi, After coding on the C64 and before hitting the bed I'll write quickly... Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Another idea that was brought up was that you could have more than one view of the command line args available, so those that want the separation of args would have it in a block somewhere, and those that want just a doable string would have it somewhere else. Best of both methods approach. Would that work for us disgruntled REBOL command liners? (-: Well, that seems then to be the best approach, it won't even break existing scripts. To get the arguments in a block has definately it's uses. And there is no idea giving arguments in some rebol-specific way, as you suggested earlier. About doable arguments, you said (I already clipped that part away, sorry) that it is inefficient, maybe so but the args are parsed only once and starting rebol takes it's time anyway... For what kind of things 'lot's of people' use doable command-line arguments? (I'm just being curious :) yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] REBOL and the unix shell Re:
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): [...] I put up an article I wrote this weekend [...] http://www.cs.unm.edu/~whip/rebol-unix-shell.html Hi Jeff, I know I am late, but it really would be nice to read that. It seems that the article has been censored from the site :) Forbidden You don't have permission to access /~whip/rebol-unix-shell.html on this server. -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Previous version Re:(5)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): I don't have that kind of access, but I've asked my ISP to do it. It may take a while considering my ISP is run by two people and it is free (apart from local rate calls). OK, hopefully they get REBOL running again. I was actually using version 2.1 on their server (I never got around to asking them to install 2.2), it turns out that 2.2 isn't working either! Then I cannot help with the binary, maybe you could get it from Rebol Tech. It might also be on RedHat6.1 CD. Yours, Jussi -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Previous version Re:
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hi, Has anyone got the previous version of Rebol/core for Linux libc6, I asked my ISP to install the new version on their servers, unfortunately the new version isn't working Then they have some other problems, Rebol/core for Linux libc6 works fine for me. It could be the old thing with mixing libc5 and libc6, though. they copied over the old version What kind of an administrator copies over old and working versions. D'oh! -- Jussi HagmanCS in Åbo Akademi University Studentbyn 4 D 33 [EMAIL PROTECTED] 20540 Åbo [EMAIL PROTECTED] Finland
[REBOL] Text to CW !!! Re:(2)
Hi Allen! Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): To shave off another couple of bytes, (the new line is 3 characters shorter) change... str: head insert str either odd? pos ["."]["-"] to this... str: head insert str pick ["." "-"] odd? pos Still better... str: head insert str pick ".-" odd? pos I knew there was still something to improve. Thanks for showing me pick I had forgotten all about it. As you know i begins to be hard to see other solutions than your own after a few hours of work. I'm just wondering why I'm doing this, I actually have all the memory that kind of script can need :) It's cool and that's all that counts :) Yours, Jussi -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland
[REBOL] Text to CW !!! Re:(3)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hi Allen! Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): To shave off another couple of bytes, (the new line is 3 characters shorter) change... str: head insert str either odd? pos ["."]["-"] to this... str: head insert str pick ["." "-"] odd? pos Still better... str: head insert str pick ".-" odd? pos And some more... :) insert str pick ".-" odd? pos Yeah, no head or assignment needed :) -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland
[REBOL] Text to CW !!! Re:(2)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): I invented the same program myself some years ago, and I have actually ported it to Rebol as well! Very nice work Johan! I can not say that I invented the program it is a version of the original perl program, I just ported and cleaned it up. I was thinking that the array the original program and thus also I was using is not optimal and you showed it to be the case. The array I am using has the evil property that I can not print the dashes and dots straight away but I must reverse the string (in a way or the other) Again, very interesting code, Jussi -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland
[REBOL] Text to CW !!!
Hi, I saw a perl script in USENET news that coded text to CW -alphabets, the author of script challenged others to do the same with a shorter program. I thought to do it in REBOL. Here it is, much shorter than the original perl -script, that was actually very badly written, but unfortunately a bit longer than the shortest (and very unreadable) perl script. This script is a bit broken (because I tried to take every byte off that I could). And almost unreadable. It is certainly not a good example how one should program in REBOL. I post it here just because there might be some interested in it. Here it comes (about 210 bytes :) REBOL[]foreach c system/script/args[s: copy{ }x: index? find{etianmsurwdkgohvfüläpjbxcyzqö*54*3***2***16***7***8*90}c until[s: head insert s either odd? x["."]["-"](x: to-integer x - 1 / 2) = 0]prin s] And a little more readable version: REBOL[] foreach char system/script/args [ str: copy " " pos: index? find "etianmsurwdkgohvfüläpjbxcyzqö*54*3***2***16***7***8*90" char until [ str: head insert str either odd? pos ["."]["-"] (pos: to-integer pos - 1 / 2) = 0 ] prin str ] It is supposed to be used from the commandline, but it is easy to alter do otherwise. I'll repeat this, if you want to use this code snippet in your program do yourself a favor and fix it, currently it is hmm... feature rich :) It does not like spaces in input and also unknown characters produce a crash. Have fun, Jussi -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland
[REBOL] Run commands in NT's REBOL Re:(2)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Everyone know somethig about run commands in NT inside a REBOL script ... I need make a "at" command in the DOS's consola and i don't know ... Is it posible??? Hi, at the moment Rebol can't spawn external programs. Robert True, but with help of TCP/IP and i.e. perl it can be achieved. I did a little perl script for this purpose. I just needed to do some 'netscape -remote' :) -Jussi -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland
[REBOL] Rebol for CGI Re:(2)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): 0. For Linux 4.x and prior I think you need Lib5c, for 5.x and and later I think you need Lib6c. Huh? Linux 4.x and 5.x? Actually I think you are talking about Red Hat versions. Linux is the kernel, nothing else, and the rest is part of the distribution. Linux is currently going version 2.2.x for stable and 2.3.x for development releases. You can check the version of your libc like this: $ ls /lib/libc.so* /lib/libc.so.6 There you can see that the version of libc is 6. Yours, Jussi -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland
[REBOL] What's next for REBOL... Re:(5)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): [EMAIL PROTECTED] wrote: Hello, is Rebol keeping count of all these "me too" messages, or will there be a "go here for the Rebol/view beta" message later? If the former... ME TOO. Hey, one copy to Czech Republic, please :-) And one to Finland. Yes, I'm late, but that's the story of my life :) (Put ME TOO to the list of testers) -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland
[REBOL] DONT MAKE IT COMMERCIAL!!!! Re:(8)
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hi Paul, you wrote: At the sametime I'm thinking of BEOS. They have a beautiful product but their pricing is keeping the OS out of the hands of the people that could make it a player. I may be wrong but I don't think BEOS will ever be a contender simply because the owner is so intent in making money from day one. Actually, if I recall correctly, their pricing is relatively low. Correct me if I'm wrong, but I recall having received an email from them, when their Intel version began shipping. The price I believe I saw then was about $40 - $60. Have they raised their prices since? I find BeOS pricing quite accepatble, they are selling a bundle of the operating system and a book called BeBible for $80. OS without the book is $70. I checked pricing in Finland and noticed that BeOs is priced a little below Windows 9x and considerably below Windows NT/2000. So I'd say that Be is probably not making so much money out of their OS, just trying to get their expences covered. Yours, Jussi -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland
[REBOL] [REBOL] Recursive data structures Re:
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): I need some help about recursive data structures (stacks, queues, trees, etc) Which is the best method in Rebol for the creation and manipulation of these structures? Example: The following is a simple C code for insertion and deletion of stack elements. How can be rewritten in REBOL? Why would you want to implement a linked list in REBOL, when there are integrated types BLOCK and LIST. So an easy implementation of stack or queue is just to manipulate a BLOCK. I see no need to reimplement a linked list, you probably wouldn't come even close to the native implementation of LIST or BLOCK. If you want to have a binary tree you can implement it as nested BLOCKs. For example following tree 1 / \ 2 3 / \ 4 5 can be expressed as [1 [2 4 5] 3] (that's [value left-sub-tree right-sub-tree]). Functions to manipulate it should be quite straightforward to implement (Haven't tried :). Yours, Jussi -- Jussi Hagman CS in Åbo Akademi Studentbyn 4 D 33[EMAIL PROTECTED] 20540 Åbo[EMAIL PROTECTED] Finland