World: r4wp
[#Red] Red language group
older newer | first last |
Kaj 1-Oct-2012 [2423] | There have been many bugs in the development branches lately, so if you're not using the latest, all bets are off |
kensingleton 1-Oct-2012 [2424] | ok - I will download v0.3.0 and try it on that too |
Kaj 1-Oct-2012 [2425] | What do you mean by sorting paths to files? If you unpack the repositories in the right places, no files need to be edited |
kensingleton 1-Oct-2012 [2426x2] | Under windows there is no common folder where the common.reds file resides - on windows common.reds resides in the runtime folder, so the #include file in the c-library.reds file needs to point to where that file resides. Likewise on fib and mand - they point to the c-library which I put into the library folder that exists in the Red/System folder on the windows version. |
But the file locations are not the issue - the compiler complains accurately when the files are not in the locations specified by the #include directive. | |
Kaj 1-Oct-2012 [2428x2] | Ah, see, you're mixing up files. The common.reds file in Red has nothing to do with my bindings. It also has nothing to do with Windows. You should leave that alone and put my bindings in the subdirectories I mentioned in a parent directory of your choice |
It's better not to put the bindings in Red's directories at all. They are isolated from each other and should be handled that way | |
kensingleton 1-Oct-2012 [2430] | But in the c-libraray.reds file that is in the zip file with the examples I downloaded from Fosil there is this: #include %../common/common.reds - but there is no common folder or common.reds folder in that download from Fosil - so where does it find this common.reds file that it is trying to access if it is not the one that is part of Red/System? |
Kaj 1-Oct-2012 [2431] | Yes, that's why I asked you if you had installed the extra Red-common repository, from the Announce channel |
kensingleton 1-Oct-2012 [2432] | Ah! Sorry Kaj - I missed that vital bit of info - I will go and find it now |
Kaj 1-Oct-2012 [2433] | Welcome to dependency hell ;-) |
kensingleton 1-Oct-2012 [2434] | Sounds like DLL hell - and I thought that was only a windows registry problem - grins!!! |
Kaj 1-Oct-2012 [2435] | Yes, it's the sequel |
kensingleton 1-Oct-2012 [2436] | Yay! Success! |
Kaj 1-Oct-2012 [2437] | Congrats |
kensingleton 1-Oct-2012 [2438x2] | Thanks for the help :) |
Wow! the Mandelbrot is fast - elapsed time 0, process time 0.22 | |
Kaj 1-Oct-2012 [2440] | There's reward at the end of the tunnel :-) |
kensingleton 1-Oct-2012 [2441x2] | Rebol 2 elapsed time: 17.473 seconds - yawn! |
Sorry - I tell a lie - that last elapsed time for R2 was for the fib - the mandelbrot is 4.436 seconds - still very slow comapared to Red/System - this is cool! | |
Steeve 1-Oct-2012 [2443] | 20 times faster ? I would expect more :-) |
Kaj 1-Oct-2012 [2444] | Timing on Windows is inaccurate. For the Mandelbrot, it probably includes a significant share of printing the result, instead of computing it |
kensingleton 1-Oct-2012 [2445] | Elapsed time for fib on Reds is 0, process time is 0.103 - so fib is hundreds of times faster on Reds compared to R2 - so I guess it depends on the program as to the speed difference |
Kaj 1-Oct-2012 [2446] | That's consistent with my laptop that I used for this month's recordings, about a factor hundred |
kensingleton 1-Oct-2012 [2447] | It's impressive - Reds will open a whole new world for us C haters :) |
Kaj 1-Oct-2012 [2448] | Yep |
kensingleton 1-Oct-2012 [2449] | What is really exciting is the concept of creating an OS which is completely red/red/system - the control, power and speed of that woulod be phenomenal |
DocKimbel 1-Oct-2012 [2450x3] | Red/System v2 will be faster, it will benefit from a lot of optimization stages that do not exist in the current version. I expect a raw speed improvement of between x2 and x4. Maybe more if we can use some SIMD to speed up some processing (but that will probably require new datatypes, and/or new looping functions). |
Ken: full Red stack, yep, that's the long term goal. ;-) | |
Carl though about it (Lava/MagmaOS), we will make it real! ;-) | |
kensingleton 1-Oct-2012 [2453] | Yes - it could truly revolutionise computing - a single high level language which enables you to program everything - fantastic concept! |
Maxim 1-Oct-2012 [2454] | it used to be called language C ;-) |
Pekr 1-Oct-2012 [2455x2] | Well, one day, Carl sees the light at the end of the tunnel, and joins Red ;-) |
Doc - will we have something like Rebin? | |
kensingleton 1-Oct-2012 [2457] | I hope that a lot more Rebol coders get on-board with Red to help Doc and speed development - Red is the future I think, not interpreted Rebol, as brilliant as that has been in the past. |
Pekr 1-Oct-2012 [2458] | For me the difference is elsewhere - Red has a momentum, which Carl almost/mostly killed by the 18 months of information embargo. Red has a lead - DocKimbel, who is dedicated to the matter, whereas R3 looses its main lead - Carl. |
DocKimbel 1-Oct-2012 [2459x2] | it would be nice to formalise, e.g. to have /bindings subdir, where partricular systems would be represented by subdirs, etc. We already have some place for that since many months (it's the /library folder): https://github.com/dockimbel/Red/tree/master/red-system/library |
Got my raspi board! :-) Any advice on the type of SD card that works the best with it? | |
Kaj 1-Oct-2012 [2461] | Haven't got power for mine yet |
Andreas 1-Oct-2012 [2462x2] | SD card: a slow and not too big one :) |
Have a look at http://elinux.org/RPi_VerifiedPeripherals#SD_cards | |
DocKimbel 1-Oct-2012 [2464x2] | 64GB SDXC Class 10 Extreme (45 MB/s UHS-I) (SDSDX-064G-X46) - works with 2012-07-15-wheezy-raspbian :-) |
SanDisk cards seems the most tested ones. | |
Andreas 1-Oct-2012 [2466x2] | I think most SD problems are solved with recent boot loaders, anyway. |
I have a few SanDisk Class 10 Extreme myself, which didn't work initially when I got my first RPi, but work just fine now. | |
Gerard 1-Oct-2012 [2468] | http://uk.farnell.com/raspberry-pi-accessories#operatingsystem has some more SD cards and accessories - as described in my new book : The Raspberry Pi - a quick start guide - by Maik Schmidt pubished by pragmatic programmers |
DocKimbel 1-Oct-2012 [2469x2] | Thanks Gerard! |
Implemented IF and EITHER, I just wanted to share their implementation with you (extract from Red compiler source):: comp-if: does [ comp-expression emit compose [ if (logic-true?) ] comp-sub-block ] comp-either: does [ comp-expression emit compose [ either (logic-true?) ] comp-sub-block comp-sub-block ] Shouldn't be more complex than that, no? ;-) | |
Kaj 1-Oct-2012 [2471] | Turing is calling |
GrahamC 1-Oct-2012 [2472] | forth computers are single stack .. they haven't conquered the world |
older newer | first last |