Björn Lindqvist
8e1f3a0e51
VM: after reset_datastack and retainstack clear the stack segment. makes
...
it easier to find bad accesses to shadow data
2015-05-22 12:22:28 -07:00
Björn Lindqvist
183ec83a6d
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.
2015-05-22 12:22:27 -07:00
Björn Lindqvist
8d697fcc34
threads.test: a test that is mostly able to reproduce #1319
2015-05-22 12:22:26 -07:00
Björn Lindqvist
016614747d
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.
2015-05-22 12:22:26 -07:00
Björn Lindqvist
528e9f61f3
bootstrap.x86: new words jit-call-Xarg for calling vm functions with
...
arguments, simplifies some assembly code
2015-05-22 12:22:25 -07:00
Björn Lindqvist
6ca83e7588
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.
2015-05-22 12:22:24 -07:00
Doug Coleman
cf3ccd0abe
io.directories.search: Add some more combinators for finding files.
2015-05-21 22:35:24 -07:00
Doug Coleman
a2913d6bd7
sequences.extras: Add selector* which saves the output from the quotation
...
not the original value.
2015-05-21 22:35:23 -07:00
Doug Coleman
c13b881517
generalizations: dos2unix
2015-05-20 15:02:04 -07:00
Doug Coleman
0a9c79752d
generalizations: Only define npick for >= 1. Fixes #1306 .
2015-05-20 15:01:49 -07:00
Doug Coleman
12bd42c663
io.monitors: Fix using, speed up test from 3 second timeouts to 100ms timeouts.
2015-05-19 12:37:07 -07:00
Doug Coleman
870f9a73d6
compression.zlib: Add some helper functions for streaming unzipping.
2015-05-19 10:57:13 -07:00
Doug Coleman
c9ef2824c3
compression.zlib.ffi: Add some structures and functions for streaming unzipping.
2015-05-19 10:55:47 -07:00
Doug Coleman
0962b4a697
io.monitors: Run each set of monitors tests in its own directory. Fixes #1106 .
2015-05-19 10:50:58 -07:00
John Benediktsson
a66bed77b3
compiler.cfg.stacks.clearing: fix help-lint.
2015-05-18 10:02:35 -07:00
Doug Coleman
72d002ae4b
cpu.architecture: Fix trivial doc.
2015-05-18 00:37:05 -07:00
Björn Lindqvist
6c43475183
cpu.x86: fix silly bug in %clear
2015-05-18 06:52:49 +02:00
John Benediktsson
c7ea419874
compiler.cfg.stacks.clearing: fix tests.
2015-05-17 09:32:44 -07:00
Björn Lindqvist
9ceea3c241
compiler.*: new cfg instruction ##clear, it makes it easier to see where
...
the compiler.cfg.stacks.clearing pass inserts extra instructions
2015-05-17 07:59:34 +02:00
Björn Lindqvist
655faadec9
compiler.*: now when we're tracking uninitialized locations instead of
...
initialized ones, the height slot isn't needed on ##call anymore
2015-05-17 07:59:34 +02:00
Björn Lindqvist
bf7161604e
VM: simplified logic in data_heap_checker
2015-05-17 07:59:34 +02:00
Björn Lindqvist
6dd2fe31b6
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.
2015-05-17 07:59:34 +02:00
John Benediktsson
aa1a5f22ba
compiler.tree.debugger: fix docs using.
2015-05-14 08:16:27 -07:00
John Benediktsson
2c3492a916
minor cleanup to some docs.
2015-05-13 16:09:14 -07:00
John Benediktsson
40b699cc1e
math.primes: little bit more cleanup.
2015-05-13 15:17:15 -07:00
John Benediktsson
ab50fc818f
math.primes: use fast-gcd in coprime? and replicate instead of make.
2015-05-13 14:47:31 -07:00
John Benediktsson
10dc967494
picomath: simplify.
2015-05-13 14:47:15 -07:00
John Benediktsson
ba3c232c65
project-euler.026: simplify, use coprime? from math.primes.
2015-05-13 14:46:59 -07:00
John Benediktsson
4af2c7ea1f
io.streams.peek: fix test using.
2015-05-13 06:29:05 -07:00
Doug Coleman
aeb03fff38
io.streams.peek: Peek streams can break on file input. Fixes #1317 .
2015-05-12 21:50:01 -07:00
John Benediktsson
e72ad0c4f7
update vim syntax file.
2015-05-12 19:40:21 -07:00
John Benediktsson
296968580a
use assoc-reject instead of [ ... not ] assoc-filter.
2015-05-12 19:08:42 -07:00
John Benediktsson
55122d9141
sequences: adding related-words for filter and reject.
2015-05-12 19:08:21 -07:00
John Benediktsson
016e03410d
assocs: adding assoc-reject, assoc-reject-as, assoc-reject!.
2015-05-12 19:07:00 -07:00
John Benediktsson
b366a06c41
use reject instead of [ ... not ] filter.
2015-05-12 18:50:34 -07:00
John Benediktsson
6071ea98f7
sequences: adding reject/reject-as/reject!.
2015-05-12 18:39:19 -07:00
John Benediktsson
a33fc84de7
help.lint.checks: re-enable leak detection.
2015-05-12 10:46:37 -07:00
Björn Lindqvist
ba8caa72fb
io.crlf: the lf>crlf and crlf>lf words looks generally useful, lets put them in io.crlf to reduce some code duplication
2015-05-12 09:32:05 -07:00
Björn Lindqvist
36444f328f
http.server.requests: an upper limit is needed for the content-length header
2015-05-12 09:32:05 -07:00
Björn Lindqvist
7647020615
http.server: extend handle-client-error so that it responds with 400 Bad Request if the request is invalid
2015-05-12 09:32:05 -07:00
Björn Lindqvist
eac41a588a
http.server.requests: if the content-length header is missing or invalid, a (controlled) error is thrown
2015-05-12 09:31:22 -07:00
Björn Lindqvist
d30beb13ed
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.
2015-05-12 09:31:22 -07:00
Björn Lindqvist
99012bb20a
http.server.requests.tests: more tests for POST requests handling
2015-05-12 09:31:21 -07:00
Björn Lindqvist
9058fbff01
mime.multipart: removed call to maybe-fill-bytes, fixes multipart parsing of short payloads
2015-05-12 09:31:21 -07:00
Björn Lindqvist
f75ee294e7
http.server.requests: refactor the http.server vocabs request handling into its own vocab
2015-05-12 09:31:21 -07:00
John Benediktsson
5ea4e26bc5
sequences.rotated: can be a lot faster if we don't circular-wrap.
2015-05-11 19:41:01 -07:00
John Benediktsson
1f2ecfde76
present: adding M\ complex present.
2015-05-11 17:57:11 -07:00
Jon Harper
46fd0b5794
sequences.extras: add start-all and count-subseq for searching/counting all occurences of a subseq
2015-05-10 11:05:16 -07:00
John Benediktsson
e1d18579e7
cpu/stack-checker: fix some help-lint warnings.
2015-05-10 10:13:57 -07:00
Björn Lindqvist
f9a6bb27f4
compiler.cfg.*: new test-case and setting leader-map to f is better
2015-05-09 20:10:27 -07:00