Commit Graph

9483 Commits (8fc0be3c2f3d53cc7926221e86f71e825689eb18)

Author SHA1 Message Date
Joe Groff 4d224b552f io: stream-read-into and stream-read-partial-into
Safe user-facing wrappers for stream-read-unsafe.
2011-10-17 21:23:08 -07:00
Joe Groff 09f55f82fa clean up forwarding stream-read-partial-unsafe
Now that "io" provides a method on object for stream-read-partial-unsafe that forwards to stream-read-unsafe, individual stream class that don't implement partial reads don't need to provide such a method themselves.
2011-10-17 21:23:06 -07:00
Joe Groff 8322ff9452 io.streams.peek: test with memory-stream
Some binary stream types use memcpy to implement read-unsafe, while element-agnostic wrapper streams have to use copy. Make sure peek-stream works with both when it has to divide a read between the peek buffer and the underlying buffer (it does).
2011-10-17 21:23:06 -07:00
Joe Groff 6f12322bda kill noncopying-reader mixin, stream-read generic
Now that all streams have been updated to implement the stream-read-unsafe protocol, take out the noncopying-reader shim. Turn stream-read and stream-read-partial into plain functions over the -unsafe generics.
2011-10-17 21:23:05 -07:00
Joe Groff 6828eeb27e io.streams.peek: read-unsafe protocol 2011-10-17 21:23:04 -07:00
Joe Groff 3f15127ead 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.
2011-10-17 21:23:01 -07:00
Joe Groff d54824cb40 io: nab io.streams.peek's stream-exemplar-growable
Rename stream-element-examplar to stream-exemplar to match.
2011-10-17 21:23:01 -07:00
John Benediktsson ac98269f53 math.functions: faster gcd means faster ratios. 2011-10-17 20:36:28 -07:00
John Benediktsson d947553df8 benchmarks: tcp/udp should take less time for now (until it gets sped up). 2011-10-17 17:47:28 -07:00
Doug Coleman 7ffd51c485 A little ambitious on the tcp-echo2 benchmark. Reduce 20mil to 20k 2011-10-17 16:47:21 -07:00
John Benediktsson bd0278cf63 lint: enable checks for quotations of length 2, and add some ignores. 2011-10-17 11:30:01 -07:00
Doug Coleman 5836634922 Rename echo benchmark to udp-echo. Rename file-server benchmark to tcp-echo. Add more benchmarks for different loads. 2011-10-17 10:25:28 -07:00
Doug Coleman 98979fc51c Remove initializers from extra/constructors, add C:-like form that requires a stack effect 2011-10-17 10:25:27 -07:00
Doug Coleman f21fee3b73 Rename complete-effect to scan-effect 2011-10-17 10:25:27 -07:00
John Benediktsson 54e075c76c lint: fix unit tests. 2011-10-17 10:15:48 -07:00
John Benediktsson 3582e9c168 More lint fixes. 2011-10-16 21:23:21 -07:00
John Benediktsson 4919339721 project-euler.150: 20% faster. 2011-10-16 21:21:07 -07:00
John Benediktsson 81714b8dc3 More lint cleanups. 2011-10-16 19:33:16 -07:00
John Benediktsson 45aeea52ce lint: filter a bit better. 2011-10-16 19:32:16 -07:00
John Benediktsson c8732657b7 Cleanup more lint warnings. 2011-10-16 13:01:58 -07:00
John Benediktsson ea4240cea0 lint: cleanup, deep compare, print clickable words. 2011-10-16 13:01:36 -07:00
John Benediktsson 6f1c44b46d Cleanup some lint warnings. 2011-10-15 19:19:44 -07:00
John Benediktsson df2000d8e7 random.blum-blum-shub: fix tests for recent random-integer change. 2011-10-15 10:39:16 -07:00
John Benediktsson d773d99de5 benchmark.splay: adding a splay-tree benchmark. 2011-10-14 18:10:49 -07:00
John Benediktsson ce1d69aa0a trees.splay: fix delete-at. 2011-10-14 17:52:24 -07:00
John Benediktsson dc06efe2a4 webapps.mason: redirect index to dashboard. Fix #178. 2011-10-14 15:43:38 -07:00
John Benediktsson 4fb66c0f05 brainfuck: cleanup. 2011-10-14 13:53:55 -07:00
John Benediktsson d61de12011 Cleanup more lint warnings. 2011-10-14 12:31:46 -07:00
John Benediktsson 378786599d Cleanup lint warnings. 2011-10-14 11:47:24 -07:00
Doug Coleman e563824cd2 Don't report aliases as having a duplicate word definition as the word they alias in lint. 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
Doug Coleman 6553510494 Remove bogus test in lint 2011-10-14 09:40:36 -07:00
Doug Coleman 6586b97128 Revive the lint tool 2011-10-14 01:39:46 -07:00
John Benediktsson 0965d9be41 webapps.help: remove frames. Fixes #242. 2011-10-13 22:09: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 928536be2a cpu.8080.emulator: use get/set-global. 2011-10-13 17:11:23 -07:00
John Benediktsson 1987deb359 Fix M: stack effects. 2011-10-13 16:41:17 -07:00
John Benediktsson a80d176720 readline: change to create alien at run-time. Fixes #254. 2011-10-13 13:24:56 -07:00
John Benediktsson 3207244c60 sequences: define ?first and ?second. 2011-10-13 12:53:46 -07:00
John Benediktsson 557f8355de webapps.benchmark: better main name. 2011-10-12 12:35:34 -07:00
Doug Coleman 4cbbfe82aa benchmark.file-server hit the array-capacity limit, so lower the #bytes sent by one and add a #times parameter 2011-10-12 10:23:16 -07:00
Doug Coleman c73724d273 Remove *timesinkbsd from webapps.mason grids 2011-10-12 09:48:23 -07:00
Doug Coleman 1df7a40984 Add 2/4/8le>, 2/4/8be> -- 30% faster on the 8-byte versions, slightly less faster on the others. 2011-10-12 09:48:23 -07:00
Doug Coleman 1783b3b72e Rename benchmarks -> benchmark 2011-10-12 03:28:25 -07:00
Doug Coleman ac9d4577e0 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. 2011-10-12 01:33:58 -07:00
Doug Coleman ee08db3e44 Fix test failure for random number speedup from using be>. 2011-10-12 01:26:56 -07:00
Doug Coleman 49b0ebf056 Simple network benchmark for sending large file between a server/client. 2011-10-12 01:22:03 -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 250e528209 Progress bars for long-running operations that yield. 2011-10-11 17:56:28 -07:00
Doug Coleman d834d9bfa4 slots.syntax: fix example. 2011-10-10 22:00:40 -07:00