]> gitweb.factorcode.org Git - factor.git/log
factor.git
3 years agoPass optional file arg to fule-mode-code-file
Rudi Grinberg [Tue, 23 Mar 2021 06:21:27 +0000 (23:21 -0700)]
Pass optional file arg to fule-mode-code-file

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
3 years agouse cl-remove-if instead of remove-if
Rudi Grinberg [Tue, 23 Mar 2021 06:21:02 +0000 (23:21 -0700)]
use cl-remove-if instead of remove-if

The latter is an alias. Also require hte library that provides this
function.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
3 years agoUse lexical scoping in all fuel sources
Rudi Grinberg [Tue, 23 Mar 2021 06:20:24 +0000 (23:20 -0700)]
Use lexical scoping in all fuel sources

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
3 years agomisc: adding some strings to syntax test.
John Benediktsson [Tue, 23 Mar 2021 03:26:54 +0000 (20:26 -0700)]
misc: adding some strings to syntax test.

3 years agoextra: using keepd instead of "2keep drop".
John Benediktsson [Tue, 23 Mar 2021 03:26:38 +0000 (20:26 -0700)]
extra: using keepd instead of "2keep drop".

3 years agogeneralizations: cleanup using.
John Benediktsson [Tue, 23 Mar 2021 03:26:21 +0000 (20:26 -0700)]
generalizations: cleanup using.

3 years agomath.runge-kutta: fix help-lint.
John Benediktsson [Tue, 23 Mar 2021 00:31:51 +0000 (17:31 -0700)]
math.runge-kutta: fix help-lint.

3 years agomisc/vim: fix "{ 1 2 3 }" and [[{ 1 2 3 }]].
John Benediktsson [Tue, 23 Mar 2021 00:29:25 +0000 (17:29 -0700)]
misc/vim: fix "{ 1 2 3 }" and [[{ 1 2 3 }]].

3 years agomath.combinatorics: adding all-unique-permutations.
John Benediktsson [Tue, 23 Mar 2021 00:25:56 +0000 (17:25 -0700)]
math.combinatorics: adding all-unique-permutations.

3 years agomason.child: Up the codeheap size on Windows-x86.64 mason tests.
John Benediktsson [Tue, 23 Mar 2021 00:05:24 +0000 (17:05 -0700)]
mason.child: Up the codeheap size on Windows-x86.64 mason tests.

3 years agovocabs.metadata: change vocab-summary to just be summary.
John Benediktsson [Mon, 22 Mar 2021 20:20:43 +0000 (13:20 -0700)]
vocabs.metadata: change vocab-summary to just be summary.

Have a separate word that is used in M\ vocab summary

3 years agocore/basis: metadata instead of meta-data.
John Benediktsson [Mon, 22 Mar 2021 20:02:59 +0000 (13:02 -0700)]
core/basis: metadata instead of meta-data.

3 years agosplitting: simplify (split1).
John Benediktsson [Mon, 22 Mar 2021 19:36:17 +0000 (12:36 -0700)]
splitting: simplify (split1).

3 years agolocals.rewrite: need to like after [nsequence].
John Benediktsson [Mon, 22 Mar 2021 04:26:59 +0000 (21:26 -0700)]
locals.rewrite: need to like after [nsequence].

3 years agosequences.generalizations: move to basis from core.
John Benediktsson [Mon, 22 Mar 2021 04:08:15 +0000 (21:08 -0700)]
sequences.generalizations: move to basis from core.

3 years agolocals.rewrite: use [nsequence] instead of nsequence.
John Benediktsson [Mon, 22 Mar 2021 04:07:53 +0000 (21:07 -0700)]
locals.rewrite: use [nsequence] instead of nsequence.

3 years agodb.sqlite.lib: stop using sequences.extras.
John Benediktsson [Mon, 22 Mar 2021 03:57:05 +0000 (20:57 -0700)]
db.sqlite.lib: stop using sequences.extras.

Unfortunately, this temporarily results in slightly worse looking code.

3 years agolocals.parser: use parse-time compilation to make tests run properly.
John Benediktsson [Mon, 22 Mar 2021 02:31:32 +0000 (19:31 -0700)]
locals.parser: use parse-time compilation to make tests run properly.

3 years agohttp: Use Uppercase For Header Names
Doug Coleman [Sun, 21 Mar 2021 15:05:57 +0000 (10:05 -0500)]
http: Use Uppercase For Header Names

They get normalized anyway but most clients seem to use Upper Case.

3 years agovocabs: Show vocab metadata in help and fix ctrl-e for private vocab
Doug Coleman [Sat, 20 Mar 2021 21:11:47 +0000 (16:11 -0500)]
vocabs: Show vocab metadata in help and fix ctrl-e for private vocab

USE: alien.private [ctrl-e] now works

Listing files for alien.private now lists the files for alien

3 years agovocabs.metadata: Show vocab root in listener vocab info row
Doug Coleman [Sat, 20 Mar 2021 21:10:29 +0000 (16:10 -0500)]
vocabs.metadata: Show vocab root in listener vocab info row

3 years agofactor: map-zip -> zip-with
Doug Coleman [Sun, 21 Mar 2021 18:51:04 +0000 (13:51 -0500)]
factor: map-zip -> zip-with

3 years agocore/basis/extras: use zip-with in a few places.
John Benediktsson [Sat, 20 Mar 2021 15:59:00 +0000 (08:59 -0700)]
core/basis/extras: use zip-with in a few places.

3 years agomisc/vim: update core words.
John Benediktsson [Sat, 20 Mar 2021 15:58:14 +0000 (08:58 -0700)]
misc/vim: update core words.

3 years agosequences.extras: remove map-zip in favor of assocs:zip-with.
John Benediktsson [Sat, 20 Mar 2021 15:50:40 +0000 (08:50 -0700)]
sequences.extras: remove map-zip in favor of assocs:zip-with.

3 years agobasis: use zip-with in a few places.
John Benediktsson [Sat, 20 Mar 2021 15:50:26 +0000 (08:50 -0700)]
basis: use zip-with in a few places.

3 years agoassocs: adding zip-with.
John Benediktsson [Sat, 20 Mar 2021 15:48:50 +0000 (08:48 -0700)]
assocs: adding zip-with.

3 years agolocals.rewrite: need this!
John Benediktsson [Sat, 20 Mar 2021 04:12:19 +0000 (21:12 -0700)]
locals.rewrite: need this!

3 years agolocals.rewrite: merge all locals.rewrite.* code...
John Benediktsson [Sat, 20 Mar 2021 03:59:22 +0000 (20:59 -0700)]
locals.rewrite: merge all locals.rewrite.* code...

3 years agoFixes complex shuffle words, Fixes complex array instantiation
inivekin [Sat, 20 Mar 2021 03:58:32 +0000 (11:58 +0800)]
Fixes complex shuffle words, Fixes complex array instantiation

3 years agoFixes runge-kutta docs example USE errors
inivekin [Sat, 20 Mar 2021 02:31:21 +0000 (10:31 +0800)]
Fixes runge-kutta docs example USE errors

3 years agoAdds runge-kutta implementation for n dimensions
inivekin [Sat, 20 Mar 2021 02:23:11 +0000 (10:23 +0800)]
Adds runge-kutta implementation for n dimensions

3 years agolocals.parser: adding IN: (needed for first couple tests).
John Benediktsson [Sat, 20 Mar 2021 03:43:44 +0000 (20:43 -0700)]
locals.parser: adding IN: (needed for first couple tests).

3 years agolocals.parser: fix docs.
John Benediktsson [Fri, 19 Mar 2021 23:15:46 +0000 (16:15 -0700)]
locals.parser: fix docs.

3 years agolocals.parser: cleanup using.
John Benediktsson [Fri, 19 Mar 2021 23:14:10 +0000 (16:14 -0700)]
locals.parser: cleanup using.

3 years agolocals: simplify by merging def and multi-def (again).
John Benediktsson [Fri, 19 Mar 2021 23:11:09 +0000 (16:11 -0700)]
locals: simplify by merging def and multi-def (again).

3 years agolocals.parser: try and remove previously broken syntax.
John Benediktsson [Fri, 19 Mar 2021 23:02:09 +0000 (16:02 -0700)]
locals.parser: try and remove previously broken syntax.

3 years agolocals: use "f <word>".
John Benediktsson [Fri, 19 Mar 2021 22:38:05 +0000 (15:38 -0700)]
locals: use "f <word>".

3 years agomultiline: removing bad-heredoc.
John Benediktsson [Fri, 19 Mar 2021 22:01:46 +0000 (15:01 -0700)]
multiline: removing bad-heredoc.

3 years agoRevert "locals: simplify by merging <def> and <multi-def>."
John Benediktsson [Fri, 19 Mar 2021 21:58:03 +0000 (14:58 -0700)]
Revert "locals: simplify by merging <def> and <multi-def>."

This reverts commit 49f09dee42dcd2b66279d9393add51fd9285a912.

3 years agolocals: simplify by merging <def> and <multi-def>.
John Benediktsson [Fri, 19 Mar 2021 21:53:45 +0000 (14:53 -0700)]
locals: simplify by merging <def> and <multi-def>.

3 years agolocals: simplify point-free using multi-def.
John Benediktsson [Fri, 19 Mar 2021 21:08:38 +0000 (14:08 -0700)]
locals: simplify point-free using multi-def.

3 years agomisc: add more syntax to the syntax-test.factor.
John Benediktsson [Fri, 19 Mar 2021 18:24:30 +0000 (11:24 -0700)]
misc: add more syntax to the syntax-test.factor.

3 years agomisc/vim: fix SYNTAX: highlighting.
John Benediktsson [Fri, 19 Mar 2021 18:22:31 +0000 (11:22 -0700)]
misc/vim: fix SYNTAX: highlighting.

3 years agomath.text.english: adding some ap-style number conversions.
John Benediktsson [Fri, 19 Mar 2021 18:17:53 +0000 (11:17 -0700)]
math.text.english: adding some ap-style number conversions.

3 years agosequences: simplify flip using fry and map-reduce.
John Benediktsson [Fri, 19 Mar 2021 18:12:26 +0000 (11:12 -0700)]
sequences: simplify flip using fry and map-reduce.

3 years agoformatting: simplify strftime.
John Benediktsson [Fri, 19 Mar 2021 18:03:37 +0000 (11:03 -0700)]
formatting: simplify strftime.

3 years agoeditors.ultraedit: support ultraedit on the mac.
John Benediktsson [Fri, 19 Mar 2021 18:03:11 +0000 (11:03 -0700)]
editors.ultraedit: support ultraedit on the mac.

3 years agohelp.markup: Fix documentation
Giftpflanze [Fri, 19 Mar 2021 17:44:59 +0000 (17:44 +0000)]
help.markup: Fix documentation

3 years agoui.tools.listener.completion: display glyph for CHAR: completions.
John Benediktsson [Fri, 19 Mar 2021 17:39:18 +0000 (10:39 -0700)]
ui.tools.listener.completion: display glyph for CHAR: completions.

3 years agotools.scaffold: choose a vocab-root for scaffold-vocab with a restart.
John Benediktsson [Fri, 19 Mar 2021 17:09:48 +0000 (10:09 -0700)]
tools.scaffold: choose a vocab-root for scaffold-vocab with a restart.

For now, don't guess the right vocab-root to put it in since that is a
little bit off for math.foobar and other core vocabs.

3 years agosyntax: don't mark-top-level-syntax.
John Benediktsson [Fri, 19 Mar 2021 04:18:29 +0000 (21:18 -0700)]
syntax: don't mark-top-level-syntax.

3 years agocrypto.aes: better sbox literals.
John Benediktsson [Fri, 19 Mar 2021 04:09:45 +0000 (21:09 -0700)]
crypto.aes: better sbox literals.

3 years agomultiline: remove HEREDOC:
John Benediktsson [Fri, 19 Mar 2021 03:50:02 +0000 (20:50 -0700)]
multiline: remove HEREDOC:

It wasn't used and our new multiline strings are better.

3 years agolinked-assocs: rollback to old clone method.
John Benediktsson [Fri, 19 Mar 2021 03:41:03 +0000 (20:41 -0700)]
linked-assocs: rollback to old clone method.

3 years agodecimals: change pprint* to not use formatting.private:format-decimal.
John Benediktsson [Thu, 18 Mar 2021 20:03:43 +0000 (13:03 -0700)]
decimals: change pprint* to not use formatting.private:format-decimal.

3 years agodecimals: adding prettyprint.
John Benediktsson [Thu, 18 Mar 2021 19:47:37 +0000 (12:47 -0700)]
decimals: adding prettyprint.

3 years agoregexp.classes: inline bi* = instead of shadowing "same?".
John Benediktsson [Thu, 18 Mar 2021 19:20:35 +0000 (12:20 -0700)]
regexp.classes: inline bi* = instead of shadowing "same?".

3 years agoregexp.classes: rename substitute to (substitute).
John Benediktsson [Thu, 18 Mar 2021 19:16:52 +0000 (12:16 -0700)]
regexp.classes: rename substitute to (substitute).

3 years agolru-cache: adding lifo-cache.
John Benediktsson [Thu, 18 Mar 2021 19:13:19 +0000 (12:13 -0700)]
lru-cache: adding lifo-cache.

3 years agolinked-assocs: change clone to use (clone).
John Benediktsson [Thu, 18 Mar 2021 19:12:38 +0000 (12:12 -0700)]
linked-assocs: change clone to use (clone).

3 years agolru-cache: adding fifo-cache.
John Benediktsson [Thu, 18 Mar 2021 18:45:57 +0000 (11:45 -0700)]
lru-cache: adding fifo-cache.

3 years agolru-cache: initialize assoc with max-size.
John Benediktsson [Thu, 18 Mar 2021 18:32:16 +0000 (11:32 -0700)]
lru-cache: initialize assoc with max-size.

3 years agotools.scaffold: fix "protocols.foobar" case.
John Benediktsson [Thu, 18 Mar 2021 18:28:28 +0000 (11:28 -0700)]
tools.scaffold: fix "protocols.foobar" case.

3 years agosyslog: client for Syslog protocol.
John Benediktsson [Thu, 18 Mar 2021 18:10:55 +0000 (11:10 -0700)]
syslog: client for Syslog protocol.

3 years agoextra: moving named-tuples to basis.
John Benediktsson [Thu, 18 Mar 2021 18:03:21 +0000 (11:03 -0700)]
extra: moving named-tuples to basis.

3 years agourls: normalize paths when creating urls from strings.
John Benediktsson [Thu, 18 Mar 2021 18:03:01 +0000 (11:03 -0700)]
urls: normalize paths when creating urls from strings.

3 years agoextra: move ini-file, oauth1, oauth2 to basis.
John Benediktsson [Thu, 18 Mar 2021 17:29:55 +0000 (10:29 -0700)]
extra: move ini-file, oauth1, oauth2 to basis.

3 years agoini-file: stop using xml.entities.
John Benediktsson [Thu, 18 Mar 2021 17:26:55 +0000 (10:26 -0700)]
ini-file: stop using xml.entities.

3 years agoextra: moving etc-hosts and resolv-conf to basis.
John Benediktsson [Thu, 18 Mar 2021 17:07:55 +0000 (10:07 -0700)]
extra: moving etc-hosts and resolv-conf to basis.

3 years agoverbal-expressions: human-readable regular expressions.
John Benediktsson [Thu, 18 Mar 2021 17:04:57 +0000 (10:04 -0700)]
verbal-expressions: human-readable regular expressions.

3 years agotldr: adding a lightweight tool to render tldr.sh pages.
John Benediktsson [Thu, 18 Mar 2021 16:52:57 +0000 (09:52 -0700)]
tldr: adding a lightweight tool to render tldr.sh pages.

3 years agoextra: moving constructors to basis.
John Benediktsson [Thu, 18 Mar 2021 02:08:26 +0000 (19:08 -0700)]
extra: moving constructors to basis.

3 years agoextra: move dns, ntp to basis.
John Benediktsson [Wed, 17 Mar 2021 04:51:01 +0000 (21:51 -0700)]
extra: move dns, ntp to basis.

3 years agoextra: moving bloom-filters, cuckoo-filters to basis.
John Benediktsson [Wed, 17 Mar 2021 04:45:38 +0000 (21:45 -0700)]
extra: moving bloom-filters, cuckoo-filters to basis.

3 years agoextra: moving cbor, msgpack, toml, uu to basis.
John Benediktsson [Wed, 17 Mar 2021 04:42:42 +0000 (21:42 -0700)]
extra: moving cbor, msgpack, toml, uu to basis.

3 years agocompiler.tree.propagation.transforms: sigh.
John Benediktsson [Wed, 17 Mar 2021 04:39:07 +0000 (21:39 -0700)]
compiler.tree.propagation.transforms: sigh.

3 years agocompiler.tree.propagation.transforms: maybe better code for zero bignum case.
John Benediktsson [Wed, 17 Mar 2021 04:30:58 +0000 (21:30 -0700)]
compiler.tree.propagation.transforms: maybe better code for zero bignum case.

3 years agoextra/talks: removing to a "factor-talks" repo.
John Benediktsson [Wed, 17 Mar 2021 04:30:29 +0000 (21:30 -0700)]
extra/talks: removing to a "factor-talks" repo.

3 years agoRevert "math.intervals: workaround possible compiler bug by widening interval-bitor."
John Benediktsson [Wed, 17 Mar 2021 04:21:53 +0000 (21:21 -0700)]
Revert "math.intervals: workaround possible compiler bug by widening interval-bitor."

This reverts commit e256a4ba18fbb7916db2a22ead55cbcbf7cf920d.

3 years agochecksums: add specialized-arrays.
John Benediktsson [Wed, 17 Mar 2021 04:14:05 +0000 (21:14 -0700)]
checksums: add specialized-arrays.

3 years agocompiler.tree.propagation: add some tests.
John Benediktsson [Wed, 17 Mar 2021 04:10:10 +0000 (21:10 -0700)]
compiler.tree.propagation: add some tests.

3 years agocompiler.tree.propagation.transforms: fix redundant-bitand?.
John Benediktsson [Wed, 17 Mar 2021 03:52:37 +0000 (20:52 -0700)]
compiler.tree.propagation.transforms: fix redundant-bitand?.

When removing a redundant bitand (for example, in ``W*`` which does ``64
on-bits bitand``) make sure that we leave the ``>bignum`` to convert the
input integer to a bignum since the output type propagation assumes that
to be the case and we compiled the following code wrong.

    : mult ( a b -- x ) [ 32 bits ] bi@ W* ;

Before:

    \ mult optimized.
    [
        >R 4294967295 >R integer>fixnum R> fixnum-bitand
        R> 4294967295 >R integer>fixnum R> fixnum-bitand fixnum*
    ]

After:

    \ mult optimized.
    [
        >R 4294967295 >R integer>fixnum R> fixnum-bitand
        R> 4294967295 >R integer>fixnum R> fixnum-bitand fixnum*
        >bignum
    ]

3 years agocompiler.tree.propagation: Use ... for example
Doug Coleman [Wed, 17 Mar 2021 03:20:35 +0000 (22:20 -0500)]
compiler.tree.propagation: Use ... for example

3 years agocompiler.tree.propagation: fix docs to show expected output line.
John Benediktsson [Wed, 17 Mar 2021 03:15:26 +0000 (20:15 -0700)]
compiler.tree.propagation: fix docs to show expected output line.

3 years agocompiler.cfg.builder: need to define the 'id' slot.
John Benediktsson [Tue, 16 Mar 2021 23:59:59 +0000 (16:59 -0700)]
compiler.cfg.builder: need to define the 'id' slot.

3 years agowrap.strings: preserve leading whitespace when wrapping.
John Benediktsson [Tue, 16 Mar 2021 22:08:53 +0000 (15:08 -0700)]
wrap.strings: preserve leading whitespace when wrapping.

3 years agochecksums.wyhash: implement the wyhash algorithm.
John Benediktsson [Tue, 16 Mar 2021 21:54:44 +0000 (14:54 -0700)]
checksums.wyhash: implement the wyhash algorithm.

3 years agosequences: adding cut-slice*.
John Benediktsson [Tue, 16 Mar 2021 21:44:33 +0000 (14:44 -0700)]
sequences: adding cut-slice*.

3 years agohashcash: change available-chars to a constant.
John Benediktsson [Tue, 16 Mar 2021 15:13:21 +0000 (08:13 -0700)]
hashcash: change available-chars to a constant.

3 years agoaudio.aiff: one liner.
John Benediktsson [Tue, 16 Mar 2021 15:13:04 +0000 (08:13 -0700)]
audio.aiff: one liner.

3 years agofuel: fix for scaffold-vocab-in.
John Benediktsson [Tue, 16 Mar 2021 15:12:47 +0000 (08:12 -0700)]
fuel: fix for scaffold-vocab-in.

3 years agoshell.nix: Define gdk pixbuf loaders from build dependencies.
timor [Tue, 16 Mar 2021 14:55:38 +0000 (15:55 +0100)]
shell.nix: Define gdk pixbuf loaders from build dependencies.

This resolves a problem when the wrapped Factor binary is executed with
`GDK_PIXBUF_MODULE_FILE` set to an incompatible version.  This happens if e.g.
Factor is run from within an Emacs that uses newer gdk versions.

Related NixOS issue: https://github.com/NixOS/nixpkgs/issues/54278

In the long run, this should be replaced by a derivation which correctly runs
through all the phases correctly to set up `wrapGAppsHook` correctly.  Even
then, the correct behavior would probably be to have the surrounding
environment (e.g. Emacs) restore the default variable value in it's
sub-environments.

3 years agopeg: Fix documentation
Giftpflanze [Tue, 16 Mar 2021 02:33:11 +0000 (02:33 +0000)]
peg: Fix documentation

3 years agogemini.cli: fixing gemini-reload.
John Benediktsson [Mon, 15 Mar 2021 22:34:49 +0000 (15:34 -0700)]
gemini.cli: fixing gemini-reload.

3 years agogemini.server: better default port.
John Benediktsson [Mon, 15 Mar 2021 22:30:08 +0000 (15:30 -0700)]
gemini.server: better default port.

3 years agogemini.server: adding a gemini server.
John Benediktsson [Mon, 15 Mar 2021 22:28:34 +0000 (15:28 -0700)]
gemini.server: adding a gemini server.

3 years agogopher.server: adding a main.
John Benediktsson [Mon, 15 Mar 2021 22:26:27 +0000 (15:26 -0700)]
gopher.server: adding a main.

3 years agogemini: allow link text to have trailing whitespace.
John Benediktsson [Mon, 15 Mar 2021 22:25:55 +0000 (15:25 -0700)]
gemini: allow link text to have trailing whitespace.

3 years agourls: adding some more test cases for remove-dot-segments.
John Benediktsson [Mon, 15 Mar 2021 20:40:45 +0000 (13:40 -0700)]
urls: adding some more test cases for remove-dot-segments.