]>
gitweb.factorcode.org Git - factor.git/log
Doug Coleman [Sat, 6 Jun 2015 12:52:35 +0000 (05:52 -0700)]
formatting: Welcome to the sprintf club, MSVC 2015. Fixes #1337.
Doug Coleman [Sat, 6 Jun 2015 04:22:50 +0000 (21:22 -0700)]
compiler.tree.cleanup: Fix docs
Doug Coleman [Sat, 6 Jun 2015 04:09:57 +0000 (21:09 -0700)]
bit-arrays: rename clean-up to zero-end-bits
Doug Coleman [Sat, 6 Jun 2015 04:08:18 +0000 (21:08 -0700)]
compiler: rename cleanup to cleanup-tree, cleanup* to cleanup-tree*
Doug Coleman [Sat, 6 Jun 2015 00:05:57 +0000 (17:05 -0700)]
alien.libraries.finder: Allow library to match just by name. Related to #1099.
Add some more unit tests. Fix a typo fidner->finder.
Doug Coleman [Fri, 5 Jun 2015 17:53:02 +0000 (10:53 -0700)]
platform.hpp: Indent so I can see wtf is going on with the preprocessor control flow.
Look for ``__linux__`` on linux instead of ``linux`` because compiling with
-std=c++11 removes the ``linux`` preprocessor symbol.
Doug Coleman [Fri, 5 Jun 2015 17:52:48 +0000 (10:52 -0700)]
Revert "GNUmakefile: Don't compile.gch with -std=c++11"
This wasn't the problem.
This reverts commit
e97e74b682aa1692fd72fe63f22b991176bb3e4e .
Doug Coleman [Fri, 5 Jun 2015 17:35:03 +0000 (10:35 -0700)]
GNUmakefile: Don't compile.gch with -std=c++11
Doug Coleman [Fri, 5 Jun 2015 17:31:49 +0000 (10:31 -0700)]
GNUmakefile: add -std=c++11 to CXXFLAGS
Doug Coleman [Fri, 5 Jun 2015 17:21:20 +0000 (10:21 -0700)]
ffi_test.c: Casting a 32bit int to a 64bit pointer is invalid. Instead,
cast it to a 64bit int then to the pointer. Found with visual studio 2015.
Doug Coleman [Fri, 5 Jun 2015 17:20:32 +0000 (10:20 -0700)]
utilities.hpp: Use auto pointer instead of gcc extension typeof().
Fixes #1336.
John Benediktsson [Fri, 5 Jun 2015 06:15:51 +0000 (23:15 -0700)]
deques: use fry to simplify.
Björn Lindqvist [Fri, 5 Jun 2015 00:11:28 +0000 (02:11 +0200)]
VM: fixes so that raw_fread and safe_fread returns a size_t again
Björn Lindqvist [Thu, 4 Jun 2015 15:30:36 +0000 (17:30 +0200)]
VM: make FACTOR_FOR_EACH not call .end() more than once
Björn Lindqvist [Sun, 31 May 2015 22:21:32 +0000 (00:21 +0200)]
VM: safe_fread needs to return an int so you can return -1 on error
Björn Lindqvist [Sat, 30 May 2015 18:07:16 +0000 (20:07 +0200)]
VM: move free_list_allocator<Block>::next_allocated_block_after to
tenured_space::next_allocated_object_after, because it's only used there
Björn Lindqvist [Sat, 30 May 2015 00:29:57 +0000 (02:29 +0200)]
VM: new functions raw_fclose and raw_fread
These need to be used when the image is loaded because there is no
context so you can't throw io errors yet.
Björn Lindqvist [Fri, 29 May 2015 10:25:12 +0000 (12:25 +0200)]
VM: macro FACTOR_FOR_EACH used in more places to drive iteration
Björn Lindqvist [Fri, 29 May 2015 00:03:37 +0000 (02:03 +0200)]
VM: macro FACTOR_FOR_EACH to make stl container iteration easier to express
Doug Coleman [Wed, 3 Jun 2015 21:35:48 +0000 (14:35 -0700)]
vm: Only call fclose() once. Rename io_error() to io_error_if_not_EINTR() to be more explicit.
Fixes #1335.
John Benediktsson [Wed, 3 Jun 2015 15:59:41 +0000 (08:59 -0700)]
assocs.extras: minor changes to assoc-merge.
John Benediktsson [Tue, 2 Jun 2015 18:54:05 +0000 (11:54 -0700)]
math.functions: some silly cleanup.
John Benediktsson [Tue, 2 Jun 2015 02:46:40 +0000 (19:46 -0700)]
benchmark.backtrack: some cleanup.
John Benediktsson [Tue, 2 Jun 2015 02:46:15 +0000 (19:46 -0700)]
game.models.obj: some cleanup.
John Benediktsson [Tue, 2 Jun 2015 02:46:08 +0000 (19:46 -0700)]
backtrack: some cleanup.
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.
Doug Coleman [Mon, 1 Jun 2015 22:22:05 +0000 (15:22 -0700)]
io.files.unique: Better docs for with-unique-directory.
Doug Coleman [Mon, 1 Jun 2015 22:00:10 +0000 (15:00 -0700)]
editors.sublime: Fix sublime for windows.
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 .
John Benediktsson [Mon, 1 Jun 2015 21:57:47 +0000 (14:57 -0700)]
io.standard-paths: adding support for PATHEXT.
John Benediktsson [Mon, 1 Jun 2015 21:39:30 +0000 (14:39 -0700)]
editors: bunch of cleanup.
John Benediktsson [Mon, 1 Jun 2015 21:26:38 +0000 (14:26 -0700)]
io.standard-paths: add ?find-in-path.
John Benediktsson [Mon, 1 Jun 2015 21:26:27 +0000 (14:26 -0700)]
io.standard-paths.windows: use map-find.
John Benediktsson [Mon, 1 Jun 2015 16:11:19 +0000 (09:11 -0700)]
tools.which: add a convenience for "which or".
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.
John Benediktsson [Sun, 31 May 2015 15:44:55 +0000 (08:44 -0700)]
io.binary.fast: adding fast version of signed> words.
John Benediktsson [Sun, 31 May 2015 15:44:39 +0000 (08:44 -0700)]
io.binary: adding some tests for signed>.
John Benediktsson [Sun, 31 May 2015 15:09:05 +0000 (08:09 -0700)]
io.binary.fast: easier to read using stdint types.
John Benediktsson [Sun, 31 May 2015 15:04:34 +0000 (08:04 -0700)]
math.bitwise: bitfield should just use map-reduce.
John Benediktsson [Sun, 31 May 2015 14:08:07 +0000 (07:08 -0700)]
io.binary.fast: speed up when used by byte-arrays.
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.
John Benediktsson [Sun, 31 May 2015 04:55:16 +0000 (21:55 -0700)]
english: fix copyright.
John Benediktsson [Sun, 31 May 2015 04:51:08 +0000 (21:51 -0700)]
math.bitwise: fix docs for bitfield.
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
Björn Lindqvist [Fri, 22 May 2015 18:29:20 +0000 (20:29 +0200)]
bootstrap.primitives: shorter code for mapping architecture to assembly file
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
Björn Lindqvist [Fri, 22 May 2015 15:16:00 +0000 (17:16 +0200)]
bootstrap.ppc: untested fix for #1319 for ppc
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
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.
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
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.
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
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.
Doug Coleman [Fri, 22 May 2015 05:34:55 +0000 (22:34 -0700)]
io.directories.search: Add some more combinators for finding files.
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.
Doug Coleman [Wed, 20 May 2015 22:02:04 +0000 (15:02 -0700)]
generalizations: dos2unix
Doug Coleman [Wed, 20 May 2015 21:57:43 +0000 (14:57 -0700)]
generalizations: Only define npick for >= 1. Fixes #1306.
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.
Doug Coleman [Tue, 19 May 2015 17:57:13 +0000 (10:57 -0700)]
compression.zlib: Add some helper 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.
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.
John Benediktsson [Mon, 18 May 2015 17:02:04 +0000 (10:02 -0700)]
compiler.cfg.stacks.clearing: fix help-lint.
Doug Coleman [Mon, 18 May 2015 07:37:05 +0000 (00:37 -0700)]
cpu.architecture: Fix trivial doc.
Björn Lindqvist [Mon, 18 May 2015 04:28:15 +0000 (06:28 +0200)]
cpu.x86: fix silly bug in %clear
John Benediktsson [Sun, 17 May 2015 16:32:44 +0000 (09:32 -0700)]
compiler.cfg.stacks.clearing: fix tests.
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
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
Björn Lindqvist [Wed, 13 May 2015 02:33:40 +0000 (04:33 +0200)]
VM: simplified logic in data_heap_checker
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.
John Benediktsson [Thu, 14 May 2015 15:16:27 +0000 (08:16 -0700)]
compiler.tree.debugger: fix docs using.
John Benediktsson [Wed, 13 May 2015 23:09:14 +0000 (16:09 -0700)]
minor cleanup to some docs.
John Benediktsson [Wed, 13 May 2015 22:17:15 +0000 (15:17 -0700)]
math.primes: little bit more cleanup.
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.
John Benediktsson [Wed, 13 May 2015 21:47:15 +0000 (14:47 -0700)]
picomath: simplify.
John Benediktsson [Wed, 13 May 2015 21:46:59 +0000 (14:46 -0700)]
project-euler.026: simplify, use coprime? from math.primes.
John Benediktsson [Wed, 13 May 2015 13:29:05 +0000 (06:29 -0700)]
io.streams.peek: fix test using.
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.
John Benediktsson [Wed, 13 May 2015 02:40:21 +0000 (19:40 -0700)]
update vim syntax file.
John Benediktsson [Wed, 13 May 2015 02:08:42 +0000 (19:08 -0700)]
use assoc-reject instead of [ ... not ] assoc-filter.
John Benediktsson [Wed, 13 May 2015 02:08:21 +0000 (19:08 -0700)]
sequences: adding related-words for filter and reject.
John Benediktsson [Wed, 13 May 2015 02:07:00 +0000 (19:07 -0700)]
assocs: adding assoc-reject, assoc-reject-as, assoc-reject!.
John Benediktsson [Wed, 13 May 2015 01:50:34 +0000 (18:50 -0700)]
use reject instead of [ ... not ] filter.
John Benediktsson [Wed, 13 May 2015 01:39:19 +0000 (18:39 -0700)]
sequences: adding reject/reject-as/reject!.
John Benediktsson [Tue, 12 May 2015 17:46:37 +0000 (10:46 -0700)]
help.lint.checks: re-enable leak detection.
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
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
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
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
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.
Björn Lindqvist [Wed, 29 Oct 2014 18:37:25 +0000 (19:37 +0100)]
http.server.requests.tests: more tests for POST requests handling
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
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
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.
John Benediktsson [Tue, 12 May 2015 00:57:11 +0000 (17:57 -0700)]
present: adding M\ complex present.
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
John Benediktsson [Sun, 10 May 2015 17:13:57 +0000 (10:13 -0700)]
cpu/stack-checker: fix some help-lint warnings.
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
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
Björn Lindqvist [Sat, 9 May 2015 23:26:43 +0000 (01:26 +0200)]
compiler.cfg.stacks.padding: docs
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