]> gitweb.factorcode.org Git - factor.git/log
factor.git
12 years agodelegate.protocols: update input-stream-protocol
Joe Groff [Thu, 13 Oct 2011 17:29:48 +0000 (10:29 -0700)]
delegate.protocols: update input-stream-protocol
Add stream-read-unsafe and stream-read-partial-unsafe to input-stream-protocol.

12 years agoio: remove each-block* because it's not useful
Joe Groff [Thu, 13 Oct 2011 17:17:30 +0000 (10:17 -0700)]
io: remove each-block* because it's not useful

12 years agoio.encodings: decoders can't really seek or tell
Joe Groff [Thu, 13 Oct 2011 07:01:13 +0000 (00:01 -0700)]
io.encodings: decoders can't really seek or tell

12 years agoio.encodings: re-encrypt into stack-ese for core
Joe Groff [Thu, 13 Oct 2011 06:25:10 +0000 (23:25 -0700)]
io.encodings: re-encrypt into stack-ese for core

12 years agoio.encodings: read-unsafe for decoders†
Joe Groff [Thu, 13 Oct 2011 05:18:06 +0000 (22:18 -0700)]
io.encodings: read-unsafe for decoders†
† currently uses locals, so not bootstrappable

12 years agoio.encodings.string: faster decode and encode
Joe Groff [Thu, 13 Oct 2011 04:12:57 +0000 (21:12 -0700)]
io.encodings.string: faster decode and encode
stream-contents is apparently way slow for decoders. Write decode out more directly as a read1/push loop so it's faster. encode isn't quite as bad, but we can still get a 25% speed improvement by writing to an appropriately sized byte-vector.

12 years agoio.encodings: encoded/decoded length hints
Joe Groff [Thu, 13 Oct 2011 04:08:58 +0000 (21:08 -0700)]
io.encodings: encoded/decoded length hints
Add guess-encoded-length and guess-decoded-length generics that encodings can implement to provide hints as to how large the translation product will be, for sizing vectors and things like that.

12 years agoio: tweak each-block* to be byte- or char-agnostic
Joe Groff [Wed, 12 Oct 2011 23:32:52 +0000 (16:32 -0700)]
io: tweak each-block* to be byte- or char-agnostic

12 years agovm: no-op reallot_array with same size, for real
Joe Groff [Wed, 12 Oct 2011 23:11:23 +0000 (16:11 -0700)]
vm: no-op reallot_array with same size, for real

12 years agomongodb.gridfs: move to unmaintained
Joe Groff [Wed, 12 Oct 2011 23:08:57 +0000 (16:08 -0700)]
mongodb.gridfs: move to unmaintained
It has no tests and nothing appears to use it, so I don't want to mess with it to make it implement the stream-read-unsafe interface.

12 years agoio: nab io.streams.peek's stream-exemplar-growable
Joe Groff [Wed, 12 Oct 2011 20:50:38 +0000 (13:50 -0700)]
io: nab io.streams.peek's stream-exemplar-growable
Rename stream-element-examplar to stream-exemplar to match.

12 years agovm: make reallot_array for same size a no-op
Joe Groff [Wed, 12 Oct 2011 19:34:30 +0000 (12:34 -0700)]
vm: make reallot_array for same size a no-op

12 years agoio.streams.(limited,throwing): read-unsafe methods
Joe Groff [Wed, 12 Oct 2011 19:31:43 +0000 (12:31 -0700)]
io.streams.(limited,throwing): read-unsafe methods

12 years agoio.streams.null: read-unsafe methods
Joe Groff [Wed, 12 Oct 2011 18:59:24 +0000 (11:59 -0700)]
io.streams.null: read-unsafe methods

12 years agoio: non-copying each-block and contents variants
Joe Groff [Wed, 12 Oct 2011 18:59:10 +0000 (11:59 -0700)]
io: non-copying each-block and contents variants
each-(stream-)block* is like each-block but takes a buffer object and reads into it repeatedly. (stream-)contents* determines the stream length then does a single stream-read-unsafe into a preallocated buffers. Both functions currently only work for byte-arrays (and contents* only for seekable streams), so they can't replace the non-starred versions completely just yet.

12 years agoio.ports: implement read-unsafe operations
Joe Groff [Wed, 12 Oct 2011 07:09:10 +0000 (00:09 -0700)]
io.ports: implement read-unsafe operations

12 years agoio.buffers: factor out buffer-read-unsafe word
Joe Groff [Wed, 12 Oct 2011 06:45:55 +0000 (23:45 -0700)]
io.buffers: factor out buffer-read-unsafe word
buffer-read-unsafe returns a length and a pointer into the buffer instead of a copy.

12 years agoio.streams.memory: implement stream-read-unsafe
Joe Groff [Wed, 12 Oct 2011 03:07:09 +0000 (20:07 -0700)]
io.streams.memory: implement stream-read-unsafe
(The actual method is in alien.data due to bootstrap load order issues.)

12 years agoio.streams.sequence: change to provide read-unsafe
Joe Groff [Tue, 11 Oct 2011 23:00:22 +0000 (16:00 -0700)]
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.

12 years agoio, io.streams.c: factor noncopying-reader mixin
Joe Groff [Tue, 11 Oct 2011 22:58:45 +0000 (15:58 -0700)]
io, io.streams.c: factor noncopying-reader mixin
Instances of the mixin implement stream-read and stream-read-partial in terms of stream-read-unsafe and stream-read-partial-unsafe, respectively.

12 years agoio.streams.c: Document fputc primitive
Joe Groff [Tue, 11 Oct 2011 06:09:49 +0000 (23:09 -0700)]
io.streams.c: Document fputc primitive

12 years agobootstrap, io.streams.c: use new fread primitive
Joe Groff [Tue, 11 Oct 2011 06:04:55 +0000 (23:04 -0700)]
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

12 years agoio: non-copying binary stream read generics
Joe Groff [Tue, 11 Oct 2011 06:02:27 +0000 (23:02 -0700)]
io: non-copying binary stream read generics
Add generics stream-read-unsafe and stream-read-partial-unsafe, which take a buffer pointer and return a count of bytes read instead of returning a freshly allocated byte array.

12 years agovm: non-copying primitive_fread
Joe Groff [Tue, 11 Oct 2011 06:00:03 +0000 (23:00 -0700)]
vm: non-copying primitive_fread
primitive_fread now takes a buffer pointer argument and returns a count of bytes read instead of allocating a byte array.

12 years agomath.functions: improve stack effect names for gcd*.
John Benediktsson [Tue, 18 Oct 2011 03:37:36 +0000 (20:37 -0700)]
math.functions: improve stack effect names for gcd*.

12 years agomath.functions: faster gcd means faster ratios.
John Benediktsson [Tue, 18 Oct 2011 03:36:28 +0000 (20:36 -0700)]
math.functions: faster gcd means faster ratios.

12 years agofind-dlist-node was returning duplicated information -- node/f tells you enough,...
Doug Coleman [Tue, 18 Oct 2011 01:57:21 +0000 (18:57 -0700)]
find-dlist-node was returning duplicated information -- node/f tells you enough, no need for another boolean return value

12 years agobenchmarks: tcp/udp should take less time for now (until it gets sped up).
John Benediktsson [Tue, 18 Oct 2011 00:47:28 +0000 (17:47 -0700)]
benchmarks: tcp/udp should take less time for now (until it gets sped up).

12 years agoA little ambitious on the tcp-echo2 benchmark. Reduce 20mil to 20k
Doug Coleman [Mon, 17 Oct 2011 23:47:21 +0000 (16:47 -0700)]
A little ambitious on the tcp-echo2 benchmark. Reduce 20mil to 20k

12 years agolint: enable checks for quotations of length 2, and add some ignores.
John Benediktsson [Mon, 17 Oct 2011 18:29:40 +0000 (11:29 -0700)]
lint: enable checks for quotations of length 2, and add some ignores.

12 years agoRename echo benchmark to udp-echo. Rename file-server benchmark to tcp-echo. Add...
Doug Coleman [Sat, 15 Oct 2011 17:52:07 +0000 (10:52 -0700)]
Rename echo benchmark to udp-echo. Rename file-server benchmark to tcp-echo. Add more benchmarks for different loads.

12 years agoRemove initializers from extra/constructors, add C:-like form that requires a stack...
Doug Coleman [Mon, 17 Oct 2011 05:49:10 +0000 (22:49 -0700)]
Remove initializers from extra/constructors, add C:-like form that requires a stack effect

12 years agoRename complete-effect to scan-effect
Doug Coleman [Mon, 17 Oct 2011 05:50:30 +0000 (22:50 -0700)]
Rename complete-effect to scan-effect

12 years agolint: fix unit tests.
John Benediktsson [Mon, 17 Oct 2011 17:15:48 +0000 (10:15 -0700)]
lint: fix unit tests.

12 years agoFix typo in tools.deploy.windows.ico
Doug Coleman [Mon, 17 Oct 2011 06:05:38 +0000 (23:05 -0700)]
Fix typo in tools.deploy.windows.ico

12 years agoMore lint fixes.
John Benediktsson [Mon, 17 Oct 2011 04:23:21 +0000 (21:23 -0700)]
More lint fixes.

12 years agoproject-euler.150: 20% faster.
John Benediktsson [Mon, 17 Oct 2011 04:21:07 +0000 (21:21 -0700)]
project-euler.150: 20% faster.

12 years agoMore lint cleanups.
John Benediktsson [Mon, 17 Oct 2011 02:33:16 +0000 (19:33 -0700)]
More lint cleanups.

12 years agolint: filter a bit better.
John Benediktsson [Mon, 17 Oct 2011 02:32:16 +0000 (19:32 -0700)]
lint: filter a bit better.

12 years agoui.tools.listener: call insert-newline directly.
John Benediktsson [Sun, 16 Oct 2011 20:39:15 +0000 (13:39 -0700)]
ui.tools.listener: call insert-newline directly.

12 years agosequences.deep: find drop >boolean is any?
John Benediktsson [Sun, 16 Oct 2011 20:15:05 +0000 (13:15 -0700)]
sequences.deep: find drop >boolean is any?

12 years agoCleanup more lint warnings.
John Benediktsson [Sun, 16 Oct 2011 20:01:58 +0000 (13:01 -0700)]
Cleanup more lint warnings.

12 years agolint: cleanup, deep compare, print clickable words.
John Benediktsson [Sun, 16 Oct 2011 20:01:36 +0000 (13:01 -0700)]
lint: cleanup, deep compare, print clickable words.

12 years agoCleanup some lint warnings.
John Benediktsson [Sun, 16 Oct 2011 02:19:44 +0000 (19:19 -0700)]
Cleanup some lint warnings.

12 years agorandom.blum-blum-shub: fix tests for recent random-integer change.
John Benediktsson [Sat, 15 Oct 2011 17:39:16 +0000 (10:39 -0700)]
random.blum-blum-shub: fix tests for recent random-integer change.

12 years agobootstrap.image: disable auto-use. Fixes #263.
John Benediktsson [Sat, 15 Oct 2011 17:34:34 +0000 (10:34 -0700)]
bootstrap.image: disable auto-use.  Fixes #263.

12 years agorandom: random integers is 90% faster.
John Benediktsson [Sat, 15 Oct 2011 01:52:41 +0000 (18:52 -0700)]
random: random integers is 90% faster.

12 years agobenchmark.splay: adding a splay-tree benchmark.
John Benediktsson [Sat, 15 Oct 2011 01:10:49 +0000 (18:10 -0700)]
benchmark.splay: adding a splay-tree benchmark.

12 years agotrees.splay: fix delete-at.
John Benediktsson [Sat, 15 Oct 2011 00:52:24 +0000 (17:52 -0700)]
trees.splay: fix delete-at.

12 years agodebugger: remove double namespace using.
John Benediktsson [Fri, 14 Oct 2011 22:45:31 +0000 (15:45 -0700)]
debugger: remove double namespace using.

12 years agowebapps.mason: redirect index to dashboard. Fix #178.
John Benediktsson [Fri, 14 Oct 2011 22:42:41 +0000 (15:42 -0700)]
webapps.mason: redirect index to dashboard. Fix #178.

12 years agostack-checker: update tests
Joe Groff [Fri, 14 Oct 2011 22:35:29 +0000 (15:35 -0700)]
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.

12 years agocontinuations: document full effect of cleanup
Joe Groff [Fri, 14 Oct 2011 21:44:15 +0000 (14:44 -0700)]
continuations: document full effect of cleanup
We can't yet apply the effect because of #138 but we can at least document it.

12 years agomath.bitwise: bits is clearer this way.
John Benediktsson [Fri, 14 Oct 2011 20:54:08 +0000 (13:54 -0700)]
math.bitwise: bits is clearer this way.

12 years agobrainfuck: cleanup.
John Benediktsson [Fri, 14 Oct 2011 20:53:55 +0000 (13:53 -0700)]
brainfuck: cleanup.

12 years agoRemove trim-whitespace in favor of [ blank? ] trim.
John Benediktsson [Fri, 14 Oct 2011 20:22:28 +0000 (13:22 -0700)]
Remove trim-whitespace in favor of [ blank? ] trim.

12 years agoCleanup more lint warnings.
John Benediktsson [Fri, 14 Oct 2011 19:31:06 +0000 (12:31 -0700)]
Cleanup more lint warnings.

12 years agoRemove some duplication in lists
Doug Coleman [Fri, 14 Oct 2011 19:08:48 +0000 (12:08 -0700)]
Remove some duplication in lists

12 years agoCleanup lint warnings.
John Benediktsson [Fri, 14 Oct 2011 17:23:52 +0000 (10:23 -0700)]
Cleanup lint warnings.

12 years agokernel: higher-order effects for *keep
Joe Groff [Fri, 14 Oct 2011 17:44:42 +0000 (10:44 -0700)]
kernel: higher-order effects for *keep

12 years agoCleanups found with lint tool
Doug Coleman [Fri, 14 Oct 2011 17:14:41 +0000 (10:14 -0700)]
Cleanups found with lint tool

12 years agoDon't report aliases as having a duplicate word definition as the word they alias...
Doug Coleman [Fri, 14 Oct 2011 17:13:39 +0000 (10:13 -0700)]
Don't report aliases as having a duplicate word definition as the word they alias in lint.

12 years agomath.parser: cleanup uses of 16/8/2 >base/base>.
John Benediktsson [Fri, 14 Oct 2011 17:09:12 +0000 (10:09 -0700)]
math.parser: cleanup uses of 16/8/2 >base/base>.

12 years agoRe-commit otoburb's fix for #257.
John Benediktsson [Fri, 14 Oct 2011 16:40:56 +0000 (09:40 -0700)]
Re-commit otoburb's fix for #257.

12 years agoRemove bogus test in lint
Doug Coleman [Fri, 14 Oct 2011 16:40:36 +0000 (09:40 -0700)]
Remove bogus test in lint

12 years agoRevive the lint tool
Doug Coleman [Fri, 14 Oct 2011 08:39:07 +0000 (01:39 -0700)]
Revive the lint tool

12 years agowebapps.help: remove frames. Fixes #242.
John Benediktsson [Fri, 14 Oct 2011 05:09:30 +0000 (22:09 -0700)]
webapps.help: remove frames.  Fixes #242.

12 years agoio.files.info.unix.linux: fix more M: stack effects.
John Benediktsson [Fri, 14 Oct 2011 00:55:30 +0000 (17:55 -0700)]
io.files.info.unix.linux: fix more M: stack effects.

12 years agoio.files.info.unix.linux: fix M: stack effect.
John Benediktsson [Fri, 14 Oct 2011 00:38:30 +0000 (17:38 -0700)]
io.files.info.unix.linux: fix M: stack effect.

12 years agonamespaces: adding a "with-global" word to replace "global [ ] bind".
John Benediktsson [Fri, 14 Oct 2011 00:21:59 +0000 (17:21 -0700)]
namespaces: adding a "with-global" word to replace "global [ ] bind".

12 years agocpu.8080.emulator: use get/set-global.
John Benediktsson [Fri, 14 Oct 2011 00:11:23 +0000 (17:11 -0700)]
cpu.8080.emulator: use get/set-global.

12 years agogeneric.parser: adding tests.
John Benediktsson [Thu, 13 Oct 2011 23:49:54 +0000 (16:49 -0700)]
generic.parser: adding tests.

12 years agoFix M:: stack effects.
John Benediktsson [Thu, 13 Oct 2011 23:44:30 +0000 (16:44 -0700)]
Fix M:: stack effects.

12 years agoChange method parsing to validate stack effects. Fixes #236.
John Benediktsson [Thu, 13 Oct 2011 23:40:52 +0000 (16:40 -0700)]
Change method parsing to validate stack effects.  Fixes #236.

12 years agoFix M: stack effects.
John Benediktsson [Thu, 13 Oct 2011 23:19:03 +0000 (16:19 -0700)]
Fix M: stack effects.

12 years agoLink ?first ?second ?last from an article.
Doug Coleman [Thu, 13 Oct 2011 22:53:31 +0000 (15:53 -0700)]
Link ?first ?second ?last from an article.

12 years agoreadline: change to create alien at run-time. Fixes #254.
John Benediktsson [Thu, 13 Oct 2011 20:24:56 +0000 (13:24 -0700)]
readline: change to create alien at run-time.  Fixes #254.

12 years agosequences: adding ?last for symmetry.
John Benediktsson [Thu, 13 Oct 2011 20:04:24 +0000 (13:04 -0700)]
sequences: adding ?last for symmetry.

12 years agosequences: define ?first and ?second.
John Benediktsson [Thu, 13 Oct 2011 19:53:46 +0000 (12:53 -0700)]
sequences: define ?first and ?second.

12 years agoFix using list for http.server tests
Doug Coleman [Thu, 13 Oct 2011 06:19:11 +0000 (23:19 -0700)]
Fix using list for http.server tests

12 years agohttp.server: ignore preceding whitespace before request lines. Fixes #252.
John Benediktsson [Thu, 13 Oct 2011 03:21:16 +0000 (20:21 -0700)]
http.server: ignore preceding whitespace before request lines.  Fixes #252.

12 years agohttp.client: too aggressive with ?CRLF.
John Benediktsson [Thu, 13 Oct 2011 03:14:21 +0000 (20:14 -0700)]
http.client: too aggressive with ?CRLF.

12 years agosequences: adding find-index.
John Benediktsson [Thu, 13 Oct 2011 02:41:54 +0000 (19:41 -0700)]
sequences: adding find-index.

12 years agohash2: remove since it is now unused.
John Benediktsson [Wed, 12 Oct 2011 22:18:04 +0000 (15:18 -0700)]
hash2: remove since it is now unused.

12 years agounicode.data: remove dependency on hash2.
John Benediktsson [Wed, 12 Oct 2011 22:17:56 +0000 (15:17 -0700)]
unicode.data: remove dependency on hash2.

12 years agohttp: change client/server to support LF and CRLF delimited headers.
John Benediktsson [Wed, 12 Oct 2011 19:51:49 +0000 (12:51 -0700)]
http: change client/server to support LF and CRLF delimited headers.

12 years agoio.crlf: add a word that reads an optional CR.
John Benediktsson [Wed, 12 Oct 2011 19:36:54 +0000 (12:36 -0700)]
io.crlf: add a word that reads an optional CR.

12 years agowebapps.benchmark: better main name.
John Benediktsson [Wed, 12 Oct 2011 19:35:34 +0000 (12:35 -0700)]
webapps.benchmark: better main name.

12 years agounicode.breaks: >words is now 90+% faster.
John Benediktsson [Wed, 12 Oct 2011 18:03:39 +0000 (11:03 -0700)]
unicode.breaks: >words is now 90+% faster.

12 years agobenchmark.file-server hit the array-capacity limit, so lower the #bytes sent by one...
Doug Coleman [Wed, 12 Oct 2011 17:23:16 +0000 (10:23 -0700)]
benchmark.file-server hit the array-capacity limit, so lower the #bytes sent by one and add a #times parameter

12 years agoRemove *timesinkbsd from webapps.mason grids
Doug Coleman [Wed, 12 Oct 2011 16:47:23 +0000 (09:47 -0700)]
Remove *timesinkbsd from webapps.mason grids

12 years agoAdd 2/4/8le>, 2/4/8be> -- 30% faster on the 8-byte versions, slightly less faster...
Doug Coleman [Wed, 12 Oct 2011 16:45:03 +0000 (09:45 -0700)]
Add 2/4/8le>, 2/4/8be> -- 30% faster on the 8-byte versions, slightly less faster on the others.

12 years agoRename benchmarks -> benchmark
Doug Coleman [Wed, 12 Oct 2011 10:28:25 +0000 (03:28 -0700)]
Rename benchmarks -> benchmark

12 years agomason.release.archive was testing strings against symbols for choosing the archival...
Doug Coleman [Wed, 12 Oct 2011 08:33:58 +0000 (01:33 -0700)]
mason.release.archive was testing strings against symbols for choosing the archival method and file extension. This might break win32/64 or it might speed things up.

12 years agoFix test failure for random number speedup from using be>.
Doug Coleman [Wed, 12 Oct 2011 08:26:56 +0000 (01:26 -0700)]
Fix test failure for random number speedup from using be>.

12 years agoSimple network benchmark for sending large file between a server/client.
Doug Coleman [Wed, 12 Oct 2011 08:22:03 +0000 (01:22 -0700)]
Simple network benchmark for sending large file between a server/client.

12 years agostream-element-type on output-ports was broken -- it looked for a stream>> slot but...
Doug Coleman [Wed, 12 Oct 2011 08:05:01 +0000 (01:05 -0700)]
stream-element-type on output-ports was broken -- it looked for a stream>> slot but no such slot exists. add some unit tests

12 years agoMerge pull request #250 from mrjbq7/binary
John Benediktsson [Wed, 12 Oct 2011 06:17:41 +0000 (23:17 -0700)]
Merge pull request #250 from mrjbq7/binary

io.binary: make le> and be> faster (20% and 75%, respectively).

12 years agorandom: be> is faster (and they are random anyway)...
John Benediktsson [Wed, 12 Oct 2011 05:31:21 +0000 (22:31 -0700)]
random: be> is faster (and they are random anyway)...

12 years agovm: remove math::bignum_producer.
John Benediktsson [Wed, 12 Oct 2011 04:24:38 +0000 (21:24 -0700)]
vm: remove math::bignum_producer.