World: r3wp
[!REBOL3-OLD1]
older newer | first last |
PeterWood 17-Dec-2009 [20250x2] | BrianH: This page: http://www.rebol.com/r3/docs/datatypes/decimal.html |
This one too - http://www.rebol.com/r3/docs/datatypes/binary.html | |
Claude 18-Dec-2009 [20252x3] | what can we expect from rebol version for christmass ? rebol - core ? rebol - core + gui ? rebol - core + gui + odbc ? rebol - core + gui + odbc +plugin ;-) |
carl said => # The Core host environment will be released, with major updates each week until it is stable, acceptable, and documented for initial developers. I'll be "in the cave" until this is accomplished. # Personally, I'd like to see the View host environment also released. This would enable development community progress to resume on graphics, the GUI, and also on ports to other systems, such as OS X. Maybe some Christmas candy, but no promises. | |
perhaps => rebol core + gui for windows and linux ????????? | |
Pekr 18-Dec-2009 [20255] | Claude - your estimate is way too optimistic imo. |
Claude 18-Dec-2009 [20256] | rebol core + gui only for windows then ??? |
Pekr 18-Dec-2009 [20257x6] | not at all. Christmass is in one week. I don't expect any other than internal development release of Host environment ... |
Please read following document - you will see, there is still plenty of work to be done to achieve proper isolation .... http://www.rebol.net/wiki/Host-Builds | |
There is some architecture change ahead - namely merging DELECT and command! interfaces. View will be moved out to this interface, so it will be kind of "external". http://www.rebol.net/r3blogs/0299.html | |
... and then we still wait for much needed improvements to Extension interface. It needs to support Devices definitely. No easy way to do callbacks right now, etc. | |
As for my own guess - I think that at least whole January will be devoted to such development and testing .... | |
However - I would not be pessimistic. Quite opposite. Carl is right now working on very important aspects of R3. We have been waiting for it for 3-4 year and we are finally there ... | |
Claude 18-Dec-2009 [20263] | yes and i still belive in the christmass gift ;-) |
Pekr 18-Dec-2009 [20264] | ... so just push your callendar a little bit :-) |
BrianH 18-Dec-2009 [20265x2] | PeterWood, I just checked the history on those pages and they haven't been modified since the initial import from the Core 2.3 manual. Thanks for flagging these for revision - I'll see about marking them as such. |
Documentation writing and modification is the thing that we need the most help on, probably 50x the number of people we have working on the whole R3 project right now. For now, if there is some discrepancy between the manual and the behavior of R3, check CureCode. If it's not mentioned there then there is a good chance that the R3 behavior is intentional. | |
Maxim 18-Dec-2009 [20267] | Claude, Rebol needs to move ahead in a clear path... finishing rebol core, in the way it is headed will allow rebol view itself. it will also make rebol core a very appealing platform to integrate other tools into. we're almost there but a few little things are still needed. |
PeterWood 18-Dec-2009 [20268] | I would be happy to try and help with the documentation but the problem I, and possibly, many others face, is knowing what is the correct behaviour to document. I could only assume that the behaviour as demonstrated by the current Alpha is the one to be documented. I fearl that is too big an assumption to make. |
BrianH 18-Dec-2009 [20269] | Well, if you have any questions that aren't covered by CureCode, ask them here, in R3 chat, or post them in CureCode. Keep in mind that a ticket being dismissed in CureCode is nothing to be taken personally - we like those tickets because they serve as documentation of design decisions, especially in their comments. |
Jerry 19-Dec-2009 [20270x2] | Prime Numbers Peroformance Test: REBOL(r3-a96) vs. Java(jdk1.5) For getting primes < 5000, Java is 6 times slower than Java For getting primes < 100000, Java is 30 times slower than Java |
correction: REBOL is 6 ... REBOL is 30 ... | |
Rebolek 19-Dec-2009 [20272] | What is your code for getting primes? |
Jerry 19-Dec-2009 [20273] | REBOL [] get-primes: funct [ max-value [integer!] ] [ case [ max-value <= 0 [ [] ] max-value = 1 [ [1] ] true [ primes: make block! 10000 append primes 1 for i 2 max-value 1 [ is-prime: true foreach prime next primes [ if zero? i // prime [ is-prime: false break ] ] if is-prime [ append primes i ] ] primes ] ] ] print dt [ print [ "there are" length? get-primes 100000 "primes" ] ] |
Rebolek 19-Dec-2009 [20274] | Thanks |
shadwolf 19-Dec-2009 [20275] | i said some years ago when R3 was announced that we wouldn't have it before 2010 ... once again I'm sad to be right... |
Pekr 19-Dec-2009 [20276] | and? |
shadwolf 19-Dec-2009 [20277] | and? no R3 before 2015 fear my predictions :P |
Pekr 19-Dec-2009 [20278] | and? |
shadwolf 19-Dec-2009 [20279] | and pekr likes to say "and?" |
Pekr 19-Dec-2009 [20280] | R3.0 is gonna be released in 2010, so what is your point with 2015? |
BrianH 19-Dec-2009 [20281x3] | Jerry, the inner FOREACH loop bind/copies its code block with every iteration of FOR - this is a lot of overhead. Use FORALL instead. |
A lot of code needs reoptimization when converted to R3 - particlarly since all loop functions are native now. | |
You might also consider primes: make block! max-value instead of 10000 for speedup of prime calculation of max-value over 10000. Trade memory for speed. | |
Steeve 19-Dec-2009 [20284x6] | Using the algorithm: Sieve of Eratosthenes it's just ligthning fast. For 50000 max prime, i got those results: ; Eratosthenes == 0:00:00.089 ; Jerry :-) == 0:00:10.099 get-primes: func [n /local primes mul p limit][ primes: make bitset! n + 1 p: 2 limit: square-root n for p 2 (to-integer square-root n) 1[ if p > n [break] unless primes/:p [ mul: p + p until [ primes/:mul: true n < mul: mul + p ] ] ] primes ] It returns a bitset. False Bits are prime numbers. (probably, the real gain comes from using a bitset to store numbers) |
remove the limit line in the source (n | |
not used | |
geez, some other lines are useless | |
get-primes: func [n /local primes mul p limit][ primes: make bitset! n + 1 p: 2 for p 2 (to-integer square-root n) 1[ unless primes/:p [ mul: p + p until [ primes/:mul: true n < mul: mul + p ] ] ] primes ] | |
arghhh, one useless line again, abandon :-) | |
BrianH 19-Dec-2009 [20290x2] | Looks good to me (minus the p: 2 line) :) |
You can use FUNCT too instaed of specified locals. The p will be local to the FOR. | |
Steeve 19-Dec-2009 [20292] | yep |
BrianH 19-Dec-2009 [20293] | The TO-BLOCK bitset! proposal would help here. Then the return could be to-block complement primes which would return a block of integer primes. |
Steeve 19-Dec-2009 [20294x2] | yep, i asked this in curecode IIRC |
both of us actually | |
BrianH 19-Dec-2009 [20296] | I'll verify that later, and add it if it's missing :) |
Jerry 19-Dec-2009 [20297] | the point is not to use a good algorithm to get primes. the point is using the same algorithm to compare Java and REBOL |
Steeve 19-Dec-2009 [20298] | it"s not fair because we know java VMs use JIT compilation. |
Jerry 19-Dec-2009 [20299] | WOW, forall is really fast. Much faster than FOREACH |
older newer | first last |