]> gitweb.factorcode.org Git - factor.git/log
factor.git
8 years agolists: first pass at some cleanup.
John Benediktsson [Sun, 17 Apr 2016 20:08:32 +0000 (13:08 -0700)]
lists: first pass at some cleanup.

Now lists.lazy:lmap-lazy and lists.lazy:lappend-lazy names differentiate
from their non-lazy counterparts in lists.

8 years agoAtom package: update paths
Friedrich von Never [Sun, 17 Apr 2016 15:21:28 +0000 (22:21 +0700)]
Atom package: update paths

8 years agourls: remove unnecessary >secure-addr indirection.
John Benediktsson [Sun, 17 Apr 2016 00:11:01 +0000 (17:11 -0700)]
urls: remove unnecessary >secure-addr indirection.

8 years agosoundex: make implementation private.
John Benediktsson [Sat, 16 Apr 2016 23:38:42 +0000 (16:38 -0700)]
soundex: make implementation private.

8 years agosoundex: fix soundex to handle test cases from wikipedia.
John Benediktsson [Sat, 16 Apr 2016 23:37:44 +0000 (16:37 -0700)]
soundex: fix soundex to handle test cases from wikipedia.

8 years agoreplace some 1 head* with but-last.
John Benediktsson [Sat, 16 Apr 2016 22:54:23 +0000 (15:54 -0700)]
replace some 1 head* with but-last.

8 years agosuffix-arrays.words: removing, not that useful.
John Benediktsson [Sat, 16 Apr 2016 16:17:05 +0000 (09:17 -0700)]
suffix-arrays.words: removing, not that useful.

8 years agosuffix-arrays: remove docs of removed private word.
John Benediktsson [Fri, 15 Apr 2016 23:02:11 +0000 (16:02 -0700)]
suffix-arrays: remove docs of removed private word.

8 years agoftp.server: Don't fetch to the same directory we serve from or else it will overwrite...
Doug Coleman [Fri, 15 Apr 2016 22:52:06 +0000 (15:52 -0700)]
ftp.server: Don't fetch to the same directory we serve from or else it will overwrite the file. Race condition, only shows up on Windows for some reason.

8 years agosuffix-arrays: simplify a bit.
John Benediktsson [Fri, 15 Apr 2016 20:20:11 +0000 (13:20 -0700)]
suffix-arrays: simplify a bit.

8 years agodelegate: use string word-prop keys.
John Benediktsson [Fri, 15 Apr 2016 03:19:54 +0000 (20:19 -0700)]
delegate: use string word-prop keys.

8 years agomemory: no need to use memory.private.
John Benediktsson [Fri, 15 Apr 2016 03:06:27 +0000 (20:06 -0700)]
memory: no need to use memory.private.

8 years agosource-files: simplify, remove unnecessary error.
John Benediktsson [Fri, 15 Apr 2016 00:21:05 +0000 (17:21 -0700)]
source-files: simplify, remove unnecessary error.

8 years agoslots: silly formatting change.
John Benediktsson [Thu, 14 Apr 2016 23:59:33 +0000 (16:59 -0700)]
slots: silly formatting change.

8 years agobootstrap.image.upload: use vm-git-id.
John Benediktsson [Thu, 14 Apr 2016 23:59:23 +0000 (16:59 -0700)]
bootstrap.image.upload: use vm-git-id.

8 years agosystem: can use value-at, don't need to split.
John Benediktsson [Thu, 14 Apr 2016 23:59:08 +0000 (16:59 -0700)]
system: can use value-at, don't need to split.

8 years agopoker: simplify a bit.
John Benediktsson [Thu, 14 Apr 2016 21:07:37 +0000 (14:07 -0700)]
poker: simplify a bit.

8 years agoparser: make scan-class assert result is a classoid like it used to.
John Benediktsson [Wed, 13 Apr 2016 23:41:48 +0000 (16:41 -0700)]
parser: make scan-class assert result is a classoid like it used to.

8 years agoclasses: unset defining-class in define-class.
John Benediktsson [Wed, 13 Apr 2016 23:41:42 +0000 (16:41 -0700)]
classes: unset defining-class in define-class.

8 years agoclasses.algebra: removing valid-classoid? (enforced in constructors).
John Benediktsson [Wed, 13 Apr 2016 21:29:24 +0000 (14:29 -0700)]
classes.algebra: removing valid-classoid? (enforced in constructors).

8 years agoclasses.maybe: this restriction isn't necessary anymore.
John Benediktsson [Wed, 13 Apr 2016 21:20:00 +0000 (14:20 -0700)]
classes.maybe: this restriction isn't necessary anymore.

8 years agoeffects: swap got expected.
John Benediktsson [Wed, 13 Apr 2016 20:16:59 +0000 (13:16 -0700)]
effects: swap got expected.

8 years agoRevert "ftp.server: make sure the test file returns a normalized path."
John Benediktsson [Wed, 13 Apr 2016 20:06:05 +0000 (13:06 -0700)]
Revert "ftp.server: make sure the test file returns a normalized path."

This reverts commit fda3024fe96129b81b4fab270ae478d8e705e0b3.

8 years agoftp.server: make sure the test file returns a normalized path.
John Benediktsson [Wed, 13 Apr 2016 16:29:55 +0000 (09:29 -0700)]
ftp.server: make sure the test file returns a normalized path.

8 years agoeffects: Fix check-stack-effect. Better to report the expected before the got.
Doug Coleman [Wed, 13 Apr 2016 00:06:12 +0000 (17:06 -0700)]
effects: Fix check-stack-effect. Better to report the expected before the got.

8 years agoregexp.disambiguate: Make it cleaner imo, but still can't make heads of tails of...
Doug Coleman [Tue, 12 Apr 2016 21:19:18 +0000 (14:19 -0700)]
regexp.disambiguate: Make it cleaner imo, but still can't make heads of tails of the algorithm being used.

8 years agoassocs: Add assoc-union-as. Use assoc-reject-like.
Doug Coleman [Tue, 12 Apr 2016 21:18:54 +0000 (14:18 -0700)]
assocs: Add assoc-union-as. Use assoc-reject-like.

8 years agobootstrap.primitives: assoc-each to register builtins
Björn Lindqvist [Sat, 9 Apr 2016 22:53:32 +0000 (00:53 +0200)]
bootstrap.primitives: assoc-each to register builtins

8 years agocompiler.cfg.linear-scan.assignment: better vregs>regs
Björn Lindqvist [Thu, 7 Apr 2016 09:28:17 +0000 (11:28 +0200)]
compiler.cfg.linear-scan.assignment: better vregs>regs

8 years agocompiler.cfg.linear-scan.assignment: refactoring of assign-registers-in-block + tests
Björn Lindqvist [Thu, 7 Apr 2016 09:20:20 +0000 (11:20 +0200)]
compiler.cfg.linear-scan.assignment: refactoring of assign-registers-in-block + tests

8 years agounicode: Let upper? lower? etc work with slices by using sequence= instead of =.
Doug Coleman [Sun, 10 Apr 2016 18:39:18 +0000 (11:39 -0700)]
unicode: Let upper? lower? etc work with slices by using sequence= instead of =.

8 years agosequences.extras: add a nullable span-slices word that allows f.
Doug Coleman [Sun, 10 Apr 2016 18:38:42 +0000 (11:38 -0700)]
sequences.extras: add a nullable span-slices word that allows f.

8 years agoio.files: fix cd test on windows (needs normalize-path instead of absolute-path).
John Benediktsson [Sat, 9 Apr 2016 17:25:10 +0000 (10:25 -0700)]
io.files: fix cd test on windows (needs normalize-path instead of absolute-path).

8 years agolinked-sets: adding summary.txt.
John Benediktsson [Sat, 9 Apr 2016 15:54:31 +0000 (08:54 -0700)]
linked-sets: adding summary.txt.

8 years agofactor: remove some extra whitespace.
Doug Coleman [Thu, 7 Apr 2016 21:30:36 +0000 (14:30 -0700)]
factor: remove some extra whitespace.

8 years agosequences.extras: Allow from to be f in ?<slice>
Doug Coleman [Thu, 7 Apr 2016 20:22:18 +0000 (13:22 -0700)]
sequences.extras: Allow from to be f in ?<slice>

8 years agoio.files: Make sure ascii can't write higher than char 127 to file. Allow writes...
Doug Coleman [Thu, 7 Apr 2016 19:51:30 +0000 (12:51 -0700)]
io.files: Make sure ascii can't write higher than char 127 to file. Allow writes to ascii from { } and B{ } if they don't violate the encoding.

8 years agoio.files: Ensure that slices can be written to utf8/utf16/ascii streams.
Doug Coleman [Thu, 7 Apr 2016 19:42:52 +0000 (12:42 -0700)]
io.files: Ensure that slices can be written to utf8/utf16/ascii streams.

8 years agoio.encodings: a bit faster and make ascii support slices.
John Benediktsson [Thu, 7 Apr 2016 19:32:05 +0000 (12:32 -0700)]
io.encodings: a bit faster and make ascii support slices.

8 years agoio.encodings: allow encode-string to be called with non-strings.
John Benediktsson [Thu, 7 Apr 2016 19:17:00 +0000 (12:17 -0700)]
io.encodings: allow encode-string to be called with non-strings.

8 years agoalien.prettyprint: forgot to commit the tests fixes.
John Benediktsson [Thu, 7 Apr 2016 18:21:39 +0000 (11:21 -0700)]
alien.prettyprint: forgot to commit the tests fixes.

8 years agoalien.prettyprint: don't print ; or declarations for alien words.
John Benediktsson [Thu, 7 Apr 2016 14:38:09 +0000 (07:38 -0700)]
alien.prettyprint: don't print ; or declarations for alien words.

8 years agohelp: for $default, make sure effect-in is a string.
John Benediktsson [Thu, 7 Apr 2016 14:25:53 +0000 (07:25 -0700)]
help: for $default, make sure effect-in is a string.

8 years agoRevert "alien.c-types: Implement present on pointers for help-lint."
John Benediktsson [Thu, 7 Apr 2016 14:22:52 +0000 (07:22 -0700)]
Revert "alien.c-types: Implement present on pointers for help-lint."

This reverts commit f865273e4d4fe584feb5bd73a4d4690f7e019cd5.

8 years agocuda: adding prettyprint for cuda functions.
John Benediktsson [Thu, 7 Apr 2016 14:21:41 +0000 (07:21 -0700)]
cuda: adding prettyprint for cuda functions.

8 years agocontinuations: Moving usages of rethrow below where it's defined. I don't know if...
Doug Coleman [Thu, 7 Apr 2016 00:55:47 +0000 (17:55 -0700)]
continuations: Moving usages of rethrow below where it's defined. I don't know if these work, but I'm trying to make the hooks throw like the stack effect requests.

8 years agoui.debugger: quotation stack effect wants ( .. -- * ), throw causes infinite loop...
Doug Coleman [Thu, 7 Apr 2016 00:30:22 +0000 (17:30 -0700)]
ui.debugger: quotation stack effect wants ( .. -- * ), throw causes infinite loop, but rethrow works. change previous patch to rethrow everywhere.

8 years agoshell: fix rename of glob-directory to glob.
John Benediktsson [Thu, 7 Apr 2016 00:01:40 +0000 (17:01 -0700)]
shell: fix rename of glob-directory to glob.

8 years agofactor: fix whitespace at end of files.
Doug Coleman [Wed, 6 Apr 2016 23:53:25 +0000 (16:53 -0700)]
factor: fix whitespace at end of files.

8 years agoglobs: rename glob-directory to glob.
John Benediktsson [Wed, 6 Apr 2016 21:04:21 +0000 (14:04 -0700)]
globs: rename glob-directory to glob.

8 years agoglobs: making glob-matches? support wildcards.
John Benediktsson [Wed, 6 Apr 2016 21:02:48 +0000 (14:02 -0700)]
globs: making glob-matches? support wildcards.

8 years agocuda: use arg names in stack effect.
John Benediktsson [Wed, 6 Apr 2016 20:11:32 +0000 (13:11 -0700)]
cuda: use arg names in stack effect.

8 years agoglobs: fix glob pattern on directories.
John Benediktsson [Wed, 6 Apr 2016 20:10:24 +0000 (13:10 -0700)]
globs: fix glob pattern on directories.

8 years agoio.streams.byte-array.fast: don't need >c-ptr.
John Benediktsson [Wed, 6 Apr 2016 19:39:50 +0000 (12:39 -0700)]
io.streams.byte-array.fast: don't need >c-ptr.

8 years agoalien.c-types: Implement present on pointers for help-lint.
Doug Coleman [Wed, 6 Apr 2016 05:17:36 +0000 (22:17 -0700)]
alien.c-types: Implement present on pointers for help-lint.

8 years agosplitting: string-lines is optimized for strings. revert my previous slowdown of...
Doug Coleman [Wed, 6 Apr 2016 04:16:27 +0000 (21:16 -0700)]
splitting: string-lines is optimized for strings. revert my previous slowdown of 50% or so. add a note so this won't happen again. oops.

8 years agohelp.lint.checks: ignore words without defined word-help.
John Benediktsson [Wed, 6 Apr 2016 02:03:08 +0000 (19:03 -0700)]
help.lint.checks: ignore words without defined word-help.

This allows us to skip words that use the $default help.

8 years agosplitting-docs: Fix stack effect of string-lines.
Doug Coleman [Tue, 5 Apr 2016 21:50:50 +0000 (14:50 -0700)]
splitting-docs: Fix stack effect of string-lines.

8 years agoio.directories.search: Fix unit test using list.
Doug Coleman [Tue, 5 Apr 2016 21:49:27 +0000 (14:49 -0700)]
io.directories.search: Fix unit test using list.

8 years agocore: clean up split-lines with subseq-as. clean up subseq/subseq-as/subseq-unsafe...
Doug Coleman [Tue, 5 Apr 2016 19:21:52 +0000 (12:21 -0700)]
core: clean up split-lines with subseq-as. clean up subseq/subseq-as/subseq-unsafe/subseq-unsafe-as.

8 years agostrings.parser: allow "\u{snowman}" or "\u{2603}".
John Benediktsson [Tue, 5 Apr 2016 17:19:43 +0000 (10:19 -0700)]
strings.parser: allow "\u{snowman}" or "\u{2603}".

8 years agosets: make null? use cardinality.
John Benediktsson [Tue, 5 Apr 2016 04:06:21 +0000 (21:06 -0700)]
sets: make null? use cardinality.

8 years agohelp: small fix because I forgot to test predicates still worked.
John Benediktsson [Mon, 4 Apr 2016 22:40:26 +0000 (15:40 -0700)]
help: small fix because I forgot to test predicates still worked.

8 years agohelp: adding a default word help if not defined by HELP:.
John Benediktsson [Mon, 4 Apr 2016 22:31:53 +0000 (15:31 -0700)]
help: adding a default word help if not defined by HELP:.

8 years agostrings.parser: adding error tests.
John Benediktsson [Mon, 4 Apr 2016 22:13:46 +0000 (15:13 -0700)]
strings.parser: adding error tests.

8 years agostrings.parser: fix docs for parse-string.
John Benediktsson [Mon, 4 Apr 2016 22:01:43 +0000 (15:01 -0700)]
strings.parser: fix docs for parse-string.

8 years agostrings.parser: remove parse-short-string, everyone should parse-string.
John Benediktsson [Mon, 4 Apr 2016 21:54:06 +0000 (14:54 -0700)]
strings.parser: remove parse-short-string, everyone should parse-string.

8 years agostrings.parser: better string error messages.
John Benediktsson [Mon, 4 Apr 2016 21:48:05 +0000 (14:48 -0700)]
strings.parser: better string error messages.

8 years agoui.backend.gtk: simplify calls to gtk_init.
John Benediktsson [Mon, 4 Apr 2016 21:26:19 +0000 (14:26 -0700)]
ui.backend.gtk: simplify calls to gtk_init.

8 years agoimages.http: make it easier to image. stuff.
John Benediktsson [Mon, 4 Apr 2016 19:55:18 +0000 (12:55 -0700)]
images.http: make it easier to image. stuff.

8 years agocompiler.tests.stack-trace: use with-test-file.
John Benediktsson [Mon, 4 Apr 2016 19:55:02 +0000 (12:55 -0700)]
compiler.tests.stack-trace: use with-test-file.

8 years agoVM: refactoring which removes two not useful short methods
Björn Lindqvist [Mon, 4 Apr 2016 21:30:16 +0000 (23:30 +0200)]
VM: refactoring which removes two not useful short methods

8 years agoui.gadgets.corners: move to unmaintained. trim using lists.
Doug Coleman [Mon, 4 Apr 2016 21:11:54 +0000 (14:11 -0700)]
ui.gadgets.corners: move to unmaintained. trim using lists.

8 years agosequences.extras: Add a word to ensure that the underlying for slices is the same...
Doug Coleman [Mon, 4 Apr 2016 18:45:48 +0000 (11:45 -0700)]
sequences.extras: Add a word to ensure that the underlying for slices is the same. Add a more forgiving version of merge-slices called span-slices.

8 years agoassocs.extras: Add a word set-once-at that throws if the key is already set.
Doug Coleman [Mon, 4 Apr 2016 18:45:21 +0000 (11:45 -0700)]
assocs.extras: Add a word set-once-at that throws if the key is already set.

8 years agosequences.extras: make rotate wrap.
John Benediktsson [Mon, 4 Apr 2016 18:17:24 +0000 (11:17 -0700)]
sequences.extras: make rotate wrap.

8 years agosequences.extras: make rotate! support negative indices.
John Benediktsson [Mon, 4 Apr 2016 18:13:11 +0000 (11:13 -0700)]
sequences.extras: make rotate! support negative indices.

8 years agosequences.extras: make rotate support negative n.
John Benediktsson [Mon, 4 Apr 2016 18:05:28 +0000 (11:05 -0700)]
sequences.extras: make rotate support negative n.

8 years agosequences.extras: rename back to rotate!.
John Benediktsson [Mon, 4 Apr 2016 17:59:32 +0000 (10:59 -0700)]
sequences.extras: rename back to rotate!.

8 years agocompiler.cfg.linear-scan.allocation.spilling: fix $maybe docs.
John Benediktsson [Mon, 4 Apr 2016 17:40:02 +0000 (10:40 -0700)]
compiler.cfg.linear-scan.allocation.spilling: fix $maybe docs.

8 years agouse with-temp-file and with-temp-directory in some tests.
John Benediktsson [Mon, 4 Apr 2016 17:32:42 +0000 (10:32 -0700)]
use with-temp-file and with-temp-directory in some tests.

8 years agotools.test: adding with-test-file and with-test-directory.
John Benediktsson [Mon, 4 Apr 2016 17:31:47 +0000 (10:31 -0700)]
tools.test: adding with-test-file and with-test-directory.

These provide unique temp files (and directories) that are
automatically cleaned up when the quotation exits. Mostly this
allows us to simplify some of our test files.

8 years agoui.backend.gtk: simplify <window-handle>.
John Benediktsson [Sat, 2 Apr 2016 16:31:30 +0000 (09:31 -0700)]
ui.backend.gtk: simplify <window-handle>.

8 years agocompiler.cfg.linear-scan.allocation.spilling: fix stack effect
Björn Lindqvist [Sun, 3 Apr 2016 13:36:39 +0000 (15:36 +0200)]
compiler.cfg.linear-scan.allocation.spilling: fix stack effect

8 years agocompiler.cfg.linear-scan.live-intervals: hairy- and clober-insn moved to
Björn Lindqvist [Sun, 3 Apr 2016 03:53:18 +0000 (05:53 +0200)]
compiler.cfg.linear-scan.live-intervals: hairy- and clober-insn moved to
this vocab

8 years agocompiler.cfg.linear-scan.assignment: refactoring + tests
Björn Lindqvist [Sun, 3 Apr 2016 00:48:37 +0000 (02:48 +0200)]
compiler.cfg.linear-scan.assignment: refactoring + tests

better expire-old-intervals, activate-new-intervals and assign-gc-roots

8 years agocompiler.cfg.linear-scan.assignment: refactoring
Björn Lindqvist [Sat, 2 Apr 2016 17:17:22 +0000 (19:17 +0200)]
compiler.cfg.linear-scan.assignment: refactoring

Better definitions for expire-old-intervals, activate-new-intervals and
assign-registers-in-insn.

8 years agocompiler.cfg.linear-scan.live-intervals: better way to write insn>sync-point
Björn Lindqvist [Sat, 2 Apr 2016 16:58:18 +0000 (18:58 +0200)]
compiler.cfg.linear-scan.live-intervals: better way to write insn>sync-point

8 years agographviz: Fix test for rename of rotate!
Doug Coleman [Sun, 3 Apr 2016 02:57:33 +0000 (19:57 -0700)]
graphviz: Fix test for rename of rotate!

8 years agocommand-line: gvim example obsolete. update to new example.
Doug Coleman [Sat, 2 Apr 2016 23:51:35 +0000 (16:51 -0700)]
command-line: gvim example obsolete. update to new example.

8 years agosequences.extras: Check if slices overlap or touch. Add a merge-slices word. For...
Doug Coleman [Sat, 2 Apr 2016 22:46:08 +0000 (15:46 -0700)]
sequences.extras: Check if slices overlap or touch. Add a merge-slices word. For efficiency, provide ordered/unordered versions of each word based on whether you know the slices have been swapped or not so they are ordered by from>>.

8 years agosequences.extras: rename rotate to rotate-headwards and rotate-tailwards. add experim...
Doug Coleman [Sat, 2 Apr 2016 22:17:12 +0000 (15:17 -0700)]
sequences.extras: rename rotate to rotate-headwards and rotate-tailwards. add experimental length- word and addo some slice util words.

8 years agoui.debugger: copyrighter.
John Benediktsson [Sat, 2 Apr 2016 16:30:41 +0000 (09:30 -0700)]
ui.debugger: copyrighter.

8 years agotools.deploy.*: refactoring to not use dynamic variables in make-deploy-image
Björn Lindqvist [Sat, 2 Apr 2016 02:56:04 +0000 (04:56 +0200)]
tools.deploy.*: refactoring to not use dynamic variables in make-deploy-image

8 years agocompiler.cfg.linear-scan.assignment: dont think prepare-insn should be called twice...
Björn Lindqvist [Sat, 2 Apr 2016 01:22:41 +0000 (03:22 +0200)]
compiler.cfg.linear-scan.assignment: dont think prepare-insn should be called twice here

8 years agocompiler.cfg.linear.scan.*: makes it so ranges and uses are guaranteed
Björn Lindqvist [Fri, 1 Apr 2016 22:23:49 +0000 (00:23 +0200)]
compiler.cfg.linear.scan.*: makes it so ranges and uses are guaranteed
to be vectors

Simplifies the code and makes it a little faster.

8 years agoui.debugger: If Linux has a ui error on startup you get popups continuously until...
Doug Coleman [Sat, 2 Apr 2016 08:56:48 +0000 (01:56 -0700)]
ui.debugger: If Linux has a ui error on startup you get popups continuously until you quit. The stack effect doesnt' throw, but I guess it's better to not have tons of popups.

8 years agocompiler.cfg.linear-scan.live-intervals: doc lint fixes
Björn Lindqvist [Fri, 1 Apr 2016 21:42:00 +0000 (23:42 +0200)]
compiler.cfg.linear-scan.live-intervals: doc lint fixes

8 years agobasis.compiler.cfg.linear-scan.*: fixing boostrap problems due to the
Björn Lindqvist [Fri, 1 Apr 2016 18:16:13 +0000 (20:16 +0200)]
basis.compiler.cfg.linear-scan.*: fixing boostrap problems due to the
word rename

Sorry for the noise.

8 years agocompiler.cfg.linear-scan.allocation.splitting: fix HINTS: specialization
Björn Lindqvist [Fri, 1 Apr 2016 17:38:45 +0000 (19:38 +0200)]
compiler.cfg.linear-scan.allocation.splitting: fix HINTS: specialization
for split-interval