]> gitweb.factorcode.org Git - factor.git/log
factor.git
2 years agomisc/vim: update generated syntax.
John Benediktsson [Wed, 5 Jan 2022 04:10:20 +0000 (20:10 -0800)]
misc/vim: update generated syntax.

2 years agohtml.templates: call-template* should not dispose the streams
John Benediktsson [Wed, 5 Jan 2022 03:43:16 +0000 (19:43 -0800)]
html.templates: call-template* should not dispose the streams

we may want to write to the output-stream after calling the template.

2 years agoio.sockets.secure.openssl: fix when SSL_read returns 0.
Doug Coleman [Wed, 5 Jan 2022 01:27:24 +0000 (19:27 -0600)]
io.sockets.secure.openssl: fix when SSL_read returns 0.

SSL_read returns 0 which is an error condition, and SSL_get_error
returns 6 which is SSL_ERROR_ZERO_RETURN. In this case, we just need
to do nothing instead of setting ``f >>connected`` which would cause
the socket to attempt a reconnect.

test case:
USE: gemini
"gemini://gemini.circumlunar.space" gemini.

Fixes #2540

2 years agobenchmark.fib6: assert result
John Benediktsson [Tue, 4 Jan 2022 23:34:44 +0000 (15:34 -0800)]
benchmark.fib6: assert result

2 years agoui.backend.cocoa.views: leave prepareOpenGL for now
John Benediktsson [Tue, 4 Jan 2022 23:28:31 +0000 (15:28 -0800)]
ui.backend.cocoa.views: leave prepareOpenGL for now

2 years agoui.backend.cocoa.views: fix retina in deploy images
John Benediktsson [Tue, 4 Jan 2022 23:08:59 +0000 (15:08 -0800)]
ui.backend.cocoa.views: fix retina in deploy images

this is a workaround for some kind of issue using globals
in the objc alien callbacks inside of deployed images.

2 years agofixups: add init-namespaces.
John Benediktsson [Tue, 4 Jan 2022 23:07:59 +0000 (15:07 -0800)]
fixups: add init-namespaces.

2 years agonamespaces: rename init-namespaces to init-namestack
John Benediktsson [Tue, 4 Jan 2022 23:07:11 +0000 (15:07 -0800)]
namespaces: rename init-namespaces to init-namestack

2 years agoui.backend.cocoa.views: clear cached-lines in windowDidChangeBackingProperties:
John Benediktsson [Tue, 4 Jan 2022 21:19:20 +0000 (13:19 -0800)]
ui.backend.cocoa.views: clear cached-lines in windowDidChangeBackingProperties:

2 years agoboolean-expr: add some more expression simplification rules
Alexander Ilin [Tue, 4 Jan 2022 00:11:58 +0000 (01:11 +0100)]
boolean-expr: add some more expression simplification rules

Add some tests and comments.

2 years agoboolean-expr: fix the implication implementation
Alexander Ilin [Mon, 3 Jan 2022 21:55:50 +0000 (22:55 +0100)]
boolean-expr: fix the implication implementation

2 years agoui.gadgets.borders: round border-pref-dim
John Benediktsson [Mon, 3 Jan 2022 20:47:10 +0000 (12:47 -0800)]
ui.gadgets.borders: round border-pref-dim

2 years agobasis/extra: use remove in a few places
John Benediktsson [Mon, 3 Jan 2022 20:32:55 +0000 (12:32 -0800)]
basis/extra: use remove in a few places

2 years agocore-text: remove retina? flag in favor of gl-scale-factor
John Benediktsson [Mon, 3 Jan 2022 20:32:03 +0000 (12:32 -0800)]
core-text: remove retina? flag in favor of gl-scale-factor

2 years agoboolean-expr: eliminate double negations
Alexander Ilin [Mon, 3 Jan 2022 20:12:22 +0000 (21:12 +0100)]
boolean-expr: eliminate double negations

2 years agoio.launcher-docs: fix example code to match its description
Alexander Ilin [Wed, 30 Dec 2020 17:18:58 +0000 (18:18 +0100)]
io.launcher-docs: fix example code to match its description

2 years agocontributors: add a contributor alias
Alexander Ilin [Wed, 30 Dec 2020 19:07:39 +0000 (20:07 +0100)]
contributors: add a contributor alias

2 years agohello-unicode: change Russian greeting to informal to match the other ones
Alexander Ilin [Thu, 31 Dec 2020 08:20:15 +0000 (09:20 +0100)]
hello-unicode: change Russian greeting to informal to match the other ones

2 years agototp: add 2022 to the copyright years
Alexander Ilin [Mon, 3 Jan 2022 18:44:42 +0000 (19:44 +0100)]
totp: add 2022 to the copyright years

2 years agototp: ignore spaces in the key string
Alexander Ilin [Sun, 2 Jan 2022 01:53:14 +0000 (02:53 +0100)]
totp: ignore spaces in the key string

2 years agoRevert "Revert "math.parser: faster hex-string conversions with less bounds checking.""
John Benediktsson [Mon, 3 Jan 2022 19:44:25 +0000 (11:44 -0800)]
Revert "Revert "math.parser: faster hex-string conversions with less bounds checking.""

This reverts commit 44d403230f8ccca79c95116ee57504a134e9e502.

2 years agoRevert "math.parser: faster hex-string conversions with less bounds checking."
John Benediktsson [Mon, 3 Jan 2022 18:52:38 +0000 (10:52 -0800)]
Revert "math.parser: faster hex-string conversions with less bounds checking."

This reverts commit 89a8817c170c1539a735fa6f3e6ab302d9674e5a.

2 years agobasis/extra: removing unnecessary IN: statements.
John Benediktsson [Mon, 3 Jan 2022 15:46:06 +0000 (07:46 -0800)]
basis/extra: removing unnecessary IN: statements.

2 years agomath.parser: faster hex-string conversions with less bounds checking.
John Benediktsson [Mon, 3 Jan 2022 15:26:13 +0000 (07:26 -0800)]
math.parser: faster hex-string conversions with less bounds checking.

2 years agocalendar: adding days-since.
John Benediktsson [Mon, 3 Jan 2022 15:24:30 +0000 (07:24 -0800)]
calendar: adding days-since.

2 years agoimages.processing.rotation: fix "separate" typo.
John Benediktsson [Mon, 3 Jan 2022 04:57:12 +0000 (20:57 -0800)]
images.processing.rotation: fix "separate" typo.

2 years agoui.tools.traceback: fix use of error-in-pprint.
John Benediktsson [Mon, 3 Jan 2022 04:53:08 +0000 (20:53 -0800)]
ui.tools.traceback: fix use of error-in-pprint.

2 years agoprettyprint.sections: better pprint-error.
John Benediktsson [Mon, 3 Jan 2022 04:43:06 +0000 (20:43 -0800)]
prettyprint.sections: better pprint-error.

2 years agosyntax: auto-use should set the global namespace so it works with the
Doug Coleman [Mon, 3 Jan 2022 04:41:03 +0000 (22:41 -0600)]
syntax: auto-use should set the global namespace so it works with the
command-line listener

2 years agoprettyprint: change how we trap pprint errors.
John Benediktsson [Mon, 3 Jan 2022 04:39:20 +0000 (20:39 -0800)]
prettyprint: change how we trap pprint errors.

2 years agocommand-line: Clear errors for rc files before running.
Doug Coleman [Mon, 3 Jan 2022 03:54:04 +0000 (21:54 -0600)]
command-line: Clear errors for rc files before running.

Dont' forget to notify observers or else the f3 window will be clear
but the Listener window bottom banner will still show the errors.

Fixes #2537.

2 years agoui.tools: make alt-f4 only close one window at a time.
Doug Coleman [Mon, 3 Jan 2022 03:29:25 +0000 (21:29 -0600)]
ui.tools: make alt-f4 only close one window at a time.

Fixes #2538.

2 years agotools.completion: fix help-lint warning.
John Benediktsson [Mon, 3 Jan 2022 01:53:53 +0000 (17:53 -0800)]
tools.completion: fix help-lint warning.

2 years agoui.tools.listener: no-delay on completion tooltip.
John Benediktsson [Mon, 3 Jan 2022 00:57:52 +0000 (16:57 -0800)]
ui.tools.listener: no-delay on completion tooltip.

2 years agotools.completion: slightly faster.
John Benediktsson [Mon, 3 Jan 2022 00:56:47 +0000 (16:56 -0800)]
tools.completion: slightly faster.

2 years agosplitting.monotonic: slightly faster.
John Benediktsson [Sun, 2 Jan 2022 23:46:06 +0000 (15:46 -0800)]
splitting.monotonic: slightly faster.

2 years agotools.completion: adding some test cases for complete-pathname?.
John Benediktsson [Sun, 2 Jan 2022 20:09:47 +0000 (12:09 -0800)]
tools.completion: adding some test cases for complete-pathname?.

2 years agotools.completion: make P"~/" complete properly.
John Benediktsson [Sun, 2 Jan 2022 19:59:28 +0000 (11:59 -0800)]
tools.completion: make P"~/" complete properly.

2 years agoui.tools.listener.completion: make accept-completion easier to understand.
John Benediktsson [Sun, 2 Jan 2022 19:24:12 +0000 (11:24 -0800)]
ui.tools.listener.completion: make accept-completion easier to understand.

2 years agoui.tools.listener: need to check vocab and manifest not vocab and word.
John Benediktsson [Sun, 2 Jan 2022 19:18:19 +0000 (11:18 -0800)]
ui.tools.listener: need to check vocab and manifest not vocab and word.

2 years agoui.tools.listener.completion: sigh.
John Benediktsson [Sun, 2 Jan 2022 18:30:07 +0000 (10:30 -0800)]
ui.tools.listener.completion: sigh.

2 years agoui.backend.cocoa: disable theme switching temporarily.
John Benediktsson [Sun, 2 Jan 2022 18:05:23 +0000 (10:05 -0800)]
ui.backend.cocoa: disable theme switching temporarily.

(trying to understand a deploy test failure).

2 years agoui.tools.listener.completion: fix completion for P".
John Benediktsson [Sun, 2 Jan 2022 17:21:57 +0000 (09:21 -0800)]
ui.tools.listener.completion: fix completion for P".

2 years agomisc/vim: adding underscore number syntax support.
John Benediktsson [Sun, 2 Jan 2022 17:05:20 +0000 (09:05 -0800)]
misc/vim: adding underscore number syntax support.

2 years agoui.theme: remove delegate protocol for now.
John Benediktsson [Sun, 2 Jan 2022 17:00:50 +0000 (09:00 -0800)]
ui.theme: remove delegate protocol for now.

2 years agolistener: fix call effect names for error-hook.
John Benediktsson [Sun, 2 Jan 2022 16:44:54 +0000 (08:44 -0800)]
listener: fix call effect names for error-hook.

2 years agounix.types.linux: fix using
Doug Coleman [Sun, 2 Jan 2022 15:28:30 +0000 (09:28 -0600)]
unix.types.linux: fix using

2 years agounix: Fix sigset_t for linux/macos.
Doug Coleman [Sun, 2 Jan 2022 06:04:31 +0000 (00:04 -0600)]
unix: Fix sigset_t for linux/macos.

Related to #2535

2 years agofuel/strange-syntax: Add underscore numbers
Doug Coleman [Sun, 2 Jan 2022 02:20:53 +0000 (20:20 -0600)]
fuel/strange-syntax: Add underscore numbers

2 years agounix.process: define the posix_spawnattr_t and sigset_t types
Doug Coleman [Sun, 2 Jan 2022 04:04:30 +0000 (22:04 -0600)]
unix.process: define the posix_spawnattr_t and sigset_t types

We would like these structs to be opaque, but since we have
to pass them into functions for initialization we have to define
them.

Note: sigset_t is a ulong on macOS.

Related to #2535

2 years agomisc/vim: update vim syntax.
John Benediktsson [Sun, 2 Jan 2022 03:35:26 +0000 (19:35 -0800)]
misc/vim: update vim syntax.

2 years agohelp.markup: adding $vocab-subsections which renders nicer.
John Benediktsson [Sun, 2 Jan 2022 03:32:03 +0000 (19:32 -0800)]
help.markup: adding $vocab-subsections which renders nicer.

2 years agoui.backend.cocoa.views: trap and print errors in drawRect.
John Benediktsson [Sun, 2 Jan 2022 03:22:30 +0000 (19:22 -0800)]
ui.backend.cocoa.views: trap and print errors in drawRect.

2 years agocolors: change color class to a mixin.
John Benediktsson [Sun, 2 Jan 2022 01:45:39 +0000 (17:45 -0800)]
colors: change color class to a mixin.

2 years agosyntax: document underscore numbers.
John Benediktsson [Sun, 2 Jan 2022 01:45:07 +0000 (17:45 -0800)]
syntax: document underscore numbers.

2 years agoui.render: use gl-clear.
John Benediktsson [Sun, 2 Jan 2022 00:51:17 +0000 (16:51 -0800)]
ui.render: use gl-clear.

2 years agoRevert "ui.backend.cocoa: disable appearance changing temporarily."
John Benediktsson [Sun, 2 Jan 2022 00:49:46 +0000 (16:49 -0800)]
Revert "ui.backend.cocoa: disable appearance changing temporarily."

This reverts commit 551608a8d7bb5b5d0d7b0357738e79a54efc4754.

2 years agocolors: need to have alpha>>.
John Benediktsson [Sun, 2 Jan 2022 00:49:21 +0000 (16:49 -0800)]
colors: need to have alpha>>.

2 years agoui.backend.cocoa: disable appearance changing temporarily.
John Benediktsson [Sun, 2 Jan 2022 00:35:14 +0000 (16:35 -0800)]
ui.backend.cocoa: disable appearance changing temporarily.

2 years agoendian: adding endian docs.
John Benediktsson [Sat, 1 Jan 2022 23:52:48 +0000 (15:52 -0800)]
endian: adding endian docs.

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>.