]> gitweb.factorcode.org Git - factor.git/log
factor.git
7 years agocharts.lines: add last2
Alexander Iljin [Fri, 13 Jan 2017 07:56:22 +0000 (10:56 +0300)]
charts.lines: add last2

7 years agocharts.lines: add calc-y
Alexander Iljin [Thu, 12 Jan 2017 22:58:52 +0000 (01:58 +0300)]
charts.lines: add calc-y

7 years agocharts.lines: add calc-line-slope
Alexander Iljin [Thu, 12 Jan 2017 18:57:05 +0000 (21:57 +0300)]
charts.lines: add calc-line-slope

7 years agocharts.lines: avoid calling like when not necessary
Alexander Iljin [Thu, 12 Jan 2017 12:33:08 +0000 (15:33 +0300)]
charts.lines: avoid calling like when not necessary

7 years agocharts.lines: don't keep extra elements in data if exact match was found
Alexander Iljin [Thu, 12 Jan 2017 12:31:37 +0000 (15:31 +0300)]
charts.lines: don't keep extra elements in data if exact match was found

7 years agocharts.lines: add and update some comments
Alexander Iljin [Thu, 12 Jan 2017 12:28:56 +0000 (15:28 +0300)]
charts.lines: add and update some comments

7 years agocharts.lines: make clip-by-first operate on slices internally
Alexander Iljin [Tue, 10 Jan 2017 21:32:45 +0000 (00:32 +0300)]
charts.lines: make clip-by-first operate on slices internally

7 years agocharts.lines: rename search-index to search-first
Alexander Iljin [Tue, 10 Jan 2017 20:06:33 +0000 (23:06 +0300)]
charts.lines: rename search-index to search-first

7 years agocharts.lines: add dummy drawable-chunks
Alexander Iljin [Sun, 8 Jan 2017 11:14:56 +0000 (14:14 +0300)]
charts.lines: add dummy drawable-chunks

7 years agocharts.lines: move (line-vertices) into private section
Alexander Iljin [Sun, 8 Jan 2017 11:12:52 +0000 (14:12 +0300)]
charts.lines: move (line-vertices) into private section

7 years agocharts: update some comments
Alexander Iljin [Fri, 6 Jan 2017 22:36:30 +0000 (01:36 +0300)]
charts: update some comments

7 years agocharts: move code related to line drawing to charts.lines
Alexander Iljin [Fri, 6 Jan 2017 22:36:15 +0000 (01:36 +0300)]
charts: move code related to line drawing to charts.lines

7 years agocharts: use clip-data in draw-gadget*
Alexander Iljin [Fri, 13 Jan 2017 10:59:07 +0000 (13:59 +0300)]
charts: use clip-data in draw-gadget*

7 years agocharts: make clip-data handle y coords as well
Alexander Iljin [Fri, 6 Jan 2017 22:17:47 +0000 (01:17 +0300)]
charts: make clip-data handle y coords as well

Implementation is efficient: the minmax for y is only called after trimming
the data on the x bounds. If the entire data set is outside the x range,
handling is terminated early.

7 years agocharts: add clip-data with test
Alexander Iljin [Fri, 6 Jan 2017 19:00:31 +0000 (22:00 +0300)]
charts: add clip-data with test

7 years agocharts: add the "graphics" tag
Alexander Iljin [Fri, 6 Jan 2017 08:45:56 +0000 (11:45 +0300)]
charts: add the "graphics" tag

7 years agocharts: initial import
Alexander Iljin [Fri, 6 Jan 2017 08:38:03 +0000 (11:38 +0300)]
charts: initial import

7 years agopos: delete vocab from unmaintained
Alexander Iljin [Thu, 16 Mar 2017 16:11:55 +0000 (19:11 +0300)]
pos: delete vocab from unmaintained

It was only useful with the self vocab, which is long gone.

7 years agotools.test-docs: fix the order of parameters for must-fail-with 1803/head
Alexander Iljin [Fri, 7 Apr 2017 15:30:30 +0000 (18:30 +0300)]
tools.test-docs: fix the order of parameters for must-fail-with

7 years agomath.functions-docs: update description of e^
Alexander Iljin [Thu, 23 Mar 2017 20:24:00 +0000 (23:24 +0300)]
math.functions-docs: update description of e^

7 years agomath.functions[-docs]: rename the output parameters of the power functions
Alexander Iljin [Thu, 23 Mar 2017 20:22:37 +0000 (23:22 +0300)]
math.functions[-docs]: rename the output parameters of the power functions

7 years agoAdd French number>text support for ratios 1799/head
Samuel Tardieu [Thu, 23 Mar 2017 11:05:45 +0000 (12:05 +0100)]
Add French number>text support for ratios

7 years agoApply 1990 French orthographic reform for writing numbers
Samuel Tardieu [Thu, 23 Mar 2017 10:32:52 +0000 (11:32 +0100)]
Apply 1990 French orthographic reform for writing numbers

7 years agoio.standard-paths.unix: use $USER's configured shell.
John Benediktsson [Tue, 21 Mar 2017 23:05:23 +0000 (16:05 -0700)]
io.standard-paths.unix: use $USER's configured shell.

Hope that '-l -c "echo $PATH"' works.

7 years agorosetta-code.gnome-sort: add some tests
Alexander Iljin [Sat, 18 Mar 2017 22:17:13 +0000 (01:17 +0300)]
rosetta-code.gnome-sort: add some tests

7 years agorosetta-code.gnome-sort: add vocab
Alexander Iljin [Sat, 18 Mar 2017 21:42:36 +0000 (00:42 +0300)]
rosetta-code.gnome-sort: add vocab

7 years agoinfix: adding support for constants and ( -- x ) words.
John Benediktsson [Sat, 18 Mar 2017 20:27:33 +0000 (13:27 -0700)]
infix: adding support for constants and ( -- x ) words.

Also speed up subseq steps with negative steps.

7 years agoclasses.maybe: fix help-lint for docs.
John Benediktsson [Fri, 17 Mar 2017 20:21:36 +0000 (13:21 -0700)]
classes.maybe: fix help-lint for docs.

Right now the examples must have stack effect ( -- ).  Some future
version might have an output stack assertion, but for now use
prettyprint to check result.

7 years agoanimations-docs: fix a typo
Alexander Iljin [Thu, 16 Mar 2017 16:12:18 +0000 (19:12 +0300)]
animations-docs: fix a typo

7 years agoclasses.maybe-docs: create some documentation for the maybe vocab
Alexander Iljin [Thu, 16 Mar 2017 10:24:28 +0000 (13:24 +0300)]
classes.maybe-docs: create some documentation for the maybe vocab

Integrate the pointers to the new article into existing help system,
primarily by looking for the uses of the "unions" article.

7 years ago*-docs: fix a typo in the word parametErized
Alexander Iljin [Thu, 16 Mar 2017 08:54:44 +0000 (11:54 +0300)]
*-docs: fix a typo in the word parametErized

7 years agoalien-docs: fix wording
Alexander Iljin [Sat, 25 Feb 2017 19:31:32 +0000 (22:31 +0300)]
alien-docs: fix wording

7 years agosequences-docs: add a bunch of related-words
Alexander Iljin [Thu, 16 Feb 2017 22:47:16 +0000 (01:47 +0300)]
sequences-docs: add a bunch of related-words

7 years agosequences-docs: simplify the head* description
Alexander Iljin [Thu, 16 Feb 2017 22:02:32 +0000 (01:02 +0300)]
sequences-docs: simplify the head* description

7 years agoinfix: add support for string literals.
John Benediktsson [Thu, 16 Mar 2017 23:14:51 +0000 (16:14 -0700)]
infix: add support for string literals.

Rename ast-number to ast-value (to represent any literal value).

7 years agoinfix: don't shadow ``t`` even though we can.
John Benediktsson [Thu, 16 Mar 2017 22:50:58 +0000 (15:50 -0700)]
infix: don't shadow ``t`` even though we can.

7 years agoinfix: add a test for nested local scopes.
John Benediktsson [Thu, 16 Mar 2017 22:49:07 +0000 (15:49 -0700)]
infix: add a test for nested local scopes.

7 years agoinfix: fix to allow nested local scopes.
John Benediktsson [Thu, 16 Mar 2017 22:36:07 +0000 (15:36 -0700)]
infix: fix to allow nested local scopes.

7 years agoui.gadgets.buttons: workaround for windows gradient bug
nicolas-p [Fri, 10 Mar 2017 20:31:05 +0000 (21:31 +0100)]
ui.gadgets.buttons: workaround for windows gradient bug

7 years agoio.standard-paths.windows: fix find-in-program-files.
John Benediktsson [Mon, 6 Mar 2017 03:17:14 +0000 (19:17 -0800)]
io.standard-paths.windows: fix find-in-program-files.

Remove stale bfs? flag.

7 years agoio.standard-paths.windows: fix to use find-file-in-directories.
John Benediktsson [Sun, 5 Mar 2017 23:58:59 +0000 (15:58 -0800)]
io.standard-paths.windows: fix to use find-file-in-directories.

7 years agoio.directories.search: fix linux tests.
John Benediktsson [Sun, 5 Mar 2017 23:56:28 +0000 (15:56 -0800)]
io.directories.search: fix linux tests.

Linux doesn't return alphabetic ordering like Windows and macOS, so
we just assert the paths are iterated in the correct order by depth.

7 years agotools.deploy.shaker: support "stop-after-last-window?".
John Benediktsson [Sun, 5 Mar 2017 23:13:24 +0000 (15:13 -0800)]
tools.deploy.shaker: support "stop-after-last-window?".

This only works on macOS right now, but since most every deploy.factor
has it set, we should read it and use it.

7 years agoui.backend: adding ui-stop-after-last-window?.
John Benediktsson [Sun, 5 Mar 2017 22:51:33 +0000 (14:51 -0800)]
ui.backend: adding ui-stop-after-last-window?.

This defaults to true, except for the "ui.tools".  Also, this only
works on macOS right now.  Linux and Windows always stop after the
last window closes.

7 years agosequences: fix filter! to allow stack arguments to be used by the quot.
John Benediktsson [Sun, 5 Mar 2017 22:09:03 +0000 (14:09 -0800)]
sequences: fix filter! to allow stack arguments to be used by the quot.

7 years agoid3: fix for find-files-by-extension rename.
John Benediktsson [Sun, 5 Mar 2017 21:47:19 +0000 (13:47 -0800)]
id3: fix for find-files-by-extension rename.

7 years agoinverse: simplify, a little cleanup.
John Benediktsson [Sun, 5 Mar 2017 21:32:34 +0000 (13:32 -0800)]
inverse: simplify, a little cleanup.

7 years agoio.directories.search: simplify interface.
John Benediktsson [Sun, 5 Mar 2017 17:16:00 +0000 (09:16 -0800)]
io.directories.search: simplify interface.

Now we use a ``traversal-method`` variable that controls whether
we do a depth-first or breadth-first search rather than a stack
argument or a fixed default specified in each word.

This also fixes an issue where breadth-first traversal would
iterate across children in reverse order, now it does the normal
ordering which is typically alphabetical.

7 years agolru-cache: fix M\ lru-cache clone.
John Benediktsson [Fri, 3 Mar 2017 02:41:24 +0000 (18:41 -0800)]
lru-cache: fix M\ lru-cache clone.

7 years agolru-cache: adding a Least Recently Used (LRU) cache.
John Benediktsson [Fri, 3 Mar 2017 00:12:01 +0000 (16:12 -0800)]
lru-cache: adding a Least Recently Used (LRU) cache.

7 years agolinked-assocs.prettyprint: only print LH{ } for linked-assoc classes.
John Benediktsson [Fri, 3 Mar 2017 00:09:46 +0000 (16:09 -0800)]
linked-assocs.prettyprint: only print LH{ } for linked-assoc classes.

Not subclasses.

7 years agocombinators.extras: adding a variant to cond.
John Benediktsson [Tue, 21 Feb 2017 22:51:30 +0000 (14:51 -0800)]
combinators.extras: adding a variant to cond.

7 years agofixed variable name mismatch
thron7 [Tue, 21 Feb 2017 14:13:02 +0000 (15:13 +0100)]
fixed variable name mismatch

7 years agoslots: added margins
nicolas-p [Tue, 14 Feb 2017 18:55:52 +0000 (19:55 +0100)]
slots: added margins

7 years agochecksums.sha1-docs: fix wording 1789/head
Alexander Iljin [Tue, 14 Feb 2017 19:57:57 +0000 (22:57 +0300)]
checksums.sha1-docs: fix wording

7 years agoui.baseline-alignment-docs: replace $snippet with $slot
Alexander Iljin [Wed, 8 Feb 2017 18:11:06 +0000 (21:11 +0300)]
ui.baseline-alignment-docs: replace $snippet with $slot

7 years agoui.render-docs: replace $snippet with $slot
Alexander Iljin [Sat, 21 Jan 2017 19:58:25 +0000 (22:58 +0300)]
ui.render-docs: replace $snippet with $slot

7 years agococoa.messages: simplify (objc-class).
John Benediktsson [Sun, 12 Feb 2017 04:58:25 +0000 (20:58 -0800)]
cocoa.messages: simplify (objc-class).

7 years agodelegate.protocols: adding deque-protocol.
John Benediktsson [Sat, 11 Feb 2017 22:23:57 +0000 (14:23 -0800)]
delegate.protocols: adding deque-protocol.

7 years agousing when instead of [ ] if.
John Benediktsson [Fri, 10 Feb 2017 00:29:14 +0000 (16:29 -0800)]
using when instead of [ ] if.

7 years agovocabs: simplify M\ string require.
John Benediktsson [Fri, 10 Feb 2017 00:24:05 +0000 (16:24 -0800)]
vocabs: simplify M\ string require.

7 years agorosetta-code.equilibrium-index: simplify.
John Benediktsson [Fri, 10 Feb 2017 00:04:20 +0000 (16:04 -0800)]
rosetta-code.equilibrium-index: simplify.

7 years agousing ignore-errors instead of [ drop ] recover.
John Benediktsson [Thu, 9 Feb 2017 23:50:33 +0000 (15:50 -0800)]
using ignore-errors instead of [ drop ] recover.

7 years agomath.primes.safe: this looks nicer.
John Benediktsson [Wed, 8 Feb 2017 19:32:34 +0000 (11:32 -0800)]
math.primes.safe: this looks nicer.

7 years agocompiler.utilities: move conjoin-at tests.
John Benediktsson [Wed, 8 Feb 2017 19:16:00 +0000 (11:16 -0800)]
compiler.utilities: move conjoin-at tests.

7 years agomath.primes.factors: support command-line args like factor(1).
John Benediktsson [Wed, 8 Feb 2017 19:14:24 +0000 (11:14 -0800)]
math.primes.factors: support command-line args like factor(1).

7 years agomath.primes.safe: simplify.
John Benediktsson [Wed, 8 Feb 2017 19:14:10 +0000 (11:14 -0800)]
math.primes.safe: simplify.

7 years agotrees, attempt to keep shape during conersions
Jon Harper [Wed, 25 Jan 2017 18:26:22 +0000 (19:26 +0100)]
trees, attempt to keep shape during conersions

7 years agotrees, make pop/slurp work for all trees
Jon Harper [Wed, 25 Jan 2017 14:25:56 +0000 (15:25 +0100)]
trees, make pop/slurp work for all trees

It is not as optimized as it could be but it is a simple way
to ensure that the tree properties are maintained.

7 years agotrees, cleanup privates
Jon Harper [Tue, 24 Jan 2017 19:03:47 +0000 (20:03 +0100)]
trees, cleanup privates

7 years agotrees, add pop/slurp operations
Jon Harper [Tue, 24 Jan 2017 18:59:27 +0000 (19:59 +0100)]
trees, add pop/slurp operations

7 years agotrees, add navigation operations (lower-key etc.)
Jon Harper [Tue, 24 Jan 2017 13:30:22 +0000 (14:30 +0100)]
trees, add navigation operations (lower-key etc.)

7 years agotrees, add range operations (subtree>alist etc.)
Jon Harper [Tue, 24 Jan 2017 13:30:05 +0000 (14:30 +0100)]
trees, add range operations (subtree>alist etc.)

7 years agotrees, fix delete-at. Add testcase
Jon Harper [Mon, 9 Jan 2017 16:22:20 +0000 (17:22 +0100)]
trees, fix delete-at. Add testcase

7 years agotrees.splay, add test for assoc-size
Jon Harper [Fri, 6 Jan 2017 16:34:07 +0000 (17:34 +0100)]
trees.splay, add test for assoc-size

7 years agotrees.avl, implement assoc-size
Jon Harper [Fri, 6 Jan 2017 16:33:05 +0000 (17:33 +0100)]
trees.avl, implement assoc-size

7 years agotrees, implement assoc-size
Jon Harper [Fri, 6 Jan 2017 15:40:47 +0000 (16:40 +0100)]
trees, implement assoc-size

7 years agotrees, add height
Jon Harper [Fri, 6 Jan 2017 14:28:24 +0000 (15:28 +0100)]
trees, add height

7 years agotrees, change M\ tree clone to keep the shape of the tree
Jon Harper [Fri, 6 Jan 2017 14:20:06 +0000 (15:20 +0100)]
trees, change M\ tree clone to keep the shape of the tree

Without this, all base class and splay trees were becoming linked lists after cloning..

7 years agocompiler.cfg.gvn.avail: fix using.
John Benediktsson [Wed, 8 Feb 2017 17:30:31 +0000 (09:30 -0800)]
compiler.cfg.gvn.avail: fix using.

7 years agosequences: simplify (map-find).
John Benediktsson [Wed, 8 Feb 2017 03:42:58 +0000 (19:42 -0800)]
sequences: simplify (map-find).

7 years agosets: moving unique/conjoin/conjoin-at to compiler.utilities.
John Benediktsson [Wed, 8 Feb 2017 02:54:24 +0000 (18:54 -0800)]
sets: moving unique/conjoin/conjoin-at to compiler.utilities.

7 years agoassocs: change assoc= to compare with = not eq?.
John Benediktsson [Wed, 8 Feb 2017 00:40:39 +0000 (16:40 -0800)]
assocs: change assoc= to compare with = not eq?.

7 years agotools.deploy.shaker: change compiler-classes to return a set.
John Benediktsson [Tue, 7 Feb 2017 23:30:50 +0000 (15:30 -0800)]
tools.deploy.shaker: change compiler-classes to return a set.

7 years agoremove some uses of conjoin.
John Benediktsson [Tue, 7 Feb 2017 23:14:20 +0000 (15:14 -0800)]
remove some uses of conjoin.

7 years agosets: use = instead of eq? in M\ set set=.
John Benediktsson [Tue, 7 Feb 2017 22:54:57 +0000 (14:54 -0800)]
sets: use = instead of eq? in M\ set set=.

7 years agosets: simpler M\ sequence members.
John Benediktsson [Tue, 7 Feb 2017 22:50:58 +0000 (14:50 -0800)]
sets: simpler M\ sequence members.

7 years agoio.servers: using ?adjoin and ?delete in add/remove-running-server.
John Benediktsson [Tue, 7 Feb 2017 21:31:57 +0000 (13:31 -0800)]
io.servers: using ?adjoin and ?delete in add/remove-running-server.

Also fixed a small bug in add-running-server where the error was
mistakenly constructed with running-servers instead of threaded-server.

7 years agodestructors: using ?delete in unregister-disposable.
John Benediktsson [Tue, 7 Feb 2017 21:31:43 +0000 (13:31 -0800)]
destructors: using ?delete in unregister-disposable.

7 years agosets: adding ?delete that returns a boolean if elt was deleted from set.
John Benediktsson [Tue, 7 Feb 2017 21:31:07 +0000 (13:31 -0800)]
sets: adding ?delete that returns a boolean if elt was deleted from set.

7 years agoyaml: using ?adjoin.
John Benediktsson [Tue, 7 Feb 2017 20:33:34 +0000 (12:33 -0800)]
yaml: using ?adjoin.

7 years agousing map-reduce instead of unclip reduce.
John Benediktsson [Tue, 7 Feb 2017 20:16:12 +0000 (12:16 -0800)]
using map-reduce instead of unclip reduce.

7 years agoalien.libraries.finder: use find instead of map-find.
John Benediktsson [Tue, 7 Feb 2017 18:59:24 +0000 (10:59 -0800)]
alien.libraries.finder: use find instead of map-find.

7 years agoio.files.temp.macosx: use find instead of map-find.
John Benediktsson [Tue, 7 Feb 2017 18:57:37 +0000 (10:57 -0800)]
io.files.temp.macosx: use find instead of map-find.

7 years agocgi: cleaner looking without parens.
John Benediktsson [Tue, 7 Feb 2017 00:22:07 +0000 (16:22 -0800)]
cgi: cleaner looking without parens.

7 years agodocuments: split-lines is used by ui.gadgets.panes.
John Benediktsson [Tue, 7 Feb 2017 00:06:00 +0000 (16:06 -0800)]
documents: split-lines is used by ui.gadgets.panes.

7 years agoassoc-heaps: simplify.
John Benediktsson [Mon, 6 Feb 2017 19:19:43 +0000 (11:19 -0800)]
assoc-heaps: simplify.

7 years agoboyer-moore: simplify M\ sequence search-from.
John Benediktsson [Mon, 6 Feb 2017 19:17:32 +0000 (11:17 -0800)]
boyer-moore: simplify M\ sequence search-from.

7 years agodocuments: simplify to use ``string-lines``.
John Benediktsson [Mon, 6 Feb 2017 19:11:42 +0000 (11:11 -0800)]
documents: simplify to use ``string-lines``.

7 years agocolors: adding some ABOUT: links.
John Benediktsson [Mon, 6 Feb 2017 18:51:12 +0000 (10:51 -0800)]
colors: adding some ABOUT: links.