Commit Graph

12104 Commits (flac)

Author SHA1 Message Date
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
Doug Coleman d58ce0fb5b webapps.pastebin: Email a list on every paste. 2019-12-07 09:48:03 -08:00
John Benediktsson 6b91f6f774 llvm.ffi: adding macOS location (when using homebrew). 2019-12-05 14:16:12 -08:00
Alexander Iljin 2dfb3b3a73 Replace "win32-error-string throw" with windows-error instance throwing
Remove win32-error-string, because there was only one place it was used in.
2019-11-25 07:06:59 -08:00
John Benediktsson 614256abe2 tensors: fix help-lint warnings. 2019-11-24 15:43:29 -08:00
Nandeeka Nayak ce0584adcb tensors: create basic tensors vocabulary.
tensors: create tensors vocabulary.

tensors: create file heading

tensors: define tensor constructor.

tensors: add additional constructors.

tensors: add reshaping.

tensors: implement add and include tests.

tensors: add binary operations.

tensors: add scalar multiply.

tensors: added >array functionality

tensors: tests for >array

tensors: unit tests fix

tensors: use more idiomatic >array.

tensors: add multi-methods for scalar multiplication.

tensors: cleaned up >array

tensors: combine a few constructors

tensors: added dims function and unit tests.

tensors: add documentation capabilities.

tensors: added multi-methods for scalar addition/subtraction/division

help.lint.coverage: fix for shadowing "empty" word; prevent the other test-only words from being shadowed too

soundex: move to extra as it's unused; fix authors.txt filename

modify arange to match numpy; replace with naturals

create >float-array for efficient float array construction

use combinators

tensors: documentation added for public functions.

tensors: implement t% and matrix multiplication.

tensors: add slice with non-zero step

tensors: add documentation.

tensors: added transposition funcitonality, with documentation and tests

tensors: add error documentation.

Add error documentation

tensors: fix matmul documentation.

extra/tensors: add tests for arange

tensors: make transpose style more similar

tensors: make some of the PR changes.

tensors: separate shape checking.

tensors: add documentation for non-positive-shape-error.

tensors: add missing comment.

tensors: transpose edits for efficiency
2019-11-24 15:41:13 -08:00
Cat Stevens cee0229b20 soundex: move to extra as it's unused; fix authors.txt filename 2019-11-11 09:54:12 -08:00
Cat Stevens 465facfde3 help.lint.coverage: fix for shadowing "empty" word; prevent the other test-only words from being shadowed too 2019-11-09 15:08:28 -08:00
John Benediktsson fb9359d26a llvm.ffi: adding LLVMBuildMul. 2019-11-09 10:02:29 -08:00
John Benediktsson 234a5bd744 math.extras: don't shadow B (breakpoint). 2019-11-07 21:43:22 -08:00
John Benediktsson 8d8e59c43e math.extras: adding integer-sqrt. 2019-11-07 21:32:07 -08:00
John Benediktsson 6db0ae3087 project-euler.common: cleanup. 2019-11-06 20:16:48 -08:00
John Benediktsson bc78db5a43 project-euler: cleanup main vocab, don't USE: the children. 2019-11-06 20:05:53 -08:00
John Benediktsson 10d4a41819 project-euler.064: adding description and SOLUTION:. 2019-11-06 20:00:53 -08:00
John Benediktsson fae208f67f project-euler.087: adding description and SOLUTION:. 2019-11-06 19:56:56 -08:00
John Benediktsson 4ece7a6ca0 benchmark.cuckoo-filters: adding a new benchmark. 2019-11-06 18:17:29 -08:00
John Benediktsson aaabe0a142 math.extras: adding a more exact sum for floats. 2019-11-06 12:03:01 -08:00
John Benediktsson 4c48f03fe1 spelling: minor cleanup. 2019-10-31 14:55:47 -07:00
Kye W. Shi 5f2ace09d2 project-euler: add solutions to 064, 087 2019-10-15 11:25:39 -07:00
John Benediktsson 840ecce776 talks.otug-talk: forgot a second $link. 2019-10-06 03:41:10 -07:00
John Benediktsson 85d7fc9d30 talks.olug-talk: fix link to new syntax _. 2019-10-05 16:40:57 -07:00
John Benediktsson 28f0f471d3 alien.data.map: fix use of _ for fry change. 2019-10-05 14:33:05 -07:00
Doug Coleman 78c3a99a31 zealot.help-lint: Add a help-lint for travisci that ignores a lot of flaky resource leaks.
Some work needs to be done with ensuring that resources are cleaned up before reporting resource leaks and exiting. In the meantime, we want TravisCI to be useful enough to catch help-lint errors, so ignore a bunch of errors that it might find. These leaks are still tested for in the more thorough mason CI.
2019-10-05 12:04:14 -05:00
John Benediktsson 9a8b1f8d8e monads: fix ordering of writer monad logs. 2019-09-29 07:16:03 -07:00
Doug Coleman 1935533b08 webapps: Update to https 2019-09-28 16:55:22 +00:00
Doug Coleman ea2600c3e8 mason.config: Update status url to https. 2019-09-28 10:56:40 -05:00
John Benediktsson 0a155def04 smalltalk: cleanup usings. 2019-09-27 08:26:02 -07:00
John Benediktsson 689c18c374 toml: minor cleanup, note a fixme for later. 2019-09-25 20:51:27 -07:00
John Benediktsson cc858f633f toml: some updates. 2019-09-25 14:41:06 -07:00
John Benediktsson cb854c0801 toml: adding support for Tom's Obvious Markup Language (TOML). 2019-09-25 14:24:05 -07:00
John Benediktsson df295d5ef9 ini-file: cleanup using \f\v escapes. 2019-09-24 20:13:40 -07:00
John Benediktsson 04f96c83f1 colors: moving some color definitions from extra/ to basis/. 2019-09-10 12:02:43 -07:00
John Benediktsson bf84e85126 numbers-game: simplify for readability. 2019-09-10 04:52:59 -07:00
John Benediktsson 001cb1746f cbor: cleanup tests a bit. 2019-08-20 16:45:23 -07:00
John Benediktsson 336da664ba cbor: read bignums, read/write timestamps and urls. 2019-08-20 14:48:03 -07:00
John Benediktsson 56fbf4643d cbor: support write of bignums. 2019-08-20 09:13:26 -07:00
John Benediktsson a7447cd783 cbor: support writing negative integers. 2019-08-20 07:41:54 -07:00
John Benediktsson 0b78157744 cbor: support read/write of simple values and tagged items.
Fix issue with long array lengths.
2019-08-20 07:34:29 -07:00
John Benediktsson 5aedc3cc57 cbor: add support for reading simple values and tagged data items. 2019-08-20 07:21:37 -07:00
John Benediktsson 63f1727ede cbor: fix empty bytestrings, add a bunch more parsing tests. 2019-08-19 21:32:17 -07:00
John Benediktsson 4ac8628a98 cbor: basic support for Concise Binary Object Representation (CBOR)
This is defined in RFC 7049.
2019-08-19 20:49:20 -07:00
John Benediktsson 1cba716637 gap-buffer: some cleanup. 2019-08-05 13:15:48 -07:00
John Benediktsson cad867a3e9 io.files.trash.windows: cleanup using. 2019-08-05 13:07:25 -07:00
John Benediktsson 4201c2149b boids: fix wrap-pos to wrap at row/col 511 instead of 510. 2019-07-26 18:38:08 -07:00
John Benediktsson 9135c82eb6 trails: use ``f`` to represent "invisible" points. 2019-07-25 09:19:23 -07:00
John Benediktsson 4b246b6130 math.extras: add test for stirling numbers. 2019-07-10 09:42:03 -07:00
Niklas Larsson c3197c36c3 math.extras: Fix stirling
Fixes #2149
2019-07-10 09:42:03 -07:00
John Benediktsson 81f2e9a0a7 sequences.extras: adding extract!.
It's similar to reject! but returns the items that were removed.
2019-06-28 11:27:23 -07:00
John Benediktsson 00a0edb199 raylib.demo: cleanup change-player-position. 2019-06-11 19:36:59 -07:00
John Benediktsson bc7680969f raylib.gui-demo: adding MAIN: 2019-06-11 19:18:26 -07:00
Jack Lucas a8200d61b2 Raylib: Add Raylib 2.5 + Raygui 2019-06-11 19:14:00 -07:00
John Benediktsson 74313e9b52 Revert "slides: make it work on windows (no gradients)."
This reverts commit 9d428cbcaf.
2019-06-08 18:47:41 +02:00
Alexander Iljin 3d56615d19 Revert "slides: fix illegible code snippets on Windows"
This reverts commit 4b1e2b8af8.
2019-06-08 18:47:40 +02:00
John Benediktsson 056d8acad4 cap: use locals to make screenshot simpler. 2019-05-20 20:15:53 -07:00
John Benediktsson 1b10b8dbf4 base32-crockford: swap stack effects and update tests. 2019-05-20 10:20:47 -07:00
John Benediktsson 53d404a150 base16/32/64/85/91: declare base>ch as fixnum. 2019-05-19 16:23:35 -07:00
Alexander Iljin 0007789795 continuations[-docs]: add the finally word 2019-04-22 21:57:51 -07:00
Alexander Iljin 4d5548d62d extra: cleanup USING: lists 2019-04-21 11:24:11 -07:00
John Benediktsson ba41385f10 extra: remove unnecessary yield. 2019-04-21 11:07:28 -07:00
Alexander Iljin 9063cfc61b sodium: use a more conventional parameter name 2019-04-14 08:42:54 -05:00
Alexander Iljin 18b896e54d sodium: add wrapper words for working with detached signatures 2019-04-14 08:42:49 -05:00
John Benediktsson 824fc16a0f base91: adding version of base91 encoding/decoding. 2019-04-05 13:43:05 -07:00
John Benediktsson 38e8c5aeb1 base16: adding RFC 3548 version of base 16 encoding/decoding. 2019-04-05 13:40:23 -07:00
John Benediktsson fa1f9aa5a0 base64/32/85: adding tests for all byte values. 2019-04-05 13:38:00 -07:00
John Benediktsson d89d4590ab game-of-life: adding deploy file. 2019-04-05 13:04:01 -07:00
John Benediktsson 103b15df97 base85: change alphabet to byte-array. 2019-04-05 13:03:19 -07:00
John Benediktsson 83d6c5b382 base32-crockford: separate Douglas Crockford version of Base 32. 2019-04-05 12:10:52 -07:00
John Benediktsson 77c5a4b7ff base32: adding authors.txt 2019-04-05 12:10:33 -07:00
John Benediktsson d53ef800e2 base32: change to RFC 3548 version. 2019-04-05 12:05:21 -07:00
John Benediktsson 66652c4903 geohash: adding first version of Geohash geocoding vocab. 2019-04-02 17:32:15 -07:00
John Benediktsson 338b739f30 base32: faster inverse operation. 2019-04-02 17:32:15 -07:00
John Benediktsson 88abc4e4c2 gravatar: wrapper for Gravatar.com service. 2019-03-28 13:50:35 -07:00
John Benediktsson 2bb6e58eb0 crontab: simplify logic max days of month. 2019-03-24 15:41:19 -07:00
John Benediktsson 6e1d23a931 crontab: better input validation for stuff like Feb 30 or Apr 31. 2019-03-24 13:32:57 -07:00
John Benediktsson 92bf1786de crontab: adding some Feb 29th tests. 2019-03-24 08:34:03 -07:00
John Benediktsson 6f8ee02569 crontab: test a lot more things. 2019-03-23 14:16:07 -07:00
Doug Coleman 357d504719 tests: Don't depend on license.txt not changing.
It's probably bad to have the year in the license file, but it's worse to depend on
the license never changing.

Add a dummy file to crc32, and for multi checksums, the file we were checksumming is
not really integral to the test since it's read into a buffer first.
2019-03-23 13:00:52 -05:00
John Benediktsson deb4b7c0d6 crontab: fix day-of-week to be OR instead of AND days. 2019-03-23 08:21:26 -07:00
John Benediktsson e4c94e7d98 checksums.multi: fix tests. 2019-03-23 07:20:31 -07:00
John Benediktsson ffbb4c8289 crontab: simplify (next-time-after) recursion. 2019-03-22 20:57:50 -07:00
John Benediktsson 3afc3447b4 crontab: simplify common code paths in (next-time-after). 2019-03-22 20:52:33 -07:00
John Benediktsson ea83c1c1ee crontab: constraint order is month, day, day-of-week, hour, minute. 2019-03-22 20:42:46 -07:00
John Benediktsson 0f0099b08d crontab: some more fixes. 2019-03-22 20:36:45 -07:00
Doug Coleman 3ea506e5b3 checksums.multi: fix test for 2019 2019-03-22 21:30:18 -05:00
Doug Coleman fed9249a90 zoneinfo: update to 2018i 2019-03-22 18:29:13 -05:00
John Benediktsson 799bf88daf crontab: some fixes and additional test case. 2019-03-22 15:20:46 -07:00
Doug Coleman d575ac084f resolv-conf: Parse edns0, refactor some words, and add a unit test. 2019-03-21 22:53:01 -05:00
John Benediktsson 26abdf4a23 regexp: try again to fix the issue with backslashes.
the new simple rule is inside R/ syntax all backslashes should be
escaped to allow easy regexp literal tokenization:

R/ [\/]/

but in the constructor <regexp> they shouldn't be:

"[/]" <regexp>

When the regexp is prettyprinted we make sure to visually escape the
backslashes in the raw regexp.
2019-03-21 13:29:15 -07:00
John Benediktsson ca9f74e993 Revert "crontab: instead of after= make it after."
This reverts commit a3d5e3ffcb.
2019-03-21 10:55:22 -07:00
John Benediktsson a3d5e3ffcb crontab: instead of after= make it after. 2019-03-17 09:24:47 -07:00
John Benediktsson 112263ca3c crontab: avoid next-time being minutes in the past. 2019-03-17 08:55:36 -07:00
John Benediktsson 49d9d21124 crontab: cleanup empty lines differently. 2019-03-16 16:48:41 -07:00
Doug Coleman 4403155dce machine-learning.data-sets: Load mnist data. 2019-03-01 23:14:59 -06:00
Doug Coleman 92648265d2 hacker-news: Add more endpoints to api. 2019-03-01 22:26:14 -06:00
Alexander Iljin 6105055b82 ulid-docs: format errors with $errors 2019-02-07 13:24:06 -08:00
Doug Coleman 184b614e89 protocols.tftp: Fix some bugs.
- needed pack-be
- tftp clients seem to send an ACK even before receiving an error for a missing file
- handles directories now, "File not found"

to improve:
- use the client/server pair as a key maybe
- handle file writing
- throw errors that are not io-timeout once we have a cross-platform timeout error object
2019-02-03 18:09:34 -05:00
Doug Coleman 447b46db97 tftp: Implement a client/server for tftp.
The server needs to handle multiple clients. Refactoring...
2019-02-03 14:51:52 -05:00
John Benediktsson c8da551a95 hamurabi: fix #percent-died. 2019-01-27 21:34:49 -08:00
John Benediktsson 82ad6cec2e base85: simpler pad math. 2019-01-26 07:14:09 -08:00
John Benediktsson 4fbc726b1a base85: change to not pad encoding, fix output bug. 2019-01-25 21:14:11 -08:00
John Benediktsson 1ff2722b15 base85: fix a bug with accidental extra characters in alphabet. 2019-01-24 19:21:29 -08:00
Doug Coleman d73fb5f80f webapps.planet: Trim using list. 2019-01-19 10:08:19 -06:00
Doug Coleman 42d84a4e29 math.blas.matrices: Fix for equal? 2019-01-19 10:08:07 -06:00
Doug Coleman 053daddfa6 webapps.pastebin: Fix quotation effect so deleting annotations works. 2019-01-12 15:28:36 -06:00
Doug Coleman cc540c3165 io.serial: Fix using list. 2019-01-12 10:43:34 -06:00
John Benediktsson 15fff4a1fd io.serial: use io.streams.duplex:with-stream. 2019-01-10 20:34:58 -08:00
Doug Coleman e4579d02e7 units: Add exponentiation operator and a d-cube. 2019-01-05 14:37:00 -06:00
John Benediktsson 2d0e716362 ryu: minor locals cleanup, don't use 5drop. 2019-01-03 21:29:53 -08:00
John Benediktsson aa67ab6ec4 ryu: faster and simpler using number>string for integer conversion. 2019-01-03 21:13:55 -08:00
Alexander Iljin b26fa1b318 ryu: accept some lint vocab suggestions 2019-01-03 17:05:12 -08:00
Alexander Iljin 47c3f7d56d lint: add suggestion to replace "-roll -roll" with 2swap 2019-01-03 15:36:34 -08:00
John Benediktsson d66ea1e09c base32: adding Douglas Crockford's Base 32 encoding/decoding. 2019-01-03 12:27:11 -08:00
Alexander Iljin bb1e6943e6 ulid: new vocab
This corresponds to commit 1bd3b5681bf1ba7155a42e75a937ec4b2520a202 of the
original repository at https://github.com/AlexIljin/ulid.
2019-01-01 14:22:52 -06:00
Alexander Iljin 94af9254bd ryu: add new vocab to convert double-precision floats to strings
This commit corresponds to commit 5e1591c3cbee3c667e400d936e924c0d25d55aeb
in the original repo https://github.com/AlexIljin/ryu (minus README.md).
2018-12-30 19:14:29 -06:00
Doug Coleman 1e2bb358c2 zoneinfo: Remove dumb unit test 2018-12-30 14:45:31 -06:00
Doug Coleman 5e710fa9f9 zoneinfo: Add updated files. 2018-12-30 14:26:17 -06:00
Alexander Iljin 738b17e143 totp: add new vocab 2018-12-30 12:23:17 -08:00
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