]> gitweb.factorcode.org Git - factor.git/log
factor.git
14 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

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

14 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

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

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

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

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

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

14 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

14 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

14 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

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

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

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

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

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

14 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

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

14 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

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

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

14 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

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

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

14 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`

14 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

14 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

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

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

14 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

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

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

14 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

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

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

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

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

14 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

14 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

14 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

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

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

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

14 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

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

14 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

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

14 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

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

14 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`

14 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

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

14 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

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

14 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

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

14 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

14 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

14 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`

14 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

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

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

14 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?

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

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

14 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

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

14 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

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

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

14 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

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

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

14 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*

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

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

14 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

14 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)

14 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?

14 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

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

14 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

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

14 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

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

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

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

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

14 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

14 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

14 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

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

14 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?