Commit Graph

12173 Commits (master)

Author SHA1 Message Date
kusumotonorio c760a5aa8f factlog 2020-03-03 15:59:07 +00:00
John Benediktsson 8fd4552b45 webapps.planet: use factor color. 2020-03-02 17:07:30 -08:00
John Benediktsson c57580b06a webapps.wiki: remove footer border-top. 2020-03-02 17:03:25 -08:00
John Benediktsson 711297690b websites.concatenative: navbar background. 2020-03-02 17:01:01 -08:00
John Benediktsson 36553b34fb webapps.wiki: better spacing on article list. 2020-03-02 16:07:09 -08:00
John Benediktsson b9bd328f2e webapps: remove floating factorcode.org links. 2020-03-02 15:39:53 -08:00
John Benediktsson 9abc2ae873 webapps.help: matching style for navbar. 2020-03-02 08:48:25 -08:00
John Benediktsson 5acf0512b9 websites.concatenative: make navbar use line-height. 2020-03-02 08:44:17 -08:00
John Benediktsson 52d371320f webapps.wiki: 24px hamburger instead of 32px. 2020-03-02 08:40:23 -08:00
John Benediktsson 1c1d23fd99 webapps.help: responsive search. 2020-03-02 07:03:55 -08:00
John Benediktsson a8d35345c4 extra: moving hash-sets.numbers, hashtables.numbers to basis. 2020-03-01 20:50:58 -08:00
John Benediktsson 522bc97e87 webapps.planet: a bit more style. 2020-03-01 14:41:03 -08:00
John Benediktsson 70fba55732 webapps.planet: more responsive css. 2020-03-01 14:35:04 -08:00
John Benediktsson 77fd680475 webapps.planet: use div to style post body. 2020-03-01 13:49:06 -08:00
John Benediktsson b6853b8c6a webapps.pastebin: more padding. 2020-03-01 13:46:41 -08:00
John Benediktsson a07af0b593 webapps.wiki: style the header. 2020-03-01 13:46:27 -08:00
John Benediktsson 670f5a77a7 webapps.wiki: tweak line-height to fix issue with title. 2020-03-01 13:31:08 -08:00
John Benediktsson d326e8f788 webapps.wiki: simplify and fix resize issue on mobile. 2020-03-01 12:20:32 -08:00
John Benediktsson 9336cd6efc webapps.wiki: some responsive css (and JS for hamburger menu). 2020-03-01 12:12:08 -08:00
John Benediktsson 18a1d07d05 websites.concatenative: write script (if any) from children. 2020-03-01 12:11:31 -08:00
Cat Stevens 573e4ed198 math.matrices: fix/rename mnorm, update all norms
closes #2244

- `mnorm` has been renamed to `normalize-matrix`
	to reflect what it actually does, which
	is normalize a matrix, not find a norm
	of a matrix.

- `mnorm` is no longer a word defined here.

- bugfix: previously, `normalize-matrix` found
	the supremum of a matrix (`mmax`),
	before taking the supremum's absolute
	value (`abs`) and dividing the matrix
	by it (`m/n`).
	for matrices containing only negative
	values and 0, the supremum is 0, and
	a `div-by-zero` error was thrown.

	`normalize-matrix` has been fixed to
	first `abs` all the matrix elements,
	and then find the supremum and divide,

	it also receieved a zero-matrix? guard
	for optimization and preventing
	`div-by-zero`.

- new alias: `hilbert-schmidt-norm` for
	`frobenius-norm`,  to go along with
	`math.matrices.extras.<hilbert-matrix>`
	and improve searchability by physicists.

- new word: `matrix-p-norm`, written as an
	analogue of `math.vectors.p-norm`.

- new word: `matrix-p-q-norm`, which generalizes
	entrywise matrix norm over the L^p,q
	vector space.

- new word: `matrix-p-norm-entrywise`:
	`matrix-p-norm`'s fallback
	for p =/= 1, 2, inf; analogue of
	`math.vectors.p-norm-default`.

- all norm words have gotten new docs,
	`zero-matrix?` guards as an optimisation,
	and most have gotten new tests.
2020-03-01 03:31:28 +00:00
John Benediktsson 2511fa72de websites.concatenative: fix for xhtml. 2020-02-29 08:25:52 -08:00
John Benediktsson f169051860 websites.concatenative: device viewport css. 2020-02-29 08:25:16 -08:00
John Benediktsson 50f0d241b7 websites.factorcode: some downloads style. 2020-02-29 08:21:41 -08:00
John Benediktsson 24b85d774f websites.factorcode: give logo a width also. 2020-02-29 08:14:10 -08:00
John Benediktsson 5c758c7018 websites.factorcode: better mobile responsive css. 2020-02-29 08:06:59 -08:00
John Benediktsson 0139e0d081 websites.factorcode: tinypng the logo. 2020-02-28 14:25:35 -08:00
John Benediktsson 835a83d311 websites.factorcode: more examples. 2020-02-28 13:16:58 -08:00
John Benediktsson 9237a4f289 websites.factorcode: more examples. 2020-02-28 13:04:46 -08:00
John Benediktsson ed3cdf7ec7 websites.factorcode: smaller fonts in downloads table. 2020-02-28 12:03:07 -08:00
John Benediktsson 12079725ac webapps: pre tag line-height. 2020-02-27 17:25:20 -08:00
John Benediktsson 741d9e2dd6 webapps.wiki: moving class description to wiki.css. 2020-02-27 17:21:33 -08:00
John Benediktsson ba09d70b8b help.html: raise line-height to 150%. 2020-02-27 16:49:48 -08:00
John Benediktsson d3337d566e Revert "webapps.help: just include the original css instead of duplicating."
This reverts commit 77b0c45a13.
2020-02-27 16:41:20 -08:00
John Benediktsson 77b0c45a13 webapps.help: just include the original css instead of duplicating. 2020-02-27 16:27:15 -08:00
John Benediktsson 490c66ef5d webapps.help: sync with help.html. 2020-02-27 16:09:03 -08:00
John Benediktsson db1069a6dd websites.concatenative: move container div to page.xml. 2020-02-27 15:11:55 -08:00
John Benediktsson c719b096a5 webapps.planet: minor fixes. 2020-02-27 14:44:19 -08:00
John Benediktsson 4241854f94 webapps.pastebin: updated css style. 2020-02-27 14:44:05 -08:00
John Benediktsson e329d3d9c2 webapps.planet: use protocol agnostic link. 2020-02-27 14:41:13 -08:00
John Benediktsson d2eb77e849 webapps.planet: some css cleanup. 2020-02-27 14:28:51 -08:00
John Benediktsson de6d2e2ccd webapps.wiki: forgot this file. 2020-02-27 12:49:46 -08:00
John Benediktsson 79f1b8e409 websites.concatenative: cleanup css a bit. 2020-02-27 12:49:22 -08:00
Doug Coleman b546d88e83 extra: Finish renaming a couple words 2020-02-27 01:04:52 +00:00
John Benediktsson b1a70d47a4 websites.factorcode: a couple more examples. 2020-02-26 17:00:07 -08:00
John Benediktsson 391e3734ee websites.factorcode: first pass cleanup of website. 2020-02-26 16:46:05 -08:00
John Benediktsson 07a5912afa math.matrices: rename m./m.v/v.m to mdot/mdotv/vdotm. 2020-02-26 12:51:04 -08:00
John Benediktsson 1c5d417100 math.vectors: rename "v." to "vdot" 2020-02-26 12:40:16 -08:00
John Benediktsson 95b695d664 fjsc: remove unnecessary stack effects on generic words. 2020-02-26 11:34:23 -08:00
John Benediktsson 2cbcacad88 core/basis/extra: update some tags.txt. 2020-02-26 10:57:08 -08:00
Doug Coleman 02445393c8 factorcode: Friendship ended with RACKSPACE. Now DIGITALOCEAN is my best friend 2020-02-18 14:18:53 -06:00
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
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