]> gitweb.factorcode.org Git - factor.git/log
factor.git
2 years agocolors: merge colors.constants and colors.hex.
John Benediktsson [Sat, 1 Jan 2022 23:52:34 +0000 (15:52 -0800)]
colors: merge colors.constants and colors.hex.

2 years agocolors.hex: better prettyprinting of HEXCOLOR: colors.
John Benediktsson [Sat, 1 Jan 2022 20:34:11 +0000 (12:34 -0800)]
colors.hex: better prettyprinting of HEXCOLOR: colors.

2 years agosplitting.extras: improve split-harvest.
John Benediktsson [Sat, 1 Jan 2022 20:18:52 +0000 (12:18 -0800)]
splitting.extras: improve split-harvest.

2 years agocolors.constants: better prettyprinting of COLOR: syntax.
John Benediktsson [Sat, 1 Jan 2022 18:08:43 +0000 (10:08 -0800)]
colors.constants: better prettyprinting of COLOR: syntax.

2 years agojamshred.player: use COLOR: constant.
John Benediktsson [Sat, 1 Jan 2022 18:04:18 +0000 (10:04 -0800)]
jamshred.player: use COLOR: constant.

2 years agoui.theme.switching: adding concept of default-theme?.
John Benediktsson [Sat, 1 Jan 2022 04:19:26 +0000 (20:19 -0800)]
ui.theme.switching: adding concept of default-theme?.

If the default-theme? flag is false it means someone set a theme
manually. We can use this to not override when the system appearance
changes.

2 years agoaudio.wav: cleanup using.
John Benediktsson [Sat, 1 Jan 2022 04:16:27 +0000 (20:16 -0800)]
audio.wav: cleanup using.

2 years agoui.theme.switching: fix help-path-style foreground.
John Benediktsson [Sat, 1 Jan 2022 02:23:54 +0000 (18:23 -0800)]
ui.theme.switching: fix help-path-style foreground.

2 years agoui.theme: change dark mode backgrounds to match macos better.
John Benediktsson [Sat, 1 Jan 2022 01:56:07 +0000 (17:56 -0800)]
ui.theme: change dark mode backgrounds to match macos better.

2 years agoui.tools.completion: better ui.theme.
John Benediktsson [Sat, 1 Jan 2022 01:55:50 +0000 (17:55 -0800)]
ui.tools.completion: better ui.theme.

2 years agoui.theme.switching: reset ui.gadgets.panes fonts.
John Benediktsson [Sat, 1 Jan 2022 01:55:10 +0000 (17:55 -0800)]
ui.theme.switching: reset ui.gadgets.panes fonts.

2 years agovocabs.refresh.monitor: rename words to do what they say
Doug Coleman [Fri, 31 Dec 2021 05:02:33 +0000 (23:02 -0600)]
vocabs.refresh.monitor: rename words to do what they say

2 years agovocabs.platforms: Add inverse platform sections
Doug Coleman [Fri, 31 Dec 2021 03:41:55 +0000 (21:41 -0600)]
vocabs.platforms: Add inverse platform sections

<UNIX
<!MACOSX
!MACOSX>
<MACOSX
MACOSX>
<LINUX
LINUX>
UNIX>

2 years agoui: disable default-theme? for now.
John Benediktsson [Fri, 31 Dec 2021 17:08:22 +0000 (09:08 -0800)]
ui: disable default-theme? for now.

2 years agoui.backend.cocoa: change theme automatically if we haven't set it yet.
John Benediktsson [Fri, 31 Dec 2021 06:29:31 +0000 (22:29 -0800)]
ui.backend.cocoa: change theme automatically if we haven't set it yet.

2 years agoui.theme: adding a theme-protocol.
John Benediktsson [Fri, 31 Dec 2021 06:29:20 +0000 (22:29 -0800)]
ui.theme: adding a theme-protocol.

2 years agoui.theme.switching: track whether we've changed the theme.
John Benediktsson [Fri, 31 Dec 2021 06:29:05 +0000 (22:29 -0800)]
ui.theme.switching: track whether we've changed the theme.

2 years agoui.backend.cocoa: set the light/dark theme on startup and when changed.
John Benediktsson [Fri, 31 Dec 2021 04:40:38 +0000 (20:40 -0800)]
ui.backend.cocoa: set the light/dark theme on startup and when changed.

2 years agoui.backend.cocoa.views: add light/dark mode switching.
John Benediktsson [Fri, 31 Dec 2021 04:20:37 +0000 (20:20 -0800)]
ui.backend.cocoa.views: add light/dark mode switching.

2 years agovocabs.parser: change unuse-vocab to remove other forms.
John Benediktsson [Fri, 31 Dec 2021 03:48:00 +0000 (19:48 -0800)]
vocabs.parser: change unuse-vocab to remove other forms.

2 years agoui.tools.listener: change use-if-necessary to use add-words-from.
John Benediktsson [Fri, 31 Dec 2021 03:44:19 +0000 (19:44 -0800)]
ui.tools.listener: change use-if-necessary to use add-words-from.

2 years agoio.monitors.macosx: enable per-file monitoring.
John Benediktsson [Fri, 31 Dec 2021 03:37:12 +0000 (19:37 -0800)]
io.monitors.macosx: enable per-file monitoring.

2 years agoio.monitors: improve tests.
John Benediktsson [Fri, 31 Dec 2021 03:37:01 +0000 (19:37 -0800)]
io.monitors: improve tests.

2 years agoui.tools.listener.completion: fix accept-completion-hook.
John Benediktsson [Thu, 30 Dec 2021 23:33:55 +0000 (15:33 -0800)]
ui.tools.listener.completion: fix accept-completion-hook.

2 years agoui.tools.listener: Don't double print fixups
Doug Coleman [Thu, 30 Dec 2021 21:51:59 +0000 (15:51 -0600)]
ui.tools.listener: Don't double print fixups

2 years agocalendar: Rename internal word, add days-until
Doug Coleman [Thu, 30 Dec 2021 20:42:23 +0000 (14:42 -0600)]
calendar: Rename internal word, add days-until

Fixes #752

2 years agocore: update using lists
Doug Coleman [Thu, 30 Dec 2021 20:22:33 +0000 (14:22 -0600)]
core: update using lists

2 years agofactor: Final rename of ranges words and fix up some using lists
Doug Coleman [Thu, 30 Dec 2021 19:48:08 +0000 (13:48 -0600)]
factor: Final rename of ranges words and fix up some using lists

2 years agocore: Remove deprecated words in favor of fixups.
Doug Coleman [Thu, 30 Dec 2021 19:02:17 +0000 (13:02 -0600)]
core: Remove deprecated words in favor of fixups.

2 years agofactor: Move math.ranges => ranges.
Doug Coleman [Thu, 30 Dec 2021 18:57:09 +0000 (12:57 -0600)]
factor: Move math.ranges => ranges.

Fixups will help people migrate their code.

2 years agoui: trim even more using lists
Doug Coleman [Thu, 30 Dec 2021 18:49:51 +0000 (12:49 -0600)]
ui: trim even more using lists

2 years agohelp.handbook: fix link to endian.
John Benediktsson [Thu, 30 Dec 2021 18:44:58 +0000 (10:44 -0800)]
help.handbook: fix link to endian.

2 years agoui: trim using lists
Doug Coleman [Thu, 30 Dec 2021 18:11:41 +0000 (12:11 -0600)]
ui: trim using lists

2 years agobasis: fix bootstrap.
Doug Coleman [Thu, 30 Dec 2021 18:05:35 +0000 (12:05 -0600)]
basis: fix bootstrap.

fixups can't depend on formatting because of circularity

2 years agodebugger: Add support for command line debugger.
Doug Coleman [Thu, 30 Dec 2021 17:09:11 +0000 (11:09 -0600)]
debugger: Add support for command line debugger.

s/no-op-action/no-op-restart/ and move to continuations

2 years agofixups: add missing range renames, delete private word, and lines typo
Doug Coleman [Thu, 30 Dec 2021 17:04:23 +0000 (11:04 -0600)]
fixups: add missing range renames, delete private word, and lines typo

2 years agofixups: integrate with restarts
Doug Coleman [Thu, 30 Dec 2021 16:31:46 +0000 (10:31 -0600)]
fixups: integrate with restarts

Right now, a fixup is just a message that says some vocabulary
or word got renamed.

2 years agofixups: change message, handle errors
Doug Coleman [Thu, 30 Dec 2021 16:30:59 +0000 (10:30 -0600)]
fixups: change message, handle errors

2 years agoendian: fix help-lint.
John Benediktsson [Thu, 30 Dec 2021 16:04:08 +0000 (08:04 -0800)]
endian: fix help-lint.

2 years agopack: fix signature for signed-endian>.
John Benediktsson [Thu, 30 Dec 2021 15:58:31 +0000 (07:58 -0800)]
pack: fix signature for signed-endian>.

2 years agofixups: Initial commit of a code migration feature.
Doug Coleman [Thu, 30 Dec 2021 05:14:40 +0000 (23:14 -0600)]
fixups: Initial commit of a code migration feature.

Fixups inspect an error thrown and eventually offer restarts or
messages that something changed and in which version of Factor.

For instance, if we renamed `lines` to `read-lines` in .99,
the restart for `lines not found` will offer that it was
renamed to `read-lines`.

2 years agoendian: adding 1 byte versions.
John Benediktsson [Thu, 30 Dec 2021 07:05:14 +0000 (23:05 -0800)]
endian: adding 1 byte versions.

2 years agoendian: fix hints.
John Benediktsson [Thu, 30 Dec 2021 06:51:30 +0000 (22:51 -0800)]
endian: fix hints.

2 years agoshapefiles: fix using.
John Benediktsson [Thu, 30 Dec 2021 06:06:43 +0000 (22:06 -0800)]
shapefiles: fix using.

2 years agochecksums.crc32: fix comment.
John Benediktsson [Thu, 30 Dec 2021 05:43:46 +0000 (21:43 -0800)]
checksums.crc32: fix comment.

2 years agochecksums: fix ambiguity.
John Benediktsson [Thu, 30 Dec 2021 05:38:30 +0000 (21:38 -0800)]
checksums: fix ambiguity.

2 years agoendian: replaces io.binary and io.binary.fast.
John Benediktsson [Thu, 30 Dec 2021 05:21:44 +0000 (21:21 -0800)]
endian: replaces io.binary and io.binary.fast.

2 years agobuild.sh: Don't copy the factor.image to factor.image.fresh if bootstrap fails
Doug Coleman [Thu, 30 Dec 2021 04:42:48 +0000 (22:42 -0600)]
build.sh: Don't copy the factor.image to factor.image.fresh if bootstrap fails

2 years agoalien.c-types: Fix using list from bad commit
Doug Coleman [Thu, 30 Dec 2021 04:16:08 +0000 (22:16 -0600)]
alien.c-types: Fix using list from bad commit

2 years agoalien.c-types: Add s8/u8/s16/u16/s32/u32/s64/u64/isize/usize/f32/f64
Doug Coleman [Wed, 29 Dec 2021 01:53:20 +0000 (19:53 -0600)]
alien.c-types: Add s8/u8/s16/u16/s32/u32/s64/u64/isize/usize/f32/f64

2 years ago99-bottles: i got 99 bottles from 99..1
Doug Coleman [Thu, 30 Dec 2021 03:40:06 +0000 (21:40 -0600)]
99-bottles: i got 99 bottles from 99..1

2 years agoranges: maybe last rename, remove experimental .. and ... parsing words for ranges
Doug Coleman [Thu, 30 Dec 2021 03:29:38 +0000 (21:29 -0600)]
ranges: maybe last rename, remove experimental .. and ... parsing words for ranges

2 years agomath.extras: more new range syntax
Doug Coleman [Thu, 30 Dec 2021 03:25:05 +0000 (21:25 -0600)]
math.extras: more new range syntax

2 years agofactor: use new math.ranges syntax in tests and docs
Doug Coleman [Thu, 30 Dec 2021 03:18:16 +0000 (21:18 -0600)]
factor: use new math.ranges syntax in tests and docs

2 years agoraylib: position is point now
Doug Coleman [Thu, 30 Dec 2021 02:55:08 +0000 (20:55 -0600)]
raylib: position is point now

2 years agoextra: a few more math.ranges syntax.
John Benediktsson [Thu, 30 Dec 2021 02:29:22 +0000 (18:29 -0800)]
extra: a few more math.ranges syntax.

2 years agoio.files: deprecate exists?.
John Benediktsson [Thu, 30 Dec 2021 02:28:35 +0000 (18:28 -0800)]
io.files: deprecate exists?.

2 years agocore/basis/extra: use new math.ranges syntax.
John Benediktsson [Thu, 30 Dec 2021 02:26:01 +0000 (18:26 -0800)]
core/basis/extra: use new math.ranges syntax.

2 years agomath.primes.pollard-rho-brent: Use new ranges syntax and remove `do` call
Doug Coleman [Thu, 30 Dec 2021 01:24:49 +0000 (19:24 -0600)]
math.primes.pollard-rho-brent: Use new ranges syntax and remove `do` call

2 years agomath.primes.brute-force: save previous factors algorithm.
John Benediktsson [Wed, 29 Dec 2021 20:11:52 +0000 (12:11 -0800)]
math.primes.brute-force: save previous factors algorithm.

2 years agomath.primes.factors: fully switch over to new hotness.
John Benediktsson [Wed, 29 Dec 2021 20:11:39 +0000 (12:11 -0800)]
math.primes.factors: fully switch over to new hotness.

2 years agomath/primes/pollard-rho-brent: Add a famous example, but disabled unless we optimize...
Doug Coleman [Wed, 29 Dec 2021 16:24:23 +0000 (10:24 -0600)]
math/primes/pollard-rho-brent: Add a famous example, but disabled unless we optimize this

2 years agomath.primes: Check for prime before running pollard-rho-brent
Doug Coleman [Wed, 29 Dec 2021 16:17:23 +0000 (10:17 -0600)]
math.primes: Check for prime before running pollard-rho-brent

rename brent-factors to pollard-rho-brent

2 years agoio.sockets.secure.openssl: Include weak SSL for compatibility
Doug Coleman [Wed, 29 Dec 2021 16:09:51 +0000 (16:09 +0000)]
io.sockets.secure.openssl: Include weak SSL for compatibility

2 years agomath.primes: Use Pollard-Rho-Brent `brent-factors` as default `factors` word.
Doug Coleman [Wed, 29 Dec 2021 07:42:43 +0000 (01:42 -0600)]
math.primes: Use Pollard-Rho-Brent `brent-factors` as default `factors` word.

Related to #2401

2 years agomath.primes.pollard-rho-brent: Add vocab for finding factors
Doug Coleman [Wed, 29 Dec 2021 06:57:09 +0000 (00:57 -0600)]
math.primes.pollard-rho-brent: Add vocab for finding factors

needs to give up after some number of iterations and needs
integration with the `factors` word

can be optimized

Related to #2401

2 years agohttp: Add headers to hypothetically make things more secure.
Doug Coleman [Wed, 29 Dec 2021 04:04:23 +0000 (04:04 +0000)]
http: Add headers to hypothetically make things more secure.

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

2 years agoio.sockets.secure.openssl: Use recommeneded and secure algos only.
Doug Coleman [Wed, 29 Dec 2021 03:59:03 +0000 (03:59 +0000)]
io.sockets.secure.openssl: Use recommeneded and secure algos only.

2 years agowebsites.factorcode: Add old release downloads
Doug Coleman [Wed, 29 Dec 2021 03:01:37 +0000 (03:01 +0000)]
websites.factorcode: Add old release downloads

Fixes #636

2 years agounix.types.linux: __u64 should be unsigned. fix typo
Doug Coleman [Tue, 28 Dec 2021 22:05:38 +0000 (16:05 -0600)]
unix.types.linux: __u64 should be unsigned. fix typo

2 years agocore-text: draw backgrounds more accurately.
John Benediktsson [Tue, 28 Dec 2021 20:33:35 +0000 (12:33 -0800)]
core-text: draw backgrounds more accurately.

2 years agoui.gadgets.editors: round to gl-scales.
John Benediktsson [Tue, 28 Dec 2021 20:15:44 +0000 (12:15 -0800)]
ui.gadgets.editors: round to gl-scales.

2 years agoopengl: adding some gl-scale math functions.
John Benediktsson [Tue, 28 Dec 2021 20:13:37 +0000 (12:13 -0800)]
opengl: adding some gl-scale math functions.

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