]> gitweb.factorcode.org Git - factor.git/log
factor.git
8 years agobacktrack: some cleanup.
John Benediktsson [Tue, 2 Jun 2015 02:46:08 +0000 (19:46 -0700)]
backtrack: some cleanup.

8 years agoeditors.sublime: keep Sublime Text 2 support like we do on OS X.
John Benediktsson [Mon, 1 Jun 2015 22:34:11 +0000 (15:34 -0700)]
editors.sublime: keep Sublime Text 2 support like we do on OS X.

8 years agoio.files.unique: Better docs for with-unique-directory.
Doug Coleman [Mon, 1 Jun 2015 22:22:05 +0000 (15:22 -0700)]
io.files.unique: Better docs for with-unique-directory.

8 years agoeditors.sublime: Fix sublime for windows.
Doug Coleman [Mon, 1 Jun 2015 22:00:10 +0000 (15:00 -0700)]
editors.sublime: Fix sublime for windows.

8 years agoRevert "io.standard-paths: adding support for PATHEXT."
John Benediktsson [Mon, 1 Jun 2015 21:59:36 +0000 (14:59 -0700)]
Revert "io.standard-paths: adding support for PATHEXT."

This reverts commit be9bff0e5bc77e3998bfc92257dcee9d8ee5728b.

8 years agoio.standard-paths: adding support for PATHEXT.
John Benediktsson [Mon, 1 Jun 2015 21:57:47 +0000 (14:57 -0700)]
io.standard-paths: adding support for PATHEXT.

8 years agoeditors: bunch of cleanup.
John Benediktsson [Mon, 1 Jun 2015 21:39:30 +0000 (14:39 -0700)]
editors: bunch of cleanup.

8 years agoio.standard-paths: add ?find-in-path.
John Benediktsson [Mon, 1 Jun 2015 21:26:38 +0000 (14:26 -0700)]
io.standard-paths: add ?find-in-path.

8 years agoio.standard-paths.windows: use map-find.
John Benediktsson [Mon, 1 Jun 2015 21:26:27 +0000 (14:26 -0700)]
io.standard-paths.windows: use map-find.

8 years agotools.which: add a convenience for "which or".
John Benediktsson [Mon, 1 Jun 2015 16:11:19 +0000 (09:11 -0700)]
tools.which: add a convenience for "which or".

8 years agocalendar.format: Add a word to output times in the format that git uses. Rename a...
Doug Coleman [Sun, 31 May 2015 22:08:51 +0000 (15:08 -0700)]
calendar.format: Add a word to output times in the format that git uses. Rename a paren word.

8 years agoio.binary.fast: adding fast version of signed> words.
John Benediktsson [Sun, 31 May 2015 15:44:55 +0000 (08:44 -0700)]
io.binary.fast: adding fast version of signed> words.

8 years agoio.binary: adding some tests for signed>.
John Benediktsson [Sun, 31 May 2015 15:44:39 +0000 (08:44 -0700)]
io.binary: adding some tests for signed>.

8 years agoio.binary.fast: easier to read using stdint types.
John Benediktsson [Sun, 31 May 2015 15:09:05 +0000 (08:09 -0700)]
io.binary.fast: easier to read using stdint types.

8 years agomath.bitwise: bitfield should just use map-reduce.
John Benediktsson [Sun, 31 May 2015 15:04:34 +0000 (08:04 -0700)]
math.bitwise: bitfield should just use map-reduce.

8 years agoio.binary.fast: speed up when used by byte-arrays.
John Benediktsson [Sun, 31 May 2015 14:08:07 +0000 (07:08 -0700)]
io.binary.fast: speed up when used by byte-arrays.

8 years agomath.bitwise: change bitfield to reduce from first argument rather than zero.
John Benediktsson [Sun, 31 May 2015 04:55:27 +0000 (21:55 -0700)]
math.bitwise: change bitfield to reduce from first argument rather than zero.

8 years agoenglish: fix copyright.
John Benediktsson [Sun, 31 May 2015 04:55:16 +0000 (21:55 -0700)]
english: fix copyright.

8 years agomath.bitwise: fix docs for bitfield.
John Benediktsson [Sun, 31 May 2015 04:51:08 +0000 (21:51 -0700)]
math.bitwise: fix docs for bitfield.

8 years agobootstrap.x86: fix assembler code bug in fixnum*
Björn Lindqvist [Mon, 25 May 2015 13:04:33 +0000 (15:04 +0200)]
bootstrap.x86: fix assembler code bug in fixnum*

Now the operands are kept in EBP and ECX and the vm-reg (EBX) is not
used unnecessarily

8 years agobootstrap.primitives: shorter code for mapping architecture to assembly file
Björn Lindqvist [Fri, 22 May 2015 18:29:20 +0000 (20:29 +0200)]
bootstrap.primitives: shorter code for mapping architecture to assembly file

8 years agocpu.x86.*: %mov-vm-ptr isn't so useful, shorter and simpler to write
Björn Lindqvist [Fri, 22 May 2015 15:17:00 +0000 (17:17 +0200)]
cpu.x86.*: %mov-vm-ptr isn't so useful, shorter and simpler to write
vm-reg MOV

8 years agobootstrap.ppc: untested fix for #1319 for ppc
Björn Lindqvist [Fri, 22 May 2015 15:16:00 +0000 (17:16 +0200)]
bootstrap.ppc: untested fix for #1319 for ppc

8 years agoVM: after reset_datastack and retainstack clear the stack segment. makes
Björn Lindqvist [Fri, 22 May 2015 14:52:13 +0000 (16:52 +0200)]
VM: after reset_datastack and retainstack clear the stack segment. makes
it easier to find bad accesses to shadow data

8 years agoVM: possible fix for #1319.
Björn Lindqvist [Fri, 22 May 2015 13:29:38 +0000 (15:29 +0200)]
VM: possible fix for #1319.

Fix for reset_context() so that the top two stack items are never
removed from the stack so if the parent->init_context(ctx) call triggers
a GC, those items are never collected.

8 years agothreads.test: a test that is mostly able to reproduce #1319
Björn Lindqvist [Wed, 20 May 2015 23:35:43 +0000 (01:35 +0200)]
threads.test: a test that is mostly able to reproduce #1319

8 years agoVM: the delete_context() and reset_context() api functions can be
Björn Lindqvist [Mon, 18 May 2015 16:43:20 +0000 (18:43 +0200)]
VM: the delete_context() and reset_context() api functions can be
simplified a bit

The functions always operates on parent->ctx, so passing a context*
parameter is redundant. This enables shorter assembly code for
the (start-context-and-delete) and (set-context-and-delete) primitives.

8 years agobootstrap.x86: new words jit-call-Xarg for calling vm functions with
Björn Lindqvist [Mon, 18 May 2015 13:58:07 +0000 (15:58 +0200)]
bootstrap.x86: new words jit-call-Xarg for calling vm functions with
arguments, simplifies some assembly code

8 years agoReorganising bootstrap files
Björn Lindqvist [Sun, 17 May 2015 08:11:48 +0000 (10:11 +0200)]
Reorganising bootstrap files

All the bootstrap.factor scripts in cpu/ are run by the bootstrap to
make boot images, but aren't used otherwise. So I think it's cleaner to
put them in one directory inside the bootstrap hierarchy.

8 years agoio.directories.search: Add some more combinators for finding files.
Doug Coleman [Fri, 22 May 2015 05:34:55 +0000 (22:34 -0700)]
io.directories.search: Add some more combinators for finding files.

8 years agosequences.extras: Add selector* which saves the output from the quotation
Doug Coleman [Fri, 22 May 2015 05:34:29 +0000 (22:34 -0700)]
sequences.extras: Add selector* which saves the output from the quotation
not the original value.

8 years agogeneralizations: dos2unix
Doug Coleman [Wed, 20 May 2015 22:02:04 +0000 (15:02 -0700)]
generalizations: dos2unix

8 years agogeneralizations: Only define npick for >= 1. Fixes #1306.
Doug Coleman [Wed, 20 May 2015 21:57:43 +0000 (14:57 -0700)]
generalizations: Only define npick for >= 1. Fixes #1306.

8 years agoio.monitors: Fix using, speed up test from 3 second timeouts to 100ms timeouts.
Doug Coleman [Tue, 19 May 2015 19:37:07 +0000 (12:37 -0700)]
io.monitors: Fix using, speed up test from 3 second timeouts to 100ms timeouts.

8 years agocompression.zlib: Add some helper functions for streaming unzipping.
Doug Coleman [Tue, 19 May 2015 17:57:13 +0000 (10:57 -0700)]
compression.zlib: Add some helper functions for streaming unzipping.

8 years agocompression.zlib.ffi: Add some structures and functions for streaming unzipping.
Doug Coleman [Tue, 19 May 2015 17:55:47 +0000 (10:55 -0700)]
compression.zlib.ffi: Add some structures and functions for streaming unzipping.

8 years agoio.monitors: Run each set of monitors tests in its own directory. Fixes #1106.
Doug Coleman [Tue, 19 May 2015 17:50:17 +0000 (10:50 -0700)]
io.monitors: Run each set of monitors tests in its own directory. Fixes #1106.

8 years agocompiler.cfg.stacks.clearing: fix help-lint.
John Benediktsson [Mon, 18 May 2015 17:02:04 +0000 (10:02 -0700)]
compiler.cfg.stacks.clearing: fix help-lint.

8 years agocpu.architecture: Fix trivial doc.
Doug Coleman [Mon, 18 May 2015 07:37:05 +0000 (00:37 -0700)]
cpu.architecture: Fix trivial doc.

8 years agocpu.x86: fix silly bug in %clear 1322/head
Björn Lindqvist [Mon, 18 May 2015 04:28:15 +0000 (06:28 +0200)]
cpu.x86: fix silly bug in %clear

8 years agocompiler.cfg.stacks.clearing: fix tests.
John Benediktsson [Sun, 17 May 2015 16:32:44 +0000 (09:32 -0700)]
compiler.cfg.stacks.clearing: fix tests.

8 years agocompiler.*: new cfg instruction ##clear, it makes it easier to see where 1321/head
Björn Lindqvist [Sun, 17 May 2015 05:57:24 +0000 (07:57 +0200)]
compiler.*: new cfg instruction ##clear, it makes it easier to see where
the compiler.cfg.stacks.clearing pass inserts extra instructions

8 years agocompiler.*: now when we're tracking uninitialized locations instead of
Björn Lindqvist [Sun, 17 May 2015 01:11:32 +0000 (03:11 +0200)]
compiler.*: now when we're tracking uninitialized locations instead of
initialized ones, the height slot isn't needed on ##call anymore

8 years agoVM: simplified logic in data_heap_checker
Björn Lindqvist [Wed, 13 May 2015 02:33:40 +0000 (04:33 +0200)]
VM: simplified logic in data_heap_checker

8 years agocompiler.cfg.stacks.*: new attempt at fixing the gc maps bugs
Björn Lindqvist [Tue, 12 May 2015 22:35:13 +0000 (00:35 +0200)]
compiler.cfg.stacks.*: new attempt at fixing the gc maps bugs

the padding vocab is inverted so that instead of trying to track which
locations are live, it tracks those which are dead which is much easier
to get right.

8 years agocompiler.tree.debugger: fix docs using.
John Benediktsson [Thu, 14 May 2015 15:16:27 +0000 (08:16 -0700)]
compiler.tree.debugger: fix docs using.

9 years agominor cleanup to some docs.
John Benediktsson [Wed, 13 May 2015 23:09:14 +0000 (16:09 -0700)]
minor cleanup to some docs.

9 years agomath.primes: little bit more cleanup.
John Benediktsson [Wed, 13 May 2015 22:17:15 +0000 (15:17 -0700)]
math.primes: little bit more cleanup.

9 years agomath.primes: use fast-gcd in coprime? and replicate instead of make.
John Benediktsson [Wed, 13 May 2015 21:47:31 +0000 (14:47 -0700)]
math.primes: use fast-gcd in coprime? and replicate instead of make.

9 years agopicomath: simplify.
John Benediktsson [Wed, 13 May 2015 21:47:15 +0000 (14:47 -0700)]
picomath: simplify.

9 years agoproject-euler.026: simplify, use coprime? from math.primes.
John Benediktsson [Wed, 13 May 2015 21:46:59 +0000 (14:46 -0700)]
project-euler.026: simplify, use coprime? from math.primes.

9 years agoio.streams.peek: fix test using.
John Benediktsson [Wed, 13 May 2015 13:29:05 +0000 (06:29 -0700)]
io.streams.peek: fix test using.

9 years agoio.streams.peek: Peek streams can break on file input. Fixes #1317.
Doug Coleman [Wed, 13 May 2015 04:50:01 +0000 (21:50 -0700)]
io.streams.peek: Peek streams can break on file input. Fixes #1317.

9 years agoupdate vim syntax file.
John Benediktsson [Wed, 13 May 2015 02:40:21 +0000 (19:40 -0700)]
update vim syntax file.

9 years agouse assoc-reject instead of [ ... not ] assoc-filter.
John Benediktsson [Wed, 13 May 2015 02:08:42 +0000 (19:08 -0700)]
use assoc-reject instead of [ ... not ] assoc-filter.

9 years agosequences: adding related-words for filter and reject.
John Benediktsson [Wed, 13 May 2015 02:08:21 +0000 (19:08 -0700)]
sequences: adding related-words for filter and reject.

9 years agoassocs: adding assoc-reject, assoc-reject-as, assoc-reject!.
John Benediktsson [Wed, 13 May 2015 02:07:00 +0000 (19:07 -0700)]
assocs: adding assoc-reject, assoc-reject-as, assoc-reject!.

9 years agouse reject instead of [ ... not ] filter.
John Benediktsson [Wed, 13 May 2015 01:50:34 +0000 (18:50 -0700)]
use reject instead of [ ... not ] filter.

9 years agosequences: adding reject/reject-as/reject!.
John Benediktsson [Wed, 13 May 2015 01:39:19 +0000 (18:39 -0700)]
sequences: adding reject/reject-as/reject!.

9 years agohelp.lint.checks: re-enable leak detection.
John Benediktsson [Tue, 12 May 2015 17:46:37 +0000 (10:46 -0700)]
help.lint.checks: re-enable leak detection.

9 years agoio.crlf: the lf>crlf and crlf>lf words looks generally useful, lets put them in io...
Björn Lindqvist [Mon, 3 Nov 2014 23:20:05 +0000 (00:20 +0100)]
io.crlf: the lf>crlf and crlf>lf words looks generally useful, lets put them in io.crlf to reduce some code duplication

9 years agohttp.server.requests: an upper limit is needed for the content-length header
Björn Lindqvist [Thu, 30 Oct 2014 12:37:48 +0000 (13:37 +0100)]
http.server.requests: an upper limit is needed for the content-length header

9 years agohttp.server: extend handle-client-error so that it responds with 400 Bad Request...
Björn Lindqvist [Thu, 30 Oct 2014 12:24:03 +0000 (13:24 +0100)]
http.server: extend handle-client-error so that it responds with 400 Bad Request if the request is invalid

9 years agohttp.server.requests: if the content-length header is missing or invalid, a (controll...
Björn Lindqvist [Thu, 30 Oct 2014 00:15:00 +0000 (01:15 +0100)]
http.server.requests: if the content-length header is missing or invalid, a (controlled) error is thrown

9 years agohttp.server.requests: system for read-request for reporting errors
Björn Lindqvist [Wed, 29 Oct 2014 20:41:17 +0000 (21:41 +0100)]
http.server.requests: system for read-request for reporting errors

The idea is that read-request throws request-error if something is
wrong with the request. handle-client* can then catch it and respond
with 400 bad request. This way you can differentiate between bad
requests and requests that causes the HTTP server to crash.

9 years agohttp.server.requests.tests: more tests for POST requests handling
Björn Lindqvist [Wed, 29 Oct 2014 18:37:25 +0000 (19:37 +0100)]
http.server.requests.tests: more tests for POST requests handling

9 years agomime.multipart: removed call to maybe-fill-bytes, fixes multipart parsing of short...
Björn Lindqvist [Wed, 29 Oct 2014 18:34:08 +0000 (19:34 +0100)]
mime.multipart: removed call to maybe-fill-bytes, fixes multipart parsing of short payloads

9 years agohttp.server.requests: refactor the http.server vocabs request handling into its own...
Björn Lindqvist [Wed, 29 Oct 2014 14:34:17 +0000 (15:34 +0100)]
http.server.requests: refactor the http.server vocabs request handling into its own vocab

9 years agosequences.rotated: can be a lot faster if we don't circular-wrap.
John Benediktsson [Tue, 12 May 2015 02:41:01 +0000 (19:41 -0700)]
sequences.rotated: can be a lot faster if we don't circular-wrap.

9 years agopresent: adding M\ complex present.
John Benediktsson [Tue, 12 May 2015 00:57:11 +0000 (17:57 -0700)]
present: adding M\ complex present.

9 years agosequences.extras: add start-all and count-subseq for searching/counting all occurence...
Jon Harper [Sun, 10 May 2015 16:57:36 +0000 (18:57 +0200)]
sequences.extras: add start-all and count-subseq for searching/counting all occurences of a subseq

9 years agocpu/stack-checker: fix some help-lint warnings.
John Benediktsson [Sun, 10 May 2015 17:13:57 +0000 (10:13 -0700)]
cpu/stack-checker: fix some help-lint warnings.

9 years agocompiler.cfg.*: new test-case and setting leader-map to f is better
Björn Lindqvist [Sun, 10 May 2015 02:53:41 +0000 (04:53 +0200)]
compiler.cfg.*: new test-case and setting leader-map to f is better

9 years agomemory.tests: a full test against #1289, it shouldn't crash
Björn Lindqvist [Sat, 9 May 2015 23:27:43 +0000 (01:27 +0200)]
memory.tests: a full test against #1289, it shouldn't crash

9 years agocompiler.cfg.stacks.padding: docs
Björn Lindqvist [Sat, 9 May 2015 23:26:43 +0000 (01:26 +0200)]
compiler.cfg.stacks.padding: docs

9 years agocompiler.cfg.ssa.destruction: fix and testcase for the
Björn Lindqvist [Sat, 9 May 2015 21:02:30 +0000 (23:02 +0200)]
compiler.cfg.ssa.destruction: fix and testcase for the
"lookup-base-pointer* does not define a method for the POSTPONE: f
class" bug

9 years agocompiler.cfg.stacks.*: new vocab 'padding' to perform much more accurate
Björn Lindqvist [Sat, 9 May 2015 13:32:05 +0000 (15:32 +0200)]
compiler.cfg.stacks.*: new vocab 'padding' to perform much more accurate
live analysis. it will replace the 'map' vocab

9 years agocompiler.*: a bunch more compiler docs
Björn Lindqvist [Sat, 9 May 2015 01:21:24 +0000 (03:21 +0200)]
compiler.*: a bunch more compiler docs

9 years agocompiler.cfg.utilities: unused word
Björn Lindqvist [Sat, 9 May 2015 00:57:23 +0000 (02:57 +0200)]
compiler.cfg.utilities: unused word

9 years agocompiler.*,cpu.*: add a height slot to ##call nodes, then other compiler
Björn Lindqvist [Thu, 7 May 2015 11:34:48 +0000 (13:34 +0200)]
compiler.*,cpu.*: add a height slot to ##call nodes, then other compiler
passes can much easier to accurate liveness analysis on stack locations

9 years agoVM: cleanups, like removing redundant paranthesis and removing method
Björn Lindqvist [Thu, 7 May 2015 11:29:57 +0000 (13:29 +0200)]
VM: cleanups, like removing redundant paranthesis and removing method
declarations that doesn't exist

9 years agocompiler.cfg.*: a bunch of new tests
Björn Lindqvist [Thu, 7 May 2015 11:23:28 +0000 (13:23 +0200)]
compiler.cfg.*: a bunch of new tests

9 years agoVM: refactoring to use the visit_object_array method
Björn Lindqvist [Mon, 4 May 2015 15:32:51 +0000 (17:32 +0200)]
VM: refactoring to use the visit_object_array method

9 years agoVM: the aging_policy and nursery_policy classes are so small that they
Björn Lindqvist [Mon, 4 May 2015 01:57:35 +0000 (03:57 +0200)]
VM: the aging_policy and nursery_policy classes are so small that they
can be in the same cpp file with the methods that use them

9 years agoVM: the copying_collector only contained one method, so it can easily be
Björn Lindqvist [Mon, 4 May 2015 01:50:02 +0000 (03:50 +0200)]
VM: the copying_collector only contained one method, so it can easily be
merged with its base class

9 years agoVM: to_tenured_collector isn't needed, it's just a normal collector instance
Björn Lindqvist [Sun, 3 May 2015 15:51:51 +0000 (17:51 +0200)]
VM: to_tenured_collector isn't needed, it's just a normal collector instance

9 years agoVM: debug macros FACTOR_PRINT and FACTOR_PRINT_MARK to make better debug
Björn Lindqvist [Sun, 3 May 2015 12:13:28 +0000 (14:13 +0200)]
VM: debug macros FACTOR_PRINT and FACTOR_PRINT_MARK to make better debug
printing messages than just using std::cout

9 years agocompiler.cfg.stacks.*: create-locs, word for creating stack locations
Björn Lindqvist [Sat, 2 May 2015 22:14:14 +0000 (00:14 +0200)]
compiler.cfg.stacks.*: create-locs, word for creating stack locations
from a sequence

9 years agoio.directories.search: Add two tests for find-up-to-directory, one that finds a file...
Doug Coleman [Sat, 9 May 2015 04:02:29 +0000 (21:02 -0700)]
io.directories.search: Add two tests for find-up-to-directory, one that finds a file and one that doesn't.

9 years agoAdd a couple minor extra docs for math.extras
Benjamin Pollack [Fri, 8 May 2015 21:09:46 +0000 (17:09 -0400)]
Add a couple minor extra docs for math.extras

9 years agoio.directories.search: fix inline recursive combinator compilation. fix
Doug Coleman [Thu, 7 May 2015 23:49:32 +0000 (16:49 -0700)]
io.directories.search: fix inline recursive combinator compilation. fix
reversed logic for containing-directory

9 years agoio.directories.search: Add find-up-to-root combinator and helper words.
Doug Coleman [Wed, 6 May 2015 06:26:52 +0000 (23:26 -0700)]
io.directories.search: Add find-up-to-root combinator and helper words.
Example:  "c:\\factor64\\.git\\objects" [ ".txt" tail? ] find-up-to-root .
"c:\\factor64\\.git"

9 years agotools.scaffold: generating docs for obj/f was broken.
Doug Coleman [Wed, 6 May 2015 02:12:36 +0000 (19:12 -0700)]
tools.scaffold: generating docs for obj/f was broken.

9 years agomath.transforms.bwt: slightly faster, remove suffixes because it seems buggy.
John Benediktsson [Wed, 6 May 2015 00:20:04 +0000 (17:20 -0700)]
math.transforms.bwt: slightly faster, remove suffixes because it seems buggy.

9 years agomath.transforms.bwt: faster version of bwt if only needing transform.
John Benediktsson [Tue, 5 May 2015 23:08:55 +0000 (16:08 -0700)]
math.transforms.bwt: faster version of bwt if only needing transform.

9 years agofile-monitor: simplify.
John Benediktsson [Tue, 5 May 2015 22:36:49 +0000 (15:36 -0700)]
file-monitor: simplify.

9 years agofile-monitor: use with-monitor.
John Benediktsson [Tue, 5 May 2015 22:33:17 +0000 (15:33 -0700)]
file-monitor: use with-monitor.

9 years agocompression.zlib: Just deal with raw bytes, no compressed object tuple.
Doug Coleman [Sat, 2 May 2015 17:41:52 +0000 (10:41 -0700)]
compression.zlib: Just deal with raw bytes, no compressed object tuple.

9 years agoRevert "compression.zlib: fix help-lint."
Doug Coleman [Sat, 2 May 2015 17:46:00 +0000 (10:46 -0700)]
Revert "compression.zlib: fix help-lint."

This reverts commit 30492d1a0631254bdfad426f42398a270d55514b.

9 years agocompression.zlib: fix help-lint.
John Benediktsson [Sat, 2 May 2015 16:32:05 +0000 (09:32 -0700)]
compression.zlib: fix help-lint.