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

3 years agoRevert "mason.child: Up the codeheap size on Windows mason tests."
John Benediktsson [Mon, 15 Mar 2021 20:34:28 +0000 (13:34 -0700)]
Revert "mason.child: Up the codeheap size on Windows mason tests."

This reverts commit cff2fde9f9f52d0d21a281ce4e3be92cb5067ec8.

3 years agoRevert "mason.child: change windows code-heap from 200 to 100."
John Benediktsson [Mon, 15 Mar 2021 20:34:09 +0000 (13:34 -0700)]
Revert "mason.child: change windows code-heap from 200 to 100."

This reverts commit 5d818ccc7161ff6f239e34a2b8f8152c66368f7a.

3 years agogemini: fix "up" command.
John Benediktsson [Mon, 15 Mar 2021 19:56:38 +0000 (12:56 -0700)]
gemini: fix "up" command.

3 years agourls: remove unnecessary slashes in remove-dot-segments.
John Benediktsson [Mon, 15 Mar 2021 19:56:07 +0000 (12:56 -0700)]
urls: remove unnecessary slashes in remove-dot-segments.

3 years agovocabs: when forgetting vocab foo, also forget foo.private.
John Benediktsson [Mon, 15 Mar 2021 19:37:09 +0000 (12:37 -0700)]
vocabs: when forgetting vocab foo, also forget foo.private.

3 years agotools.deploy.backend: use alien.libraries.finder.
John Benediktsson [Mon, 15 Mar 2021 19:34:25 +0000 (12:34 -0700)]
tools.deploy.backend: use alien.libraries.finder.

3 years agogemini: wrap at 76 chars.
John Benediktsson [Mon, 15 Mar 2021 19:25:35 +0000 (12:25 -0700)]
gemini: wrap at 76 chars.

3 years agotools.scaffold: change scaffold-vocab to scaffold-vocab-in.
John Benediktsson [Mon, 15 Mar 2021 19:16:09 +0000 (12:16 -0700)]
tools.scaffold: change scaffold-vocab to scaffold-vocab-in.

Adding scaffold-vocab to find an appropriate parent vocabulary's root to
create the new vocabulary in.

3 years agocore-text.fonts: switch monospace to Menlo.
John Benediktsson [Mon, 15 Mar 2021 18:57:57 +0000 (11:57 -0700)]
core-text.fonts: switch monospace to Menlo.

Monaco only has a Regular weight, but Menlo has Regular, Bold, Italic,
and Bold-Italic. This should improve the Listener experience on MacOS.

3 years agogemini: make sure to >url in gemini.
John Benediktsson [Mon, 15 Mar 2021 18:56:18 +0000 (11:56 -0700)]
gemini: make sure to >url in gemini.

3 years agogemini: use ../ url-append-path for "up".
John Benediktsson [Mon, 15 Mar 2021 18:54:08 +0000 (11:54 -0700)]
gemini: use ../ url-append-path for "up".

3 years agourls: use split1 instead of replace in remove-dot-segments.
John Benediktsson [Mon, 15 Mar 2021 18:53:01 +0000 (11:53 -0700)]
urls: use split1 instead of replace in remove-dot-segments.

3 years agourls: handle a series of /././././ in paths.
John Benediktsson [Mon, 15 Mar 2021 18:49:20 +0000 (11:49 -0700)]
urls: handle a series of /././././ in paths.

3 years agocommand-loop: handle errors when calling commands.
John Benediktsson [Mon, 15 Mar 2021 18:36:33 +0000 (11:36 -0700)]
command-loop: handle errors when calling commands.

3 years agotools.deploy.libraries: remove in favor of alien.libraries.finder.
John Benediktsson [Mon, 15 Mar 2021 18:29:24 +0000 (11:29 -0700)]
tools.deploy.libraries: remove in favor of alien.libraries.finder.

Keep the find-library-file behavior in M\ windows find-library*.

3 years agourls: improve remove-dot-segments and test lots of cases.
John Benediktsson [Mon, 15 Mar 2021 18:05:19 +0000 (11:05 -0700)]
urls: improve remove-dot-segments and test lots of cases.

3 years agogemini.cli: store and print link titles.
John Benediktsson [Mon, 15 Mar 2021 16:31:26 +0000 (09:31 -0700)]
gemini.cli: store and print link titles.

3 years agogemini: more style.
John Benediktsson [Mon, 15 Mar 2021 16:31:02 +0000 (09:31 -0700)]
gemini: more style.

3 years agogemini.cli: fix some navigation stack, add gus command.
John Benediktsson [Mon, 15 Mar 2021 05:23:03 +0000 (22:23 -0700)]
gemini.cli: fix some navigation stack, add gus command.

3 years agogemini.cli: improve ls and add stack command.
John Benediktsson [Mon, 15 Mar 2021 00:27:09 +0000 (17:27 -0700)]
gemini.cli: improve ls and add stack command.

3 years agogemini.cli: adding a shell command.
John Benediktsson [Sun, 14 Mar 2021 21:44:04 +0000 (14:44 -0700)]
gemini.cli: adding a shell command.

3 years agocommand-loop: adding abbrevs command.
John Benediktsson [Sun, 14 Mar 2021 21:33:13 +0000 (14:33 -0700)]
command-loop: adding abbrevs command.

3 years agogemini.cli: adding ls, url, root commands.
John Benediktsson [Sun, 14 Mar 2021 21:32:43 +0000 (14:32 -0700)]
gemini.cli: adding ls, url, root commands.

3 years agoalien.libraries.finder.macosx: check file exists and shared cache.
John Benediktsson [Sun, 14 Mar 2021 19:23:56 +0000 (12:23 -0700)]
alien.libraries.finder.macosx: check file exists and shared cache.

3 years agoalien.libraries.finder: use dyld_shared_cache on Big Sur.
John Benediktsson [Sun, 14 Mar 2021 19:08:15 +0000 (12:08 -0700)]
alien.libraries.finder: use dyld_shared_cache on Big Sur.

3 years agocommand-line.loop: moving to extra/command-loop for now.
John Benediktsson [Sun, 14 Mar 2021 15:18:11 +0000 (08:18 -0700)]
command-line.loop: moving to extra/command-loop for now.

3 years agosodium: adding some tags.txt.
John Benediktsson [Sun, 14 Mar 2021 05:02:43 +0000 (21:02 -0800)]
sodium: adding some tags.txt.

3 years agogemini.cli: run less only if file exists.
John Benediktsson [Sun, 14 Mar 2021 04:50:41 +0000 (20:50 -0800)]
gemini.cli: run less only if file exists.

3 years agoRevert "vm: Allow larger 32bit code heaps."
John Benediktsson [Sun, 14 Mar 2021 04:49:14 +0000 (20:49 -0800)]
Revert "vm: Allow larger 32bit code heaps."

This reverts commit 723e0e2c1a3973e990a61fceaa808bb0b7261d6f.

3 years agocompression.zstd: Add zstd support.
Doug Coleman [Sat, 13 Mar 2021 02:00:34 +0000 (20:00 -0600)]
compression.zstd: Add zstd support.

3 years agoRevert "Revert "urls: RFC 3986 (5.2.4. Remove Dot Segments)""
John Benediktsson [Sat, 13 Mar 2021 00:09:32 +0000 (16:09 -0800)]
Revert "Revert "urls: RFC 3986 (5.2.4.  Remove Dot Segments)""

This reverts commit 0263f0b9647b080aa50e146fdc1658e4dd9d8cc3.

3 years agogemini.cli: cleanup using command-line.loop.
John Benediktsson [Sat, 13 Mar 2021 00:06:08 +0000 (16:06 -0800)]
gemini.cli: cleanup using command-line.loop.

3 years agogemini: cleanup pre handling.
John Benediktsson [Sat, 13 Mar 2021 00:05:39 +0000 (16:05 -0800)]
gemini: cleanup pre handling.

3 years agologging.server: use io.directories:?delete-file.
John Benediktsson [Sat, 13 Mar 2021 00:03:57 +0000 (16:03 -0800)]
logging.server: use io.directories:?delete-file.

3 years agocommand-line.loop: adding a generic command interpreter.
John Benediktsson [Sat, 13 Mar 2021 00:01:53 +0000 (16:01 -0800)]
command-line.loop: adding a generic command interpreter.

3 years agogemini.cli: split history and forward/backward stack.
John Benediktsson [Fri, 12 Mar 2021 20:36:53 +0000 (12:36 -0800)]
gemini.cli: split history and forward/backward stack.

3 years agoRevert "urls: RFC 3986 (5.2.4. Remove Dot Segments)"
John Benediktsson [Fri, 12 Mar 2021 20:32:20 +0000 (12:32 -0800)]
Revert "urls: RFC 3986 (5.2.4.  Remove Dot Segments)"

This reverts commit fa01104da7406efe923181921bbcdddc38f9a55c.

3 years agohttp: simpler stack effects, adding a test case.
John Benediktsson [Fri, 12 Mar 2021 16:32:46 +0000 (08:32 -0800)]
http: simpler stack effects, adding a test case.

3 years agohttp: Make parse-set-cookie matching case insensitive
Giftpflanze [Fri, 12 Mar 2021 11:52:55 +0000 (11:52 +0000)]
http: Make parse-set-cookie matching case insensitive

3 years agoFixes apropos header colour bug, Changes help path border
inivekin [Fri, 12 Mar 2021 11:01:29 +0000 (19:01 +0800)]
Fixes apropos header colour bug, Changes help path border

3 years agogemini: formatting.
John Benediktsson [Fri, 12 Mar 2021 07:12:46 +0000 (23:12 -0800)]
gemini: formatting.

3 years agogemini: wrap at 78 chars.
John Benediktsson [Fri, 12 Mar 2021 07:09:17 +0000 (23:09 -0800)]
gemini: wrap at 78 chars.

3 years agogemini.cli: add help, open non-gemini urls in webbrowser.
John Benediktsson [Fri, 12 Mar 2021 07:06:34 +0000 (23:06 -0800)]
gemini.cli: add help, open non-gemini urls in webbrowser.

3 years agogemini: parameterize gemini-pad.
John Benediktsson [Fri, 12 Mar 2021 06:37:13 +0000 (22:37 -0800)]
gemini: parameterize gemini-pad.

3 years agogemini: some fixes to support the CLI version.
John Benediktsson [Fri, 12 Mar 2021 05:29:44 +0000 (21:29 -0800)]
gemini: some fixes to support the CLI version.

3 years agogemini.cli: adding a command line client.
John Benediktsson [Fri, 12 Mar 2021 05:24:58 +0000 (21:24 -0800)]
gemini.cli: adding a command line client.

3 years agogemini: fix latin1 typo.
John Benediktsson [Fri, 12 Mar 2021 04:19:57 +0000 (20:19 -0800)]
gemini: fix latin1 typo.

3 years agourls: RFC 3986 (5.2.4. Remove Dot Segments)
John Benediktsson [Fri, 12 Mar 2021 04:19:14 +0000 (20:19 -0800)]
urls: RFC 3986 (5.2.4.  Remove Dot Segments)

3 years agogemini: toggle on pre tags.
John Benediktsson [Fri, 12 Mar 2021 03:29:18 +0000 (19:29 -0800)]
gemini: toggle on pre tags.

3 years agogemini: pass more test cases.
John Benediktsson [Fri, 12 Mar 2021 03:28:11 +0000 (19:28 -0800)]
gemini: pass more test cases.

3 years agogemini: add support for redirects and text encodings.
John Benediktsson [Fri, 12 Mar 2021 01:50:15 +0000 (17:50 -0800)]
gemini: add support for redirects and text encodings.

3 years agogemini: support images.
John Benediktsson [Thu, 11 Mar 2021 23:56:33 +0000 (15:56 -0800)]
gemini: support images.

3 years agogemini: some fixes for preformatted blocks.
John Benediktsson [Thu, 11 Mar 2021 23:40:57 +0000 (15:40 -0800)]
gemini: some fixes for preformatted blocks.

3 years agogemini: fix path handling.
John Benediktsson [Thu, 11 Mar 2021 23:22:58 +0000 (15:22 -0800)]
gemini: fix path handling.

3 years agogemini.ui: a simple UI for gemini browsing.
John Benediktsson [Thu, 11 Mar 2021 23:19:43 +0000 (15:19 -0800)]
gemini.ui: a simple UI for gemini browsing.

3 years agogemini: print links.
John Benediktsson [Thu, 11 Mar 2021 23:19:22 +0000 (15:19 -0800)]
gemini: print links.

3 years agogemini: client for Project gemini.
John Benediktsson [Thu, 11 Mar 2021 22:20:58 +0000 (14:20 -0800)]
gemini: client for Project gemini.

3 years agomisc/vim: rename factorStackEffect to factorEffect.
John Benediktsson [Thu, 11 Mar 2021 20:42:09 +0000 (12:42 -0800)]
misc/vim: rename factorStackEffect to factorEffect.

3 years agomisc/vim: add :> locals syntax.
John Benediktsson [Thu, 11 Mar 2021 20:35:07 +0000 (12:35 -0800)]
misc/vim: add :> locals syntax.