Joe Groff
a3b15543e1
io.ports: implement read-unsafe operations
2011-10-17 21:22:59 -07:00
Joe Groff
7e9dbde99f
io.buffers: factor out buffer-read-unsafe word
...
buffer-read-unsafe returns a length and a pointer into the buffer instead of a copy.
2011-10-17 21:22:59 -07:00
Joe Groff
b79d7158be
io.streams.memory: implement stream-read-unsafe
...
(The actual method is in alien.data due to bootstrap load order issues.)
2011-10-17 21:22:59 -07:00
Joe Groff
d5f4b6f155
io.streams.sequence: change to provide read-unsafe
...
Change io.streams.sequence and its children io.streams.byte-array and io.streams.string to implement the -unsafe protocol and mixin noncopying-reader.
2011-10-17 21:22:59 -07:00
Joe Groff
5a072c57a6
bootstrap, io.streams.c: use new fread primitive
...
Change the fread primitive to fread-unsafe, matching the new primitive in the VM, and update the implementation of c-reader to implement stream-read-unsafe and stream-read in terms of fread-unsafe
2011-10-17 21:22:58 -07:00
John Benediktsson
38a54cb8df
math.functions: improve stack effect names for gcd*.
2011-10-17 20:37:36 -07:00
John Benediktsson
ac98269f53
math.functions: faster gcd means faster ratios.
2011-10-17 20:36:28 -07:00
Doug Coleman
a2804ebf54
find-dlist-node was returning duplicated information -- node/f tells you enough, no need for another boolean return value
2011-10-17 18:58:14 -07:00
Doug Coleman
f21fee3b73
Rename complete-effect to scan-effect
2011-10-17 10:25:27 -07:00
Doug Coleman
db1d499a6f
Fix typo in tools.deploy.windows.ico
2011-10-16 23:06:11 -07:00
John Benediktsson
81714b8dc3
More lint cleanups.
2011-10-16 19:33:16 -07:00
John Benediktsson
470e0be3e1
ui.tools.listener: call insert-newline directly.
2011-10-16 13:39:15 -07:00
John Benediktsson
fb9612ef73
sequences.deep: find drop >boolean is any?
2011-10-16 13:15:05 -07:00
John Benediktsson
c8732657b7
Cleanup more lint warnings.
2011-10-16 13:01:58 -07:00
John Benediktsson
6f1c44b46d
Cleanup some lint warnings.
2011-10-15 19:19:44 -07:00
John Benediktsson
ed72c670b9
bootstrap.image: disable auto-use. Fixes #263 .
2011-10-15 10:34:34 -07:00
John Benediktsson
37deaec528
random: random integers is 90% faster.
2011-10-14 18:52:41 -07:00
John Benediktsson
7d31da68b8
debugger: remove double namespace using.
2011-10-14 15:45:31 -07:00
Joe Groff
f39f97840a
stack-checker: update tests
...
[ bi ] infer now hits the row polymorphism checker before it hits the unknown-macro-input checker because of the effect on keep. Change the test to more directly test that call fails with an unknown input.
2011-10-14 15:35:29 -07:00
John Benediktsson
cc49bbfb27
math.bitwise: bits is clearer this way.
2011-10-14 13:54:08 -07:00
John Benediktsson
2b21f01918
Remove trim-whitespace in favor of [ blank? ] trim.
2011-10-14 13:22:28 -07:00
John Benediktsson
d61de12011
Cleanup more lint warnings.
2011-10-14 12:31:46 -07:00
Doug Coleman
623ccb95e6
Remove some duplication in lists
2011-10-14 12:08:48 -07:00
John Benediktsson
378786599d
Cleanup lint warnings.
2011-10-14 11:47:24 -07:00
Doug Coleman
933319f401
Cleanups found with lint tool
2011-10-14 10:15:13 -07:00
John Benediktsson
312704ae68
math.parser: cleanup uses of 16/8/2 >base/base>.
2011-10-14 10:09:12 -07:00
John Benediktsson
0965d9be41
webapps.help: remove frames. Fixes #242 .
2011-10-13 22:09:30 -07:00
John Benediktsson
f20e5df501
io.files.info.unix.linux: fix more M: stack effects.
2011-10-13 17:55:30 -07:00
John Benediktsson
2d8e7c77e8
io.files.info.unix.linux: fix M: stack effect.
2011-10-13 17:38:30 -07:00
John Benediktsson
6417f36397
namespaces: adding a "with-global" word to replace "global [ ] bind".
2011-10-13 17:21:59 -07:00
John Benediktsson
422f427a87
Fix M:: stack effects.
2011-10-13 16:44:30 -07:00
John Benediktsson
4558bf3414
Change method parsing to validate stack effects. Fixes #236 .
2011-10-13 16:41:17 -07:00
John Benediktsson
1987deb359
Fix M: stack effects.
2011-10-13 16:41:17 -07:00
John Benediktsson
4baf14972f
sequences: adding ?last for symmetry.
2011-10-13 13:04:24 -07:00
John Benediktsson
3207244c60
sequences: define ?first and ?second.
2011-10-13 12:53:46 -07:00
Doug Coleman
fb178b19a3
Fix using list for http.server tests
2011-10-12 23:19:11 -07:00
John Benediktsson
e7fb699832
http.server: ignore preceding whitespace before request lines. Fixes #252 .
2011-10-12 20:21:16 -07:00
John Benediktsson
1769a63ca3
http.client: too aggressive with ?CRLF.
2011-10-12 20:14:21 -07:00
John Benediktsson
0075b6bc28
sequences: adding find-index.
2011-10-12 19:41:54 -07:00
John Benediktsson
9562dc2054
hash2: remove since it is now unused.
2011-10-12 15:18:04 -07:00
John Benediktsson
6dc8af83fd
unicode.data: remove dependency on hash2.
2011-10-12 15:17:56 -07:00
John Benediktsson
46f8225f7a
http: change client/server to support LF and CRLF delimited headers.
2011-10-12 12:51:49 -07:00
John Benediktsson
24232cb095
io.crlf: add a word that reads an optional CR.
2011-10-12 12:36:54 -07:00
John Benediktsson
e7489ba16a
unicode.breaks: >words is now 90+% faster.
2011-10-12 11:04:19 -07:00
Doug Coleman
7228c2df2c
stream-element-type on output-ports was broken -- it looked for a stream>> slot but no such slot exists. add some unit tests
2011-10-12 01:05:01 -07:00
John Benediktsson
950f1e1c04
random: be> is faster (and they are random anyway)...
2011-10-11 22:31:21 -07:00
John Benediktsson
afc07c0e05
io.binary: make le> and be> faster (20% and 75%, respectively).
...
Removed primitive byte-array>bignum and digit_stream_to_bignum from vm/.
2011-10-11 21:13:30 -07:00
Doug Coleman
757889167a
Optimize byte-reverse macro in alien.endian -- it was shifting each byte to the 0th bit place, bitand-ing it with HEX: ff, then shifting it to its final destination -- now we immediately shift to the proper location and bitand with the proper bitmask.
2011-10-11 19:36:22 -07:00
Doug Coleman
c74402dad9
Fix using list because I'm dumb for developing Windows changes from a Mac.
2011-10-11 13:33:44 -07:00
Doug Coleman
63fa01fd4f
Proper double-quote and backslash escaping for windows command line arguments. Fixes #245 .
2011-10-11 12:21:04 -07:00