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

14 months agocombinators.extras: add callk
Doug Coleman [Fri, 19 Aug 2022 04:03:47 +0000 (23:03 -0500)]
combinators.extras: add callk

it keeps the quot

14 months agosequences: add tests for map-reduce
Doug Coleman [Fri, 19 Aug 2022 03:49:00 +0000 (22:49 -0500)]
sequences: add tests for map-reduce

14 months agosequences: add ensure-non-negative word
Doug Coleman [Fri, 19 Aug 2022 02:06:02 +0000 (21:06 -0500)]
sequences: add ensure-non-negative word

14 months agosequences: remove unused word
Doug Coleman [Fri, 19 Aug 2022 02:05:45 +0000 (21:05 -0500)]
sequences: remove unused word

14 months agosequences.extras: more refactor (2each-index) => 2sequence-index-iterator
Doug Coleman [Fri, 19 Aug 2022 02:02:51 +0000 (21:02 -0500)]
sequences.extras: more refactor (2each-index) => 2sequence-index-iterator

14 months agosequences: use with-assoc, most
Doug Coleman [Fri, 19 Aug 2022 01:53:00 +0000 (20:53 -0500)]
sequences: use with-assoc, most

found by `"sequences" lint-vocab`

14 months agosequences: use length-iterator/length-operator words for 2each 3each
Doug Coleman [Thu, 18 Aug 2022 23:38:04 +0000 (18:38 -0500)]
sequences: use length-iterator/length-operator words for 2each 3each

14 months agosequences.extras: fix map-prior-from
Doug Coleman [Wed, 17 Aug 2022 02:47:49 +0000 (21:47 -0500)]
sequences.extras: fix map-prior-from

14 months agosequences: add map-prior-as, map-prior-from, and map-prior with custom identity
Doug Coleman [Wed, 17 Aug 2022 01:35:06 +0000 (20:35 -0500)]
sequences: add map-prior-as, map-prior-from, and map-prior with custom identity

14 months agoassocs: Add a bunch of `of` words
Doug Coleman [Mon, 15 Aug 2022 04:53:14 +0000 (23:53 -0500)]
assocs: Add a bunch of `of` words

14 months agosequences: Rename seq-nth to nth-of etc
Doug Coleman [Mon, 15 Aug 2022 03:42:21 +0000 (22:42 -0500)]
sequences: Rename seq-nth to nth-of etc

14 months agoassocs: add set-of and push-of
Doug Coleman [Mon, 15 Aug 2022 03:37:33 +0000 (22:37 -0500)]
assocs: add set-of and push-of

14 months agosequences: rename count to count-by
Doug Coleman [Mon, 15 Aug 2022 02:01:38 +0000 (21:01 -0500)]
sequences: rename count to count-by

14 months agoio.streams.sequence: remove `5roll <copier>` word lol
Doug Coleman [Mon, 8 Aug 2022 02:12:40 +0000 (21:12 -0500)]
io.streams.sequence: remove `5roll <copier>` word lol

14 months agoio.streams.sequence: Add some tests
Doug Coleman [Mon, 8 Aug 2022 02:04:36 +0000 (21:04 -0500)]
io.streams.sequence: Add some tests

third one breaks if you mess up rewriting sequence-copy-unsafe too bad XD

14 months agosorting: circularity if we use cleave in sorting
Doug Coleman [Mon, 8 Aug 2022 00:41:50 +0000 (19:41 -0500)]
sorting: circularity if we use cleave in sorting

14 months agofactor: use 2length
Doug Coleman [Mon, 8 Aug 2022 00:39:58 +0000 (19:39 -0500)]
factor: use 2length

14 months agocore: use copy in sorting
Doug Coleman [Sun, 7 Aug 2022 15:02:59 +0000 (10:02 -0500)]
core: use copy in sorting

14 months agocore: push-if -> push-when, refactoring sequence words
Doug Coleman [Sat, 6 Aug 2022 22:55:18 +0000 (17:55 -0500)]
core: push-if -> push-when, refactoring sequence words

14 months agomath.extras: tweak weighted-randoms add vose alias method
John Benediktsson [Sun, 26 Feb 2023 22:37:28 +0000 (14:37 -0800)]
math.extras: tweak weighted-randoms add vose alias method

14 months agodice: fix for recent random refactoring
John Benediktsson [Sun, 26 Feb 2023 22:17:10 +0000 (14:17 -0800)]
dice: fix for recent random refactoring

14 months agorandom: implement a generic random* to speed up randoms
John Benediktsson [Sun, 26 Feb 2023 21:58:26 +0000 (13:58 -0800)]
random: implement a generic random* to speed up randoms

14 months agocommand-line.startup: remove extra space
John Benediktsson [Sun, 26 Feb 2023 21:53:09 +0000 (13:53 -0800)]
command-line.startup: remove extra space

14 months agorandom.mersenne-twister: slightly faster random-32*
John Benediktsson [Sat, 25 Feb 2023 03:59:49 +0000 (19:59 -0800)]
random.mersenne-twister: slightly faster random-32*

14 months agomath.extras: adding weighted-randoms
John Benediktsson [Sat, 18 Feb 2023 00:56:08 +0000 (16:56 -0800)]
math.extras: adding weighted-randoms

14 months agoeditors.pulsar: adding Pulsar text editor support
John Benediktsson [Fri, 17 Feb 2023 20:37:42 +0000 (12:37 -0800)]
editors.pulsar: adding Pulsar text editor support

14 months agoeditors.zed: add support for the Zed text editor
John Benediktsson [Fri, 17 Feb 2023 16:58:00 +0000 (08:58 -0800)]
editors.zed: add support for the Zed text editor

14 months agowebapps.mason: more padding
John Benediktsson [Thu, 16 Feb 2023 20:43:23 +0000 (12:43 -0800)]
webapps.mason: more padding

14 months agogithub: add more github api calls
Doug Coleman [Fri, 10 Feb 2023 03:25:22 +0000 (21:25 -0600)]
github: add more github api calls

14 months agonamespaces.extras: Add `required` word which ensures a variable is set
Doug Coleman [Fri, 10 Feb 2023 03:24:45 +0000 (21:24 -0600)]
namespaces.extras: Add `required` word which ensures a variable is set

also add ?xor and one-of which ensures one of two variables is set

14 months agomime.types: adding resources.txt for deploy
John Benediktsson [Fri, 10 Feb 2023 00:35:11 +0000 (16:35 -0800)]
mime.types: adding resources.txt for deploy

14 months agosorting: add an alias for temporary backwards compatibility
John Benediktsson [Thu, 9 Feb 2023 17:46:39 +0000 (09:46 -0800)]
sorting: add an alias for temporary backwards compatibility

14 months agosorting: fix help-lint (again)
John Benediktsson [Wed, 8 Feb 2023 16:51:25 +0000 (08:51 -0800)]
sorting: fix help-lint (again)

14 months agosorting: fix help-lint
John Benediktsson [Wed, 8 Feb 2023 16:01:01 +0000 (08:01 -0800)]
sorting: fix help-lint