]> gitweb.factorcode.org Git - factor.git/log
factor.git
2 years agosequences: fix 1surround, add tests
Doug Coleman [Wed, 12 Jan 2022 03:06:17 +0000 (21:06 -0600)]
sequences: fix 1surround, add tests

2 years agoescape-strings.ui: fix typo
Doug Coleman [Wed, 12 Jan 2022 02:54:19 +0000 (20:54 -0600)]
escape-strings.ui: fix typo

2 years agovm: 64mb for codeheap is not enough for load-all. default to 96mb
Doug Coleman [Wed, 12 Jan 2022 02:31:30 +0000 (20:31 -0600)]
vm: 64mb for codeheap is not enough for load-all. default to 96mb

2 years agobasis: trim using lists
Doug Coleman [Wed, 12 Jan 2022 01:23:26 +0000 (19:23 -0600)]
basis: trim using lists

2 years agosequences: Add 1surround which is dup surround
Doug Coleman [Wed, 12 Jan 2022 01:14:18 +0000 (19:14 -0600)]
sequences: Add 1surround which is dup surround

add >string-list

2 years agocalendar.holidays.us: Add Juneteenth and us-market holidays.
Doug Coleman [Wed, 12 Jan 2022 00:07:38 +0000 (18:07 -0600)]
calendar.holidays.us: Add Juneteenth and us-market holidays.

2 years agohelp.html: one prepend instead of multiple prefix
John Benediktsson [Wed, 12 Jan 2022 01:48:52 +0000 (17:48 -0800)]
help.html: one prepend instead of multiple prefix

2 years agohelp.html: title should be black
John Benediktsson [Wed, 12 Jan 2022 01:46:53 +0000 (17:46 -0800)]
help.html: title should be black

2 years agoRevert "words: use remove-word-prop instead of f set-word-prop."
John Benediktsson [Wed, 12 Jan 2022 01:20:10 +0000 (17:20 -0800)]
Revert "words: use remove-word-prop instead of f set-word-prop."

This reverts commit 258839ae638ce4eabcce6fa8a854c0f457f79f7c.

2 years agoRevert "Revert "compiler.units: always call definition observers at the end of a...
John Benediktsson [Wed, 12 Jan 2022 00:06:01 +0000 (16:06 -0800)]
Revert "Revert "compiler.units: always call definition observers at the end of a compilation unit""

This reverts commit 14139ab4030f73054a4cc77ceb2d7d740caad2ef.

2 years agotools.annotations: simplify M\ word (reset)
John Benediktsson [Tue, 11 Jan 2022 23:59:17 +0000 (15:59 -0800)]
tools.annotations: simplify M\ word (reset)

2 years agohelp.html: trying a lightweight theme
John Benediktsson [Tue, 11 Jan 2022 23:51:39 +0000 (15:51 -0800)]
help.html: trying a lightweight theme

2 years agoRevert "compiler.units: always call definition observers at the end of a compilation...
John Benediktsson [Tue, 11 Jan 2022 23:00:24 +0000 (15:00 -0800)]
Revert "compiler.units: always call definition observers at the end of a compilation unit"

This reverts commit 68200f7703ee4afcd49824e11448c141dd089102.

2 years agohtml.templates: switch back to stream-copy
John Benediktsson [Tue, 11 Jan 2022 22:03:01 +0000 (14:03 -0800)]
html.templates: switch back to stream-copy

2 years agohelp.html: dark gray footer text
John Benediktsson [Tue, 11 Jan 2022 21:44:09 +0000 (13:44 -0800)]
help.html: dark gray footer text

2 years agocolors.hwb: remove unused copied private word
John Benediktsson [Tue, 11 Jan 2022 21:36:17 +0000 (13:36 -0800)]
colors.hwb: remove unused copied private word

2 years agoRevert "colors.hcl: adding HCL color space"
John Benediktsson [Tue, 11 Jan 2022 21:18:41 +0000 (13:18 -0800)]
Revert "colors.hcl: adding HCL color space"

This reverts commit 52ef49cdfe92a4dc36aa5562adc801e364941523.

2 years agoRevert "colors: adding link to colors.hcl docs"
John Benediktsson [Tue, 11 Jan 2022 21:18:38 +0000 (13:18 -0800)]
Revert "colors: adding link to colors.hcl docs"

This reverts commit 57d78de1eca2f90995a07a4b550b4d0bb50ea158.

2 years agostack-checker: infer should work on all callables
John Benediktsson [Tue, 11 Jan 2022 20:08:04 +0000 (12:08 -0800)]
stack-checker: infer should work on all callables

2 years agocolors: adding link to colors.hcl docs
John Benediktsson [Tue, 11 Jan 2022 20:04:45 +0000 (12:04 -0800)]
colors: adding link to colors.hcl docs

2 years agocolors.hcl: adding HCL color space
John Benediktsson [Tue, 11 Jan 2022 20:04:27 +0000 (12:04 -0800)]
colors.hcl: adding HCL color space

2 years agoRevert "fry: adding the ability to fry words to be executed"
John Benediktsson [Tue, 11 Jan 2022 19:25:51 +0000 (11:25 -0800)]
Revert "fry: adding the ability to fry words to be executed"

This reverts commit 141583aebafd4fc21c0fc5227c36fa45a8050dfb.

2 years agostack-checker: implement stack-effect for quotations
John Benediktsson [Tue, 11 Jan 2022 19:22:36 +0000 (11:22 -0800)]
stack-checker: implement stack-effect for quotations

2 years agofry: adding the ability to fry words to be executed
John Benediktsson [Tue, 11 Jan 2022 19:13:54 +0000 (11:13 -0800)]
fry: adding the ability to fry words to be executed

IN: scratchpad \ + '[ 1 2 @ ] .
'[ 1 2 + ]

2 years agosplitting.extras: use locals in (split*)
John Benediktsson [Tue, 11 Jan 2022 18:59:11 +0000 (10:59 -0800)]
splitting.extras: use locals in (split*)

2 years agoio.streams.256color: fix test for rounded colors
John Benediktsson [Tue, 11 Jan 2022 18:42:19 +0000 (10:42 -0800)]
io.streams.256color: fix test for rounded colors

2 years agocolors: adding link to HWB colors
John Benediktsson [Tue, 11 Jan 2022 18:12:57 +0000 (10:12 -0800)]
colors: adding link to HWB colors

2 years agocolors.hwb: adding HWB (Hue, Whiteness, Blackness) colors
John Benediktsson [Tue, 11 Jan 2022 18:12:34 +0000 (10:12 -0800)]
colors.hwb: adding HWB (Hue, Whiteness, Blackness) colors

2 years agowebsites: brighter links
John Benediktsson [Tue, 11 Jan 2022 17:57:06 +0000 (09:57 -0800)]
websites: brighter links

2 years agoui.theme: brighter links.
John Benediktsson [Tue, 11 Jan 2022 17:56:54 +0000 (09:56 -0800)]
ui.theme: brighter links.

2 years agohelp.html: no need to change background-color now
John Benediktsson [Tue, 11 Jan 2022 17:56:15 +0000 (09:56 -0800)]
help.html: no need to change background-color now

2 years agohelp.stylesheet: default title-style page-color to help-header-background
John Benediktsson [Tue, 11 Jan 2022 17:55:53 +0000 (09:55 -0800)]
help.stylesheet: default title-style page-color to help-header-background

2 years agohelp.html: adding a page footer with version-info
John Benediktsson [Tue, 11 Jan 2022 17:39:08 +0000 (09:39 -0800)]
help.html: adding a page footer with version-info

2 years agocommand-line.startup: print more version info.
John Benediktsson [Tue, 11 Jan 2022 16:51:14 +0000 (08:51 -0800)]
command-line.startup: print more version info.

2 years agocolors: using 255 * round >integer for hex conversion
John Benediktsson [Tue, 11 Jan 2022 05:28:57 +0000 (21:28 -0800)]
colors: using 255 * round >integer for hex conversion

2 years agohelp.html: use help-header-background color exactly.
John Benediktsson [Tue, 11 Jan 2022 04:51:05 +0000 (20:51 -0800)]
help.html: use help-header-background color exactly.

2 years agocolors: fix issue introduced with spaces in names.
John Benediktsson [Tue, 11 Jan 2022 04:31:11 +0000 (20:31 -0800)]
colors: fix issue introduced with spaces in names.

2 years agocolors: adding CSS Color Module Level 4
John Benediktsson [Tue, 11 Jan 2022 04:24:00 +0000 (20:24 -0800)]
colors: adding CSS Color Module Level 4

this adds rebeccapurple #663399, among others

2 years agoui: fixing stack effect on slurp-vector
John Benediktsson [Tue, 11 Jan 2022 03:38:56 +0000 (19:38 -0800)]
ui: fixing stack effect on slurp-vector

2 years agomason.report: format benchmark times with 3 decimal places.
John Benediktsson [Tue, 11 Jan 2022 03:12:12 +0000 (19:12 -0800)]
mason.report: format benchmark times with 3 decimal places.

2 years agoweb-services.github: clone from orgs or users and clean up code.
Doug Coleman [Tue, 11 Jan 2022 02:12:56 +0000 (20:12 -0600)]
web-services.github: clone from orgs or users and clean up code.

2 years agowebapps.mason: giving img a width
John Benediktsson [Tue, 11 Jan 2022 01:40:55 +0000 (17:40 -0800)]
webapps.mason: giving img a width

2 years agowebapps.mason: adding img for logo resize
John Benediktsson [Tue, 11 Jan 2022 01:29:37 +0000 (17:29 -0800)]
webapps.mason: adding img for logo resize

2 years agohelp.tutorial: update copyright in example.
John Benediktsson [Tue, 11 Jan 2022 00:55:44 +0000 (16:55 -0800)]
help.tutorial: update copyright in example.

2 years agofixes for GitHub disabling unauthenticated git protocol
John Benediktsson [Tue, 11 Jan 2022 00:44:52 +0000 (16:44 -0800)]
fixes for GitHub disabling unauthenticated git protocol

2 years agowebapps.mason.report: padding around build report.
John Benediktsson [Tue, 11 Jan 2022 00:40:33 +0000 (16:40 -0800)]
webapps.mason.report: padding around build report.

2 years agowebapps.mason: need t:include
John Benediktsson [Tue, 11 Jan 2022 00:23:54 +0000 (16:23 -0800)]
webapps.mason: need t:include

2 years agowebapps.mason: needs css
John Benediktsson [Tue, 11 Jan 2022 00:16:30 +0000 (16:16 -0800)]
webapps.mason: needs css

2 years agowebapps.mason: some fixes.
John Benediktsson [Tue, 11 Jan 2022 00:14:52 +0000 (16:14 -0800)]
webapps.mason: some fixes.

2 years agohelp.html: change tr:hover color for div.a only
John Benediktsson [Tue, 11 Jan 2022 00:03:45 +0000 (16:03 -0800)]
help.html: change tr:hover color for div.a only

2 years agoRevert "help.html: remove tr:hover background-color"
John Benediktsson [Tue, 11 Jan 2022 00:03:00 +0000 (16:03 -0800)]
Revert "help.html: remove tr:hover background-color"

This reverts commit 1e37e6b941b2e263a09e605a8a7019c10e242c9d.

2 years agohelp.html: remove tr:hover background-color
John Benediktsson [Mon, 10 Jan 2022 23:59:25 +0000 (15:59 -0800)]
help.html: remove tr:hover background-color

2 years agohelp.html: improve help-header to match the UI
John Benediktsson [Mon, 10 Jan 2022 23:50:28 +0000 (15:50 -0800)]
help.html: improve help-header to match the UI

2 years agohelp.html: tweak help-header to match the UI
John Benediktsson [Mon, 10 Jan 2022 23:32:57 +0000 (15:32 -0800)]
help.html: tweak help-header to match the UI

2 years agoformatting: simplify plain-text ebnf rule
John Benediktsson [Mon, 10 Jan 2022 22:03:17 +0000 (14:03 -0800)]
formatting: simplify plain-text ebnf rule

2 years agochecksums.crc16: fix use of crc16-polynomial in the literal
John Benediktsson [Mon, 10 Jan 2022 21:48:13 +0000 (13:48 -0800)]
checksums.crc16: fix use of crc16-polynomial in the literal

2 years agobasis: use check-instance in a few places
John Benediktsson [Mon, 10 Jan 2022 21:34:50 +0000 (13:34 -0800)]
basis: use check-instance in a few places

2 years agoalien.strings: rename check-string to check-c-string
John Benediktsson [Mon, 10 Jan 2022 21:31:29 +0000 (13:31 -0800)]
alien.strings: rename check-string to check-c-string

2 years agohints: adding suffix/prefix to match append/prepend
John Benediktsson [Mon, 10 Jan 2022 21:18:54 +0000 (13:18 -0800)]
hints: adding suffix/prefix to match append/prepend

2 years agosequences: make mismatch and subseq not inline.
John Benediktsson [Mon, 10 Jan 2022 21:18:35 +0000 (13:18 -0800)]
sequences: make mismatch and subseq not inline.

2 years agomath.combinatorics: slight performance improvement
John Benediktsson [Mon, 10 Jan 2022 20:46:27 +0000 (12:46 -0800)]
math.combinatorics: slight performance improvement

2 years agochecksums.crc16: use literals to build the table
John Benediktsson [Mon, 10 Jan 2022 20:34:46 +0000 (12:34 -0800)]
checksums.crc16: use literals to build the table

2 years agocompiler.units: always call definition observers at the end of a compilation unit
John Benediktsson [Mon, 10 Jan 2022 19:50:45 +0000 (11:50 -0800)]
compiler.units: always call definition observers at the end of a compilation unit

2 years agolistener: if prompt is empty, then don't stream-bl
John Benediktsson [Mon, 10 Jan 2022 19:29:09 +0000 (11:29 -0800)]
listener: if prompt is empty, then don't stream-bl

2 years agowebapps.help: actually, lets use <base>
John Benediktsson [Mon, 10 Jan 2022 19:01:25 +0000 (11:01 -0800)]
webapps.help: actually, lets use <base>

2 years agowebapps.help: better relative links.
John Benediktsson [Mon, 10 Jan 2022 18:57:13 +0000 (10:57 -0800)]
webapps.help: better relative links.

2 years agowebapps.help: prevent duplicate styles in template
John Benediktsson [Mon, 10 Jan 2022 18:29:10 +0000 (10:29 -0800)]
webapps.help: prevent duplicate styles in template

2 years agoRevert "alien: better resetting and forgetting."
John Benediktsson [Mon, 10 Jan 2022 18:13:25 +0000 (10:13 -0800)]
Revert "alien: better resetting and forgetting."

This reverts commit db4d090b1046e59b99cfba20e35abdb8fd6252c2.

2 years agowebapps.help: fix silly typo.
John Benediktsson [Mon, 10 Jan 2022 18:10:44 +0000 (10:10 -0800)]
webapps.help: fix silly typo.

2 years agowebapps.help: need boilerplate for t:style support
John Benediktsson [Mon, 10 Jan 2022 18:10:04 +0000 (10:10 -0800)]
webapps.help: need boilerplate for t:style support

2 years agowebapps.help: use the same CSS.
John Benediktsson [Mon, 10 Jan 2022 17:53:38 +0000 (09:53 -0800)]
webapps.help: use the same CSS.

2 years agoalien: better resetting and forgetting.
John Benediktsson [Mon, 10 Jan 2022 17:28:46 +0000 (09:28 -0800)]
alien: better resetting and forgetting.

2 years agowebapps.wiki: setting no-follow by default
John Benediktsson [Mon, 10 Jan 2022 16:36:24 +0000 (08:36 -0800)]
webapps.wiki: setting no-follow by default

2 years agofarkup: fix check-url reversed comparison
John Benediktsson [Mon, 10 Jan 2022 16:34:13 +0000 (08:34 -0800)]
farkup: fix check-url reversed comparison

2 years agoRevert "webapps.wiki: print absolute urls as no-follow by default."
John Benediktsson [Mon, 10 Jan 2022 04:05:04 +0000 (20:05 -0800)]
Revert "webapps.wiki: print absolute urls as no-follow by default."

This reverts commit 15d539765ebff8dee38ec5094e7a47637d01641e.

2 years agofarkup: invalid absolute urls don't need nofollow
John Benediktsson [Mon, 10 Jan 2022 03:56:28 +0000 (19:56 -0800)]
farkup: invalid absolute urls don't need nofollow

2 years agowebapps.wiki: print absolute urls as no-follow by default.
John Benediktsson [Mon, 10 Jan 2022 03:49:43 +0000 (19:49 -0800)]
webapps.wiki: print absolute urls as no-follow by default.

2 years agofarkup: only absolute urls should be no-follow.
John Benediktsson [Mon, 10 Jan 2022 03:46:27 +0000 (19:46 -0800)]
farkup: only absolute urls should be no-follow.

2 years agoeditors: use reload instead of require
John Benediktsson [Mon, 10 Jan 2022 03:23:06 +0000 (19:23 -0800)]
editors: use reload instead of require

this lets you re-run top-level code which currently sets the editor
class as a side effect.

2 years agobinhex: initial version of BinHex 4.0 encoding/decoding
John Benediktsson [Mon, 10 Jan 2022 00:18:10 +0000 (16:18 -0800)]
binhex: initial version of BinHex 4.0 encoding/decoding

2 years agojamshred: Don't (move-player) in a tight loop.
Doug Coleman [Sun, 9 Jan 2022 19:53:35 +0000 (13:53 -0600)]
jamshred: Don't (move-player) in a tight loop.

Add ESC as quit

Fixes #1910

2 years agovm: macosx re-add the else/if block for symlinked executable
John Benediktsson [Sun, 9 Jan 2022 17:48:59 +0000 (09:48 -0800)]
vm: macosx re-add the else/if block for symlinked executable

2 years agovm: only set cwd when not on a terminal
John Benediktsson [Sun, 9 Jan 2022 17:42:26 +0000 (09:42 -0800)]
vm: only set cwd when not on a terminal

2 years agoadd xdg-state-dir
Rudi Grinberg [Sun, 9 Jan 2022 07:53:46 +0000 (00:53 -0700)]
add xdg-state-dir

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
ps-id: F8159B75-B5E7-4700-8D15-ABA1DD27EF1B

2 years agoadd PATCH http method
Rudi Grinberg [Sun, 9 Jan 2022 05:23:09 +0000 (22:23 -0700)]
add PATCH http method

ps-id: 4B1F8D46-147C-4C89-8318-074F328E564D

2 years agovm: setting current directory when launching Factor.app
John Benediktsson [Sun, 9 Jan 2022 04:29:00 +0000 (20:29 -0800)]
vm: setting current directory when launching Factor.app

2 years agowords: use remove-word-prop instead of f set-word-prop.
John Benediktsson [Sun, 9 Jan 2022 03:45:53 +0000 (19:45 -0800)]
words: use remove-word-prop instead of f set-word-prop.

2 years agowords.constant: store true for "constant" word prop
John Benediktsson [Sun, 9 Jan 2022 03:39:20 +0000 (19:39 -0800)]
words.constant: store true for "constant" word prop

Fixes ``CONSTANT: foo f``

2 years agounix.scheduler.macosx: fix stack effect for help-lint
John Benediktsson [Sun, 9 Jan 2022 03:39:08 +0000 (19:39 -0800)]
unix.scheduler.macosx: fix stack effect for help-lint

2 years agounix.scheduler: small new vocab to get Unix scheduler info
Cat Stevens [Sun, 9 Jan 2022 02:08:59 +0000 (21:08 -0500)]
unix.scheduler: small new vocab to get Unix scheduler info

The unix.scheduler vocabulary currently implements a subset
of the functions specified by POSIX to exist in the
<sched.h> header.

This subset is needed to provide important functionality to
the upcoming posix-spawn backend for io.launcher and
the <process> interface.

2 years agovocabs.cache: reset all-authors and all-tags also.
John Benediktsson [Sun, 9 Jan 2022 02:54:12 +0000 (18:54 -0800)]
vocabs.cache: reset all-authors and all-tags also.

2 years agovocabs.cache: Reset the all-disk-vocabs-recursive memoized every time a vocab is...
Doug Coleman [Sun, 9 Jan 2022 01:32:51 +0000 (19:32 -0600)]
vocabs.cache: Reset the all-disk-vocabs-recursive memoized every time a vocab is loaded.

Test case if "fuel.pprint" is not loaded:
all-disk-vocabs-recursive filter-vocabs [ vocab-name "fuel.pprint" = ] filter
"fuel.pprint" load
all-disk-vocabs-recursive filter-vocabs [ vocab-name "fuel.pprint" = ] filter
! vocab-link
! vocab

Fixes #2545

2 years agoui.tools.listener.completion: fix color for vocab completions
John Benediktsson [Sat, 8 Jan 2022 22:05:14 +0000 (14:05 -0800)]
ui.tools.listener.completion: fix color for vocab completions

2 years agowindows.errors: remove one more unused error function
Doug Coleman [Sat, 8 Jan 2022 21:28:29 +0000 (15:28 -0600)]
windows.errors: remove one more unused error function

2 years agowindows.erros: Remove some unused error handling words.
Doug Coleman [Sat, 8 Jan 2022 21:23:59 +0000 (15:23 -0600)]
windows.erros: Remove some unused error handling words.

2 years agomemoize: fix pprint of IDENTITY-MEMO: words
John Benediktsson [Sat, 8 Jan 2022 17:04:14 +0000 (09:04 -0800)]
memoize: fix pprint of IDENTITY-MEMO: words

2 years agomath.extras: adding Stein's algorithm
John Benediktsson [Sat, 8 Jan 2022 00:59:32 +0000 (16:59 -0800)]
math.extras: adding Stein's algorithm

2 years agovocabs.loader: fix vocab:path to use an existing path
Doug Coleman [Thu, 6 Jan 2022 16:24:51 +0000 (10:24 -0600)]
vocabs.loader: fix vocab:path to use an existing path

This particular path would have been found in core/ if it did
not exist in basis/ already.

Fixes bootstrap

2 years agoio.pathnames: Allow vocab: to find paths that do not exist as long as the vocab exists.
Doug Coleman [Thu, 6 Jan 2022 05:21:02 +0000 (23:21 -0600)]
io.pathnames: Allow vocab: to find paths that do not exist as long as the vocab exists.

`"benchmark/sum-file/sum-file.txt" vocab-path` can now reference a file
in a vocab.

Add `has-path-extension?` word which ensures a path is not a
directory (does not end in / or any path-separator), and if
that's the case then it is true if there's a dot in the file name.

The cases we check in vocab-path (triggered with vocab:)
- if path ends in /, we assume it must be a vocab that exists
-- you can't create a vocab that doesn't exist with vocab:foo syntax
because there the root is ambiguous

- if path has extension, we assume it's a file name and allow it
to look up if the parent vocabulary exists

- finally we just try the current behavior, e.g. the vocab has
to exist

Added a lot of tests, please file bugs if you disagree!

Fixes #592.

2 years agoui.gadgets.scrollers: use relayout-1 in scroll>* methods
John Benediktsson [Thu, 6 Jan 2022 01:27:52 +0000 (17:27 -0800)]
ui.gadgets.scrollers: use relayout-1 in scroll>* methods