]> gitweb.factorcode.org Git - factor.git/log
factor.git
6 years agosequences.extras: making evens/odds mutable sequences.
John Benediktsson [Fri, 16 Feb 2018 17:21:05 +0000 (09:21 -0800)]
sequences.extras: making evens/odds mutable sequences.

6 years agoassoc-heaps: removing unused and uncompleted vocab.
John Benediktsson [Fri, 16 Feb 2018 16:50:31 +0000 (08:50 -0800)]
assoc-heaps: removing unused and uncompleted vocab.

6 years agosequences.extras: rename join-with to interleaved.
John Benediktsson [Fri, 16 Feb 2018 16:42:07 +0000 (08:42 -0800)]
sequences.extras: rename join-with to interleaved.

6 years agosequences.extra: make evens/odds virtual sequences.
John Benediktsson [Fri, 16 Feb 2018 16:40:57 +0000 (08:40 -0800)]
sequences.extra: make evens/odds virtual sequences.

6 years agosequences.repeating: cleanup repeats.
John Benediktsson [Fri, 16 Feb 2018 16:31:22 +0000 (08:31 -0800)]
sequences.repeating: cleanup repeats.

6 years agosequences.extras: fix evens/odds to not cache length.
John Benediktsson [Fri, 16 Feb 2018 16:25:57 +0000 (08:25 -0800)]
sequences.extras: fix evens/odds to not cache length.

6 years agosequences.interleaved: use 2/ (shift) instead of 2 / (divide).
John Benediktsson [Fri, 16 Feb 2018 15:06:50 +0000 (07:06 -0800)]
sequences.interleaved: use 2/ (shift) instead of 2 / (divide).

6 years agosequences.interleaved: adding a interleaved sequence.
John Benediktsson [Fri, 16 Feb 2018 01:33:34 +0000 (17:33 -0800)]
sequences.interleaved: adding a interleaved sequence.

6 years agosequences.extras: adding join-with-as, test with strings.
John Benediktsson [Fri, 16 Feb 2018 00:56:37 +0000 (16:56 -0800)]
sequences.extras: adding join-with-as, test with strings.

6 years agoenglish: use ?pluralize in count-of-things.
John Benediktsson [Thu, 15 Feb 2018 23:15:58 +0000 (15:15 -0800)]
english: use ?pluralize in count-of-things.

6 years agosequences.extras: faster join-with.
John Benediktsson [Thu, 15 Feb 2018 23:03:28 +0000 (15:03 -0800)]
sequences.extras: faster join-with.

If we initialize the array with the glue, then we just set every
other element from the input sequence.

6 years agoenglish: use join-with.
John Benediktsson [Thu, 15 Feb 2018 22:46:57 +0000 (14:46 -0800)]
english: use join-with.

6 years agosequences.extras: adding join-with.
John Benediktsson [Thu, 15 Feb 2018 22:46:19 +0000 (14:46 -0800)]
sequences.extras: adding join-with.

6 years agoenglish: simplify or-markup-example.
John Benediktsson [Thu, 15 Feb 2018 22:12:42 +0000 (14:12 -0800)]
english: simplify or-markup-example.

6 years agohelp.lint.coverage: fix help-lint with english changes.
John Benediktsson [Thu, 15 Feb 2018 21:53:29 +0000 (13:53 -0800)]
help.lint.coverage: fix help-lint with english changes.

Longer term maybe easier if it just help-lint-coverage on itself?

6 years agoenglish: fix up docs.
John Benediktsson [Thu, 15 Feb 2018 21:50:53 +0000 (13:50 -0800)]
english: fix up docs.

6 years agoenglish: change comma-list to fit my brain better.
John Benediktsson [Thu, 15 Feb 2018 21:47:23 +0000 (13:47 -0800)]
english: change comma-list to fit my brain better.

We can always map-index in the caller if you want it before passing the parts in.

6 years agoSquashed commit of the following:
John Benediktsson [Thu, 15 Feb 2018 21:21:27 +0000 (13:21 -0800)]
Squashed commit of the following:

commit 429917d51c569b28d43b64f3b116e6b750e77c72
Author: Cat Stevens <catb0t@protonmail.ch>
Date:   Thu Feb 15 15:54:50 2018 -0500

    fix <PRIVATE> inside ARTICLE: ?!?!

commit b93243511c40ca7fd06120d089ead172df46c8b7
Author: Cat Stevens <catb0t@protonmail.ch>
Date:   Wed Feb 14 18:11:26 2018 -0500

    pluralize definition fix

commit e461c08166f98b974ae0e9075331dd388c1bcb48
Author: Cat Stevens <catb0t@protonmail.ch>
Date:   Wed Feb 14 16:28:05 2018 -0500

    update some words

commit 573ba01d6310d64788d13685dfc46099ffddb01b
Author: Cat Stevens <catb0t@protonmail.ch>
Date:   Wed Feb 14 16:06:42 2018 -0500

    remove a useless comment

commit 7733ade275a904449a3c691f4142329aaf73081e
Author: Cat Stevens <catb0t@protonmail.ch>
Date:   Wed Feb 14 14:30:06 2018 -0500

    extra/help.lint.coverage: update doctests because of new 100% coverage in basis/english

commit 9f89d2f5a261188dbd030b868323e3a0e95fb6c8
Author: Cat Stevens <catb0t@protonmail.ch>
Date:   Tue Feb 13 18:51:33 2018 -0500

    basis/english: new words; full help and test coverage

6 years agofix some tests broken by previous commit.
John Benediktsson [Thu, 15 Feb 2018 21:16:39 +0000 (13:16 -0800)]
fix some tests broken by previous commit.

6 years agomore test IN: cleanup.
John Benediktsson [Thu, 15 Feb 2018 17:20:01 +0000 (09:20 -0800)]
more test IN: cleanup.

6 years agomore test IN: cleanup.
John Benediktsson [Thu, 15 Feb 2018 16:45:08 +0000 (08:45 -0800)]
more test IN: cleanup.

6 years agofix some test usings broken in the cleanup yesterday.
John Benediktsson [Thu, 15 Feb 2018 15:14:56 +0000 (07:14 -0800)]
fix some test usings broken in the cleanup yesterday.

6 years agoproject-euler.186: simpler with if instead of 2unless?.
John Benediktsson [Thu, 15 Feb 2018 03:46:26 +0000 (19:46 -0800)]
project-euler.186: simpler with if instead of 2unless?.

Not sure why I'm still working on this.

6 years agoproject-euler.186: merge next/advance.
John Benediktsson [Thu, 15 Feb 2018 03:38:37 +0000 (19:38 -0800)]
project-euler.186: merge next/advance.

6 years agoproject-euler.186: the build bots can handle it.
John Benediktsson [Thu, 15 Feb 2018 03:34:15 +0000 (19:34 -0800)]
project-euler.186: the build bots can handle it.

6 years agoproject-euler: removing unnecessary IN: in -tests.
John Benediktsson [Thu, 15 Feb 2018 01:16:47 +0000 (17:16 -0800)]
project-euler: removing unnecessary IN: in -tests.

6 years agoproject-euler.186: fix, I guess it's been broken for awhile.
John Benediktsson [Thu, 15 Feb 2018 01:15:43 +0000 (17:15 -0800)]
project-euler.186: fix, I guess it's been broken for awhile.

6 years agoextra: remove some unneeded IN: in -tests.
John Benediktsson [Thu, 15 Feb 2018 01:01:11 +0000 (17:01 -0800)]
extra: remove some unneeded IN: in -tests.

6 years agosudoku: better tests.
John Benediktsson [Thu, 15 Feb 2018 01:00:51 +0000 (17:00 -0800)]
sudoku: better tests.

6 years agoassoc-heaps: adding / fixing test case.
John Benediktsson [Thu, 15 Feb 2018 00:52:53 +0000 (16:52 -0800)]
assoc-heaps: adding / fixing test case.

6 years agotyped: cleanup using.
John Benediktsson [Thu, 15 Feb 2018 00:22:04 +0000 (16:22 -0800)]
typed: cleanup using.

6 years agoio.directories.search: use fry instead of curry in find-file.
John Benediktsson [Thu, 15 Feb 2018 00:21:50 +0000 (16:21 -0800)]
io.directories.search: use fry instead of curry in find-file.

6 years agotools.deprecation: use none?.
John Benediktsson [Wed, 14 Feb 2018 19:57:55 +0000 (11:57 -0800)]
tools.deprecation: use none?.

6 years agomisc/vim: update syntax file for none? addition.
John Benediktsson [Wed, 14 Feb 2018 19:57:05 +0000 (11:57 -0800)]
misc/vim: update syntax file for none? addition.

6 years agocore/basis/extra: use none?.
John Benediktsson [Wed, 14 Feb 2018 19:56:31 +0000 (11:56 -0800)]
core/basis/extra: use none?.

6 years agosequences: moving none? to core.
John Benediktsson [Wed, 14 Feb 2018 19:23:03 +0000 (11:23 -0800)]
sequences: moving none? to core.

6 years agodb.sqlite: remove unused "db-table" namespace variable.
John Benediktsson [Wed, 14 Feb 2018 18:40:07 +0000 (10:40 -0800)]
db.sqlite: remove unused "db-table" namespace variable.

6 years agodb.tuples: simplify count-tuples.
John Benediktsson [Wed, 14 Feb 2018 18:39:55 +0000 (10:39 -0800)]
db.tuples: simplify count-tuples.

6 years agodb.queries: set the "table-name" inside a with-variables.
John Benediktsson [Wed, 14 Feb 2018 18:39:20 +0000 (10:39 -0800)]
db.queries: set the "table-name" inside a with-variables.

6 years agodb.errors: cleanup using.
John Benediktsson [Wed, 14 Feb 2018 18:39:09 +0000 (10:39 -0800)]
db.errors: cleanup using.

6 years agodb.tuples: use fry instead of curry, fix stack effect of check-columns.
John Benediktsson [Wed, 14 Feb 2018 17:49:27 +0000 (09:49 -0800)]
db.tuples: use fry instead of curry, fix stack effect of check-columns.

6 years agodb.tuples: more efficient with-disposals if sequence passed in.
John Benediktsson [Wed, 14 Feb 2018 17:42:19 +0000 (09:42 -0800)]
db.tuples: more efficient with-disposals if sequence passed in.

6 years agodb.types: simplify filter-ignores.
John Benediktsson [Wed, 14 Feb 2018 17:19:21 +0000 (09:19 -0800)]
db.types: simplify filter-ignores.

6 years agocore/combinators docs: fix unclearness in case help
Cat Stevens [Tue, 13 Feb 2018 19:52:19 +0000 (14:52 -0500)]
core/combinators docs: fix unclearness in case help

6 years agofix couple more typos in docs.
John Benediktsson [Tue, 13 Feb 2018 19:44:32 +0000 (11:44 -0800)]
fix couple more typos in docs.

6 years agodocuments: simplify text+loc.
John Benediktsson [Tue, 13 Feb 2018 01:45:48 +0000 (17:45 -0800)]
documents: simplify text+loc.

6 years agofix another typo.
John Benediktsson [Tue, 13 Feb 2018 01:17:44 +0000 (17:17 -0800)]
fix another typo.

6 years agofix more typos in docs.
John Benediktsson [Tue, 13 Feb 2018 00:43:08 +0000 (16:43 -0800)]
fix more typos in docs.

6 years agofix some typos in docs.
John Benediktsson [Tue, 13 Feb 2018 00:22:49 +0000 (16:22 -0800)]
fix some typos in docs.

6 years agofix a typo in compiler.tree.propagation.constraints documentation
Cat Stevens [Mon, 12 Feb 2018 19:41:41 +0000 (14:41 -0500)]
fix a typo in compiler.tree.propagation.constraints documentation

6 years agorepair overwritten changes
Cat Stevens [Mon, 12 Feb 2018 04:22:19 +0000 (23:22 -0500)]
repair overwritten changes

6 years agofinal fixups
Cat Stevens [Mon, 12 Feb 2018 03:48:24 +0000 (22:48 -0500)]
final fixups

6 years agominesweeper: workaround world initialization problem.
John Benediktsson [Mon, 12 Feb 2018 04:00:18 +0000 (20:00 -0800)]
minesweeper: workaround world initialization problem.

Needs a better long term fix.

6 years agominesweeper: code golfing.
John Benediktsson [Mon, 12 Feb 2018 02:56:19 +0000 (18:56 -0800)]
minesweeper: code golfing.

6 years agominesweeper: always relayout-1 on click/mark.
John Benediktsson [Sun, 11 Feb 2018 18:09:36 +0000 (10:09 -0800)]
minesweeper: always relayout-1 on click/mark.

This fixes the smiley uhoh to repaint immediately rather than
waiting for the next timer tick.

6 years agominesweeper: click cells around question but not flagged.
John Benediktsson [Sun, 11 Feb 2018 18:02:36 +0000 (10:02 -0800)]
minesweeper: click cells around question but not flagged.

6 years agoui.gadgets.labeled: make <labeled-gadget> not take a color.
John Benediktsson [Sun, 11 Feb 2018 17:52:00 +0000 (09:52 -0800)]
ui.gadgets.labeled: make <labeled-gadget> not take a color.

This allows backwards compatibility with 0.97 API.  Adding
<colored-labeled-gadget> for a version with a colored divider
and implementing it with a gap between title bar and content
intead of a shelf border gadget.

6 years agowindows.dragdrop-listener: Fix the other using!
Doug Coleman [Sun, 11 Feb 2018 06:12:47 +0000 (00:12 -0600)]
windows.dragdrop-listener: Fix the other using!

6 years agoui.pens.caching: Fix using.
Doug Coleman [Sun, 11 Feb 2018 01:52:03 +0000 (19:52 -0600)]
ui.pens.caching: Fix using.

6 years agofactor: Clean up wrong form of specialized-arrays in using lists.
Doug Coleman [Sat, 10 Feb 2018 21:25:36 +0000 (15:25 -0600)]
factor: Clean up wrong form of specialized-arrays in using lists.

6 years agominesweeper: adding a fun minesweeper game.
John Benediktsson [Sat, 10 Feb 2018 01:27:04 +0000 (17:27 -0800)]
minesweeper: adding a fun minesweeper game.

6 years agovocabs.metadata: rename vocab-file-contents to vocab-file-lines.
John Benediktsson [Fri, 9 Feb 2018 18:19:33 +0000 (10:19 -0800)]
vocabs.metadata: rename vocab-file-contents to vocab-file-lines.

6 years agovocabs.metadata.resources: sometimes vocab-resources can be ``f``.
John Benediktsson [Fri, 9 Feb 2018 18:19:06 +0000 (10:19 -0800)]
vocabs.metadata.resources: sometimes vocab-resources can be ``f``.

6 years agohelp.markup: allow { $maybe { $sequence "lines" } } in docs.
John Benediktsson [Fri, 9 Feb 2018 18:18:36 +0000 (10:18 -0800)]
help.markup: allow { $maybe { $sequence "lines" } } in docs.

6 years agomachine-learning.decision-trees: vocab for creating decision trees
Björn Lindqvist [Thu, 8 Feb 2018 18:47:00 +0000 (19:47 +0100)]
machine-learning.decision-trees: vocab for creating decision trees

not done

6 years agoproject-euler.*: uses for arg-max and arg-min
Björn Lindqvist [Thu, 8 Feb 2018 18:43:44 +0000 (19:43 +0100)]
project-euler.*: uses for arg-max and arg-min

6 years agosequences.extras: this formulation of arg-max/min should be better
Björn Lindqvist [Thu, 8 Feb 2018 18:39:31 +0000 (19:39 +0100)]
sequences.extras: this formulation of arg-max/min should be better

6 years agothis file wasn't intended
Björn Lindqvist [Thu, 8 Feb 2018 17:07:50 +0000 (18:07 +0100)]
this file wasn't intended

6 years agomachine-learning.data-sets: adding the monks problems
Björn Lindqvist [Thu, 8 Feb 2018 15:39:49 +0000 (16:39 +0100)]
machine-learning.data-sets: adding the monks problems

6 years agoFUEL: fuel-edit-word is kind of redundant
Björn Lindqvist [Wed, 7 Feb 2018 19:49:46 +0000 (20:49 +0100)]
FUEL: fuel-edit-word is kind of redundant

fuel-edit-word-at-point does the same job when the caret is not on a
word.

6 years agoFUEL: fix the test that broke due to refactoring
Björn Lindqvist [Wed, 7 Feb 2018 19:37:06 +0000 (20:37 +0100)]
FUEL: fix the test that broke due to refactoring

6 years agoFUEL: fix cmd syntax of call to fuel-scaffold-vocab
Björn Lindqvist [Wed, 7 Feb 2018 19:29:05 +0000 (20:29 +0100)]
FUEL: fix cmd syntax of call to fuel-scaffold-vocab

6 years agoFUEL: remove fuel-scaffold-developer-name
Björn Lindqvist [Wed, 7 Feb 2018 18:41:48 +0000 (19:41 +0100)]
FUEL: remove fuel-scaffold-developer-name

It seem unlikely that someone would need this variable when you can
instead use user-full-name or set developer-name in Factor.

6 years agoFUEL: refactoring to eliminate the eval-result variable
Björn Lindqvist [Wed, 7 Feb 2018 17:38:28 +0000 (18:38 +0100)]
FUEL: refactoring to eliminate the eval-result variable

This makes the FUEL <-> Elisp ipc much simpler. All code called from
Elisp should put one result item on the stack. The fuel-pprint word
serializes it.

6 years agocalendar.holidays: simplify M\ all holidays.
John Benediktsson [Wed, 7 Feb 2018 04:53:49 +0000 (20:53 -0800)]
calendar.holidays: simplify M\ all holidays.

6 years agoFUEL: a bunch of functions replaced with alist-get calls
Björn Lindqvist [Tue, 6 Feb 2018 04:31:02 +0000 (05:31 +0100)]
FUEL: a bunch of functions replaced with alist-get calls

6 years agoFUEL: alist-get instead of (cdr (assoc key alist))
Björn Lindqvist [Tue, 6 Feb 2018 04:19:35 +0000 (05:19 +0100)]
FUEL: alist-get instead of (cdr (assoc key alist))

alist-get is a new function in emacs 25. It makes working with assocs
a bit simpler.

6 years agogit: better use assert= than custom error + test
Björn Lindqvist [Tue, 6 Feb 2018 03:44:09 +0000 (04:44 +0100)]
git: better use assert= than custom error + test

6 years agohelp.lint.coverage: change to use a find-word that doesn't use search.
John Benediktsson [Mon, 5 Feb 2018 23:42:36 +0000 (15:42 -0800)]
help.lint.coverage: change to use a find-word that doesn't use search.

When run with the test runner, manifest is ``f``, so ``search`` breaks.

6 years agofuel.help: change find-word to use words-named.
John Benediktsson [Mon, 5 Feb 2018 23:40:46 +0000 (15:40 -0800)]
fuel.help: change find-word to use words-named.

It still returns the "first" word found (which might be dubious), but
now it supports qualified search like "math:+" find-word.

6 years agohelp.lint.coverage: fix tests using.
John Benediktsson [Mon, 5 Feb 2018 15:48:42 +0000 (07:48 -0800)]
help.lint.coverage: fix tests using.

6 years agoRevert "add $related-subsections"
John Benediktsson [Mon, 5 Feb 2018 15:46:42 +0000 (07:46 -0800)]
Revert "add $related-subsections"

This reverts commit 7c22e764f9c87120e1fdc5cdbab73717e95557c2.

6 years agoadd $related-subsections
Cat Stevens [Sun, 4 Feb 2018 17:20:57 +0000 (12:20 -0500)]
add $related-subsections

6 years agorefactor help.lint.coverage with complete docs and tests
Cat Stevens [Mon, 5 Feb 2018 01:56:11 +0000 (20:56 -0500)]
refactor help.lint.coverage with complete docs and tests

6 years agogame.input.gtk: throw in case no display is found
Björn Lindqvist [Sun, 4 Feb 2018 22:24:04 +0000 (23:24 +0100)]
game.input.gtk: throw in case no display is found

6 years agogoogle.gmail: vocab needs some docs
Björn Lindqvist [Sun, 4 Feb 2018 20:53:08 +0000 (21:53 +0100)]
google.gmail: vocab needs some docs

6 years agooauth2: vocab needs some docs
Björn Lindqvist [Sun, 4 Feb 2018 20:25:07 +0000 (21:25 +0100)]
oauth2: vocab needs some docs

6 years agov0.3 rename / rebrand pedantic lint to help coverage; rewrite again
Cat Stevens [Sat, 3 Feb 2018 18:16:53 +0000 (13:16 -0500)]
v0.3 rename / rebrand pedantic lint to help coverage; rewrite again

6 years agov0.2 help.lint.pedantic: move to extra
Cat Stevens [Fri, 2 Feb 2018 19:11:47 +0000 (14:11 -0500)]
v0.2 help.lint.pedantic: move to extra

6 years agov0.1 help.lint.pedantic
Cat Stevens [Thu, 1 Feb 2018 23:53:56 +0000 (18:53 -0500)]
v0.1 help.lint.pedantic

6 years agofix syntax typo in shaders docs
Cat Stevens [Thu, 1 Feb 2018 16:11:58 +0000 (11:11 -0500)]
fix syntax typo in shaders docs

6 years agoFUEL: fix rendering of $synopsis markup.
Björn Lindqvist [Thu, 1 Feb 2018 14:43:27 +0000 (15:43 +0100)]
FUEL: fix rendering of $synopsis markup.

It is rendered exactly the same as $see markup. It works well and was
the easiest fix to the problem.

6 years agotravis: DEBUG build, makes factor slower but catches more errors (hopefully)
Björn Lindqvist [Wed, 31 Jan 2018 17:26:46 +0000 (18:26 +0100)]
travis: DEBUG build, makes factor slower but catches more errors (hopefully)

6 years agocast fixes undefined behaviour; closes #1919 in upstream
Cat Stevens [Sat, 27 Jan 2018 18:05:07 +0000 (13:05 -0500)]
cast fixes undefined behaviour; closes #1919 in upstream

6 years agoopengl.shaders: probably better to call the gl functions directly
Björn Lindqvist [Wed, 31 Jan 2018 00:42:04 +0000 (01:42 +0100)]
opengl.shaders: probably better to call the gl functions directly

6 years agoopengl.shaders: docs + removing an unused word
Björn Lindqvist [Wed, 31 Jan 2018 00:23:11 +0000 (01:23 +0100)]
opengl.shaders: docs + removing an unused word

6 years agoFUEL: improved fuel-get-uses
Björn Lindqvist [Sun, 28 Jan 2018 02:48:09 +0000 (03:48 +0100)]
FUEL: improved fuel-get-uses

The path to the source file needs to be set when parsing, in case a
syntax word uses 'where' or some similar word.

6 years agogpu.shaders: simplified in-word's-path
Björn Lindqvist [Sun, 28 Jan 2018 02:43:01 +0000 (03:43 +0100)]
gpu.shaders: simplified in-word's-path

6 years agoui.backend.gtk: gtk_init terminates, better throw exception
Björn Lindqvist [Mon, 29 Jan 2018 10:44:27 +0000 (11:44 +0100)]
ui.backend.gtk: gtk_init terminates, better throw exception

6 years agoui.tests: remove badly baked unit test
Björn Lindqvist [Mon, 29 Jan 2018 10:42:49 +0000 (11:42 +0100)]
ui.tests: remove badly baked unit test