]> gitweb.factorcode.org Git - factor.git/log
factor.git
3 years agopeg.ebnf: Allow ] in character classes. 2359/head
Doug Coleman [Tue, 3 Nov 2020 19:47:32 +0000 (13:47 -0600)]
peg.ebnf: Allow ] in character classes.

3 years agopunycode: simplify ebnf, and handle iquery.
John Benediktsson [Mon, 2 Nov 2020 19:12:32 +0000 (11:12 -0800)]
punycode: simplify ebnf, and handle iquery.

3 years agourls: move a test for parse-host from http.client, simplify parse-url ebnf.
John Benediktsson [Mon, 2 Nov 2020 19:12:03 +0000 (11:12 -0800)]
urls: move a test for parse-host from http.client, simplify parse-url ebnf.

3 years agoescape-strings.ui: Typo..
Doug Coleman [Sat, 31 Oct 2020 00:14:02 +0000 (19:14 -0500)]
escape-strings.ui: Typo..

3 years agoescape-strings.ui: Add a demo of a string enclosed by its own checksum.
Doug Coleman [Fri, 30 Oct 2020 23:56:28 +0000 (18:56 -0500)]
escape-strings.ui: Add a demo of a string enclosed by its own checksum.

3 years agozoneinfo: Construct timezone abbrevs and more cleanup.
Doug Coleman [Fri, 30 Oct 2020 06:13:16 +0000 (01:13 -0500)]
zoneinfo: Construct timezone abbrevs and more cleanup.

3 years agozoneinfo: Update the data files.
Doug Coleman [Thu, 29 Oct 2020 23:28:24 +0000 (18:28 -0500)]
zoneinfo: Update the data files.

3 years agocalendar: Add some more words that should exist.
Doug Coleman [Thu, 29 Oct 2020 23:17:06 +0000 (18:17 -0500)]
calendar: Add some more words that should exist.

Clean up some of the clone/setter code.

Inspiration from Luxon JS.

3 years agopunycode: adding an initial version of an IRL.
John Benediktsson [Thu, 29 Oct 2020 21:40:04 +0000 (14:40 -0700)]
punycode: adding an initial version of an IRL.

Probably needs to use irl-decode in query>assoc.

3 years agoExtending Url Parsing (#2354)
David Mindlin [Thu, 29 Oct 2020 14:15:52 +0000 (07:15 -0700)]
Extending Url Parsing (#2354)

* added new test cases for urls

* Parsing URLs that do not have a authority component

* Increasing the robustness of the URL parser for passwords

* Rewrote the no authority case for urls and updated prettyprinting to
reflect the change.

* fixed matching empty port

* added upper bound for port number

* Updated the url parsing to accept an empty username.

* check if port is valid

* Updated the url tests to test new extensions to the url library.

* Updating the style for recently added extensions to urls.factor.

* removed sanity check for port, want to allow for IPvX support

Co-authored-by: David Flores <dflores0818@gmail.com>
3 years agoJSON reader improvements (#2353)
Abtin Molavi [Mon, 26 Oct 2020 16:08:26 +0000 (10:08 -0600)]
JSON reader improvements (#2353)

* added counter

* removed old first-json-object word

* added tests

* cleaning up namespace

* spacing

* minor comment revision

* one more formatting change

3 years agoescape-strings.ui: use editors so copy/paste works better.
John Benediktsson [Thu, 22 Oct 2020 16:14:53 +0000 (09:14 -0700)]
escape-strings.ui: use editors so copy/paste works better.

3 years agoescape-strings.ui: use scroller for long texts.
John Benediktsson [Tue, 20 Oct 2020 19:44:30 +0000 (12:44 -0700)]
escape-strings.ui: use scroller for long texts.

3 years agoescape-strings.ui: simplify using arrow models.
John Benediktsson [Tue, 20 Oct 2020 19:38:45 +0000 (12:38 -0700)]
escape-strings.ui: simplify using arrow models.

3 years agoescape-strings.ui: Add proof of concept ui for escape-strings.
Doug Coleman [Mon, 19 Oct 2020 16:04:04 +0000 (11:04 -0500)]
escape-strings.ui: Add proof of concept ui for escape-strings.

3 years agoescape-strings: Add escape-number-string.
Doug Coleman [Sat, 17 Oct 2020 21:19:14 +0000 (16:19 -0500)]
escape-strings: Add escape-number-string.

[==[ string delimiters grow linearly with the number of escapes needed.

[0[
[00[
[000[ delimiters grow logarithmically and you can even choose whichever numbers
you need, not just the lowest ones. e.g. for value numbering

3 years agocompiler.tree.propagation.call-effect: use kernel in test.
John Benediktsson [Sun, 18 Oct 2020 00:28:19 +0000 (17:28 -0700)]
compiler.tree.propagation.call-effect: use kernel in test.

3 years agocompiler.propagation.call-effect: handle class-info only value-infos
timor [Sat, 17 Oct 2020 17:24:46 +0000 (19:24 +0200)]
compiler.propagation.call-effect: handle class-info only value-infos

Checks if the `slots>>` value-info slot is non-empty before trying to infer
effect from non-literal value-info.

Fixes #2351

3 years agocombinators: move docs for recursive-hashcode.
John Benediktsson [Thu, 15 Oct 2020 22:33:36 +0000 (15:33 -0700)]
combinators: move docs for recursive-hashcode.

3 years agomisc/vim: update generated syntax.
John Benediktsson [Thu, 15 Oct 2020 22:27:25 +0000 (15:27 -0700)]
misc/vim: update generated syntax.

3 years agocombinators: move recursive-hashcode to kernel vocab.
John Benediktsson [Thu, 15 Oct 2020 22:26:46 +0000 (15:26 -0700)]
combinators: move recursive-hashcode to kernel vocab.

It makes more sense there, since hashcode, hashcode* and other
related words are in kernel.

3 years agoAdd support for plan9port acme editor
Fred Alger [Wed, 14 Oct 2020 05:45:34 +0000 (01:45 -0400)]
Add support for plan9port acme editor

3 years agounicode.collation: fixes for unicode 13.0.
John Benediktsson [Wed, 14 Oct 2020 00:01:00 +0000 (17:01 -0700)]
unicode.collation: fixes for unicode 13.0.

3 years agoUpdate UCA data
Fred Alger [Tue, 13 Oct 2020 22:47:24 +0000 (18:47 -0400)]
Update UCA data

3 years agoRemove extraneous/outdated Unicode test data
Fred Alger [Tue, 13 Oct 2020 22:45:07 +0000 (18:45 -0400)]
Remove extraneous/outdated Unicode test data

3 years agoBump Unicode version in basis/unicode
Fred Alger [Tue, 13 Oct 2020 21:58:04 +0000 (17:58 -0400)]
Bump Unicode version in basis/unicode

3 years agoUpdate unicode data to Unicode 13.0
Fred Alger [Mon, 12 Oct 2020 23:07:14 +0000 (19:07 -0400)]
Update unicode data to Unicode 13.0

3 years agohttp.server: addng OPTIONS/PUT support to request-params.
John Benediktsson [Tue, 13 Oct 2020 18:35:06 +0000 (11:35 -0700)]
http.server: addng OPTIONS/PUT support to request-params.

3 years agohelp: adding default help for alias.
John Benediktsson [Tue, 13 Oct 2020 18:31:32 +0000 (11:31 -0700)]
help: adding default help for alias.

3 years agohelp: change default effect-help to produce $inputs and $outputs.
John Benediktsson [Tue, 13 Oct 2020 18:26:51 +0000 (11:26 -0700)]
help: change default effect-help to produce $inputs and $outputs.

3 years agocommand-line: strip all leading - from parameters.
John Benediktsson [Tue, 13 Oct 2020 18:24:43 +0000 (11:24 -0700)]
command-line: strip all leading - from parameters.

this supports ./factor --help

but also

./factor ------------help

when you really need help

3 years agoalien.libraries.finder.linux: make ldconfig safe from runtime errors.
John Benediktsson [Tue, 13 Oct 2020 17:39:15 +0000 (10:39 -0700)]
alien.libraries.finder.linux: make ldconfig safe from runtime errors.

this helps on platforms like NixOS.

3 years agomisc: couple more examples for syntax-test.
John Benediktsson [Tue, 13 Oct 2020 17:04:20 +0000 (10:04 -0700)]
misc: couple more examples for syntax-test.

3 years agoalien.libraries.finder.linux: search LD_LIBRARY_PATH if specified.
John Benediktsson [Tue, 13 Oct 2020 17:02:10 +0000 (10:02 -0700)]
alien.libraries.finder.linux: search LD_LIBRARY_PATH if specified.

3 years agogame.worlds: adding tags.
John Benediktsson [Sun, 11 Oct 2020 14:18:54 +0000 (07:18 -0700)]
game.worlds: adding tags.

3 years agoinverse: adding some syntax words to make it easier to use.
John Benediktsson [Sat, 10 Oct 2020 14:33:44 +0000 (07:33 -0700)]
inverse: adding some syntax words to make it easier to use.

3 years agomath.statistics: Fix bug for ncdg division by zero.
Doug Coleman [Fri, 9 Oct 2020 00:59:38 +0000 (19:59 -0500)]
math.statistics: Fix bug for ncdg division by zero.

3 years agomath.statistics: Add discounted cumulative gain and normalized dcg.
Doug Coleman [Wed, 7 Oct 2020 03:36:39 +0000 (22:36 -0500)]
math.statistics: Add discounted cumulative gain and normalized dcg.

https://en.wikipedia.org/wiki/Discounted_cumulative_gain

3 years agomisc/vim: fix slot names & tuples.
Dusk [Thu, 1 Oct 2020 04:04:28 +0000 (21:04 -0700)]
misc/vim: fix slot names & tuples.

3 years agomisc/vim: some minor fixes.
John Benediktsson [Tue, 29 Sep 2020 17:04:43 +0000 (10:04 -0700)]
misc/vim: some minor fixes.

- fix word definition to have dashes and other printables
- fix private to properly highlight and close the region

3 years agomisc/vim: remove TH{ syntax.
John Benediktsson [Mon, 28 Sep 2020 23:32:33 +0000 (16:32 -0700)]
misc/vim: remove TH{ syntax.

3 years agoRevert "core: Add TH{ for making assoc tuples."
John Benediktsson [Mon, 28 Sep 2020 23:29:43 +0000 (16:29 -0700)]
Revert "core: Add TH{ for making assoc tuples."

This reverts commit e93d8f82bcaee839d261235b85d42e2487feb2f4.

3 years agosequences.extras: fix stack effect for filter-all-subseqs.
John Benediktsson [Mon, 28 Sep 2020 19:30:15 +0000 (12:30 -0700)]
sequences.extras: fix stack effect for filter-all-subseqs.

3 years agobootstrap: rename layouts/layouts.factor to layouts.factor.
John Benediktsson [Sun, 27 Sep 2020 04:29:52 +0000 (21:29 -0700)]
bootstrap: rename layouts/layouts.factor to layouts.factor.

3 years agoclasses.tuple: speed up slots>tuple a bit.
John Benediktsson [Sat, 26 Sep 2020 19:22:02 +0000 (12:22 -0700)]
classes.tuple: speed up slots>tuple a bit.

Only get the initial values that are needed to supplement provided values.

3 years agotalks.tc-lisp-talk: fix typo.
John Benediktsson [Sat, 26 Sep 2020 18:58:03 +0000 (11:58 -0700)]
talks.tc-lisp-talk: fix typo.

3 years agovm: remove -console option, seems not necessary.
John Benediktsson [Sat, 26 Sep 2020 18:46:56 +0000 (11:46 -0700)]
vm: remove -console option, seems not necessary.

3 years agocommand-line: cleanup some documentation, change terminology slightly.
John Benediktsson [Sat, 26 Sep 2020 17:52:32 +0000 (10:52 -0700)]
command-line: cleanup some documentation, change terminology slightly.

Refer to "options" instead of "VM args" or "Factor arguments".

3 years agocompiler.tree.propagation.transforms: document not{ } as well.
John Benediktsson [Sat, 26 Sep 2020 17:29:42 +0000 (10:29 -0700)]
compiler.tree.propagation.transforms: document not{ } as well.

3 years agocompiler.tree.propagation.known-words: fix type in comment.
John Benediktsson [Sat, 26 Sep 2020 17:29:25 +0000 (10:29 -0700)]
compiler.tree.propagation.known-words: fix type in comment.

3 years agoclasses: update with quotation stack effects.
John Benediktsson [Sat, 26 Sep 2020 17:28:35 +0000 (10:28 -0700)]
classes: update with quotation stack effects.

3 years agohints: switch to using instance?.
John Benediktsson [Fri, 25 Sep 2020 18:11:52 +0000 (11:11 -0700)]
hints: switch to using instance?.

3 years agoclasses.builtin: remove bootstrap-type>class.
John Benediktsson [Thu, 24 Sep 2020 02:49:35 +0000 (19:49 -0700)]
classes.builtin: remove bootstrap-type>class.

Not currently used, if adding more builtins maybe useful.

3 years agoclasses.union: speed up instance? on unions of tuple-classes.
John Benediktsson [Thu, 24 Sep 2020 02:32:15 +0000 (19:32 -0700)]
classes.union: speed up instance? on unions of tuple-classes.

3 years agotools.completion: re-add chars-matching, not sure how i removed it.
John Benediktsson [Tue, 22 Sep 2020 20:23:06 +0000 (13:23 -0700)]
tools.completion: re-add chars-matching, not sure how i removed it.

3 years agofonts: simplify reverse-video-font
John Benediktsson [Tue, 22 Sep 2020 20:05:17 +0000 (13:05 -0700)]
fonts: simplify reverse-video-font

3 years agobenchmark.completion: fix use of name-completions.
John Benediktsson [Tue, 22 Sep 2020 18:32:52 +0000 (11:32 -0700)]
benchmark.completion: fix use of name-completions.

3 years agotools.completion: merge qualified and unqualified word completions.
John Benediktsson [Tue, 22 Sep 2020 18:30:43 +0000 (11:30 -0700)]
tools.completion: merge qualified and unqualified word completions.

3 years agotools.completion: allow fuzzy vocab name in qualified-matching.
John Benediktsson [Tue, 22 Sep 2020 18:24:04 +0000 (11:24 -0700)]
tools.completion: allow fuzzy vocab name in qualified-matching.

3 years agotools.completion: support qualified word completions.
John Benediktsson [Tue, 22 Sep 2020 18:12:52 +0000 (11:12 -0700)]
tools.completion: support qualified word completions.

3 years agomath.complex: update test using.
John Benediktsson [Tue, 15 Sep 2020 23:57:29 +0000 (16:57 -0700)]
math.complex: update test using.

3 years agomath.complex: move malformed-complex and parse-complex to math.complex.
John Benediktsson [Tue, 15 Sep 2020 20:24:17 +0000 (13:24 -0700)]
math.complex: move malformed-complex and parse-complex to math.complex.

They were incorrectly defined in syntax vocabulary.

3 years agobasis: removing unnecessary method stack effects.
John Benediktsson [Wed, 9 Sep 2020 21:41:17 +0000 (14:41 -0700)]
basis: removing unnecessary method stack effects.

3 years agocore: removing unnecessary method stack effects.
John Benediktsson [Wed, 9 Sep 2020 18:12:50 +0000 (11:12 -0700)]
core: removing unnecessary method stack effects.

3 years agoeditors.visual-studio-code: Prefer code-insiders on macOS.
Doug Coleman [Thu, 3 Sep 2020 00:07:46 +0000 (19:07 -0500)]
editors.visual-studio-code: Prefer code-insiders on macOS.

3 years agovscode: Prefer code-insiders version if installed.
Doug Coleman [Wed, 2 Sep 2020 22:46:32 +0000 (17:46 -0500)]
vscode: Prefer code-insiders version if installed.

3 years agocuda.libraries: remove duplicate definition of ?delete-at.
John Benediktsson [Tue, 1 Sep 2020 20:20:49 +0000 (13:20 -0700)]
cuda.libraries: remove duplicate definition of ?delete-at.

3 years agoREADME: minor style tweak.
John Benediktsson [Sun, 30 Aug 2020 23:58:16 +0000 (16:58 -0700)]
README: minor style tweak.

3 years agoassocs.extras: better implementation of rekey-new-assoc
Doug Coleman [Sun, 30 Aug 2020 00:06:22 +0000 (19:06 -0500)]
assocs.extras: better implementation of rekey-new-assoc

3 years agoassocs.extra: Add a word to keep only certain keys in an assoc to the same assoc...
Doug Coleman [Sat, 29 Aug 2020 23:43:10 +0000 (18:43 -0500)]
assocs.extra: Add a word to keep only certain keys in an assoc to the same assoc or to a new one.

3 years agobuild.sh: Warn if boot image url is nonexistent when falling back to master.
Doug Coleman [Sat, 29 Aug 2020 23:22:05 +0000 (18:22 -0500)]
build.sh: Warn if boot image url is nonexistent when falling back to master.

3 years agoRevert "build.sh: Fix boot image download to current branch."
Doug Coleman [Sat, 29 Aug 2020 23:04:11 +0000 (18:04 -0500)]
Revert "build.sh: Fix boot image download to current branch."

This reverts commit ec490587e7e4413736e25104cfd9be3da551c191.

I didn't read the code, but the odds of a random branch working with master boot image are pretty low.

3 years agobuild.sh: recognize arm64 linux
Doug Coleman [Thu, 27 Aug 2020 21:47:14 +0000 (16:47 -0500)]
build.sh: recognize arm64 linux

3 years agobuild.sh: Fix boot image download to current branch.
Doug Coleman [Thu, 27 Aug 2020 21:43:38 +0000 (16:43 -0500)]
build.sh: Fix boot image download to current branch.

3 years agodb: Fix using list for walker.
Doug Coleman [Thu, 27 Aug 2020 15:28:12 +0000 (10:28 -0500)]
db: Fix using list for walker.

3 years agoassocs: improve stack effect for delete-at* and ?delete-at.
John Benediktsson [Sun, 23 Aug 2020 20:00:02 +0000 (13:00 -0700)]
assocs: improve stack effect for delete-at* and ?delete-at.

3 years agosodium: add the "bindings" tag
Alexander Iljin [Tue, 4 Aug 2020 08:02:01 +0000 (10:02 +0200)]
sodium: add the "bindings" tag

3 years agomisc: update vim syntax for ?change-at.
John Benediktsson [Mon, 17 Aug 2020 17:14:13 +0000 (10:14 -0700)]
misc: update vim syntax for ?change-at.

3 years agoassocs: adding ?change-at.
John Benediktsson [Mon, 17 Aug 2020 17:08:41 +0000 (10:08 -0700)]
assocs: adding ?change-at.

3 years agocolors.hex: adding an invalid-hex-color error.
John Benediktsson [Mon, 17 Aug 2020 15:04:04 +0000 (08:04 -0700)]
colors.hex: adding an invalid-hex-color error.

3 years agocompiler.tree.escape-analysis.branches: no need for sift.
John Benediktsson [Fri, 14 Aug 2020 20:43:02 +0000 (13:43 -0700)]
compiler.tree.escape-analysis.branches: no need for sift.

3 years agomisc/vim: highlight predicate classes.
John Benediktsson [Fri, 14 Aug 2020 20:28:48 +0000 (13:28 -0700)]
misc/vim: highlight predicate classes.

3 years agomisc: more syntax tests.
John Benediktsson [Fri, 14 Aug 2020 20:22:34 +0000 (13:22 -0700)]
misc: more syntax tests.

3 years agovocabs.parser: faster name lookup.
John Benediktsson [Fri, 14 Aug 2020 18:58:50 +0000 (11:58 -0700)]
vocabs.parser: faster name lookup.

3 years agotools.profiler.sampling: fixing missed rename.
John Benediktsson [Fri, 14 Aug 2020 18:57:27 +0000 (11:57 -0700)]
tools.profiler.sampling: fixing missed rename.

3 years agoRevert "Revert "vm: Allow larger 32bit code heaps.""
John Benediktsson [Fri, 14 Aug 2020 17:47:18 +0000 (10:47 -0700)]
Revert "Revert "vm: Allow larger 32bit code heaps.""

This reverts commit 0c0647f12c30323bfcd9a6eef813147f9aa8d082.

3 years agovm: rename primitive_sampling_profiler to primitive_set_profiling.
John Benediktsson [Fri, 14 Aug 2020 17:40:54 +0000 (10:40 -0700)]
vm: rename primitive_sampling_profiler to primitive_set_profiling.

also rename the private primitives words in tools.profiler.sampling.

3 years agovm: add some allocates memory comments.
John Benediktsson [Fri, 14 Aug 2020 17:27:54 +0000 (10:27 -0700)]
vm: add some allocates memory comments.

3 years agovm: change some bools from cell to bool.
John Benediktsson [Fri, 14 Aug 2020 17:27:18 +0000 (10:27 -0700)]
vm: change some bools from cell to bool.

3 years agoRevert "vm: Allow larger 32bit code heaps."
John Benediktsson [Fri, 14 Aug 2020 17:14:18 +0000 (10:14 -0700)]
Revert "vm: Allow larger 32bit code heaps."

This reverts commit 723e0e2c1a3973e990a61fceaa808bb0b7261d6f.

3 years agoRevert "checksums.multi: make multi-checksum an instance of checksum"
John Benediktsson [Thu, 13 Aug 2020 23:09:31 +0000 (16:09 -0700)]
Revert "checksums.multi: make multi-checksum an instance of checksum"

This reverts commit fbeb409979677a445bedbefa48a47994c4ae9721.

3 years agotools.profiler.sampling: assert that profile-data is created.
John Benediktsson [Thu, 13 Aug 2020 21:50:52 +0000 (14:50 -0700)]
tools.profiler.sampling: assert that profile-data is created.

3 years agoxml.tests: fix USING.
John Benediktsson [Thu, 13 Aug 2020 16:57:29 +0000 (09:57 -0700)]
xml.tests: fix USING.

3 years agofurnace: require chloe-tags when loading furnace framework.
John Benediktsson [Thu, 13 Aug 2020 16:17:43 +0000 (09:17 -0700)]
furnace: require chloe-tags when loading furnace framework.

3 years agoxml.tests: require 8-bit encodings.
John Benediktsson [Thu, 13 Aug 2020 16:17:20 +0000 (09:17 -0700)]
xml.tests: require 8-bit encodings.

3 years agoalien.libraries.finder.macosx: fix test USING.
John Benediktsson [Wed, 12 Aug 2020 22:01:51 +0000 (15:01 -0700)]
alien.libraries.finder.macosx: fix test USING.

3 years agomath.bitwise: remove duplicate logic in bitfield.
John Benediktsson [Wed, 5 Aug 2020 22:57:27 +0000 (15:57 -0700)]
math.bitwise: remove duplicate logic in bitfield.

3 years agoalien.libraries.finder.linux: return fully-qualified path.
John Benediktsson [Wed, 5 Aug 2020 17:59:01 +0000 (10:59 -0700)]
alien.libraries.finder.linux: return fully-qualified path.

3 years agoalien.libraries.finder: cleanup, add windows tests.
John Benediktsson [Wed, 5 Aug 2020 17:58:43 +0000 (10:58 -0700)]
alien.libraries.finder: cleanup, add windows tests.

3 years agocommand-line.startup: print default values for parameters.
John Benediktsson [Tue, 4 Aug 2020 20:30:00 +0000 (13:30 -0700)]
command-line.startup: print default values for parameters.