]> gitweb.factorcode.org Git - factor.git/log
factor.git
11 years agocore: cleanup USING lists.
John Benediktsson [Tue, 5 Mar 2013 18:34:47 +0000 (10:34 -0800)]
core: cleanup USING lists.

11 years agocompiler.tree.propagation.transforms: use integer>fixnum-strict in shift.
John Benediktsson [Tue, 5 Mar 2013 16:19:31 +0000 (08:19 -0800)]
compiler.tree.propagation.transforms: use integer>fixnum-strict in shift.

11 years agosequences: Rename slice-error the word to check-slice-error, make slice-error the...
Doug Coleman [Tue, 5 Mar 2013 00:57:49 +0000 (16:57 -0800)]
sequences: Rename slice-error the word to check-slice-error, make slice-error the TUPLE: an ERROR:

11 years agohints: remove these hints for now...
John Benediktsson [Tue, 5 Mar 2013 03:03:10 +0000 (19:03 -0800)]
hints: remove these hints for now...

11 years agocombinators: moving M\ iota hashcode* back since each-integer has hints.
John Benediktsson [Tue, 5 Mar 2013 01:46:46 +0000 (17:46 -0800)]
combinators: moving M\ iota hashcode* back since each-integer has hints.

11 years agohints: prevent specialization on inline-recursive words.
John Benediktsson [Tue, 5 Mar 2013 01:34:20 +0000 (17:34 -0800)]
hints: prevent specialization on inline-recursive words.

11 years agomath: speed up (find-integer) and (all-integers?) by removing curry.
John Benediktsson [Tue, 5 Mar 2013 01:32:11 +0000 (17:32 -0800)]
math: speed up (find-integer) and (all-integers?) by removing curry.

11 years agowords: adding inline-recursive?.
John Benediktsson [Tue, 5 Mar 2013 00:09:56 +0000 (16:09 -0800)]
words: adding inline-recursive?.

11 years agolayouts: speed up ``M\ iota hashcode*`` using most-positive-fixnum.
John Benediktsson [Mon, 4 Mar 2013 01:33:35 +0000 (17:33 -0800)]
layouts: speed up ``M\ iota hashcode*`` using most-positive-fixnum.

11 years agorandom: format delete-random better.
John Benediktsson [Mon, 4 Mar 2013 01:32:53 +0000 (17:32 -0800)]
random: format delete-random better.

11 years agocombinators: faster hashcode for iota.
John Benediktsson [Fri, 1 Mar 2013 18:42:20 +0000 (10:42 -0800)]
combinators: faster hashcode for iota.

11 years agorandom: speed up some random floats using (random-unit).
John Benediktsson [Fri, 1 Mar 2013 17:33:20 +0000 (09:33 -0800)]
random: speed up some random floats using (random-unit).

11 years agorandom: adding (random-unit) for convenience.
John Benediktsson [Fri, 1 Mar 2013 17:27:20 +0000 (09:27 -0800)]
random: adding (random-unit) for convenience.

11 years agotools.profiler.sampling: fix top-down*.
John Benediktsson [Fri, 1 Mar 2013 17:20:48 +0000 (09:20 -0800)]
tools.profiler.sampling: fix top-down*.

11 years agobootstrap: remove old counting profiler vocab.
John Benediktsson [Fri, 1 Mar 2013 17:18:49 +0000 (09:18 -0800)]
bootstrap: remove old counting profiler vocab.

11 years agorandom: speedup random-integer some more.
John Benediktsson [Fri, 1 Mar 2013 03:47:55 +0000 (19:47 -0800)]
random: speedup random-integer some more.

Better code generation by specializing on fixnum/bignum.

11 years agomath.integers: the fixnum-log2 intrinsic didn't work due to inlining.
John Benediktsson [Thu, 28 Feb 2013 01:08:36 +0000 (17:08 -0800)]
math.integers: the fixnum-log2 intrinsic didn't work due to inlining.

11 years agomath.integers: faster fixnum-log2.
John Benediktsson [Thu, 28 Feb 2013 00:01:34 +0000 (16:01 -0800)]
math.integers: faster fixnum-log2.

11 years agorandom: minor speedup (random-bits).
John Benediktsson [Wed, 27 Feb 2013 23:26:56 +0000 (15:26 -0800)]
random: minor speedup (random-bits).

11 years agorandom: speedup randomize.
John Benediktsson [Wed, 27 Feb 2013 22:51:29 +0000 (14:51 -0800)]
random: speedup randomize.

11 years agorandom: speed up uniform-random-float.
John Benediktsson [Wed, 27 Feb 2013 22:40:56 +0000 (14:40 -0800)]
random: speed up uniform-random-float.

11 years agorandom: performance improvements to random-integer and random-bits.
John Benediktsson [Wed, 27 Feb 2013 22:05:46 +0000 (14:05 -0800)]
random: performance improvements to random-integer and random-bits.

11 years agorandom.c: adding a "libc" version of random for performance testing.
John Benediktsson [Wed, 27 Feb 2013 04:03:29 +0000 (20:03 -0800)]
random.c: adding a "libc" version of random for performance testing.

11 years agounix.linux.proc: Older kernels don't have enough fields in /proc/pid/stat. Pad it.
Doug Coleman [Mon, 25 Feb 2013 18:07:05 +0000 (10:07 -0800)]
unix.linux.proc: Older kernels don't have enough fields in /proc/pid/stat. Pad it.

11 years agounix.linux.proc: Add some more /proc parsing.
Doug Coleman [Mon, 25 Feb 2013 02:29:57 +0000 (18:29 -0800)]
unix.linux.proc: Add some more /proc parsing.

11 years agocalendar.format: Add some utility words for implementing top.
Doug Coleman [Mon, 25 Feb 2013 02:29:00 +0000 (18:29 -0800)]
calendar.format: Add some utility words for implementing top.

11 years agotools.ps: Use unix.linux.proc for parsing.
Doug Coleman [Sat, 23 Feb 2013 20:45:45 +0000 (12:45 -0800)]
tools.ps: Use unix.linux.proc for parsing.

11 years agounix.linux.proc: Refactor /proc parsing. Add generic to make pid/string and pid-strin...
Doug Coleman [Sat, 23 Feb 2013 20:44:49 +0000 (12:44 -0800)]
unix.linux.proc: Refactor /proc parsing. Add generic to make pid/string and pid-string/string pairs into /proc/pid/pathname.

11 years agoRevert "robots.txt: Bing bot spams gitweb...disable it hopefully."
Doug Coleman [Sun, 24 Feb 2013 18:30:05 +0000 (10:30 -0800)]
Revert "robots.txt: Bing bot spams gitweb...disable it hopefully."
Found another way.

This reverts commit 7500504bc055573bc50ae5b9349a3a92a4bc237d.

11 years agorobots.txt: Bing bot spams gitweb...disable it hopefully.
Doug Coleman [Sun, 24 Feb 2013 18:23:05 +0000 (10:23 -0800)]
robots.txt: Bing bot spams gitweb...disable it hopefully.

11 years agorot13: adding some tests.
John Benediktsson [Fri, 22 Feb 2013 17:50:26 +0000 (09:50 -0800)]
rot13: adding some tests.

11 years agoassocs: change enum to immutable-sequence.
John Benediktsson [Fri, 22 Feb 2013 14:58:29 +0000 (06:58 -0800)]
assocs: change enum to immutable-sequence.

11 years agoassocs: allow enums to support sequence protocol.
John Benediktsson [Fri, 22 Feb 2013 02:24:50 +0000 (18:24 -0800)]
assocs: allow enums to support sequence protocol.

11 years agosequences: define a single "?set-nth" that is used.
John Benediktsson [Wed, 20 Feb 2013 18:42:21 +0000 (10:42 -0800)]
sequences: define a single "?set-nth" that is used.

11 years agosequences: fix uses of set-nth-unsafe.
John Benediktsson [Wed, 20 Feb 2013 16:01:06 +0000 (08:01 -0800)]
sequences: fix uses of set-nth-unsafe.

11 years agosequences: normalize all the "?set-nth" words, probably this should be a stdlib thing.
John Benediktsson [Wed, 20 Feb 2013 00:52:40 +0000 (16:52 -0800)]
sequences: normalize all the "?set-nth" words, probably this should be a stdlib thing.

11 years agotimers: use typed to speedup 10%.
John Benediktsson [Tue, 19 Feb 2013 23:40:45 +0000 (15:40 -0800)]
timers: use typed to speedup 10%.

11 years agobenchmark.timers: adding a timer benchmark.
John Benediktsson [Tue, 19 Feb 2013 23:39:50 +0000 (15:39 -0800)]
benchmark.timers: adding a timer benchmark.

11 years agocolors: Inline >rgba methods.
Doug Coleman [Tue, 19 Feb 2013 18:09:29 +0000 (10:09 -0800)]
colors: Inline >rgba methods.

11 years agomaze: Refactor to use fry + replicate.
Doug Coleman [Thu, 14 Feb 2013 22:36:11 +0000 (14:36 -0800)]
maze: Refactor to use fry + replicate.

11 years agomath.statistics: adding z-score.
John Benediktsson [Thu, 7 Feb 2013 23:50:34 +0000 (15:50 -0800)]
math.statistics: adding z-score.

11 years agorosetta-code.top-rank: Use collect-by instead of defining it as group-by.
Doug Coleman [Tue, 5 Feb 2013 17:41:18 +0000 (09:41 -0800)]
rosetta-code.top-rank: Use collect-by instead of defining it as group-by.

11 years agomath.statistics: Add docs for collect-by and collect-index-by.
Doug Coleman [Tue, 5 Feb 2013 17:28:37 +0000 (09:28 -0800)]
math.statistics: Add docs for collect-by and collect-index-by.

11 years agoio.backend.unix: Nobody uses (refill), remove it.
Doug Coleman [Tue, 29 Jan 2013 00:34:36 +0000 (16:34 -0800)]
io.backend.unix: Nobody uses (refill), remove it.

11 years agodebugger.unix: Make this vocab unix only.
Doug Coleman [Fri, 1 Feb 2013 21:38:11 +0000 (13:38 -0800)]
debugger.unix: Make this vocab unix only.

11 years agodebugger.unix: Get the signal name from a signal object too.
Doug Coleman [Fri, 1 Feb 2013 19:35:05 +0000 (11:35 -0800)]
debugger.unix: Get the signal name from a signal object too.

11 years agounix.ffi: Add the man 2 signal() function call.
Doug Coleman [Fri, 1 Feb 2013 19:25:51 +0000 (11:25 -0800)]
unix.ffi: Add the man 2 signal() function call.

11 years agounix.linux.proc: Add a parser for some of the /proc and /proc/[PID]/ files.
Doug Coleman [Fri, 1 Feb 2013 19:23:00 +0000 (11:23 -0800)]
unix.linux.proc: Add a parser for some of the /proc and /proc/[PID]/ files.

11 years agotwitter: Update API url.
Doug Coleman [Fri, 1 Feb 2013 15:13:08 +0000 (07:13 -0800)]
twitter: Update API url.

11 years agomath.functions: adding "round-to".
John Benediktsson [Wed, 30 Jan 2013 17:41:21 +0000 (09:41 -0800)]
math.functions: adding "round-to".

11 years agocompiler.tree.propagation.known-words: retry this change, some issue with use vocabs.
John Benediktsson [Tue, 22 Jan 2013 15:09:49 +0000 (07:09 -0800)]
compiler.tree.propagation.known-words: retry this change, some issue with use vocabs.

11 years agoRevert "compiler.tree.propagation.known-words: adding known outputs for some words."
John Benediktsson [Tue, 22 Jan 2013 14:42:58 +0000 (06:42 -0800)]
Revert "compiler.tree.propagation.known-words: adding known outputs for some words."

This reverts commit 16d8e6555b9f82ec55bbb9f9e57ad638bae04b7c.

11 years agocompiler.tree.propagation.known-words: adding known outputs for some words.
John Benediktsson [Tue, 22 Jan 2013 04:28:17 +0000 (20:28 -0800)]
compiler.tree.propagation.known-words: adding known outputs for some words.

11 years agoio.streams.peek: use namespaces.
John Benediktsson [Tue, 22 Jan 2013 02:09:40 +0000 (18:09 -0800)]
io.streams.peek: use namespaces.

11 years agoio.streams.peek: Implement peek and peek1.
Doug Coleman [Mon, 21 Jan 2013 23:33:57 +0000 (15:33 -0800)]
io.streams.peek: Implement peek and peek1.

11 years agofactor.sh: Allow bootstrap on other branches for commands that don't pull from git.
Doug Coleman [Mon, 21 Jan 2013 21:17:01 +0000 (13:17 -0800)]
factor.sh: Allow bootstrap on other branches for commands that don't pull from git.

11 years agoui.backend.cocoa.views: add platforms.txt.
John Benediktsson [Wed, 16 Jan 2013 22:28:32 +0000 (14:28 -0800)]
ui.backend.cocoa.views: add platforms.txt.

11 years agoui.backend.cocoa.views: fix build error on older OSX versions.
John Benediktsson [Wed, 16 Jan 2013 18:46:39 +0000 (10:46 -0800)]
ui.backend.cocoa.views: fix build error on older OSX versions.

11 years agoX11, give same input as gtk when pressing shift, tab, alt..
Jon Harper [Tue, 30 Oct 2012 23:29:22 +0000 (00:29 +0100)]
X11, give same input as gtk when pressing shift, tab, alt..

11 years agoX11 XK_ISO_Left_Tab is shift tab
Jon Harper [Tue, 30 Oct 2012 23:02:06 +0000 (00:02 +0100)]
X11 XK_ISO_Left_Tab is shift tab

11 years agotools.which: cleanup code a little.
John Benediktsson [Fri, 11 Jan 2013 19:37:59 +0000 (11:37 -0800)]
tools.which: cleanup code a little.

11 years agotools.which: adding some docs and cleanup.
John Benediktsson [Fri, 11 Jan 2013 18:20:19 +0000 (10:20 -0800)]
tools.which: adding some docs and cleanup.

11 years agotools.deploy.windows.ico: Throw an error if the .ico is a unsupported
Doug Coleman [Tue, 8 Jan 2013 23:51:26 +0000 (15:51 -0800)]
tools.deploy.windows.ico: Throw an error if the .ico is a unsupported
format.

11 years agocompression.zlib: fix help-lint warning, add a bit to the article.
John Benediktsson [Tue, 8 Jan 2013 15:03:56 +0000 (07:03 -0800)]
compression.zlib: fix help-lint warning, add a bit to the article.

11 years agocompression.zlib: add basic documentation
Benjamin Pollack [Tue, 8 Jan 2013 01:33:19 +0000 (20:33 -0500)]
compression.zlib: add basic documentation

11 years agogoogle.search: these moved to classes.tuple.
John Benediktsson [Fri, 4 Jan 2013 17:12:41 +0000 (09:12 -0800)]
google.search: these moved to classes.tuple.

11 years agopeg: Qualify use of replace. Fix some spacing.
Doug Coleman [Fri, 4 Jan 2013 02:33:20 +0000 (18:33 -0800)]
peg: Qualify use of replace. Fix some spacing.

11 years agopeg.ebnf: fix usage of replace.
John Benediktsson [Fri, 4 Jan 2013 02:13:20 +0000 (18:13 -0800)]
peg.ebnf: fix usage of replace.

11 years agosequences: Add join-as, which takes an exemplar. Move split-subseq and replace from...
Doug Coleman [Fri, 4 Jan 2013 00:42:34 +0000 (16:42 -0800)]
sequences: Add join-as, which takes an exemplar. Move split-subseq and replace from unicode.case to splitting and fix an infinite loop with split-subseq. Add docs/tests.

11 years agounicode.case: fix stack effect for replace.
John Benediktsson [Thu, 3 Jan 2013 23:33:19 +0000 (15:33 -0800)]
unicode.case: fix stack effect for replace.

11 years agowebapps.mason: fix for new 2x logo.
John Benediktsson [Thu, 3 Jan 2013 19:32:06 +0000 (11:32 -0800)]
webapps.mason: fix for new 2x logo.

11 years agomath.vectors: Don't use macro with locals and cond in vif. Stack-checker/locals/macro...
Doug Coleman [Thu, 3 Jan 2013 17:45:57 +0000 (09:45 -0800)]
math.vectors: Don't use macro with locals and cond in vif. Stack-checker/locals/macros/smart-combinators all need some work (a rewrite?), but meanwhile don't let it get in the way. Add tests.

11 years agomath.vectors: Fix spacing.
Doug Coleman [Wed, 2 Jan 2013 07:10:00 +0000 (23:10 -0800)]
math.vectors: Fix spacing.

11 years agocompiler.tree.propagation.recursive: Generalizing intervals in the propagation pass...
Doug Coleman [Wed, 2 Jan 2013 02:47:23 +0000 (18:47 -0800)]
compiler.tree.propagation.recursive: Generalizing intervals in the propagation pass ignored types. Fixes #770.

11 years agocompiler.cfg.liveness: Break the infinite loop--add the base-pointer as f to start...
Doug Coleman [Tue, 1 Jan 2013 22:47:54 +0000 (14:47 -0800)]
compiler.cfg.liveness: Break the infinite loop--add the base-pointer as f to start with, and replace it with the real one if there's not a circular chain. Fixes #22 again.

11 years agocompiler.cfg.liveness: Add parallel-copy method for lookup-base-pointer*. Adjust...
Doug Coleman [Tue, 1 Jan 2013 22:16:51 +0000 (14:16 -0800)]
compiler.cfg.liveness: Add parallel-copy method for lookup-base-pointer*. Adjust lookup-base-pointer* stack effect to take two parameters. Still retain stack overflows, but more correct now...

11 years agobasis: Re-enable some things I commented out. Fixes #22. Thanks @ajvondrak!
Doug Coleman [Mon, 31 Dec 2012 19:44:28 +0000 (11:44 -0800)]
basis: Re-enable some things I commented out. Fixes #22. Thanks @ajvondrak!

11 years agocompiler.cfg.renaming.functor: fix ##parallel-copy methods
Alex Vondrak [Sun, 30 Dec 2012 02:33:25 +0000 (18:33 -0800)]
compiler.cfg.renaming.functor: fix ##parallel-copy methods

11 years agocompiler.cfg.ssa.destruction.leaders: break off leader-map to resolve circular depend...
Alex Vondrak [Mon, 31 Dec 2012 18:30:17 +0000 (10:30 -0800)]
compiler.cfg.ssa.destruction.leaders: break off leader-map to resolve circular dependencies (oops)

11 years agocompiler.cfg.liveness: still kill defs by leaders, but keep original
Alex Vondrak [Mon, 31 Dec 2012 16:30:03 +0000 (08:30 -0800)]
compiler.cfg.liveness: still kill defs by leaders, but keep original
vregs in the live-sets so accurate info (e.g., representations) can
still be looked up (issue #22)

11 years agocompiler.cfg.ssa.destruction: alien-call-insns are too hairy to coalesce (issue #22)
Alex Vondrak [Sat, 29 Dec 2012 19:15:12 +0000 (11:15 -0800)]
compiler.cfg.ssa.destruction: alien-call-insns are too hairy to coalesce (issue #22)

11 years agocompiler.cfg.liveness: look up leaders (if possible) so liveness analysis doesn't...
Alex Vondrak [Sat, 29 Dec 2012 18:59:25 +0000 (10:59 -0800)]
compiler.cfg.liveness: look up leaders (if possible) so liveness analysis doesn't break after leaving SSA (issue #22)

11 years agocompiler.cfg.parallel-copy: make sure new vregs used to break cycles in parallel...
Alex Vondrak [Fri, 28 Dec 2012 16:51:16 +0000 (08:51 -0800)]
compiler.cfg.parallel-copy: make sure new vregs used to break cycles in parallel-copy-rep update the leader-map (issue #22)

11 years agocompiler.cfg.ssa.interference.live-ranges: fix kill-indices for ##parallel-copy ...
Alex Vondrak [Fri, 28 Dec 2012 16:49:24 +0000 (08:49 -0800)]
compiler.cfg.ssa.interference.live-ranges: fix kill-indices for ##parallel-copy (issue #22)

11 years agocompiler.cfg.ssa.cssa: split the definitions of ##phis so live-ranges don't interfere...
Alex Vondrak [Tue, 25 Dec 2012 17:19:35 +0000 (09:19 -0800)]
compiler.cfg.ssa.cssa: split the definitions of ##phis so live-ranges don't interfere (issue #22)

See the explanation after the proof of Lemma 1 in "Revisiting Out-of-SSA
Translation for Correctness, Code Quality, and Efficiency" (Boissinot et
al.) for why this is necessary.

11 years agostarting point - Fix bootstrap; I broke it in merging. Disable environment variables...
Doug Coleman [Sun, 6 May 2012 19:06:59 +0000 (12:06 -0700)]
starting point - Fix bootstrap; I broke it in merging. Disable environment variables because the compiler isn't loaded yet and can't call C ffi functions, and tools.test loads this vocab.
Disable intrinsics in cpu.x86.64 for now, since they invoke the compiler
Fix ##branch renaming to ##branch,
To work on this branch:
./factor -include=math -i=boot.image
./factor -run=listener
USE: compiler USE: tools.test save
enable-optimizer

Error message is now:
T{ vregs-shouldn't-interfere f 409 424 }

11 years agoWIP
Slava Pestov [Mon, 17 Jan 2011 23:16:17 +0000 (15:16 -0800)]
WIP

11 years agorandom: Add poisson-random-float.
Doug Coleman [Fri, 7 Dec 2012 17:29:48 +0000 (09:29 -0800)]
random: Add poisson-random-float.

11 years agoui.gadgets.editors: fix stack effect of change-caret quotation.
John Benediktsson [Sat, 29 Dec 2012 01:01:32 +0000 (17:01 -0800)]
ui.gadgets.editors: fix stack effect of change-caret quotation.

11 years agoxml.traversal: adding deep-children>string.
John Benediktsson [Mon, 17 Dec 2012 19:58:30 +0000 (11:58 -0800)]
xml.traversal: adding deep-children>string.

11 years agoui.baseline-alignment: fix float shift on retina.
John Benediktsson [Mon, 17 Dec 2012 19:43:05 +0000 (11:43 -0800)]
ui.baseline-alignment: fix float shift on retina.

11 years agohelp.pdf: add some more help pdfs.
John Benediktsson [Mon, 17 Dec 2012 01:10:02 +0000 (17:10 -0800)]
help.pdf: add some more help pdfs.

11 years agoui.text.core-text: fix jumping "def".
John Benediktsson [Tue, 11 Dec 2012 16:06:02 +0000 (08:06 -0800)]
ui.text.core-text: fix jumping "def".

11 years agomachine-learning: Add transform protocol. Add label-encoder, label-binarizer.
Doug Coleman [Tue, 4 Dec 2012 19:43:48 +0000 (11:43 -0800)]
machine-learning: Add transform protocol. Add label-encoder, label-binarizer.

11 years agomachine-learning.data-sets: cleanup a little.
John Benediktsson [Tue, 4 Dec 2012 18:29:11 +0000 (10:29 -0800)]
machine-learning.data-sets: cleanup a little.

11 years agomachine-learning.data-sets: adding the linnerud dataset.
John Benediktsson [Tue, 4 Dec 2012 18:21:04 +0000 (10:21 -0800)]
machine-learning.data-sets: adding the linnerud dataset.

11 years agomachine-learning.data-sets: load commonly used test data sets.
John Benediktsson [Tue, 4 Dec 2012 18:00:02 +0000 (10:00 -0800)]
machine-learning.data-sets: load commonly used test data sets.

11 years agomath.extras: return new arrays to protect users from others.
John Benediktsson [Tue, 4 Dec 2012 17:06:30 +0000 (09:06 -0800)]
math.extras: return new arrays to protect users from others.

11 years agomath.statistics: just use accumulate for now.
John Benediktsson [Tue, 4 Dec 2012 16:56:21 +0000 (08:56 -0800)]
math.statistics: just use accumulate for now.

11 years agomisc/icons: renaming to old convention, adding 48x48.
John Benediktsson [Sat, 1 Dec 2012 17:30:33 +0000 (09:30 -0800)]
misc/icons: renaming to old convention, adding 48x48.