]> gitweb.factorcode.org Git - factor.git/log
factor.git
13 months agofactor: remove extra whitespace refactor-sequences 2669/head
Doug Coleman [Sun, 26 Feb 2023 22:24:27 +0000 (16:24 -0600)]
factor: remove extra whitespace

13 months agocombinators.extras: add quad, 2quad
Doug Coleman [Sun, 26 Feb 2023 22:02:33 +0000 (16:02 -0600)]
combinators.extras: add quad, 2quad

13 months agokernel: add transmute and some use cases
Doug Coleman [Sat, 25 Feb 2023 23:46:53 +0000 (17:46 -0600)]
kernel: add transmute and some use cases

13 months agovocabs: use ?unless
Doug Coleman [Sat, 25 Feb 2023 23:36:52 +0000 (17:36 -0600)]
vocabs: use ?unless

13 months agonamespaces.extras: clean up
Doug Coleman [Sat, 25 Feb 2023 23:36:32 +0000 (17:36 -0600)]
namespaces.extras: clean up

13 months agoextras: fix using/deleted word
Doug Coleman [Sat, 25 Feb 2023 23:14:36 +0000 (17:14 -0600)]
extras: fix using/deleted word

13 months agokernel: fix ?if stack effect
Doug Coleman [Sat, 25 Feb 2023 22:03:44 +0000 (16:03 -0600)]
kernel: fix ?if stack effect

13 months agokernel: document ?if ?when ?unless
Doug Coleman [Sat, 25 Feb 2023 21:14:38 +0000 (15:14 -0600)]
kernel: document ?if ?when ?unless

13 months agotools.scaffold: make scaffold-docs work on strings, seqs, words
Doug Coleman [Sat, 25 Feb 2023 21:14:02 +0000 (15:14 -0600)]
tools.scaffold: make scaffold-docs work on strings, seqs, words

13 months agostack-checker.visitor.dummy: use 5drop
Doug Coleman [Sat, 25 Feb 2023 19:54:05 +0000 (13:54 -0600)]
stack-checker.visitor.dummy: use 5drop

13 months agoalien.c-types: fix bad use of ?when
Doug Coleman [Sat, 25 Feb 2023 19:39:41 +0000 (13:39 -0600)]
alien.c-types: fix bad use of ?when

13 months agoextras: remove circular dependency
Doug Coleman [Sat, 25 Feb 2023 19:15:47 +0000 (13:15 -0600)]
extras: remove circular dependency

13 months agoparser: fix bad refactor
Doug Coleman [Sat, 25 Feb 2023 19:13:29 +0000 (13:13 -0600)]
parser: fix bad refactor

13 months agosequences.extas: use spind
Doug Coleman [Sat, 25 Feb 2023 18:37:34 +0000 (12:37 -0600)]
sequences.extas: use spind

13 months agofactor: whitespace only
Doug Coleman [Sat, 25 Feb 2023 18:29:56 +0000 (12:29 -0600)]
factor: whitespace only

13 months agoshuffle: clean up some shuffles
Doug Coleman [Sat, 25 Feb 2023 18:21:03 +0000 (12:21 -0600)]
shuffle: clean up some shuffles

13 months agoassocs: move some -of words to extras
Doug Coleman [Sat, 25 Feb 2023 18:20:42 +0000 (12:20 -0600)]
assocs: move some -of words to extras

13 months agofactor: use ?call
Doug Coleman [Sat, 25 Feb 2023 15:08:13 +0000 (09:08 -0600)]
factor: use ?call

13 months agonamespaces.extras: rename ?xor to xor* and add inline
Doug Coleman [Sat, 25 Feb 2023 15:05:21 +0000 (09:05 -0600)]
namespaces.extras: rename ?xor to xor* and add inline

13 months agokernel: use ?call
Doug Coleman [Sat, 25 Feb 2023 14:58:31 +0000 (08:58 -0600)]
kernel: use ?call

13 months agosequences: move ??nth
Doug Coleman [Sat, 25 Feb 2023 05:20:14 +0000 (23:20 -0600)]
sequences: move ??nth

13 months agolint: add a lint for keep
Doug Coleman [Sat, 25 Feb 2023 04:58:09 +0000 (22:58 -0600)]
lint: add a lint for keep

13 months agosequences.extras: move ??nth
Doug Coleman [Sat, 25 Feb 2023 04:57:35 +0000 (22:57 -0600)]
sequences.extras: move ??nth

13 months agokernel: ?call and simplify
Doug Coleman [Fri, 24 Feb 2023 22:49:13 +0000 (16:49 -0600)]
kernel: ?call and simplify

13 months agokernel: ?if-old is just `[ or* ] 2dip if`
Doug Coleman [Fri, 24 Feb 2023 01:41:05 +0000 (19:41 -0600)]
kernel: ?if-old is just `[ or* ] 2dip if`

13 months agosequences.extras: make a word inline
Doug Coleman [Wed, 22 Feb 2023 14:08:07 +0000 (08:08 -0600)]
sequences.extras: make a word inline

13 months agocompiler/vm: Allow words made of curry/compose to compile
Doug Coleman [Wed, 22 Feb 2023 14:06:49 +0000 (08:06 -0600)]
compiler/vm: Allow words made of curry/compose to compile

put back the `[ ] like`

fixes #2763

13 months agococoa.pasteboard: use correct ?transmute
Doug Coleman [Tue, 21 Feb 2023 05:36:45 +0000 (23:36 -0600)]
cocoa.pasteboard: use correct ?transmute

13 months agosequences: fix docs
Doug Coleman [Tue, 21 Feb 2023 05:29:04 +0000 (23:29 -0600)]
sequences: fix docs

13 months agofixups: ?if changed effects not renamed
Doug Coleman [Tue, 21 Feb 2023 03:26:46 +0000 (21:26 -0600)]
fixups: ?if changed effects not renamed

13 months agosorting: still use <copier>
Doug Coleman [Tue, 21 Feb 2023 03:17:13 +0000 (21:17 -0600)]
sorting: still use <copier>

13 months agosequence: move check-grow-copy
Doug Coleman [Tue, 21 Feb 2023 03:14:21 +0000 (21:14 -0600)]
sequence: move check-grow-copy

13 months agocore: rename ensure-non-negative to assert-non-negative
Doug Coleman [Tue, 21 Feb 2023 03:13:08 +0000 (21:13 -0600)]
core: rename ensure-non-negative to assert-non-negative

13 months agocore; move find* to extras
Doug Coleman [Tue, 21 Feb 2023 02:33:59 +0000 (20:33 -0600)]
core; move find* to extras

13 months agosequences: move words to extras
Doug Coleman [Tue, 21 Feb 2023 02:31:47 +0000 (20:31 -0600)]
sequences: move words to extras

13 months agosorting: better formatting
Doug Coleman [Tue, 21 Feb 2023 02:31:22 +0000 (20:31 -0600)]
sorting: better formatting

13 months agotools.scaffold: in-out removal
Doug Coleman [Tue, 21 Feb 2023 02:31:08 +0000 (20:31 -0600)]
tools.scaffold: in-out removal

13 months agoassocs: move a lot of *-of words to assocs.extas
Doug Coleman [Tue, 21 Feb 2023 01:41:32 +0000 (19:41 -0600)]
assocs: move a lot of *-of words to assocs.extas

13 months agosequences.extras: working towards a simple map combinator
Doug Coleman [Tue, 21 Feb 2023 01:38:45 +0000 (19:38 -0600)]
sequences.extras: working towards a simple map combinator

13 months agosequences: find-from-unsafe is not unsafe, rename
Doug Coleman [Tue, 21 Feb 2023 01:38:32 +0000 (19:38 -0600)]
sequences: find-from-unsafe is not unsafe, rename

13 months agohelp: remove in-out
Doug Coleman [Tue, 21 Feb 2023 01:38:17 +0000 (19:38 -0600)]
help: remove in-out

13 months agosequences: remove ??if
Doug Coleman [Mon, 20 Feb 2023 02:10:09 +0000 (20:10 -0600)]
sequences: remove ??if

13 months agoeffects: remove in-out
Doug Coleman [Mon, 20 Feb 2023 02:06:09 +0000 (20:06 -0600)]
effects: remove in-out

13 months agosequences.extras: rename push? to maybe-push
Doug Coleman [Mon, 20 Feb 2023 02:05:32 +0000 (20:05 -0600)]
sequences.extras: rename push? to maybe-push

13 months agofactor: remove in-out, it's just in>> out>>
Doug Coleman [Mon, 20 Feb 2023 02:04:54 +0000 (20:04 -0600)]
factor: remove in-out, it's just in>> out>>

13 months agosemantic-versioning: crept back in during a merge conflict; deleting again
Doug Coleman [Mon, 20 Feb 2023 00:12:29 +0000 (18:12 -0600)]
semantic-versioning: crept back in during a merge conflict; deleting again

13 months agofactor: use more ?if
Doug Coleman [Fri, 17 Feb 2023 05:05:35 +0000 (23:05 -0600)]
factor: use more ?if

13 months agofactor: use `[ ] append-as` and `[ ] concat-as` in more places
Doug Coleman [Fri, 17 Feb 2023 04:54:03 +0000 (22:54 -0600)]
factor: use `[ ] append-as` and `[ ] concat-as` in more places

13 months agovocabs.loader: use ?if
Doug Coleman [Fri, 17 Feb 2023 04:22:23 +0000 (22:22 -0600)]
vocabs.loader: use ?if

13 months agocombinators.extras: trying to figure out a combinator that does `[ predicate? ] ...
Doug Coleman [Fri, 17 Feb 2023 04:17:34 +0000 (22:17 -0600)]
combinators.extras: trying to figure out a combinator that does `[ predicate? ] [ action ] 1check-when`

13 months agofactor: use more ?if and ?unless
Doug Coleman [Fri, 17 Feb 2023 04:17:21 +0000 (22:17 -0600)]
factor: use more ?if and ?unless

13 months agopathnames: support pathnames more places like append-path and recursive-directory...
Doug Coleman [Fri, 17 Feb 2023 02:55:48 +0000 (20:55 -0600)]
pathnames: support pathnames more places like append-path and recursive-directory-files

In general, P"" or `pathname` is a frontend/tooling convenience concept
with tab-complete for paths in the ui. Backend apis should see strings.

13 months agoio.sockets.secure.openssl: add two more recommended protocols
Doug Coleman [Fri, 17 Feb 2023 01:36:34 +0000 (19:36 -0600)]
io.sockets.secure.openssl: add two more recommended protocols

13 months agofactor: ?if to ?if-old
Doug Coleman [Tue, 14 Feb 2023 06:20:05 +0000 (00:20 -0600)]
factor: ?if to ?if-old

13 months agofactor: use ??if instead of ?if-old
Doug Coleman [Tue, 14 Feb 2023 05:29:34 +0000 (23:29 -0600)]
factor: use ??if instead of ?if-old

13 months agosequences: add find* variant
Doug Coleman [Tue, 14 Feb 2023 05:29:22 +0000 (23:29 -0600)]
sequences: add find* variant

13 months agokernel: redo ?if to ?if-old, add ?if ?when ?unless
Doug Coleman [Tue, 14 Feb 2023 05:25:52 +0000 (23:25 -0600)]
kernel: redo ?if to ?if-old, add ?if ?when ?unless

13 months agosequences.extras: add some words that might be useful
Doug Coleman [Sat, 11 Feb 2023 07:42:06 +0000 (01:42 -0600)]
sequences.extras: add some words that might be useful

13 months agosequences: add find* variants that return index/f as last param for better use with...
Doug Coleman [Sat, 11 Feb 2023 07:05:02 +0000 (01:05 -0600)]
sequences: add find* variants that return index/f as last param for better use with `if`

13 months agosequences.extras: fix occurrence-count-by rename
Doug Coleman [Sat, 11 Feb 2023 05:08:31 +0000 (23:08 -0600)]
sequences.extras: fix occurrence-count-by rename

13 months agofactor: fix using/docs
Doug Coleman [Sat, 11 Feb 2023 04:22:15 +0000 (22:22 -0600)]
factor: fix using/docs

13 months agoassocs.extas: add ?1array
Doug Coleman [Sat, 11 Feb 2023 03:03:34 +0000 (21:03 -0600)]
assocs.extas: add ?1array

13 months agoassocs: fix docs import
Doug Coleman [Sat, 11 Feb 2023 03:02:32 +0000 (21:02 -0600)]
assocs: fix docs import

it should import assocs too, lint tool is broken?

13 months agogame.models.collada: use swapd
Doug Coleman [Sat, 11 Feb 2023 02:55:43 +0000 (20:55 -0600)]
game.models.collada: use swapd

13 months agobasis: adjust in-out spacing
Doug Coleman [Sat, 11 Feb 2023 02:21:25 +0000 (20:21 -0600)]
basis: adjust in-out spacing

13 months agofactor: update http to https for licenses
Doug Coleman [Sat, 11 Feb 2023 02:19:38 +0000 (20:19 -0600)]
factor: update http to https for licenses

13 months agofactor: use in-out word
Doug Coleman [Sat, 11 Feb 2023 01:58:34 +0000 (19:58 -0600)]
factor: use in-out word

13 months agoassocs: more work on -of words
Doug Coleman [Sat, 11 Feb 2023 01:35:01 +0000 (19:35 -0600)]
assocs: more work on -of words

13 months agosequences: move (2selector-as)
Doug Coleman [Wed, 8 Feb 2023 15:31:49 +0000 (09:31 -0600)]
sequences: move (2selector-as)

13 months agoassocs: move with-assoc back to assocs
Doug Coleman [Mon, 6 Feb 2023 00:36:16 +0000 (18:36 -0600)]
assocs: move with-assoc back to assocs

There are two uses of `curry [ swap ] prepose`. One is to swap the arguments
from assoc-each etc from ( key value ) to ( value key ). The other use in
sequences is for hiding the top stack element from the quotation.

13 months agosequences: seq-copy-loop -> copy-loop
Doug Coleman [Sun, 5 Feb 2023 19:29:58 +0000 (13:29 -0600)]
sequences: seq-copy-loop -> copy-loop

13 months agofactor: rename count-by back to count. count* -> percent-of
Doug Coleman [Sun, 5 Feb 2023 19:12:09 +0000 (13:12 -0600)]
factor: rename count-by back to count. count* -> percent-of

count is way more useful as a combinator than as [ ] count-by.

13 months agocore: fix using lists
Doug Coleman [Sun, 5 Feb 2023 18:40:42 +0000 (12:40 -0600)]
core: fix using lists

13 months agoassocs: fix at+* to return old,new and change* to change-by*
Doug Coleman [Wed, 7 Dec 2022 20:34:43 +0000 (14:34 -0600)]
assocs: fix at+* to return old,new and change* to change-by*

13 months agodocs: fix lint errors.
Doug Coleman [Tue, 6 Dec 2022 04:45:52 +0000 (22:45 -0600)]
docs: fix lint errors.

For some reason these $examples were not erroring but now they are.

13 months agosequences: add more docs
Doug Coleman [Tue, 6 Dec 2022 04:05:29 +0000 (22:05 -0600)]
sequences: add more docs

13 months agosequences: count is [ ] count-by, readd seq-copy-loop again
Doug Coleman [Tue, 6 Dec 2022 03:36:40 +0000 (21:36 -0600)]
sequences: count is [ ] count-by, readd seq-copy-loop again

13 months agosequences: Move some words to sequences.seq in extra.
Doug Coleman [Tue, 6 Dec 2022 00:23:10 +0000 (18:23 -0600)]
sequences: Move some words to sequences.seq in extra.

Ideally we would have the `foo` and `swap foo` versions of words
like `push`, `push-all`, etc. Other words, like `seq-copy-loop`,
seem more natural with this ordering.

Punt on merging in core til .100 (if at all)

13 months agofixups: add count-by to fixups, add more?
Doug Coleman [Mon, 5 Dec 2022 06:49:08 +0000 (00:49 -0600)]
fixups: add count-by to fixups, add more?

13 months agosequences.extras: Add more reduce/accumulate words like 1reduce and reduce-of
Doug Coleman [Thu, 15 Sep 2022 20:22:42 +0000 (16:22 -0400)]
sequences.extras: Add more reduce/accumulate words like 1reduce and reduce-of

13 months agosequences.extras: fix stack effects
Doug Coleman [Fri, 26 Aug 2022 04:43:22 +0000 (00:43 -0400)]
sequences.extras: fix stack effects

13 months agowordlet: use some extras words, add a quit option
Doug Coleman [Fri, 26 Aug 2022 04:22:49 +0000 (00:22 -0400)]
wordlet: use some extras words, add a quit option

13 months agosequences.extras: add -of versions of lots of words.
Doug Coleman [Fri, 26 Aug 2022 04:10:21 +0000 (00:10 -0400)]
sequences.extras: add -of versions of lots of words.

i think these are more natural, but we can have both! in extra.

13 months agosequences: move-forward is impossible unless to < from
Doug Coleman [Fri, 26 Aug 2022 04:09:35 +0000 (00:09 -0400)]
sequences: move-forward is impossible unless to < from

dead code

13 months agospin: swap rot is spin
Doug Coleman [Fri, 26 Aug 2022 04:09:12 +0000 (00:09 -0400)]
spin: swap rot is spin

13 months agosequences.extras: add a version of filter-map and 2filter-map that take one quot
Doug Coleman [Fri, 26 Aug 2022 01:22:27 +0000 (21:22 -0400)]
sequences.extras: add a version of filter-map and 2filter-map that take one quot

and a version that take two quots.

13 months agosequences: add 2filter 2reject
Doug Coleman [Thu, 25 Aug 2022 23:02:41 +0000 (19:02 -0400)]
sequences: add 2filter 2reject

13 months agosequences: fix stack orders and move unit test
Doug Coleman [Thu, 25 Aug 2022 22:16:49 +0000 (18:16 -0400)]
sequences: fix stack orders and move unit test

13 months agosequences: fix map-from and map-from-as
Doug Coleman [Thu, 25 Aug 2022 22:06:07 +0000 (18:06 -0400)]
sequences: fix map-from and map-from-as

13 months agosequences: fix from word
Doug Coleman [Thu, 25 Aug 2022 22:02:47 +0000 (18:02 -0400)]
sequences: fix from word

`from` can go last or second to last, exemplar goes last

the natural place for the `from` is at the bottom of the stack,
but requiring the callers to do this is more stack shuffling
at every call vs just shuffling it in the word. also you have to
know how deep to -rot the `from` so it's best to leave it to the
combinators

13 months agosequences.extras: use 2dip instead of -rot
Doug Coleman [Thu, 25 Aug 2022 21:12:25 +0000 (17:12 -0400)]
sequences.extras: use 2dip instead of -rot

13 months agosequences.extras: Add the histogram outputs to the unit tests
Doug Coleman [Thu, 25 Aug 2022 15:00:23 +0000 (11:00 -0400)]
sequences.extras: Add the histogram outputs to the unit tests

13 months agosequences.extras: Add progress-index word like `𝕨 ⊒ 𝕩: Progressive Index Of` in bqn
Doug Coleman [Thu, 25 Aug 2022 14:54:02 +0000 (10:54 -0400)]
sequences.extras: Add progress-index word like `𝕨 ⊒ 𝕩: Progressive Index Of` in bqn

13 months agosequenece.extras: add occurrence-count like ⊒ in bqn
Doug Coleman [Thu, 25 Aug 2022 14:10:48 +0000 (10:10 -0400)]
sequenece.extras: add occurrence-count like ⊒ in bqn

13 months agosequences: fix `from` words
Doug Coleman [Thu, 25 Aug 2022 14:10:32 +0000 (10:10 -0400)]
sequences: fix `from` words

13 months agosequences: add 0reduce, 0accumulate that use their first element as the idenity
Doug Coleman [Thu, 25 Aug 2022 02:11:48 +0000 (22:11 -0400)]
sequences: add 0reduce, 0accumulate that use their first element as the idenity

13 months agosequences.extras: Add 2map-filter and variants where the second sequence
Doug Coleman [Tue, 23 Aug 2022 13:21:25 +0000 (09:21 -0400)]
sequences.extras: Add 2map-filter and variants where the second sequence
is not known before the word is called

13 months agosequences.extras: fix stack effect
Doug Coleman [Mon, 22 Aug 2022 03:19:44 +0000 (23:19 -0400)]
sequences.extras: fix stack effect

if you develop with `disable-optimizer` it's faster but doesn't catch
these kind of errors

13 months agosequences.extras: add 2reduce-from
Doug Coleman [Fri, 19 Aug 2022 04:14:04 +0000 (23:14 -0500)]
sequences.extras: add 2reduce-from

13 months agoalien.utilities: rename utility word more? => deref?
Doug Coleman [Fri, 19 Aug 2022 04:11:41 +0000 (23:11 -0500)]
alien.utilities: rename utility word more? => deref?