Commit Graph

81 Commits (8fc0be3c2f3d53cc7926221e86f71e825689eb18)

Author SHA1 Message Date
John Benediktsson df2000d8e7 random.blum-blum-shub: fix tests for recent random-integer change. 2011-10-15 10:39:16 -07:00
Doug Coleman ee08db3e44 Fix test failure for random number speedup from using be>. 2011-10-12 01:26:56 -07:00
John Benediktsson 4f42c72012 specialized-arrays: performed some cleanup.
Specifically,
    •   Created >c-array to be replacement for >T-array.
    •   Created cast-array to be generic replacement for all T-array-cast words.
    •   Created c-array@ to be generic replacement for T-array@ words.
    •   Replaced usages of <T-array> with T <c-array>
    •   Replaced usages of <direct-T-array> with T <c-direct-array>
    •   Replaced usages of >T-array with T >c-array
    •   Replaced usages of T-array-cast with T cast-array
    •   Replaced usages of malloc-T-array with T malloc-array.
    •   Removed malloc-T-array.
    •   Removed T-array-cast.
    •   Removed T-array@.
    •   Removed >T-array.

I also added (but didn't change any code to use):
    •   T c-array-type, returns T-array
    •   T c-array?, returns T-array?
    •   c-array{ T ... }, returns T-array{ ... }

Bootstraps just find on Mac OS X.  Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Slava Pestov 627295f094 Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO) 2010-05-06 17:21:02 -04:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Joe Groff a5957b188d nip most uses of tuck from extra 2009-11-05 22:22:21 -06:00
Slava Pestov 08e7d25dc5 change-each -> map!, deep-change-each -> deep-map! 2009-10-27 22:32:56 -05:00
Slava Pestov 102af9badb specialized-arrays, specialized-vectors: fix potential problem if two vocabularies define different C types with the same name 2009-10-19 04:41:53 -05:00
Doug Coleman 26d8690ec2 fix cmwc on 32 bit factor 2009-10-17 00:09:01 -05:00
Doug Coleman 65a2419134 remove most of the overhead in cmwc, it's fast now 2009-10-16 16:08:59 -05:00
Doug Coleman 741f19ab2f remove yet another slow mutable local 2009-10-16 15:53:45 -05:00
Doug Coleman 748631ab35 inline some words 2009-10-16 15:50:33 -05:00
Doug Coleman 67b41df21f 2x speedup on lagged-fibonacci after removing mutable local 2009-10-16 15:47:19 -05:00
Doug Coleman 1375e32c62 make cmwc only 32 bits wide. oops, this speeds up everything 2009-10-16 15:19:30 -05:00
Doug Coleman 69f5381d34 ricing random.cmwc 2009-10-16 15:07:05 -05:00
Doug Coleman 3db0ad12e8 ricing lagged-fibonacci 2009-10-16 15:00:27 -05:00
Doug Coleman 429dd933c7 fix using 2009-10-07 21:07:56 -05:00
Doug Coleman 535fb5d45b add a lagged-fibonacci generator to extra/random 2009-10-07 21:06:44 -05:00
Doug Coleman 8ad1bab8ad fix seed-random for cmwc 2009-10-07 20:25:00 -05:00
Doug Coleman 357bd0b3ec fix seed-random for cmwc 2009-10-07 20:21:09 -05:00
Doug Coleman 0fd2027900 add cmwc rng to extra 2009-10-07 20:06:39 -05:00
Doug Coleman 4c465cd575 fix using 2009-05-10 16:33:43 -05:00
Doug Coleman 79265b50d9 update usages of miller-rabin 2009-05-10 12:24:43 -05:00
Slava Pestov 411ba7473b Clean up some code to not use combinators.lib and sequences.lib 2008-12-17 19:52:47 -06:00
Doug Coleman 800b134fa7 random numbers were endian-dependent. clean up blum-blum-shub a bit 2008-09-11 01:11:17 -05:00
Doug Coleman 0f8c6bfd83 fix blum blum shub tests 2008-09-09 19:14:56 -05:00
Slava Pestov d60449d3a8 Move a few things around 2008-07-28 22:09:35 -05:00
Slava Pestov d66f887736 Create basis vocab root 2008-07-28 22:03:13 -05:00
Slava Pestov aeb2b9d701 Fixing unit test failures 2008-07-02 15:57:38 -05:00
Slava Pestov 537269447c Move mirrors out of the boot image 2008-07-02 00:20:01 -05:00
Slava Pestov 29fa4a8a54 assoc-find is no longer generic 2008-06-09 05:22:21 -05:00
Slava Pestov 2cbfa9c2d7 Move destructors to core 2008-05-14 23:23:12 -05:00
Slava Pestov 467c9d23af Destructor changes 2008-05-14 19:03:07 -05:00
Slava Pestov 62c7aabf35 Major I/O cleanup 2008-05-13 18:24:46 -05:00
Slava Pestov 75fb15ee4c Split stdio up into input-stream/output-stream, pipes work in progress 2008-05-05 02:19:25 -05:00
Doug Coleman 4d0ba8c3c1 reverse args for assoc-diff, diff
fix lots of usings
fix help lint
2008-04-26 02:01:43 -05:00
Slava Pestov 305b8e6138 Fix blum blum shub unit tests on big endian 2008-04-17 19:54:52 -05:00
Eric Mertens 9f46b534e9 export <blum-blum-shub> in random.blum-blum-shub 2008-04-15 22:28:20 -07:00
Doug Coleman 72080fda4a construct-boa -> boa
construct-empty -> new
2008-04-13 15:06:27 -05:00
Slava Pestov f7df948b06 Documentation updates 2008-04-13 09:34:27 -05:00
Doug Coleman 58fde2efff Fix OpenBSD hang; we were using the blocking RNG to seed MT 2008-04-12 21:35:07 -05:00
Doug Coleman 56ff4530ff fix blum-blum-shub 2008-04-07 19:28:54 -05:00
erg d27252e232 minor cleanup 2008-04-03 16:02:37 -05:00
erg 5c2b2b024e more cleanup of mersenne-twister -- you can actually understand it now :) 2008-04-03 13:04:24 -05:00
erg d642347f34 move bit twiddling words to math.bitfields.lib
use 32-bit in mersenne-twister
2008-04-03 11:55:08 -05:00
erg 0cf667859a fix random on openbsd 2008-04-03 00:59:20 -05:00
Doug Coleman 6ac0d4692f remove wrap word, add circular to mersenne twister 2008-04-01 20:20:13 -05:00
Doug Coleman 23768dd482 remove singleton? from sequences.lib
fix bootstrap error
2008-04-01 17:06:36 -05:00
Doug Coleman f49c72bb05 remove curry2 from mersenne.private... 2008-03-31 15:31:51 -05:00
Slava Pestov d87667f903 Add inline declaration 2008-03-30 23:54:57 -05:00