Commit Graph

12140 Commits (abb17553112c42d46988f811f3a765f5dd9ae5f9)

Author SHA1 Message Date
Doug Coleman 2d85dafa98 basis: Move more extra to basis.
I missed these because they were already loaded in my saved image.
2020-03-28 10:39:06 -05:00
Doug Coleman 59c2956570 basis: Move any vocabularies required by basis into basis. 2020-03-28 09:30:37 -05:00
Doug Coleman 172649f667 factor: Update all repos to point to github.com.
factorcode.org repo can get behind the github one due to #1862 and low RAM on the new factorcode.org server

Change strategy for calling git fetch to not include the branch name if we are on a detached HEAD
2020-03-15 13:06:02 -05:00
Cat Stevens 426d8f09b2 fix various typos; cleanup and fully document boyer-moore 2020-03-15 14:58:43 +00:00
kusumotonorio d8f813a531 Reduced stack waste, added LOGIC-RED: and LOGIC-VAR:, a little speed up. 2020-03-15 03:22:57 +00:00
Doug Coleman 96d3482475 windows: Fix user32/shcore DPI functions. 2020-03-09 21:59:10 -05:00
Doug Coleman 9bb9afd5cc ui.render.test: Replace reference image with an uncorrupted one.
To generate a rendering image:

USE: ui.render.test
"ui-render-test" run
render-output get-global "resource:reference.bmp" save-graphic-image

Fixes #2210.
2020-03-06 19:37:02 -06:00
John Benediktsson 7eee21ab94 vocabs.metadata: cleanup a couple uses of metadata paths. 2020-03-05 09:33:41 -08:00
John Benediktsson 0be0c69ea5 pdf: heuristic for dealing with table wrapping. 2020-03-03 11:31:00 -08:00
John Benediktsson 9d16162371 pdf.values: fix names for some fonts. 2020-03-03 11:09:11 -08:00
John Benediktsson 5a1b773899 help.pdf: use 1.25 line-height on pdf. 2020-03-03 09:46:45 -08:00
John Benediktsson b23fc52850 pdf.canvas: add concept of line-height multiplier. 2020-03-03 09:46:32 -08:00
John Benediktsson ab81a957c9 logic.examples: cleanup, make hanoi tests assert output. 2020-03-03 08:09:52 -08:00
kusumotonorio 4ecc1110c8 logic.factor: [ quot call( -- ) ] --> quot 2020-03-03 15:59:07 +00:00
kusumotonorio 14ac76fc2c factlog vocab ==> logic vocab 2020-03-03 15:59:07 +00:00
kusumotonorio a37cb9857a Rename directory, files. 2020-03-03 15:59:07 +00:00
kusumotonorio 431282afcf catb0t's PR: add a Prolog-like %! ... multiline comment #6 2020-03-03 15:59:07 +00:00
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