]> gitweb.factorcode.org Git - factor.git/log
factor.git
3 years agoAdded UTExportedTypeDeclarations to Info.plist
Dave Carlton [Wed, 30 Dec 2020 18:58:01 +0000 (12:58 -0600)]
Added UTExportedTypeDeclarations to Info.plist

    Permit system to identify file extension .factor as text

3 years agoUpdate Raylib from 2.5 -> 3.5
Arnaut Daniel [Thu, 31 Dec 2020 00:16:47 +0000 (19:16 -0500)]
Update Raylib from 2.5 -> 3.5

3 years agopeg.javascript: fix docs.
John Benediktsson [Mon, 28 Dec 2020 16:15:11 +0000 (08:15 -0800)]
peg.javascript: fix docs.

3 years agobenchmark.javascript: removing for now.
John Benediktsson [Mon, 28 Dec 2020 16:14:17 +0000 (08:14 -0800)]
benchmark.javascript: removing for now.

Since it doesn't parse the full example javascript, it's not that useful.

3 years agoreservoir-sampling: Sample k elements from an unknown number of elements with equal...
Doug Coleman [Sun, 27 Dec 2020 14:41:06 +0000 (08:41 -0600)]
reservoir-sampling: Sample k elements from an unknown number of elements with equal probability.

3 years agohttp.parsers: Allow a lot more characters in the cookie key.
Doug Coleman [Sun, 27 Dec 2020 02:17:11 +0000 (20:17 -0600)]
http.parsers: Allow a lot more characters in the cookie key.

The spec says one thing, but in practice we just disallow ; , and whitespace.

Add more unit tests.

3 years agoescape-strings: sha delimiters for fun
Doug Coleman [Sun, 27 Dec 2020 02:11:58 +0000 (20:11 -0600)]
escape-strings: sha delimiters for fun

3 years agocalendar: Add more predicates.
Doug Coleman [Sun, 27 Dec 2020 02:11:23 +0000 (20:11 -0600)]
calendar: Add more predicates.

3 years agostrings.parser: adding line continuations.
John Benediktsson [Thu, 24 Dec 2020 21:43:48 +0000 (13:43 -0800)]
strings.parser: adding line continuations.

3 years agopeg.javascript: fix tests.
John Benediktsson [Thu, 24 Dec 2020 21:00:05 +0000 (13:00 -0800)]
peg.javascript: fix tests.

3 years agopeg.javascript: support more features
John Benediktsson [Thu, 24 Dec 2020 20:51:47 +0000 (12:51 -0800)]
peg.javascript: support more features

hex ints
oct ints
floats exponent syntax
string oct escapes
string line continuations
~ operator

3 years agopeg.javascript: simplify to one file.
John Benediktsson [Thu, 24 Dec 2020 17:24:26 +0000 (09:24 -0800)]
peg.javascript: simplify to one file.

Then maybe modifying for new javascript syntax.

3 years agobenchmark.javascript: update jquery to 3.5.1 to avoid noisy XSS warnings.
John Benediktsson [Thu, 24 Dec 2020 17:01:35 +0000 (09:01 -0800)]
benchmark.javascript: update jquery to 3.5.1 to avoid noisy XSS warnings.

See #2403:

> Versions of jQuery (prior to 3.5) have a fairly recent XSS
> vulnerability:
> https://www.infoq.com/news/2020/04/jquery-35-xss-vulnerability-fix/

> It looks like the file is not used in any way that would expose the
> XSS bug, but for what it's worth it gets flagged as sketchy by some
> kinds of vulnerability scans my current project uses. Maybe other users
> will get that noise too?

3 years agosemantic-versioning: Better comparison code.
Doug Coleman [Mon, 21 Dec 2020 16:32:15 +0000 (10:32 -0600)]
semantic-versioning: Better comparison code.

3 years agosemver: Add more semver code to parse ranges. Need to merge with semantic-versioning...
Doug Coleman [Mon, 21 Dec 2020 16:30:12 +0000 (10:30 -0600)]
semver: Add more semver code to parse ranges. Need to merge with semantic-versioning soon.

3 years agoitunes: Add a way to query top podcasts from itunes.
Doug Coleman [Mon, 21 Dec 2020 02:15:16 +0000 (20:15 -0600)]
itunes: Add a way to query top podcasts from itunes.

3 years agosequences.extras: Add find-pred
Doug Coleman [Mon, 21 Dec 2020 15:14:26 +0000 (09:14 -0600)]
sequences.extras: Add find-pred

3 years agopeg.ebnf: Fix bug with ~ ignore and labels and add *~ +~
Doug Coleman [Mon, 21 Dec 2020 15:13:18 +0000 (09:13 -0600)]
peg.ebnf: Fix bug with ~ ignore and labels and add *~ +~

~ was only implemented for literals, this patch adds more support for ~

3 years agostrings: embed sequence-hashcode algorithm in rehash-string.
John Benediktsson [Fri, 18 Dec 2020 15:23:19 +0000 (07:23 -0800)]
strings: embed sequence-hashcode algorithm in rehash-string.

This allows us to experiment with changing sequence-hashcode.  For some
reason there is an issue with changing the hashcode algorithm for
strings when bootstrapping, the current rehash approach in stage1
doesn't rehash strings, but even when we do that, its still not quite
working right yet.

3 years agoRevert "time.unix: faster set-system-time."
John Benediktsson [Fri, 18 Dec 2020 15:16:35 +0000 (07:16 -0800)]
Revert "time.unix: faster set-system-time."

This reverts commit 467c284db5de06f4e89f482b203752aa38b799bc.

3 years agoclasses.tuple: shoot, meant this to be in .private.
John Benediktsson [Fri, 18 Dec 2020 06:25:25 +0000 (22:25 -0800)]
classes.tuple: shoot, meant this to be in .private.

3 years agoclasses.tuple: need to defer tuple-layout.
John Benediktsson [Fri, 18 Dec 2020 06:22:22 +0000 (22:22 -0800)]
classes.tuple: need to defer tuple-layout.

3 years agobootstrap: cleanup using.
John Benediktsson [Fri, 18 Dec 2020 06:21:40 +0000 (22:21 -0800)]
bootstrap: cleanup using.

3 years agoclasses.union: make sure tuple-class has tuple-layout.
John Benediktsson [Fri, 18 Dec 2020 06:19:58 +0000 (22:19 -0800)]
classes.union: make sure tuple-class has tuple-layout.

When tuples are being redefined it's possible for the layout to be f.

3 years agotime.unix: faster set-system-time.
John Benediktsson [Fri, 18 Dec 2020 06:16:47 +0000 (22:16 -0800)]
time.unix: faster set-system-time.

3 years agobootstrap: this is more fragile than I would like.
John Benediktsson [Fri, 18 Dec 2020 06:15:50 +0000 (22:15 -0800)]
bootstrap: this is more fragile than I would like.

3 years agoimages.processing.rotation: disable on linux temporarily.
John Benediktsson [Fri, 18 Dec 2020 02:59:41 +0000 (18:59 -0800)]
images.processing.rotation: disable on linux temporarily.

3 years agosorting.extras: adding compare-with.
John Benediktsson [Thu, 17 Dec 2020 22:29:46 +0000 (14:29 -0800)]
sorting.extras: adding compare-with.

This compares a sequence of quotations, returning early if any quotation
produces +lt+ or +gt+, but continuing to the next if it returns +eq+.

3 years agocalendar.format: fix timestamp>ymdhms (bad merge).
John Benediktsson [Thu, 17 Dec 2020 04:51:28 +0000 (20:51 -0800)]
calendar.format: fix timestamp>ymdhms (bad merge).

3 years agocalendar: really fix test.
John Benediktsson [Thu, 17 Dec 2020 04:42:48 +0000 (20:42 -0800)]
calendar: really fix test.

3 years agocalendar: fix quarter, add tests.
John Benediktsson [Thu, 17 Dec 2020 04:41:40 +0000 (20:41 -0800)]
calendar: fix quarter, add tests.

3 years agowords: removing unused "constructor-word".
John Benediktsson [Thu, 17 Dec 2020 03:51:58 +0000 (19:51 -0800)]
words: removing unused "constructor-word".

3 years agohelp.syntax: add / and " syntax lookups.
John Benediktsson [Thu, 17 Dec 2020 01:32:58 +0000 (17:32 -0800)]
help.syntax: add / and " syntax lookups.

3 years agodescriptive: fix reset-word on descriptive words.
John Benediktsson [Thu, 17 Dec 2020 00:52:08 +0000 (16:52 -0800)]
descriptive: fix reset-word on descriptive words.

3 years agocalendar: remove unnecessary test.
John Benediktsson [Thu, 17 Dec 2020 00:31:41 +0000 (16:31 -0800)]
calendar: remove unnecessary test.

3 years agolocals.definition: fix reset-word for M::, MACRO::, MEMO::.
John Benediktsson [Thu, 17 Dec 2020 00:28:00 +0000 (16:28 -0800)]
locals.definition: fix reset-word for M::, MACRO::, MEMO::.

call-next-method on an intersection isn't what we want here.

3 years agovocabs.parser: fix with-words to be properly restartable.
John Benediktsson [Thu, 17 Dec 2020 00:03:55 +0000 (16:03 -0800)]
vocabs.parser: fix with-words to be properly restartable.

We want with-words to unuse-words when a restart is provided but
not restarted, but if restarted, we need to use-words again and
then unuse-words.

3 years agocalendar: change >gmt, >local-time to clone.
John Benediktsson [Wed, 16 Dec 2020 22:50:11 +0000 (14:50 -0800)]
calendar: change >gmt, >local-time to clone.

Adding convert-gmt and convert-local-time if you don't want to clone.

3 years agohelp.syntax: $examples with all strings should be turned to code.
John Benediktsson [Wed, 16 Dec 2020 18:42:13 +0000 (10:42 -0800)]
help.syntax: $examples with all strings should be turned to code.

3 years agogrouping.extras: slightly slower but easier to maintain.
John Benediktsson [Wed, 16 Dec 2020 18:11:59 +0000 (10:11 -0800)]
grouping.extras: slightly slower but easier to maintain.

3 years agogrouping.extras: much faster group-map.
John Benediktsson [Wed, 16 Dec 2020 17:46:41 +0000 (09:46 -0800)]
grouping.extras: much faster group-map.

3 years agogrouping.extras: better {clump,group}-map.
John Benediktsson [Wed, 16 Dec 2020 17:22:41 +0000 (09:22 -0800)]
grouping.extras: better {clump,group}-map.

Specifically, clump-map is faster and both clump-map and group-map are
improved to call non-inlined sequences.

3 years agogrouping.extras: adding ngroup-map and some utility words.
John Benediktsson [Wed, 16 Dec 2020 15:41:07 +0000 (07:41 -0800)]
grouping.extras: adding ngroup-map and some utility words.

pad-group extends a sequence to make sure the last group if full.
short-group slices a sequence to make sure groups all same size.

3 years agocalendar: use clone >gmt in a few places.
John Benediktsson [Wed, 16 Dec 2020 03:58:58 +0000 (19:58 -0800)]
calendar: use clone >gmt in a few places.

3 years agohelp.syntax: more blocks.
John Benediktsson [Wed, 16 Dec 2020 03:12:16 +0000 (19:12 -0800)]
help.syntax: more blocks.

3 years agovocabs.parser: use finally instead of ``[ ] cleanup``.
John Benediktsson [Wed, 16 Dec 2020 02:59:37 +0000 (18:59 -0800)]
vocabs.parser: use finally instead of ``[ ] cleanup``.

3 years agohelp.syntax: prevent unnecessary ambiguous-use-errors.
John Benediktsson [Wed, 16 Dec 2020 01:50:54 +0000 (17:50 -0800)]
help.syntax: prevent unnecessary ambiguous-use-errors.

Look for valid help words in syntax and help.markup and then search
generally if the token looks like syntax.

3 years agoRevert "help.syntax: prevent unnecessary ambiguous-use-errors."
John Benediktsson [Wed, 16 Dec 2020 01:43:12 +0000 (17:43 -0800)]
Revert "help.syntax: prevent unnecessary ambiguous-use-errors."

This reverts commit b14f6853c2e4691a2b6aa0e52f31918d47efde77.

3 years agohelp.syntax: prevent unnecessary ambiguous-use-errors.
John Benediktsson [Wed, 16 Dec 2020 01:42:23 +0000 (17:42 -0800)]
help.syntax: prevent unnecessary ambiguous-use-errors.

Look for valid help words in syntax and help.markup.

3 years agosets: rename combine/refine to union-all/intersect-all
Benjamin Pollack [Tue, 15 Dec 2020 21:01:49 +0000 (16:01 -0500)]
sets: rename combine/refine to union-all/intersect-all

Closes #2385

3 years agofunctors: use with-words instead of more fragile qualified-vocabs pop*.
John Benediktsson [Wed, 16 Dec 2020 01:23:30 +0000 (17:23 -0800)]
functors: use with-words instead of more fragile qualified-vocabs pop*.

3 years agolocals.parser: use with-words again.
John Benediktsson [Tue, 15 Dec 2020 21:23:27 +0000 (13:23 -0800)]
locals.parser: use with-words again.

3 years agovocabs.parser: fix with-words.
John Benediktsson [Tue, 15 Dec 2020 21:22:06 +0000 (13:22 -0800)]
vocabs.parser: fix with-words.

Got the cleanup quots backwards, need to be cleanup-always.

3 years agoctags.etags: fix ARTICLE: docs.
John Benediktsson [Tue, 15 Dec 2020 19:13:55 +0000 (11:13 -0800)]
ctags.etags: fix ARTICLE: docs.

3 years agomath.matrices.elimination: fix $snippet to $link in docs.
John Benediktsson [Tue, 15 Dec 2020 19:10:55 +0000 (11:10 -0800)]
math.matrices.elimination: fix $snippet to $link in docs.

3 years agocalendar.holidays.us: cleanup using.
John Benediktsson [Tue, 15 Dec 2020 18:42:46 +0000 (10:42 -0800)]
calendar.holidays.us: cleanup using.

3 years agohelp.syntax: short circuit earlier when search returns f.
John Benediktsson [Tue, 15 Dec 2020 17:19:35 +0000 (09:19 -0800)]
help.syntax: short circuit earlier when search returns f.

3 years agosets: add docs about sequence ordering with members.
John Benediktsson [Tue, 15 Dec 2020 17:14:54 +0000 (09:14 -0800)]
sets: add docs about sequence ordering with members.

3 years agohelp.syntax: allow help.markup to be parsed as a literal.
John Benediktsson [Tue, 15 Dec 2020 17:13:18 +0000 (09:13 -0800)]
help.syntax: allow help.markup to be parsed as a literal.

3 years agoroman: try easy-help on article.
John Benediktsson [Tue, 15 Dec 2020 16:54:06 +0000 (08:54 -0800)]
roman: try easy-help on article.

3 years agohelp.syntax: simplify code-lines.
John Benediktsson [Tue, 15 Dec 2020 16:33:24 +0000 (08:33 -0800)]
help.syntax: simplify code-lines.

3 years agohelp.syntax: some fixes for $examples blocks with text.
John Benediktsson [Tue, 15 Dec 2020 15:29:45 +0000 (07:29 -0800)]
help.syntax: some fixes for $examples blocks with text.

3 years agoregexp: fixing the name collision for ^.
John Benediktsson [Tue, 15 Dec 2020 15:26:08 +0000 (07:26 -0800)]
regexp: fixing the name collision for ^.

3 years agohelp.syntax: some fixes for newlines and spaces in blocks.
John Benediktsson [Tue, 15 Dec 2020 06:15:12 +0000 (22:15 -0800)]
help.syntax: some fixes for newlines and spaces in blocks.

3 years agohelp.syntax: start to make ARTICLE: work.
John Benediktsson [Tue, 15 Dec 2020 06:07:28 +0000 (22:07 -0800)]
help.syntax: start to make ARTICLE: work.

3 years agoroman: Trying out easy-help
Doug Coleman [Tue, 15 Dec 2020 05:50:49 +0000 (23:50 -0600)]
roman: Trying out easy-help

3 years agohelp.syntax: when using multiline strings, need to unescape.
John Benediktsson [Tue, 15 Dec 2020 05:45:08 +0000 (21:45 -0800)]
help.syntax: when using multiline strings, need to unescape.

This might be temporary if we decide on raw string vs. escaped string
syntax for multiline.

3 years agoRevert "help.markup: make headings titlecase."
John Benediktsson [Tue, 15 Dec 2020 05:05:30 +0000 (21:05 -0800)]
Revert "help.markup: make headings titlecase."

This reverts commit 6749edd22078fd37e881807e17fc44bb1f05db9a.

3 years agohelp.syntax: fix intermediate double spaces.
John Benediktsson [Tue, 15 Dec 2020 04:59:41 +0000 (20:59 -0800)]
help.syntax: fix intermediate double spaces.

3 years agohelp.syntax: require string examples to be multi-line.
John Benediktsson [Tue, 15 Dec 2020 04:50:55 +0000 (20:50 -0800)]
help.syntax: require string examples to be multi-line.

3 years agohelp.syntax: can't treat $code as text.
John Benediktsson [Tue, 15 Dec 2020 04:47:51 +0000 (20:47 -0800)]
help.syntax: can't treat $code as text.

3 years agohelp.syntax: simplify $example.
John Benediktsson [Tue, 15 Dec 2020 04:38:15 +0000 (20:38 -0800)]
help.syntax: simplify $example.

3 years agohelp.syntax: make sure $example is an array.
John Benediktsson [Tue, 15 Dec 2020 04:33:59 +0000 (20:33 -0800)]
help.syntax: make sure $example is an array.

3 years agohelp.syntax: more tests.
John Benediktsson [Tue, 15 Dec 2020 04:24:28 +0000 (20:24 -0800)]
help.syntax: more tests.

3 years agohelp.syntax: don't double spaces in backwards compatibility.
John Benediktsson [Tue, 15 Dec 2020 04:11:35 +0000 (20:11 -0800)]
help.syntax: don't double spaces in backwards compatibility.

3 years agohelp.syntax: parse-help-values needs to parse-array directly.
John Benediktsson [Tue, 15 Dec 2020 04:08:25 +0000 (20:08 -0800)]
help.syntax: parse-help-values needs to parse-array directly.

3 years agoRevert "locals.parser: use with-words."
John Benediktsson [Tue, 15 Dec 2020 04:06:54 +0000 (20:06 -0800)]
Revert "locals.parser: use with-words."

This reverts commit ccdfb1744890c9a05eaa25a3e2d521278620bbc5.

3 years agohelp.syntax: merge easy-help ideas into HELP:.
John Benediktsson [Tue, 15 Dec 2020 03:59:33 +0000 (19:59 -0800)]
help.syntax: merge easy-help ideas into HELP:.

3 years agoeasy-help: removing prototype.
John Benediktsson [Tue, 15 Dec 2020 03:59:11 +0000 (19:59 -0800)]
easy-help: removing prototype.

3 years agoeasy-help: better $examples.
John Benediktsson [Tue, 15 Dec 2020 03:49:10 +0000 (19:49 -0800)]
easy-help: better $examples.

3 years agoeasy-help: some cleanup and add EASY-HELP: to test an idea.
John Benediktsson [Tue, 15 Dec 2020 03:34:33 +0000 (19:34 -0800)]
easy-help: some cleanup and add EASY-HELP: to test an idea.

3 years agopeg.ebnf: use with-words.
John Benediktsson [Tue, 15 Dec 2020 03:18:20 +0000 (19:18 -0800)]
peg.ebnf: use with-words.

3 years agolocals.parser: use with-words.
John Benediktsson [Tue, 15 Dec 2020 03:18:07 +0000 (19:18 -0800)]
locals.parser: use with-words.

3 years agovocabs.parser: make a with-words combinator that cleans up.
John Benediktsson [Tue, 15 Dec 2020 03:17:33 +0000 (19:17 -0800)]
vocabs.parser: make a with-words combinator that cleans up.

Some places where we use-words / unuse-words could leave the manifest
with extra-words if not cleaned up properly.

3 years agoeasy-help: adding tests.
John Benediktsson [Tue, 15 Dec 2020 00:01:27 +0000 (16:01 -0800)]
easy-help: adding tests.

3 years agoeasy-help: no spaces when punctuation follows.
John Benediktsson [Mon, 14 Dec 2020 23:33:53 +0000 (15:33 -0800)]
easy-help: no spaces when punctuation follows.

3 years agoeasy-help: use $nl instead of \n.
John Benediktsson [Mon, 14 Dec 2020 22:53:10 +0000 (14:53 -0800)]
easy-help: use $nl instead of \n.

3 years agoeasy-help: experiment in new help syntax.
John Benediktsson [Mon, 14 Dec 2020 22:02:01 +0000 (14:02 -0800)]
easy-help: experiment in new help syntax.

3 years agohelp.markup: make headings titlecase.
John Benediktsson [Mon, 14 Dec 2020 21:59:20 +0000 (13:59 -0800)]
help.markup: make headings titlecase.

3 years agohelp.markup: $values print None if ... none.
John Benediktsson [Mon, 14 Dec 2020 21:31:35 +0000 (13:31 -0800)]
help.markup: $values print None if ... none.

3 years agocalendar.holidays: clone timestamps and make holidays mutating.
John Benediktsson [Mon, 14 Dec 2020 21:23:17 +0000 (13:23 -0800)]
calendar.holidays: clone timestamps and make holidays mutating.

3 years agosequences.extras: fix pad-center output type.
John Benediktsson [Mon, 14 Dec 2020 21:21:44 +0000 (13:21 -0800)]
sequences.extras: fix pad-center output type.

3 years ago.travis.yml: change help-lint to not do extra.
John Benediktsson [Mon, 14 Dec 2020 19:40:29 +0000 (11:40 -0800)]
.travis.yml: change help-lint to not do extra.

3 years ago.travis.yml: don't load extra for now, we don't have enough CPU time.
John Benediktsson [Mon, 14 Dec 2020 17:44:09 +0000 (09:44 -0800)]
.travis.yml: don't load extra for now, we don't have enough CPU time.

3 years ago.travis.yml: adding libsodium.
John Benediktsson [Mon, 14 Dec 2020 04:32:35 +0000 (20:32 -0800)]
.travis.yml: adding libsodium.

3 years ago.travis.yml: try this for parser-quiet?.
John Benediktsson [Mon, 14 Dec 2020 03:50:56 +0000 (19:50 -0800)]
.travis.yml: try this for parser-quiet?.

3 years ago.travis.yml: try this to get vocab loading output.
John Benediktsson [Mon, 14 Dec 2020 02:38:22 +0000 (18:38 -0800)]
.travis.yml: try this to get vocab loading output.

3 years ago.travis.yml: split out extra loads.
John Benediktsson [Mon, 14 Dec 2020 01:44:21 +0000 (17:44 -0800)]
.travis.yml: split out extra loads.

3 years ago.travis.yml: fix call to load-from-root.
John Benediktsson [Mon, 14 Dec 2020 01:03:12 +0000 (17:03 -0800)]
.travis.yml: fix call to load-from-root.

3 years ago.travis.yml: split load into two since travis_wait didn't work.
John Benediktsson [Mon, 14 Dec 2020 00:47:14 +0000 (16:47 -0800)]
.travis.yml: split load into two since travis_wait didn't work.