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

7 years agocolors: adding links to some of the other color implementations.
John Benediktsson [Mon, 6 Feb 2017 18:48:06 +0000 (10:48 -0800)]
colors: adding links to some of the other color implementations.

7 years agocolors.hsv: simplify by just calling the generic >hsva.
John Benediktsson [Mon, 6 Feb 2017 18:30:42 +0000 (10:30 -0800)]
colors.hsv: simplify by just calling the generic >hsva.

7 years agosimple-flat-file: rename flat-file>biassoc to load-codetable-file.
John Benediktsson [Fri, 3 Feb 2017 19:47:28 +0000 (11:47 -0800)]
simple-flat-file: rename flat-file>biassoc to load-codetable-file.

7 years agosimple-flat-file: link interval-map in docs.
John Benediktsson [Fri, 3 Feb 2017 00:48:35 +0000 (16:48 -0800)]
simple-flat-file: link interval-map in docs.

7 years agosimple-flat-file: update docs for data change.
John Benediktsson [Fri, 3 Feb 2017 00:45:56 +0000 (16:45 -0800)]
simple-flat-file: update docs for data change.

7 years agosimple-flat-file: factor out drop-comment word.
John Benediktsson [Fri, 3 Feb 2017 00:39:56 +0000 (16:39 -0800)]
simple-flat-file: factor out drop-comment word.

7 years agosimple-flat-file: rename ``data`` to ``load-data-file``.
John Benediktsson [Fri, 3 Feb 2017 00:21:06 +0000 (16:21 -0800)]
simple-flat-file: rename ``data`` to ``load-data-file``.

7 years agosimple-flat-file: faster drop-comments.
John Benediktsson [Fri, 3 Feb 2017 00:03:01 +0000 (16:03 -0800)]
simple-flat-file: faster drop-comments.

7 years agocommand-line: fix rename of nosignals to no-signals.
John Benediktsson [Thu, 2 Feb 2017 23:46:13 +0000 (15:46 -0800)]
command-line: fix rename of nosignals to no-signals.

7 years agowrap: faster (and simpler) wrapping algorithm.
John Benediktsson [Thu, 2 Feb 2017 22:02:13 +0000 (14:02 -0800)]
wrap: faster (and simpler) wrapping algorithm.

7 years agocontinuations: don't need to init-catchstack twice from init.
John Benediktsson [Thu, 2 Feb 2017 18:00:44 +0000 (10:00 -0800)]
continuations: don't need to init-catchstack twice from init.

7 years agocommand-line.startup: -help isn't going to be set.
John Benediktsson [Thu, 2 Feb 2017 18:00:23 +0000 (10:00 -0800)]
command-line.startup: -help isn't going to be set.

7 years agopdf.wrap: make sure to calculate whitespace properly.
John Benediktsson [Thu, 2 Feb 2017 17:14:10 +0000 (09:14 -0800)]
pdf.wrap: make sure to calculate whitespace properly.

7 years agopdf.wrap: fix for wrap API change.
John Benediktsson [Thu, 2 Feb 2017 16:08:22 +0000 (08:08 -0800)]
pdf.wrap: fix for wrap API change.

7 years agowrap: remove line-ideal, we only ever use a max-width.
John Benediktsson [Thu, 2 Feb 2017 04:30:57 +0000 (20:30 -0800)]
wrap: remove line-ideal, we only ever use a max-width.

7 years agoextra: cleanup some example servers, allow port to be specified on command line.
John Benediktsson [Mon, 30 Jan 2017 17:30:08 +0000 (09:30 -0800)]
extra: cleanup some example servers, allow port to be specified on command line.

7 years agoui.*: using pixel-format-attributes>int-array in even more places
Björn Lindqvist [Mon, 30 Jan 2017 05:17:37 +0000 (06:17 +0100)]
ui.*: using pixel-format-attributes>int-array in even more places

So now we don't need the PIXEL-FORMAT-ATTRIBUTE-TABLE: syntax anymore.

7 years agoui.pixel-formats,ui.backend.*: new word pixel-format-attributes>int-array
Björn Lindqvist [Mon, 30 Jan 2017 04:43:19 +0000 (05:43 +0100)]
ui.pixel-formats,ui.backend.*: new word pixel-format-attributes>int-array

This word replaces usages of the PIXEL-FORMAT-ATTRIBUTE-TABLE: syntax

7 years agoui.pixel-formats,ui.backend.*: removing the (pixel-format-attribute) generic
Björn Lindqvist [Mon, 30 Jan 2017 04:07:28 +0000 (05:07 +0100)]
ui.pixel-formats,ui.backend.*: removing the (pixel-format-attribute) generic

It appears to be unused code.

7 years agosequences.extras: additional tests for take-while and drop-while.
John Benediktsson [Fri, 27 Jan 2017 06:09:13 +0000 (22:09 -0800)]
sequences.extras: additional tests for take-while and drop-while.

7 years agosequences.extras: whoops, fix tests.
John Benediktsson [Thu, 26 Jan 2017 20:07:33 +0000 (12:07 -0800)]
sequences.extras: whoops, fix tests.

7 years agosequences.extras: experimenting with take-while and drop-while.
John Benediktsson [Thu, 26 Jan 2017 20:05:09 +0000 (12:05 -0800)]
sequences.extras: experimenting with take-while and drop-while.

7 years agomoney: adding support for floats.
John Benediktsson [Thu, 26 Jan 2017 00:44:25 +0000 (16:44 -0800)]
money: adding support for floats.

7 years agoroman: aesthetics.
John Benediktsson [Wed, 25 Jan 2017 17:48:15 +0000 (09:48 -0800)]
roman: aesthetics.

7 years agoalien.data: minor doc fix.
John Benediktsson [Wed, 25 Jan 2017 05:43:40 +0000 (21:43 -0800)]
alien.data: minor doc fix.

7 years agoio: fix stream-copy docs.
John Benediktsson [Wed, 25 Jan 2017 04:40:29 +0000 (20:40 -0800)]
io: fix stream-copy docs.

7 years agosimple-flat-file: add back string interning.
John Benediktsson [Wed, 25 Jan 2017 04:04:20 +0000 (20:04 -0800)]
simple-flat-file: add back string interning.

7 years agopack: add test for M\ object >n-byte-array.
John Benediktsson [Wed, 25 Jan 2017 01:52:35 +0000 (17:52 -0800)]
pack: add test for M\ object >n-byte-array.

7 years agopack: M\ string heap-size doesn't exist.
John Benediktsson [Wed, 25 Jan 2017 00:11:33 +0000 (16:11 -0800)]
pack: M\ string heap-size doesn't exist.

7 years agopromises: simplify LAXY:.
John Benediktsson [Wed, 25 Jan 2017 00:06:17 +0000 (16:06 -0800)]
promises: simplify LAXY:.

7 years agosimple-flat-file: simplify expand-ranges.
John Benediktsson [Tue, 24 Jan 2017 22:50:44 +0000 (14:50 -0800)]
simple-flat-file: simplify expand-ranges.

7 years agoxml.data: use <vector> instead of V{ } new-sequence.
John Benediktsson [Tue, 24 Jan 2017 22:48:09 +0000 (14:48 -0800)]
xml.data: use <vector> instead of V{ } new-sequence.

7 years agocircular: use <array> instead of { } new-sequence.
John Benediktsson [Tue, 24 Jan 2017 22:47:58 +0000 (14:47 -0800)]
circular: use <array> instead of { } new-sequence.

7 years agoalien.libraries.finder.linux: make more robust to i18n.
John Benediktsson [Tue, 24 Jan 2017 22:45:34 +0000 (14:45 -0800)]
alien.libraries.finder.linux: make more robust to i18n.

7 years agochanger: moving to extra for now.
John Benediktsson [Mon, 23 Jan 2017 18:40:55 +0000 (10:40 -0800)]
changer: moving to extra for now.

7 years agocore.math, bignum/f, shift subnormals before rounding. Fixes #1782
Jon Harper [Mon, 23 Jan 2017 15:10:36 +0000 (16:10 +0100)]
core.math, bignum/f, shift subnormals before rounding. Fixes #1782

7 years agogoogle.gmail: fix to use set-query-params.
John Benediktsson [Mon, 23 Jan 2017 18:06:16 +0000 (10:06 -0800)]
google.gmail: fix to use set-query-params.

7 years agoui.backend.gtk, use a separate widget for drawing opengl. Fixes #1487
Jon Harper [Fri, 13 Jan 2017 16:08:46 +0000 (17:08 +0100)]
ui.backend.gtk, use a separate widget for drawing opengl. Fixes #1487

Apparently you can't use opengl calls in a configure event signaled from
the window. If you do, on ubuntu 14.04 with unity, each and every frame
will be drawn. Since they are drawn slower than the event are emitted,
it continues to redraw after the resize is done, 'replaying' the resize
motion.
opengl calls from a configure event on the single child of the
window are ok.
Also, now that the window is not used to draw opengl, it doesn't produce
expose events, instead the drawable child must be used.

This also makes moving the window much smoother.

7 years agono need to clone empty byte-array.
John Benediktsson [Sun, 22 Jan 2017 23:41:07 +0000 (15:41 -0800)]
no need to clone empty byte-array.

7 years agopong: no need for multi-methods.
John Benediktsson [Sun, 22 Jan 2017 23:10:42 +0000 (15:10 -0800)]
pong: no need for multi-methods.

7 years agoprocessing.shapes: some cleanup.
John Benediktsson [Sun, 22 Jan 2017 23:06:01 +0000 (15:06 -0800)]
processing.shapes: some cleanup.

7 years agoxml: cleanup using.
John Benediktsson [Sun, 22 Jan 2017 22:47:58 +0000 (14:47 -0800)]
xml: cleanup using.

7 years agonurbs: cleanup.
John Benediktsson [Sun, 22 Jan 2017 22:47:50 +0000 (14:47 -0800)]
nurbs: cleanup.

7 years agooauth2: move set-query-params to urls.
John Benediktsson [Sun, 22 Jan 2017 22:44:33 +0000 (14:44 -0800)]
oauth2: move set-query-params to urls.

7 years agowebapps.mason.backend.watchdog: simplify.
John Benediktsson [Sun, 22 Jan 2017 22:44:20 +0000 (14:44 -0800)]
webapps.mason.backend.watchdog: simplify.

7 years agomason.report: adding stack effect.
John Benediktsson [Sun, 22 Jan 2017 22:43:28 +0000 (14:43 -0800)]
mason.report: adding stack effect.

7 years agotools.wc: adding "wc" tool.
John Benediktsson [Sun, 22 Jan 2017 22:40:37 +0000 (14:40 -0800)]
tools.wc: adding "wc" tool.

7 years agoRevert "sequences: swap stack arguments for start/start*/subseq?."
John Benediktsson [Sat, 21 Jan 2017 15:20:14 +0000 (07:20 -0800)]
Revert "sequences: swap stack arguments for start/start*/subseq?."

This reverts commit 63b0593824ed6dcdf6e090f8d38c4cfddcddf903.

7 years agoRevert "html.templates.fhtml: fix start refactor typo."
John Benediktsson [Sat, 21 Jan 2017 15:20:08 +0000 (07:20 -0800)]
Revert "html.templates.fhtml: fix start refactor typo."

This reverts commit d2c4079358e7fea7f1c3188e0c9891be337291b0.

7 years agohtml.templates.fhtml: fix start refactor typo.
John Benediktsson [Sat, 21 Jan 2017 07:09:33 +0000 (23:09 -0800)]
html.templates.fhtml: fix start refactor typo.

7 years agosequences: swap stack arguments for start/start*/subseq?.
John Benediktsson [Sat, 21 Jan 2017 06:49:53 +0000 (22:49 -0800)]
sequences: swap stack arguments for start/start*/subseq?.

It is more natural to be ( seq subseq -- ? ).

7 years agovm: change -nosignals to -no-signals.
John Benediktsson [Sat, 21 Jan 2017 06:36:22 +0000 (22:36 -0800)]
vm: change -nosignals to -no-signals.

7 years agocommand-line.startup: s/Common/Factor.
John Benediktsson [Sat, 21 Jan 2017 05:02:52 +0000 (21:02 -0800)]
command-line.startup: s/Common/Factor.

7 years agosplitting.extras-docs: mark -slice variants as related-words
Alexander Iljin [Wed, 18 Jan 2017 10:54:28 +0000 (13:54 +0300)]
splitting.extras-docs: mark -slice variants as related-words

7 years agosequences-docs: add a missing period at the end of a sentence
Alexander Iljin [Wed, 18 Jan 2017 10:53:28 +0000 (13:53 +0300)]
sequences-docs: add a missing period at the end of a sentence

7 years agomake-docs: fix what appears to be a oversight
Alexander Iljin [Wed, 18 Jan 2017 10:52:41 +0000 (13:52 +0300)]
make-docs: fix what appears to be a oversight

7 years agosplitting.monotonic-docs: update documentation
Alexander Iljin [Wed, 18 Jan 2017 10:51:16 +0000 (13:51 +0300)]
splitting.monotonic-docs: update documentation

7 years agomath.order[-docs]: rename parameters in between? to match those in clamp
Alexander Iljin [Fri, 13 Jan 2017 12:50:16 +0000 (15:50 +0300)]
math.order[-docs]: rename parameters in between? to match those in clamp

7 years agomath.statistics: fix docs for harmonic-mean.
John Benediktsson [Fri, 20 Jan 2017 16:20:41 +0000 (08:20 -0800)]
math.statistics: fix docs for harmonic-mean.

(needs to match prettyprint)

7 years agomath.statistics: fix calculation of the harmonic mean
Björn Lindqvist [Sun, 15 Jan 2017 20:27:55 +0000 (21:27 +0100)]
math.statistics: fix calculation of the harmonic mean