John Benediktsson
800d643c2d
random.mersenne-twister: simplify seed-random.
2016-07-11 14:00:15 -07:00
Doug Coleman
4ec2311406
factor: Trim whitespace after ! comments and a few USING: lines that got skipped before.
2015-07-18 20:14:22 -07:00
Doug Coleman
892c62e1dc
factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test
2015-07-03 09:39:59 -07:00
Doug Coleman
59f3b1ea57
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
...
Needs a bit more work.
This reverts commit 7e54cc2824
.
2015-07-02 13:47:06 -07:00
Doug Coleman
7e54cc2824
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
2015-07-02 11:36:08 -07:00
Doug Coleman
352e5de16a
core, basis, extra: Remove DOS line endings from files.
...
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson
0fb0eaa1cf
random: simplify using bitwise operations.
2014-02-25 15:59:51 -08:00
Doug Coleman
48562e6e48
random.mersenne-twister: Don't use system-random-generator to initialize
...
Mersenne Twister. If there is no system random generator, startup can
fail.
2014-02-14 18:48:25 -08:00
John Benediktsson
9aa160ad91
random.mersenne-twister: fix name of stack effect.
2014-02-09 11:00:57 -08:00
John Benediktsson
d9961f5f4a
random.mersenne-twister: more complete fix for bias.
2014-02-07 11:56:29 -08:00
John Benediktsson
0110bd49f1
random.mersenne-twister: fix non-random bias.
2014-02-07 07:31:53 -08:00
John Benediktsson
a718127fd1
random: some cleanup.
2014-02-06 18:17:03 -08:00
Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08: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
Doug Coleman
4c71d71907
random is generic now -- iota random -> random
2010-01-14 12:48:57 -06:00
Slava Pestov
df4fb4a3ee
Removing integers-as-sequences
2010-01-15 07:15:33 +13:00
Doug Coleman
6b6e56a179
change add-init-hook to add-startup-hook, new add-shutdown-hook word
2009-10-19 22:17:02 -04:00
Doug Coleman
21c9da7c5f
revert loading sfmt by default
2009-10-07 21:41:12 -05:00
Doug Coleman
83bc4907d4
load random.sfmt by default, and use it as default random-generator if sse2 is present
2009-10-07 21:05:51 -05:00
Doug Coleman
ef237777c3
make random-32* the protocol again, add a random-32 word that doesn't scale the returned bits
2009-09-30 15:56:02 -05:00
Doug Coleman
61583862fa
fix seed-random, random-32* -> random-32
2009-09-30 03:22:11 -05:00
Joe Groff
5054c954be
add USING:s and rearrange definitions so macosx can compile without parsing c-type strings
2009-09-26 23:14:57 -05:00
Slava Pestov
7f2e2b1777
Specialized array overhaul
...
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Doug Coleman
3f3d57032b
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring
2009-08-13 19:21:44 -05:00
Slava Pestov
fb6df472a2
Cleaning up USING: lists for new strict semantics
2009-05-14 16:54:16 -05:00
Doug Coleman
0e0662ffc5
move random-bits* to random, work on docs
2009-05-10 13:39:08 -05:00
Doug Coleman
364ea217ef
fix more compiler errors
2009-04-17 14:44:08 -05:00
Doug Coleman
990513db60
use CONSTANT: in basis
2009-02-22 19:13:08 -06:00
Doug Coleman
90cdb6c4f4
remove >r r>
2008-12-08 00:10:24 -06:00
Slava Pestov
25bf16f6d4
Optimize mersenne-twister: eliminate conditional branches from inner loop, 30% speedup
2008-12-05 01:50:30 -06:00
Doug Coleman
3a2b0cc1fb
rice mersenne-twister - replace mod with a subtraction
2008-12-03 18:15:14 -06:00
Slava Pestov
4c6af1cc9f
Use fry instead of curry
2008-12-03 10:45:06 -06:00
Slava Pestov
378bedd1e0
Faster mersenne-twister with specialized-arrays
2008-12-03 10:44:41 -06:00
Slava Pestov
402da00390
Fixing bootstrap with specialized arrays
2008-12-02 02:44:19 -06:00
Doug Coleman
51ecc18cd8
changed a bitwise word, updating usage for mersenne twister
2008-11-11 13:03:42 -06:00
Slava Pestov
5def7c5dea
Don't load random number generator on bootstrap
2008-11-06 01:30:59 -06:00
Doug Coleman
6b3b48a106
random is generic, better random docs, cleanups
2008-10-04 11:44:12 -05:00
Slava Pestov
c19f2257f4
Fix permission bits
2008-10-02 08:34:49 -05:00
Slava Pestov
0c8e2584b4
Fixing unit tests for make, fry changes
2008-09-11 00:20:06 -05:00
Slava Pestov
aea0fed14c
Fixing basis -> extra dependencies
2008-09-05 19:29:14 -05:00
Slava Pestov
d66f887736
Create basis vocab root
2008-07-28 22:03:13 -05:00