Commit Graph

12022 Commits (c8e4d9fa692b15a0457efebb3d646a5d81462ebb)

Author SHA1 Message Date
John Benediktsson c8e4d9fa69 Revert "io.streams.ansi: use call-next-method."
This reverts commit dbb83b7100.
2020-02-17 07:09:12 -08:00
John Benediktsson abbfedc53d Revert "io.streams.256color: use call-next-method."
This reverts commit 4af73340d2.
2020-02-17 07:08:56 -08:00
John Benediktsson 2e5cec428a help.markup: adding a $slots word to document slots, use it. 2020-02-16 22:36:19 -08:00
John Benediktsson dbb83b7100 io.streams.ansi: use call-next-method. 2020-02-15 09:36:06 -08:00
John Benediktsson 4af73340d2 io.streams.256color: use call-next-method. 2020-02-15 09:35:57 -08:00
John Benediktsson 1e8b405307 io.streams.256color: use filter-writer. 2020-02-15 08:57:18 -08:00
John Benediktsson e822e78afd io.streams.ansi: use filter-writer. 2020-02-15 08:57:09 -08:00
John Benediktsson 70c8b35f62 slides: unify default-style and code-style. 2020-02-15 08:40:44 -08:00
John Benediktsson 38bfcd4bf1 help: add more bold table headings. 2020-02-13 15:18:43 -08:00
John Benediktsson bcecb3b088 markov-chains: initial implementation. 2020-02-13 14:26:40 -08:00
John Benediktsson 0ce27a4507 gpu.framebuffers: simplify bitor. 2020-02-12 17:00:34 -08:00
John Benediktsson e4aae0871c opencl: use flags{ }. 2020-02-12 17:00:19 -08:00
John Benediktsson ec0326fee9 io.files.trash.windows: using flags{ }. 2020-02-12 14:33:30 -08:00
John Benediktsson 6c06054ed6 tetris.game: fix tests. 2020-02-12 08:38:41 -08:00
John Benediktsson 2e644a2c7b tetris: some cleanup, simplify. 2020-02-11 13:57:19 -08:00
John Benediktsson d2ab01a5d9 core/basis/extra: use flags{ } in places. 2020-02-11 13:27:42 -08:00
John Benediktsson 67bf39f0fb tensors: cleanup using, and make a few float math operations faster. 2020-01-30 13:39:27 -08:00
Chris Double 487141d440 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-01-29 06:17:37 -08:00
John Benediktsson 2300311641 bittorrent: fix check-bitfield, add a test. 2020-01-28 16:25:19 -08:00
John Benediktsson 548109bf4b math: use sorted-histogram values in a few places. 2020-01-28 16:21:33 -08:00
John Benediktsson eb4c6cf711 bittorrent: initial commit of message parsing. 2020-01-24 13:47:20 -08:00
John Benediktsson 8c5e9a7df4 classes: fix a couple of check-instance uses. 2020-01-15 13:33:50 -08:00
John Benediktsson 77cd3aaede classes: use check-instance in a few places, to remove duplication. 2020-01-15 10:34:47 -08:00
John Benediktsson c2270fbe6a bencode: support decoding byte-arrays. 2020-01-09 11:57:20 -08:00
John Benediktsson 7565b372e7 bencode: alloe bencode of byte-arrays. 2020-01-08 17:33:11 -08:00
John Benediktsson 73b01704a2 bencode: use linked-assocs to preserve ordering, fix byte-strings.
the byte-string was being "decoded" with replacement characters, messing
up binary data.
2020-01-08 11:45:42 -08:00
John Benediktsson d7c0dfcb2b llvm.ffi: ... 2020-01-08 11:44:45 -08:00
John Benediktsson d0fd75b208 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-01-08 09:05:06 -08:00
John Benediktsson 655262af9a llvm.ffi: need to fix stack effect for the false case. 2020-01-08 08:51:41 -08:00
John Benediktsson b2dc630bd0 game.loop: last-tick-percent-offset counts down to zero, need to subtract from 1. 2020-01-06 13:20:12 -08:00
Alexander Iljin 3733b13daf 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-01-06 13:18:33 -08:00
John Benediktsson 249b916636 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-01-06 13:14:59 -08:00
John Benediktsson d3b9974bed llvm.ffi: fix cond. 2020-01-05 19:14:22 -08:00
Doug Coleman 86a35088de gpu.demos.bunny: use while* instead of each-morsel 2020-01-05 13:42:31 -06:00
Doug Coleman f9c90583d0 io.files.info: Fix linux file-system-info recursion 2020-01-05 13:27:22 -06:00
Doug Coleman b35a5466e1 game.loop: Fix game loop for timers change 2020-01-04 14:02:21 -06:00
Doug Coleman 9bb19274b2 build: Fix paths... 2020-01-04 13:47:13 -06:00
Doug Coleman 16135ef8d6 mason.disk: fix word name 2020-01-04 13:40:26 -06:00
Doug Coleman f621e69335 mason.git: new repo location 2020-01-04 08:27:16 -06:00
Doug Coleman 894bab914e mason.disk: Fix usage of word 2020-01-03 15:18:14 -06:00
Doug Coleman 7f395ba7f0 Revert "Replace "win32-error-string throw" with windows-error instance throwing"
This reverts commit 2dfb3b3a73.
2020-01-03 13:03:10 -06:00
Doug Coleman 3419d34cbf 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-01-03 11:10:53 -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