Commit Graph

12021 Commits (24cc6d88e7a3f91c5b583ebea7866f395e35faa0)

Author SHA1 Message Date
John Benediktsson 3101da4c83
help: add more bold table headings. 2020-04-11 20:34:04 -05:00
John Benediktsson a99ebfe11b
markov-chains: initial implementation. 2020-04-11 20:34:01 -05:00
John Benediktsson b52d5081a7
gpu.framebuffers: simplify bitor. 2020-04-11 20:33:59 -05:00
John Benediktsson d1d15718a0
opencl: use flags{ }. 2020-04-11 20:33:58 -05:00
John Benediktsson 534d70205f
io.files.trash.windows: using flags{ }. 2020-04-11 20:33:58 -05:00
John Benediktsson 5a6181ad48
tetris.game: fix tests. 2020-04-11 20:33:55 -05:00
John Benediktsson 81b77cb14b
tetris: some cleanup, simplify. 2020-04-11 20:33:53 -05:00
John Benediktsson 33e6e7a02d
core/basis/extra: use flags{ } in places. 2020-04-11 20:33:52 -05:00
John Benediktsson 085436a156
tensors: cleanup using, and make a few float math operations faster. 2020-04-11 20:33:47 -05:00
Chris Double 34f1f836eb
Fix linux find-so failure if no old ld entries exist
If '/etc/ld.so.cache' does not contain any old entries
using the 'HeaderOld' struct then it fails with a bad-magic
error before looking for the HeaderNew entries.

My Ubuntu 19.10 system doesn't have any old entries so always
fails here when using 'load-all', which results in the
'extra/llvm' vocab failing due to using 'find-so'.

The fix implemented here is to catch the error and recover from
it by seeking back to the start of the header before looking for
the new header entries.
2020-04-11 20:33:45 -05:00
John Benediktsson 14d45c1b6e
bittorrent: fix check-bitfield, add a test. 2020-04-11 20:33:42 -05:00
John Benediktsson ebd1b62a30
math: use sorted-histogram values in a few places. 2020-04-11 20:33:40 -05:00
John Benediktsson 4e0161c999
bittorrent: initial commit of message parsing. 2020-04-11 20:33:27 -05:00
John Benediktsson 3a66238c8e
classes: fix a couple of check-instance uses. 2020-04-11 20:33:23 -05:00
John Benediktsson 4631eb5a7e
classes: use check-instance in a few places, to remove duplication. 2020-04-11 20:33:21 -05:00
John Benediktsson f3dc124db2
bencode: support decoding byte-arrays. 2020-04-11 20:33:19 -05:00
John Benediktsson 1adabc3168
bencode: alloe bencode of byte-arrays. 2020-04-11 20:33:18 -05:00
John Benediktsson b284d188e8
bencode: use linked-assocs to preserve ordering, fix byte-strings.
the byte-string was being "decoded" with replacement characters, messing
up binary data.
2020-04-11 20:33:16 -05:00
John Benediktsson a2cce5a0d9
llvm.ffi: ... 2020-04-11 20:33:15 -05:00
John Benediktsson 3e428b1754
tensors.tensor-slice: make step-slice not extend slice.
This caused a small regression in compiler.tree.cleanup on this test:

{ t } [
    [ { array } declare 2 <groups> [ . . ] assoc-each ]
    \ nth-unsafe inlined?
] unit-test

I'm not entirely sure why it wasn't able to infer the slice that was created
for iteration stays a slice, and never becomes a step-slice, so perhaps there
is some improvement to be made in type inference here.
2020-04-11 20:33:14 -05:00
John Benediktsson a270b4797a
llvm.ffi: need to fix stack effect for the false case. 2020-04-11 20:33:13 -05:00
John Benediktsson 7a933a5af0
game.loop: last-tick-percent-offset counts down to zero, need to subtract from 1. 2020-04-11 20:33:10 -05:00
Alexander Iljin e2a6f037fe
Replace "win32-error-string throw" with windows-error instance throwing
Remove win32-error-string, because there was only one place it was used in.
2020-04-11 20:33:08 -05:00
John Benediktsson bf6c280903
game.loop: using timer's next-nanos, which is in the future.
Also, use clamp to make sure tick offset is always [0,1].
2020-04-11 20:33:02 -05:00
John Benediktsson 2344735d43
llvm.ffi: fix cond. 2020-04-11 20:33:01 -05:00
Doug Coleman 90e0998861
gpu.demos.bunny: use while* instead of each-morsel 2020-04-11 20:33:00 -05:00
Doug Coleman 10104b0d55
io.files.info: Fix linux file-system-info recursion 2020-04-11 20:32:59 -05:00
Doug Coleman adfc5ee548
game.loop: Fix game loop for timers change 2020-04-11 20:32:59 -05:00
Doug Coleman 22a2d8a74a
build: Fix paths... 2020-04-11 20:32:58 -05:00
Doug Coleman 99d760e08f
mason.disk: fix word name 2020-04-11 20:32:57 -05:00
Doug Coleman e75dd893b0
mason.git: new repo location 2020-04-11 20:32:53 -05:00
Doug Coleman 64cde391fd
mason.disk: Fix usage of word 2020-04-11 20:32:51 -05:00
Doug Coleman 93c97baaaa
Revert "Replace "win32-error-string throw" with windows-error instance throwing"
This reverts commit 2dfb3b3a73.
2020-04-11 20:32:45 -05:00
Doug Coleman 3df4ea013e
mason.disk: Better handling of free disk space.
- Works if the build directory does not exist, assuming it would be created on the root disk containing the path of the first existing parent directory
- Space calculation is wrong, we should be using the available space
- MB is GB, comment was wrong
- Call find-mount-point-info to get the real disk mount point even if the dir does not exist
2020-04-11 20:32:42 -05:00
Steve Ayerhart a3e55c20c8
wip 2020-03-31 09:54:05 -05:00
Steve Ayerhart c1db0336f2
reorg 2020-03-25 23:45:47 -05:00
Steve Ayerhart 776ab11a08
constant decoding sort of working 2020-03-25 23:30:29 -05:00
Steve Ayerhart 70439e2c6f
wip more decoder work 2020-03-23 21:00:48 -05:00
Steve Ayerhart f2cc5c7cc3
wip 2020-03-22 11:04:58 -05:00
Steve Ayerhart c455f399a2
remove debugging 2020-03-03 16:22:02 -06:00
Steve Ayerhart 1dfba430a8
initial flac metadata read 2020-02-25 22:45:30 -06:00
John Benediktsson 1959c68feb tensors: faster tensor/number operations by forcing floats. 2019-12-13 15:09:24 -08:00
Nandeeka Nayak a7722b0804 tensors: optimize matrix operations.
tensors: Add benchmarking file

tensors: Add addition and multiplication tests for benchmarking

tensors: inlined slicing to improve metrics.

tensors: fix help-lint warnings.

tensors: restore newer matmul

tensors: add fixnum declaration.

tensors: away with you, unsafe!

tensors: transpose added to benchmarks

tensors: optimize matmul to be within an order of magnitude of np.

tensors: remove type declaration.

tensors: optimize matmul.
2019-12-13 14:52:09 -08:00
John Benediktsson 77b13fbdc2 core/basis/extra: using while* in a few places. 2019-12-13 14:38:26 -08:00
Cat Stevens 4350bcbfcd math.matrices: rewrite, modernize and overhaul
math.matrices.elimination: move to extra
math.matrices.extras: expand with esoteric, less-used and unfinished code from basis

- math.matrices and .extras receive more words, tests, and docs
- matrix has become a predicate class
- 94% of matrices words have complete docs
- 77% of matrices.extras words have complete docs
- much more consistent naming for constructors etc
- added missing words / features such as main-diagonal and anti-transpose
- optimizations
- lots of documentation
2019-12-08 08:08:54 -08:00
Doug Coleman c71b92eba9 webapps.pastebin: Cleaner url derivation, better variable names 2019-12-07 15:54:57 -08:00
Doug Coleman e05eecf26b webapps.pastebin: fix 2019-12-07 10:40:35 -08:00
Doug Coleman 03e7f918ae webapps.pastebin: fix using. oops. 2019-12-07 10:38:49 -08:00
Doug Coleman 1cb00c6f61 webapps.pastebin: Fix the url 2019-12-07 10:37:52 -08:00
Doug Coleman 6bbdb5c12e websites.concatenative: endpoint for syncing github to factorcode 2019-12-07 09:58:01 -08:00