Doug Coleman
0f996e9342
random.xoshiro: Implement xoshiro256starstar.
...
It's rather slow because Factor doesn't have 64bit integers.
[
1,000,000 <iota>
1 2 3 4 <xoshiro-256-star-star> '[ drop _ next-256 ] map
] profile
Reference implementation: http://xoshiro.di.unimi.it/xoshiro256starstar.c
Debugging C code: https://paste.factorcode.org/paste?id=3949
Related issue: #1518
2018-12-29 13:27:41 -06:00
Doug Coleman
e189954ecc
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ;
2017-06-02 11:57:05 -05:00
Alexander Iljin
2fd5654473
Add EOL at EOF for all authors.txt files for consistency
...
In some instances replaced CR/LF with LF.
2016-07-30 09:25:30 -07:00
Doug Coleman
0176591527
factor: actual patch to remove ; from all c/fortran functions
2015-07-19 16:25:30 -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
John Benediktsson
a718127fd1
random: some cleanup.
2014-02-06 18:17:03 -08:00
John Benediktsson
339be3f517
random.rdrand: adding RDRAND random generator.
2013-04-25 14:39:38 -07:00
John Benediktsson
c3f6ee412c
random.c: adding summary.
2013-04-25 14:39:24 -07:00
John Benediktsson
482096e1df
random.c: adding a "libc" version of random for performance testing.
2013-02-26 20:04:06 -08:00
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