]>
gitweb.factorcode.org Git - factor.git/log
Doug Coleman [Fri, 9 Apr 2021 14:23:28 +0000 (09:23 -0500)]
base64: Add a version of url-base64 that trims trailing === for jwt.
See https://tools.ietf.org/html/rfc7519
and
https://stackoverflow.com/questions/
49082844 /how-could-firebase-send-a-jwt-token-which-payload-contains-an-underscore-charact
Doug Coleman [Thu, 8 Apr 2021 00:23:06 +0000 (19:23 -0500)]
cursors2: yet another stab at immutable cursors
John Benediktsson [Mon, 5 Apr 2021 03:57:07 +0000 (20:57 -0700)]
interval-sets: changed tests and docs for interval-in?.
John Benediktsson [Mon, 5 Apr 2021 03:26:57 +0000 (20:26 -0700)]
interval-sets: rename in? to interval-in?.
Previously this word conflicted with sets:in?.
John Benediktsson [Mon, 5 Apr 2021 03:18:22 +0000 (20:18 -0700)]
basis: fix @ typo.
John Benediktsson [Mon, 5 Apr 2021 03:17:46 +0000 (20:17 -0700)]
basis: remove calls on combinators.extras for now.
timor [Sun, 4 Apr 2021 14:02:42 +0000 (16:02 +0200)]
math.intervals: Add [0,b] and [0,b), use in a couple of places
This replicates the `[0,b]` and `[0,b)` words from `math.ranges`.
John Benediktsson [Sun, 4 Apr 2021 14:10:25 +0000 (07:10 -0700)]
combinators.smart: simpler smart-loop definition.
John Benediktsson [Sun, 4 Apr 2021 04:31:16 +0000 (21:31 -0700)]
http2.hpack: fix help-lint.
David Mindlin [Sun, 4 Apr 2021 04:29:12 +0000 (21:29 -0700)]
HPack for HTTP/2 (#2447)
* created framework for hpack
* Started working on decoding hpack.
* Creating helper words for hpack decoding.
* Continued work on hpack, finished static table.
* Small updates to hpack
* Some rearranging and implementing string and integer decoding.
* Refactored the integer method, and added some of the gluing together
code for decoding hpack.
* Added some tests for the string and integer decoding of hpack.
* Added some more tests for hpack decoding
* Added dynamic-table managment to hpack decoding.
* Added some errors for hpack decoding
* Added an additional test from the rfc for hpack decoding.
* ain function for hpack encode, trying to make similar to decode
* Quick fix to hpack-decode and clean up for the test file.
* Compilation changes
* Changed to use utf 8 decoding for strings in hpack decoding.
* Renamed decode-context to hpack-context, and moved all the definitions
to one place.
* removed unnecessary function
* Created hpack string and integer encoding.
Also minor optimization to integer decoding.
* Updated default hpack dynamic table max size.
* Fixed off by 1 error in indexing, and changed the output object to an
array.
* Added some large tests for the hpack-decode word.
* Small refactoring of hpack decode-string.
* working on encode
* changed encode stack effect
* Minor update to hpack integer encoding for consistent output data
structure
* Added tests for hpack encoding, including integers, strings, individual
fields, and entire header block sequences.
Integers and strings checks the outputed byte array
individual fields and header lists checks by decoding and ensuring the
same result out, and checking that the contexts (dynamic tables) are the
same.
Individual fields also check that the entire block is consumed.
* main encode function
* table searching
* Some minor rewrites for better style in hpack code.
* Some more code edits for style to hpack context handling.
* Added huffman compression decoding for strings in hpack.
The implementation may not be the fastest, but it works.
* Implemented huffman encoding for hpack strings
* working on encode
* completed hpack encode
* Some improvements to hpack huffman decoding for style and performance
improvements.
* Cleaned up hpack encoding and decoding.
* Added new version of decoding an hpack encoded integer.
* Minor changes to decoding huffman encoded strings so the file compiles
correctly on first load.
* Minor change to hpack huffman compression.
* Added some light documentation for the hpack vocabulary.
Co-authored-by: David Flores <dflores0818@gmail.com>
John Benediktsson [Sun, 4 Apr 2021 04:01:56 +0000 (21:01 -0700)]
combinators.extras: move back to extra/
John Benediktsson [Sun, 4 Apr 2021 04:00:55 +0000 (21:00 -0700)]
basis/extra: using smart-loop.
John Benediktsson [Sun, 4 Apr 2021 04:00:41 +0000 (21:00 -0700)]
combinators.smart: adding smart-loop.
Doug Coleman [Fri, 2 Apr 2021 15:03:42 +0000 (10:03 -0500)]
combinators.extras: move to basis
Doug Coleman [Thu, 1 Apr 2021 04:00:41 +0000 (23:00 -0500)]
retries: Swap the order of args to retries combinator
[ "/bin" XATTR_NOFOLLOW swapd list-xattrs-impl ]
<immediate> { 2 4 100000 } retries .
[ 2 = [ "not 2!" throw ] unless ]
10 20 <random-wait> 3 retries
looks better than
[ 2 = [ "not 2!" throw ] unless ]
3 10 20 <random-wait> retries ! old
Doug Coleman [Thu, 1 Apr 2021 03:49:39 +0000 (22:49 -0500)]
unicode.breaks: Another fix for bootstrap
Doug Coleman [Thu, 1 Apr 2021 03:39:48 +0000 (22:39 -0500)]
unicode.breaks: Compile word before using with literal syntax
Doug Coleman [Thu, 1 Apr 2021 03:18:19 +0000 (22:18 -0500)]
io.streams.counting: Add a stream type that counts bytes.
I would like for this to be more composable and output the counts in a better way.
Doug Coleman [Thu, 1 Apr 2021 03:13:02 +0000 (22:13 -0500)]
unix.xattrs: Add basic support for xaddrs on macOS
Doug Coleman [Thu, 1 Apr 2021 03:12:44 +0000 (22:12 -0500)]
retries: Add a retry vocabulary that tries n times or each element of a sequence and collects errors
Doug Coleman [Thu, 1 Apr 2021 02:50:26 +0000 (21:50 -0500)]
combinators.extras: Add loop1 which outputs an object
Doug Coleman [Thu, 1 Apr 2021 02:48:41 +0000 (21:48 -0500)]
io.files.acls: Fix bitrot in acls and add a test to ensure it doesn't fail.
Doug Coleman [Thu, 1 Apr 2021 02:41:55 +0000 (21:41 -0500)]
combinators.extra: Add with-output-variable
John Benediktsson [Wed, 31 Mar 2021 20:59:08 +0000 (13:59 -0700)]
unicode.script: need to use literals.
John Benediktsson [Wed, 31 Mar 2021 20:39:16 +0000 (13:39 -0700)]
unicode: cleanup by using literals and CONSTANT:.
John Benediktsson [Wed, 31 Mar 2021 15:37:07 +0000 (08:37 -0700)]
documents.elements: more tests.
John Benediktsson [Wed, 31 Mar 2021 03:52:31 +0000 (20:52 -0700)]
Revert "ui.gadgets.editors: adding Ctrl-o for insert-newline-after cursor."
This reverts commit
4e40935ab906323e3e4533940a3233bd4e1867e8 .
John Benediktsson [Wed, 31 Mar 2021 03:38:56 +0000 (20:38 -0700)]
ui.gestures: action-modifier changed to M+ (but still Cmd) on macOS.
John Benediktsson [Wed, 31 Mar 2021 03:37:33 +0000 (20:37 -0700)]
ui.tools.listener: remove comment about readline bindings.
John Benediktsson [Wed, 31 Mar 2021 03:36:13 +0000 (20:36 -0700)]
ui.gadgets.editors: adding Ctrl-o for insert-newline-after cursor.
John Benediktsson [Wed, 31 Mar 2021 03:35:35 +0000 (20:35 -0700)]
ui.tools.operations: switch back to previous (non-shift) keybindings.
John Benediktsson [Wed, 31 Mar 2021 03:34:00 +0000 (20:34 -0700)]
ui.gadgets.editors: remove readline bindings by default.
There were too many conflicts and I want to keep our previous behavior
until we sort it out. Readline bindings can now be configured per
editor-class by calling "readline-bindings".
John Benediktsson [Wed, 31 Mar 2021 03:22:20 +0000 (20:22 -0700)]
ui: minor style tweaks/fixes.
Doug Coleman [Tue, 30 Mar 2021 23:46:43 +0000 (18:46 -0500)]
generic.parser: Show the bad effects in the error.
John Benediktsson [Tue, 30 Mar 2021 22:25:59 +0000 (15:25 -0700)]
ui.gadgets.editors: adding support for paragraph navigation.
John Benediktsson [Tue, 30 Mar 2021 22:25:37 +0000 (15:25 -0700)]
documents.elements: adding support for paragraph navigation.
John Benediktsson [Tue, 30 Mar 2021 22:05:00 +0000 (15:05 -0700)]
Revert "ui.gadgets.panes: only scroll down when we are at the bottom."
This reverts commit
4781ef205cc8d1da91aebcbe3543eaa78c31b217 .
John Benediktsson [Tue, 30 Mar 2021 22:03:35 +0000 (15:03 -0700)]
Revert "ui.gadgets: refactor scroll-at-bottom?."
This reverts commit
ef06b2c54854b1e7d3143dcc10cc4d13dfa2635b .
John Benediktsson [Tue, 30 Mar 2021 20:41:11 +0000 (13:41 -0700)]
ui.gadgets: refactor scroll-at-bottom?.
John Benediktsson [Tue, 30 Mar 2021 19:29:23 +0000 (12:29 -0700)]
ui.gadgets.panes: only scroll down when we are at the bottom.
John Benediktsson [Tue, 30 Mar 2021 19:24:06 +0000 (12:24 -0700)]
ui.gadgets.editors: make readline only on mac for now.
It conflicts on both linux and windows with keybindings like Ctrl-A for
select-all.
John Benediktsson [Tue, 30 Mar 2021 19:23:46 +0000 (12:23 -0700)]
ui.tools: merge mac and other config.
John Benediktsson [Mon, 29 Mar 2021 22:04:25 +0000 (15:04 -0700)]
ui.tools: remove C+q for quit.
John Benediktsson [Mon, 29 Mar 2021 22:01:55 +0000 (15:01 -0700)]
ui.tools: fix toggle-fullscreen on windows/linux.
John Benediktsson [Mon, 29 Mar 2021 21:35:41 +0000 (14:35 -0700)]
ui: better platform-specific keybindings.
Some major changes include on macOS we pass M+ for Command and A+ for
Option, which matches some of the documentation, but now requires us to
have some OS-specific code in the define-command-map usage.
John Benediktsson [Mon, 29 Mar 2021 18:16:15 +0000 (11:16 -0700)]
assocs: making unzip generic to be faster on hashtables.
John Benediktsson [Fri, 26 Mar 2021 14:32:08 +0000 (07:32 -0700)]
ui.gadgets.editors: make readline-bindings only on unix.
For now, we need to think a bit about cross-platform keybindings.
John Benediktsson [Wed, 24 Mar 2021 23:12:02 +0000 (16:12 -0700)]
ui: standard readline style keybindings.
This results in some awkward ui.tools keybindings that now are
Ctrl-Shift, but perhaps we can make those better.
Using A+ for ui.tools would be nice but Cmd-H, Cmd-W, Cmd-M conflict on
MacOS.
John Benediktsson [Wed, 24 Mar 2021 05:22:37 +0000 (22:22 -0700)]
ui.tools.listener: change set-listener-font to modify style-stream.
John Benediktsson [Wed, 24 Mar 2021 04:31:02 +0000 (21:31 -0700)]
ui.tools.listener: cleanup using.
John Benediktsson [Wed, 24 Mar 2021 04:28:17 +0000 (21:28 -0700)]
ui.tools.listener: enable font increase and decrease.
John Benediktsson [Wed, 24 Mar 2021 02:13:04 +0000 (19:13 -0700)]
math.blas.config: use f2c-abi on >= 10.7.
John Benediktsson [Wed, 24 Mar 2021 00:28:50 +0000 (17:28 -0700)]
qtkit: comment them all out.
John Benediktsson [Wed, 24 Mar 2021 00:27:03 +0000 (17:27 -0700)]
Revert "qtkit: disable movie-attributes."
This reverts commit
21a4c6f091278c3b19eb7ed7295d8efec5f03189 .
John Benediktsson [Wed, 24 Mar 2021 00:23:16 +0000 (17:23 -0700)]
qtkit: disable movie-attributes.
Doug Coleman [Tue, 23 Mar 2021 21:57:48 +0000 (14:57 -0700)]
tools.memory: Fix deploy test 23
It complains about ``room.`` not existing, there's probably
another issue to fix here.
Doug Coleman [Tue, 23 Mar 2021 21:51:21 +0000 (14:51 -0700)]
ui.backend.gtk: Trim null bytes for linux copy.
check-string errors if there are any null bytes, but linux will
append \0\0\0\0\0\0 to some long strings from the factor ui
trim them and it copies without loss off data.
John Benediktsson [Tue, 23 Mar 2021 18:53:01 +0000 (11:53 -0700)]
sequences.extras: forgot the -docs for subseq change.
John Benediktsson [Tue, 23 Mar 2021 17:37:31 +0000 (10:37 -0700)]
tools: fix some docs uses.
John Benediktsson [Tue, 23 Mar 2021 16:49:54 +0000 (09:49 -0700)]
sequences.extras: reverse stack effect for start-all/count-subseq.
John Benediktsson [Tue, 23 Mar 2021 16:08:37 +0000 (09:08 -0700)]
splitting: faster split-when.
The old way would accumulate in a vector and then add the last item on
by copying to a new array.
The new way accumulates in a vector including the last item and then
returns an array.
Rudi Grinberg [Tue, 23 Mar 2021 06:22:01 +0000 (23:22 -0700)]
Do not use deprecated marker api
Use xref-push-marker-stack to push find-tag-marker-ring
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
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>
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>
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>
John Benediktsson [Tue, 23 Mar 2021 03:26:54 +0000 (20:26 -0700)]
misc: adding some strings to syntax test.
John Benediktsson [Tue, 23 Mar 2021 03:26:38 +0000 (20:26 -0700)]
extra: using keepd instead of "2keep drop".
John Benediktsson [Tue, 23 Mar 2021 03:26:21 +0000 (20:26 -0700)]
generalizations: cleanup using.
John Benediktsson [Tue, 23 Mar 2021 00:31:51 +0000 (17:31 -0700)]
math.runge-kutta: fix help-lint.
John Benediktsson [Tue, 23 Mar 2021 00:29:25 +0000 (17:29 -0700)]
misc/vim: fix "{ 1 2 3 }" and [[{ 1 2 3 }]].
John Benediktsson [Tue, 23 Mar 2021 00:25:56 +0000 (17:25 -0700)]
math.combinatorics: adding all-unique-permutations.
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.
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
John Benediktsson [Mon, 22 Mar 2021 20:02:59 +0000 (13:02 -0700)]
core/basis: metadata instead of meta-data.
John Benediktsson [Mon, 22 Mar 2021 19:36:17 +0000 (12:36 -0700)]
splitting: simplify (split1).
John Benediktsson [Mon, 22 Mar 2021 04:26:59 +0000 (21:26 -0700)]
locals.rewrite: need to like after [nsequence].
John Benediktsson [Mon, 22 Mar 2021 04:08:15 +0000 (21:08 -0700)]
sequences.generalizations: move to basis from core.
John Benediktsson [Mon, 22 Mar 2021 04:07:53 +0000 (21:07 -0700)]
locals.rewrite: use [nsequence] instead of nsequence.
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.
John Benediktsson [Mon, 22 Mar 2021 02:31:32 +0000 (19:31 -0700)]
locals.parser: use parse-time compilation to make tests run properly.
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.
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
Doug Coleman [Sat, 20 Mar 2021 21:10:29 +0000 (16:10 -0500)]
vocabs.metadata: Show vocab root in listener vocab info row
Doug Coleman [Sun, 21 Mar 2021 18:51:04 +0000 (13:51 -0500)]
factor: map-zip -> zip-with
John Benediktsson [Sat, 20 Mar 2021 15:59:00 +0000 (08:59 -0700)]
core/basis/extras: use zip-with in a few places.
John Benediktsson [Sat, 20 Mar 2021 15:58:14 +0000 (08:58 -0700)]
misc/vim: update core words.
John Benediktsson [Sat, 20 Mar 2021 15:50:40 +0000 (08:50 -0700)]
sequences.extras: remove map-zip in favor of assocs:zip-with.
John Benediktsson [Sat, 20 Mar 2021 15:50:26 +0000 (08:50 -0700)]
basis: use zip-with in a few places.
John Benediktsson [Sat, 20 Mar 2021 15:48:50 +0000 (08:48 -0700)]
assocs: adding zip-with.
John Benediktsson [Sat, 20 Mar 2021 04:12:19 +0000 (21:12 -0700)]
locals.rewrite: need this!
John Benediktsson [Sat, 20 Mar 2021 03:59:22 +0000 (20:59 -0700)]
locals.rewrite: merge all locals.rewrite.* code...
inivekin [Sat, 20 Mar 2021 03:58:32 +0000 (11:58 +0800)]
Fixes complex shuffle words, Fixes complex array instantiation
inivekin [Sat, 20 Mar 2021 02:31:21 +0000 (10:31 +0800)]
Fixes runge-kutta docs example USE errors
inivekin [Sat, 20 Mar 2021 02:23:11 +0000 (10:23 +0800)]
Adds runge-kutta implementation for n dimensions
John Benediktsson [Sat, 20 Mar 2021 03:43:44 +0000 (20:43 -0700)]
locals.parser: adding IN: (needed for first couple tests).
John Benediktsson [Fri, 19 Mar 2021 23:15:46 +0000 (16:15 -0700)]
locals.parser: fix docs.
John Benediktsson [Fri, 19 Mar 2021 23:14:10 +0000 (16:14 -0700)]
locals.parser: cleanup using.
John Benediktsson [Fri, 19 Mar 2021 23:11:09 +0000 (16:11 -0700)]
locals: simplify by merging def and multi-def (again).
John Benediktsson [Fri, 19 Mar 2021 23:02:09 +0000 (16:02 -0700)]
locals.parser: try and remove previously broken syntax.
John Benediktsson [Fri, 19 Mar 2021 22:38:05 +0000 (15:38 -0700)]
locals: use "f <word>".