]> gitweb.factorcode.org Git - factor.git/log
factor.git
2 years agomisc/vim: update vim syntax.
John Benediktsson [Tue, 28 Dec 2021 18:19:31 +0000 (10:19 -0800)]
misc/vim: update vim syntax.

2 years agocore-text: try to fix some retina issues on macos.
John Benediktsson [Tue, 28 Dec 2021 18:17:56 +0000 (10:17 -0800)]
core-text: try to fix some retina issues on macos.

2 years agoui.gadgets.tables: change default row-summary.
John Benediktsson [Tue, 28 Dec 2021 05:59:26 +0000 (21:59 -0800)]
ui.gadgets.tables: change default row-summary.

Should be row-value.

2 years agoui.tools.listener.completion: improve completion for qualified words.
John Benediktsson [Tue, 28 Dec 2021 03:28:44 +0000 (19:28 -0800)]
ui.tools.listener.completion: improve completion for qualified words.

2 years agoui.gadgets.tables: adding row-summary.
John Benediktsson [Tue, 28 Dec 2021 03:27:00 +0000 (19:27 -0800)]
ui.gadgets.tables: adding row-summary.

This allows each table row to provide a "summary" object.

2 years agovocabs.files: only files that exist.
John Benediktsson [Tue, 28 Dec 2021 00:10:12 +0000 (16:10 -0800)]
vocabs.files: only files that exist.

2 years agoulid: Fix same-millisecond calculation
Doug Coleman [Mon, 27 Dec 2021 19:07:59 +0000 (13:07 -0600)]
ulid: Fix same-millisecond calculation

Fixes #2519

2 years agoio.sockets.secure: We are not connected, so let it reconnect
Doug Coleman [Mon, 27 Dec 2021 18:33:01 +0000 (12:33 -0600)]
io.sockets.secure: We are not connected, so let it reconnect

fixes mason's download-my-image and add it to tests

2 years agomath.ranges: deprecate the aliases.
John Benediktsson [Mon, 27 Dec 2021 18:15:41 +0000 (10:15 -0800)]
math.ranges: deprecate the aliases.

2 years agoio: deprecate the aliases.
John Benediktsson [Mon, 27 Dec 2021 18:15:34 +0000 (10:15 -0800)]
io: deprecate the aliases.

2 years agoio.sockets: fix docs for premature-close -> premature-close-error
Doug Coleman [Mon, 27 Dec 2021 17:39:30 +0000 (11:39 -0600)]
io.sockets: fix docs for premature-close -> premature-close-error

2 years agoio.sockets: Check terminated slot before read/write ops, don't throw on regular termi...
Doug Coleman [Mon, 27 Dec 2021 17:30:36 +0000 (11:30 -0600)]
io.sockets: Check terminated slot before read/write ops, don't throw on regular termination

2 years agoio.sockets.secure.openssl: don't throw on normal disconnect
Doug Coleman [Mon, 27 Dec 2021 17:20:27 +0000 (11:20 -0600)]
io.sockets.secure.openssl: don't throw on normal disconnect

2 years agoio.sockets.secure.openssl: If server disconnects us, throw
Doug Coleman [Mon, 27 Dec 2021 17:03:02 +0000 (11:03 -0600)]
io.sockets.secure.openssl: If server disconnects us, throw

2 years agoRevert "Revert "Revert "io.sockets.secure.openssl: undo some error handling that...
Doug Coleman [Mon, 27 Dec 2021 17:11:05 +0000 (11:11 -0600)]
Revert "Revert "Revert "io.sockets.secure.openssl: undo some error handling that makes factorcode hang"""

This reverts commit dad02fe74d8bea7d8782ada82c872e5f79228b4d.

2 years agoRevert "Revert "io.sockets.secure.openssl: undo some error handling that makes factor...
John Benediktsson [Mon, 27 Dec 2021 16:46:28 +0000 (08:46 -0800)]
Revert "Revert "io.sockets.secure.openssl: undo some error handling that makes factorcode hang""

This reverts commit 7a5d1f477e0c422db0cf16cd0501d604238d7f1a.

2 years agoio.socketes.secure.openssl: fix do-ssl-read.
John Benediktsson [Mon, 27 Dec 2021 16:44:47 +0000 (08:44 -0800)]
io.socketes.secure.openssl: fix do-ssl-read.

Same issue as previous fix for do-ssl-write.

2 years agoRevert "io.sockets.secure.openssl: undo some error handling that makes factorcode...
John Benediktsson [Mon, 27 Dec 2021 16:24:37 +0000 (08:24 -0800)]
Revert "io.sockets.secure.openssl: undo some error handling that makes factorcode hang"

This reverts commit 41276b77f381a57a0b4110a92380e666769950f6.

2 years agoio.sockets.secure.openssl: fix do-ssl-write for failed writes.
John Benediktsson [Mon, 27 Dec 2021 16:16:20 +0000 (08:16 -0800)]
io.sockets.secure.openssl: fix do-ssl-write for failed writes.

SSL_write will return <= 0 for errors, but some errors are not
retryable so only consume the buffer if the return value was > 0.

2 years agolong-urls: expand short urls.
John Benediktsson [Mon, 27 Dec 2021 04:17:11 +0000 (20:17 -0800)]
long-urls: expand short urls.

2 years agowebsites.factorcode: Add a discord link that doesn't expire
Doug Coleman [Mon, 27 Dec 2021 01:39:08 +0000 (19:39 -0600)]
websites.factorcode: Add a discord link that doesn't expire

2 years agowindow-controls-demo: Add a demos tag
Doug Coleman [Sun, 26 Dec 2021 21:17:33 +0000 (15:17 -0600)]
window-controls-demo: Add a demos tag

2 years agopunycode: simplify decode-digit add test cases.
John Benediktsson [Sun, 26 Dec 2021 21:13:58 +0000 (13:13 -0800)]
punycode: simplify decode-digit add test cases.

2 years agoeditors.subethaedit: adding SubEthaEdit editor support.
John Benediktsson [Sun, 26 Dec 2021 19:42:02 +0000 (11:42 -0800)]
editors.subethaedit: adding SubEthaEdit editor support.

2 years agomath.matrices: Fix typo
gifti258 [Sun, 26 Dec 2021 19:36:59 +0000 (20:36 +0100)]
math.matrices: Fix typo

2 years agourls.encoding: only split query params on &.
John Benediktsson [Sun, 26 Dec 2021 18:09:38 +0000 (10:09 -0800)]
urls.encoding: only split query params on &.

html5: recommends only &.
html4: for a little while suggested supporting both & and ;

splitting on both caused CVE-2021-23336 to be filed against cpython

2 years agoio.sockets.secure.openssl: undo some error handling that makes factorcode hang
Doug Coleman [Sun, 26 Dec 2021 16:59:09 +0000 (10:59 -0600)]
io.sockets.secure.openssl: undo some error handling that makes factorcode hang

partially reverting some of bfaa2c2cbd6f5123a8f4118a50fac1336d37aa4c

Related to https://github.com/factor/factor/issues/2487

2 years agoui.theme.images: more improvements for retina.
John Benediktsson [Sun, 26 Dec 2021 16:16:42 +0000 (08:16 -0800)]
ui.theme.images: more improvements for retina.

2 years agoui: different approach to 2x images.
John Benediktsson [Sun, 26 Dec 2021 04:51:19 +0000 (20:51 -0800)]
ui: different approach to 2x images.

2 years agoquiz: minor text fixes.
John Benediktsson [Sun, 26 Dec 2021 04:28:37 +0000 (20:28 -0800)]
quiz: minor text fixes.

2 years agoui.gadgets.panes: fix test for smash-line change.
John Benediktsson [Sun, 26 Dec 2021 04:07:49 +0000 (20:07 -0800)]
ui.gadgets.panes: fix test for smash-line change.

2 years agoio: add an alias for lines, for easier backwards compatibility.
John Benediktsson [Sun, 26 Dec 2021 04:00:54 +0000 (20:00 -0800)]
io: add an alias for lines, for easier backwards compatibility.

2 years agoui: some improvements to 2x images.
John Benediktsson [Sun, 26 Dec 2021 04:00:06 +0000 (20:00 -0800)]
ui: some improvements to 2x images.

2 years agogdbm: more refactor.
John Benediktsson [Sat, 25 Dec 2021 22:41:38 +0000 (14:41 -0800)]
gdbm: more refactor.

2 years agogdbm: finish rename.
John Benediktsson [Sat, 25 Dec 2021 22:35:41 +0000 (14:35 -0800)]
gdbm: finish rename.

2 years agoextra: fix a couple wrong file-exists? renames.
John Benediktsson [Sat, 25 Dec 2021 22:13:22 +0000 (14:13 -0800)]
extra: fix a couple wrong file-exists? renames.

2 years agoraylib: fix name of base64 functions.
John Benediktsson [Sat, 25 Dec 2021 21:56:46 +0000 (13:56 -0800)]
raylib: fix name of base64 functions.

2 years agoui.gadgets.panes: use document:?split-lines.
John Benediktsson [Sat, 25 Dec 2021 21:45:24 +0000 (13:45 -0800)]
ui.gadgets.panes: use document:?split-lines.

Instead of splitting:split-lines.

2 years agoui.gadgets.panes: need to style newlines.
John Benediktsson [Sat, 25 Dec 2021 20:46:06 +0000 (12:46 -0800)]
ui.gadgets.panes: need to style newlines.

2 years agohacker-news: add red/green side number colors
Doug Coleman [Sat, 25 Dec 2021 16:31:37 +0000 (10:31 -0600)]
hacker-news: add red/green side number colors

2 years agohacker-news: add christmas color
Doug Coleman [Sat, 25 Dec 2021 16:18:29 +0000 (10:18 -0600)]
hacker-news: add christmas color

2 years agoeditors: rename editor class to match vocab name.
John Benediktsson [Sat, 25 Dec 2021 06:20:56 +0000 (22:20 -0800)]
editors: rename editor class to match vocab name.

2 years agoraylib: fix shader type typo.
John Benediktsson [Sat, 25 Dec 2021 06:12:47 +0000 (22:12 -0800)]
raylib: fix shader type typo.

2 years agoui.gadgets.sliders: fix for dragging when direction not set.
John Benediktsson [Sat, 25 Dec 2021 05:42:23 +0000 (21:42 -0800)]
ui.gadgets.sliders: fix for dragging when direction not set.

2 years agoraylib: use enums in a few functions.
John Benediktsson [Sat, 25 Dec 2021 05:36:17 +0000 (21:36 -0800)]
raylib: use enums in a few functions.

2 years agoraylib: some more fixes for 4.0
John Benediktsson [Sat, 25 Dec 2021 05:19:26 +0000 (21:19 -0800)]
raylib: some more fixes for 4.0

2 years agoraylib: merge the raygui bindings.
John Benediktsson [Sat, 25 Dec 2021 04:57:46 +0000 (20:57 -0800)]
raylib: merge the raygui bindings.

2 years agoraygui: update to Raygui 3.0
John Benediktsson [Sat, 25 Dec 2021 04:42:22 +0000 (20:42 -0800)]
raygui: update to Raygui 3.0

2 years agoraylib: update to Raylib 4.0
John Benediktsson [Sat, 25 Dec 2021 04:41:49 +0000 (20:41 -0800)]
raylib: update to Raylib 4.0

2 years agoui.tools.debugger: scroller to handle long error messages.
John Benediktsson [Fri, 24 Dec 2021 23:07:10 +0000 (15:07 -0800)]
ui.tools.debugger: scroller to handle long error messages.

2 years agomath.intervals: rename "inf,a" words to be "inf,b".
John Benediktsson [Fri, 24 Dec 2021 22:40:27 +0000 (14:40 -0800)]
math.intervals: rename "inf,a" words to be "inf,b".

2 years agowebapps: use wait-for-server to allow MAIN: to work.
John Benediktsson [Fri, 24 Dec 2021 21:52:18 +0000 (13:52 -0800)]
webapps: use wait-for-server to allow MAIN: to work.

2 years agoprettyprint: easier to read callstacks.
John Benediktsson [Fri, 24 Dec 2021 19:01:16 +0000 (11:01 -0800)]
prettyprint: easier to read callstacks.

Don't print Word:, Method:, and Quotation: prefixes.

2 years agobootstrap: add a newline between error message and callstack.
John Benediktsson [Fri, 24 Dec 2021 19:00:56 +0000 (11:00 -0800)]
bootstrap: add a newline between error message and callstack.

2 years agofactor: fix a few renames
Doug Coleman [Fri, 24 Dec 2021 15:23:56 +0000 (09:23 -0600)]
factor: fix a few renames

2 years agoextra: contents -> read-contents
Doug Coleman [Fri, 24 Dec 2021 14:45:03 +0000 (08:45 -0600)]
extra: contents -> read-contents

2 years agomath.parser: check skip characters in one place.
John Benediktsson [Fri, 24 Dec 2021 04:49:10 +0000 (20:49 -0800)]
math.parser: check skip characters in one place.

2 years agotinyvg: whoops.
John Benediktsson [Fri, 24 Dec 2021 04:31:58 +0000 (20:31 -0800)]
tinyvg: whoops.

2 years agomath.parser: allow _ to separate numbers.
John Benediktsson [Fri, 24 Dec 2021 04:29:35 +0000 (20:29 -0800)]
math.parser: allow _ to separate numbers.

Better compatibility with python, java, go, etc.

2 years agounicode.collation: fixes for unicode 14.0
John Benediktsson [Fri, 24 Dec 2021 03:26:55 +0000 (19:26 -0800)]
unicode.collation: fixes for unicode 14.0

2 years agounicode: Upgrade files to Unicode 14.0
Doug Coleman [Fri, 24 Dec 2021 02:10:24 +0000 (20:10 -0600)]
unicode: Upgrade files to Unicode 14.0

To compress tests on Ubuntu:
  zlib-flate -compress=9 < CollationTest_SHIFTED.txt > CollationTest_SHIFTED.txt.zip

2 years agotinyvg: small refactors.
John Benediktsson [Fri, 24 Dec 2021 03:15:32 +0000 (19:15 -0800)]
tinyvg: small refactors.

2 years agovin: adding some tests.
John Benediktsson [Thu, 23 Dec 2021 21:09:37 +0000 (13:09 -0800)]
vin: adding some tests.

2 years agotinyvg: merge tinyvg-header into tinyvg class.
John Benediktsson [Thu, 23 Dec 2021 21:08:01 +0000 (13:08 -0800)]
tinyvg: merge tinyvg-header into tinyvg class.

2 years agotinyvg: simplify by making path just an array of segments.
John Benediktsson [Thu, 23 Dec 2021 20:54:52 +0000 (12:54 -0800)]
tinyvg: simplify by making path just an array of segments.

2 years agotinyvg: adding reader/writer for TinyVG image format.
John Benediktsson [Thu, 23 Dec 2021 20:40:53 +0000 (12:40 -0800)]
tinyvg: adding reader/writer for TinyVG image format.

2 years agoparser: revert private for now, instead of fixing the tests.
John Benediktsson [Wed, 22 Dec 2021 23:45:24 +0000 (15:45 -0800)]
parser: revert private for now, instead of fixing the tests.

2 years agoparser: fix tests.
John Benediktsson [Wed, 22 Dec 2021 21:23:55 +0000 (13:23 -0800)]
parser: fix tests.

2 years agomath.vectors: make these non-generic to fix simd-128 issue.
John Benediktsson [Wed, 22 Dec 2021 20:15:09 +0000 (12:15 -0800)]
math.vectors: make these non-generic to fix simd-128 issue.

2 years agol2-norm -> norm in the rest of the places
Cat Stevens [Tue, 10 Mar 2020 00:09:39 +0000 (20:09 -0400)]
l2-norm -> norm in the rest of the places

2 years agomath.vectors,matrices: l2-norm -> aliased as norm (?) and help updated
Cat Stevens [Tue, 10 Mar 2020 00:02:07 +0000 (20:02 -0400)]
math.vectors,matrices: l2-norm -> aliased as norm (?) and help updated

2 years agovnorm rename
Cat Stevens [Sun, 1 Mar 2020 20:30:00 +0000 (15:30 -0500)]
vnorm rename

2 years agoparser: more private words.
John Benediktsson [Wed, 22 Dec 2021 20:04:37 +0000 (12:04 -0800)]
parser: more private words.

2 years agoeffects.parser: don't use ?execute-parsing here.
John Benediktsson [Wed, 22 Dec 2021 05:41:23 +0000 (21:41 -0800)]
effects.parser: don't use ?execute-parsing here.

2 years agoparser: make some words private.
John Benediktsson [Wed, 22 Dec 2021 05:40:42 +0000 (21:40 -0800)]
parser: make some words private.

2 years agomisc cleanup.
John Benediktsson [Wed, 22 Dec 2021 03:15:53 +0000 (19:15 -0800)]
misc cleanup.

2 years agojson.reader: less declare/unsafe.
John Benediktsson [Wed, 22 Dec 2021 03:15:44 +0000 (19:15 -0800)]
json.reader: less declare/unsafe.

2 years agohelp.lint.coverage: fix coverage on predicate? words
Cat Stevens [Tue, 21 Dec 2021 21:50:17 +0000 (16:50 -0500)]
help.lint.coverage: fix coverage on predicate? words

fix a regression for `predicate?` words revealed by uses of
  `"help" word-prop` over `help:word-help`.

`"help" word-prop` is `f` for `predicate?` words like `array?` and
  `zero-matrix?`. a poorly-written comparison in
  `M\ word <word-help-coverage>` meant that result was effectively
  compared to an empty array { }, instead of just being tested for
  emptiness.

additionally, `(word-help)` is introduced to revive the old behaviour of
  `help:word-help` before the move to split `$inputs` and `$outputs` in
  Help rendering. `(word-help)` provides the actual help content for
  words where `"help" word-prop` is `f`, by calling `word-help*`.

2 years agosyntax: Add REUSE: word to easily USE: but reload.
Doug Coleman [Tue, 21 Dec 2021 21:27:18 +0000 (15:27 -0600)]
syntax: Add REUSE: word to easily USE: but reload.

My use case is specifically for load-all with editors. The last
editor on macOS is Xcode and I use vscode, and once you have
``USE: editors.visual-studio-code`` then the next time it's a no-op.

``REUSE: editors.visual-studio-code`` is the same thing but with
two extra characters, as opposed to ``"editors.visual-studio-code" reload``
which requires a lot more typing.

We could have ``EDIT:``, ``EDIT-DOCS:``, ``EDIT-TESTS:`` etc if this REUSE:
word is successful.

2 years agocore: Add auto-use to syntax and add -ea parameter to factor command line.
Doug Coleman [Tue, 21 Dec 2021 21:15:15 +0000 (15:15 -0600)]
core: Add auto-use to syntax and add -ea parameter to factor command line.

./factor -ea="..." will now auto-use

Both of these now work:
./factor -ea="1 1 + ."
./factor -e="auto-use 1 1 + ."

2 years agocompiler.tree.propagation: Eliminate redundant resize calls
timor [Fri, 30 Jul 2021 00:01:50 +0000 (02:01 +0200)]
compiler.tree.propagation: Eliminate redundant resize calls

Resizing an array or other primitive sequence to the exisiting length is a no-op.

2 years agocompiler.tree.propagation: Propagate length slot of primitive resize calls
timor [Thu, 29 Jul 2021 21:19:47 +0000 (23:19 +0200)]
compiler.tree.propagation: Propagate length slot of primitive resize calls

2 years agoextra: Fix test/imports
Doug Coleman [Tue, 21 Dec 2021 14:46:43 +0000 (08:46 -0600)]
extra: Fix test/imports

2 years agofactor: Update split-lines tests, fix other tests
Doug Coleman [Tue, 21 Dec 2021 05:15:39 +0000 (23:15 -0600)]
factor: Update split-lines tests, fix other tests

2 years agocore: fix sequences test
Doug Coleman [Tue, 21 Dec 2021 02:49:41 +0000 (20:49 -0600)]
core: fix sequences test

Test join not join-words

2 years agoBenchmark: fix using
Doug Coleman [Tue, 21 Dec 2021 02:15:25 +0000 (20:15 -0600)]
Benchmark: fix using

2 years agofactor: use more split/join words
Doug Coleman [Tue, 21 Dec 2021 00:01:12 +0000 (18:01 -0600)]
factor: use more split/join words

2 years agofactor: fix using on windows.
Doug Coleman [Tue, 21 Dec 2021 05:38:29 +0000 (23:38 -0600)]
factor: fix using on windows.

2 years agofactor: qualifying blank?, random fixes, renamed test file
Doug Coleman [Mon, 20 Dec 2021 23:26:05 +0000 (17:26 -0600)]
factor: qualifying blank?, random fixes, renamed test file

2 years agoextra: fix using
Doug Coleman [Mon, 20 Dec 2021 22:31:33 +0000 (16:31 -0600)]
extra: fix using

2 years agofactor: fix using
Doug Coleman [Mon, 20 Dec 2021 22:29:53 +0000 (16:29 -0600)]
factor: fix using

2 years agofactor: fix using
Doug Coleman [Mon, 20 Dec 2021 22:26:04 +0000 (16:26 -0600)]
factor: fix using

2 years agofactor: fix a few more errors
Doug Coleman [Mon, 20 Dec 2021 22:24:48 +0000 (16:24 -0600)]
factor: fix a few more errors

2 years agofactor: words -> split-words, lines -> split-lines, fix errors
Doug Coleman [Mon, 20 Dec 2021 22:20:00 +0000 (16:20 -0600)]
factor: words -> split-words, lines -> split-lines, fix errors

2 years agofactor: fix some lines -> read-lines
Doug Coleman [Mon, 20 Dec 2021 21:30:53 +0000 (15:30 -0600)]
factor: fix some lines -> read-lines

2 years agooauth1: Don't use assocs.extras in basis/
Doug Coleman [Mon, 20 Dec 2021 21:19:05 +0000 (15:19 -0600)]
oauth1: Don't use assocs.extras in basis/

2 years agoio.files: exists? -> file-exists? and rename primitive.
Doug Coleman [Mon, 20 Dec 2021 21:06:16 +0000 (15:06 -0600)]
io.files: exists? -> file-exists? and rename primitive.

Fixes #2507

2 years agocore: Add words/unwords/unwords-as and use them.
Doug Coleman [Mon, 20 Dec 2021 20:54:15 +0000 (14:54 -0600)]
core: Add words/unwords/unwords-as and use them.

Related to #2140

2 years agocore: Change lines -> read-lines, contents -> read-contents, string-lines -> lines
Doug Coleman [Mon, 20 Dec 2021 20:12:32 +0000 (14:12 -0600)]
core: Change lines -> read-lines, contents -> read-contents, string-lines -> lines

Add unlines word.

Related to #2140

2 years agoopenssl.libssl: Add SSL_write_ex function
Doug Coleman [Mon, 20 Dec 2021 19:25:35 +0000 (13:25 -0600)]
openssl.libssl: Add SSL_write_ex function

Related to #2508