]> gitweb.factorcode.org Git - factor.git/log
factor.git
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.

3 years ago.travis.yml: wait 20 min for load-all.
John Benediktsson [Mon, 14 Dec 2020 00:15:15 +0000 (16:15 -0800)]
.travis.yml: wait 20 min for load-all.

3 years agocompiler.cfg.gc-checks: need IN: for ABOUT:
John Benediktsson [Sun, 13 Dec 2020 23:39:57 +0000 (15:39 -0800)]
compiler.cfg.gc-checks: need IN: for ABOUT:

3 years agocompiler: fix PRIVATE docs.
John Benediktsson [Sun, 13 Dec 2020 22:59:56 +0000 (14:59 -0800)]
compiler: fix PRIVATE docs.

3 years agomath.combinatorics: IN: definitions not needed in docs.
John Benediktsson [Sun, 13 Dec 2020 22:56:45 +0000 (14:56 -0800)]
math.combinatorics: IN: definitions not needed in docs.

3 years ago.travis.yml: load-all and help-lint extra.
John Benediktsson [Sun, 13 Dec 2020 22:55:46 +0000 (14:55 -0800)]
.travis.yml: load-all and help-lint extra.

3 years agomath.matrices: adding matrix-map-index.
John Benediktsson [Sun, 13 Dec 2020 20:48:07 +0000 (12:48 -0800)]
math.matrices: adding matrix-map-index.

3 years agojson.reader: fix for rename.
John Benediktsson [Sun, 13 Dec 2020 20:10:31 +0000 (12:10 -0800)]
json.reader: fix for rename.

3 years agocalendar: omg.
John Benediktsson [Sun, 13 Dec 2020 19:40:23 +0000 (11:40 -0800)]
calendar: omg.

3 years agocalendar: fix timestamp>year-dates-gmt.
John Benediktsson [Sun, 13 Dec 2020 19:26:36 +0000 (11:26 -0800)]
calendar: fix timestamp>year-dates-gmt.

3 years agosequences: change surround to return type of ``seq2``.
John Benediktsson [Sun, 13 Dec 2020 19:08:38 +0000 (11:08 -0800)]
sequences: change surround to return type of ``seq2``.

This was the previous behavior, which follows the logic of returning
type of the "first sequence" in the output.

3 years agocalendar.format: fix for mutating words.
John Benediktsson [Sun, 13 Dec 2020 18:34:04 +0000 (10:34 -0800)]
calendar.format: fix for mutating words.

3 years agobase36: adding base36 encoder/decoder.
John Benediktsson [Sun, 13 Dec 2020 18:32:13 +0000 (10:32 -0800)]
base36: adding base36 encoder/decoder.

3 years agobase62: adding a base63 encoder/decoder.
John Benediktsson [Sun, 13 Dec 2020 18:22:58 +0000 (10:22 -0800)]
base62: adding a base63 encoder/decoder.

3 years agomisc/vim: generate syntax.
John Benediktsson [Sat, 12 Dec 2020 23:15:12 +0000 (15:15 -0800)]
misc/vim: generate syntax.

3 years agotools.cal: remove tests.
John Benediktsson [Sat, 12 Dec 2020 23:14:52 +0000 (15:14 -0800)]
tools.cal: remove tests.

3 years agosequences: improving cartesian-product to return type of original sequences.
John Benediktsson [Sat, 12 Dec 2020 17:38:33 +0000 (09:38 -0800)]
sequences: improving cartesian-product to return type of original sequences.

Adding cartesian-product-as for cases where you don't want that.

3 years agojson.reader: rename read-json-objects to read-json.
John Benediktsson [Fri, 11 Dec 2020 23:37:53 +0000 (15:37 -0800)]
json.reader: rename read-json-objects to read-json.

3 years agocalendar: add some tests for time-.
John Benediktsson [Fri, 11 Dec 2020 21:45:09 +0000 (13:45 -0800)]
calendar: add some tests for time-.

3 years agocalendar: rename >local back to >local-time.
John Benediktsson [Fri, 11 Dec 2020 21:43:46 +0000 (13:43 -0800)]
calendar: rename >local back to >local-time.

Sorry for the churn!

3 years agoslots.syntax: moving to basis/
John Benediktsson [Fri, 11 Dec 2020 17:58:09 +0000 (09:58 -0800)]
slots.syntax: moving to basis/

3 years agocalendar: no need to use sequences.rotated.
John Benediktsson [Fri, 11 Dec 2020 17:56:35 +0000 (09:56 -0800)]
calendar: no need to use sequences.rotated.

3 years agomath.combinatorics: fix $values for all-selections.
John Benediktsson [Fri, 11 Dec 2020 17:24:23 +0000 (09:24 -0800)]
math.combinatorics: fix $values for all-selections.

3 years agomath: rename selections to all-selections.
John Benediktsson [Fri, 11 Dec 2020 17:20:34 +0000 (09:20 -0800)]
math: rename selections to all-selections.

Add each-/map-/filter-/all-/all-?/find-/reduce-selections.

3 years agocalendar: speed up time+.
John Benediktsson [Fri, 11 Dec 2020 16:51:04 +0000 (08:51 -0800)]
calendar: speed up time+.

Rename >local-time to >local.

3 years agosequences: change replace-slice to return type of seq again.
John Benediktsson [Fri, 11 Dec 2020 16:49:27 +0000 (08:49 -0800)]
sequences: change replace-slice to return type of seq again.

3 years agoRevert "sequences: change test case for replace-slice."
John Benediktsson [Fri, 11 Dec 2020 16:48:54 +0000 (08:48 -0800)]
Revert "sequences: change test case for replace-slice."

This reverts commit 4bc65928de940c37155ccd78d1dd23996516f34d.

3 years agocalendar.parser: use duration*.
John Benediktsson [Fri, 11 Dec 2020 07:15:07 +0000 (23:15 -0800)]
calendar.parser: use duration*.

3 years agocalendar: faster /rem.
John Benediktsson [Fri, 11 Dec 2020 07:12:16 +0000 (23:12 -0800)]
calendar: faster /rem.

3 years agounix.time: better struct slot names for timezone.
John Benediktsson [Fri, 11 Dec 2020 07:11:50 +0000 (23:11 -0800)]
unix.time: better struct slot names for timezone.

3 years agocalendar: use now in some places instead of now-gmt.
John Benediktsson [Fri, 11 Dec 2020 06:28:13 +0000 (22:28 -0800)]
calendar: use now in some places instead of now-gmt.

3 years agocalendar: fix docs.
John Benediktsson [Fri, 11 Dec 2020 06:28:06 +0000 (22:28 -0800)]
calendar: fix docs.

3 years agoRevert "calendar: make now faster, remove now-gmt."
John Benediktsson [Fri, 11 Dec 2020 06:26:20 +0000 (22:26 -0800)]
Revert "calendar: make now faster, remove now-gmt."

This reverts commit 2b025836055ee7a59a8b3d7cb8946c7ed0a050f0.

3 years agocalendar: make now faster, remove now-gmt.
John Benediktsson [Fri, 11 Dec 2020 06:23:47 +0000 (22:23 -0800)]
calendar: make now faster, remove now-gmt.

3 years agocalendar: simplify am/pm.
John Benediktsson [Fri, 11 Dec 2020 05:48:55 +0000 (21:48 -0800)]
calendar: simplify am/pm.

3 years agocalendar: rename time* to duration*.
John Benediktsson [Fri, 11 Dec 2020 05:44:11 +0000 (21:44 -0800)]
calendar: rename time* to duration*.

3 years agocalendar: 12am is midnight, 12pm is noon.
John Benediktsson [Fri, 11 Dec 2020 05:35:05 +0000 (21:35 -0800)]
calendar: 12am is midnight, 12pm is noon.

3 years agocalendar: simplify (time+).
John Benediktsson [Fri, 11 Dec 2020 05:27:49 +0000 (21:27 -0800)]
calendar: simplify (time+).