]> gitweb.factorcode.org Git - factor.git/log
factor.git
12 years agoUpdate Windows for word renames, fix lint errors
Doug Coleman [Tue, 25 Oct 2011 04:47:00 +0000 (21:47 -0700)]
Update Windows for word renames, fix lint errors

12 years agoFix all failures in the linux64 build email
Doug Coleman [Tue, 25 Oct 2011 02:33:09 +0000 (19:33 -0700)]
Fix all failures in the linux64 build email

12 years agoMissed yet more renames
Doug Coleman [Tue, 25 Oct 2011 00:00:09 +0000 (17:00 -0700)]
Missed yet more renames

12 years agoForget some classes after unit tests so that running "classes" test succeeds multiple...
Doug Coleman [Mon, 24 Oct 2011 23:59:46 +0000 (16:59 -0700)]
Forget some classes after unit tests so that running "classes" test succeeds multiple times in a row

12 years agoFix 32bit platform bootstrap
Doug Coleman [Mon, 24 Oct 2011 23:22:20 +0000 (16:22 -0700)]
Fix 32bit platform bootstrap

12 years agovocabs.loader: actually use the root cache.
John Benediktsson [Mon, 24 Oct 2011 23:18:29 +0000 (16:18 -0700)]
vocabs.loader: actually use the root cache.

12 years agoFound a few more places to use lookup-c-type
Doug Coleman [Mon, 24 Oct 2011 22:57:37 +0000 (15:57 -0700)]
Found a few more places to use lookup-c-type

12 years agowindows.directx: add platforms.txt.
John Benediktsson [Mon, 24 Oct 2011 22:45:54 +0000 (15:45 -0700)]
windows.directx: add platforms.txt.

12 years agoRename c-type to lookup-c-type. Fixes #230.
Doug Coleman [Mon, 24 Oct 2011 21:31:10 +0000 (14:31 -0700)]
Rename c-type to lookup-c-type. Fixes #230.

12 years agoRename class to class-of
Doug Coleman [Mon, 24 Oct 2011 11:47:42 +0000 (06:47 -0500)]
Rename class to class-of

12 years agoRename vocab to lookup-vocab
Doug Coleman [Mon, 24 Oct 2011 10:37:47 +0000 (05:37 -0500)]
Rename vocab to lookup-vocab

12 years agoRemove docs for removed word
Doug Coleman [Mon, 24 Oct 2011 05:57:14 +0000 (00:57 -0500)]
Remove docs for removed word

12 years agoFactor out ``no-roots no-prefixes'' into its own word. Add load-root, load-from-root...
Doug Coleman [Mon, 24 Oct 2011 00:05:22 +0000 (19:05 -0500)]
Factor out ``no-roots no-prefixes'' into its own word. Add load-root, load-from-root, vocabs-in-root and implement load in terms of load-from-root.
Add error checking for append-vocab-dir and (child-vocabs) in case someone tries to pass them the wrong parameters.
Rename: vocab-dir+ to append-vocab-dir
Document load-from-root and load-root

12 years agoChecked in some code on accident.
Doug Coleman [Fri, 21 Oct 2011 20:34:44 +0000 (15:34 -0500)]
Checked in some code on accident.

12 years agoRevert "Try without-limits in mason.report. Fixes #275."
Doug Coleman [Fri, 21 Oct 2011 20:34:08 +0000 (15:34 -0500)]
Revert "Try without-limits in mason.report. Fixes #275."

This reverts commit 1771f18998b20e0f8769b094f46329267799c7e7.

12 years agoRemove stack effects from HELP: declarations.
John Benediktsson [Fri, 21 Oct 2011 02:36:11 +0000 (19:36 -0700)]
Remove stack effects from HELP: declarations.

12 years agoInstall gtk2-engines-pixbuf to get rid of warnings when you run deps-linux. Fixes...
Doug Coleman [Thu, 20 Oct 2011 01:16:58 +0000 (18:16 -0700)]
Install gtk2-engines-pixbuf to get rid of warnings when you run deps-linux. Fixes #286.

12 years agocore-foundation.timers: allow interval to be specified in the constructor.
John Benediktsson [Wed, 19 Oct 2011 22:30:55 +0000 (15:30 -0700)]
core-foundation.timers: allow interval to be specified in the constructor.

12 years agosmtp: removing unused test.
John Benediktsson [Wed, 19 Oct 2011 20:39:26 +0000 (13:39 -0700)]
smtp: removing unused test.

12 years agoMove --no-as-needed to Config.linux since it breaks compilation on mac
Doug Coleman [Wed, 19 Oct 2011 19:09:43 +0000 (12:09 -0700)]
Move --no-as-needed to Config.linux since it breaks compilation on mac

12 years agoGNUmakefile: add linker option --no-as-needed, fixes #266
Philipp Brüschweiler [Sun, 16 Oct 2011 10:33:34 +0000 (12:33 +0200)]
GNUmakefile: add linker option --no-as-needed, fixes #266

12 years agoConfig.unix: don't hardcode ui libs, use pkg-config instead
Philipp Brüschweiler [Sun, 16 Oct 2011 10:34:30 +0000 (12:34 +0200)]
Config.unix: don't hardcode ui libs, use pkg-config instead

12 years agohash-sets: separate <hash-set> and >hash-set to match other containers. Fixes #154.
John Benediktsson [Wed, 19 Oct 2011 18:35:25 +0000 (11:35 -0700)]
hash-sets: separate <hash-set> and >hash-set to match other containers.  Fixes #154.

12 years agoMore cleanup of unused stuff.
John Benediktsson [Wed, 19 Oct 2011 18:00:07 +0000 (11:00 -0700)]
More cleanup of unused stuff.

12 years agoCleanup some uses of global [ ] bind.
John Benediktsson [Wed, 19 Oct 2011 17:40:12 +0000 (10:40 -0700)]
Cleanup some uses of global [ ] bind.

12 years agocalendar: removing unused (month-name) word.
John Benediktsson [Wed, 19 Oct 2011 17:34:50 +0000 (10:34 -0700)]
calendar: removing unused (month-name) word.

12 years agoRemove unused words. Fixes #132.
John Benediktsson [Wed, 19 Oct 2011 17:28:45 +0000 (10:28 -0700)]
Remove unused words.  Fixes #132.

12 years agoFix command line options for factor.sh
Doug Coleman [Wed, 19 Oct 2011 17:31:40 +0000 (10:31 -0700)]
Fix command line options for factor.sh

12 years agoDon't use exception handling for handle>file-size
Doug Coleman [Wed, 19 Oct 2011 17:15:09 +0000 (10:15 -0700)]
Don't use exception handling for handle>file-size

12 years agoui.gadgets.editors: windows doesn't work like macosx.
John Benediktsson [Wed, 19 Oct 2011 16:41:49 +0000 (09:41 -0700)]
ui.gadgets.editors: windows doesn't work like macosx.

12 years agobenchmark.splay: fix IN:.
John Benediktsson [Wed, 19 Oct 2011 16:40:51 +0000 (09:40 -0700)]
benchmark.splay: fix IN:.

12 years agowebapps.mason: remove ugly border.
John Benediktsson [Wed, 19 Oct 2011 16:40:15 +0000 (09:40 -0700)]
webapps.mason: remove ugly border.

12 years agoCreate attributes>> accessor in io.files.windows
Doug Coleman [Wed, 19 Oct 2011 10:14:19 +0000 (03:14 -0700)]
Create attributes>> accessor in io.files.windows

12 years agoAdd throw-win32-error, use it in (delete-file)
Doug Coleman [Wed, 19 Oct 2011 09:51:36 +0000 (02:51 -0700)]
Add throw-win32-error, use it in (delete-file)

12 years agoRemove really-delete-tree in favor of setting the file attributes to normal
Doug Coleman [Wed, 19 Oct 2011 09:32:30 +0000 (02:32 -0700)]
Remove really-delete-tree in favor of setting the file attributes to normal
on Windows deletes.

12 years agoWhen deleting a file, if it fails with "Access is denied" then set the file
Doug Coleman [Wed, 19 Oct 2011 09:31:48 +0000 (02:31 -0700)]
When deleting a file, if it fails with "Access is denied" then set the file
attributes to normal and try again. Some files in the .git directory are set
to read-only, preventing the build machines from deleting old builds.

12 years agoLower tcp-echo0 test so we don't crash
Doug Coleman [Wed, 19 Oct 2011 08:17:08 +0000 (01:17 -0700)]
Lower tcp-echo0 test so we don't crash

12 years agoCheck if streams are seekable in Windows
Doug Coleman [Wed, 19 Oct 2011 08:16:53 +0000 (01:16 -0700)]
Check if streams are seekable in Windows

12 years agoForgot using in io.tests
Doug Coleman [Wed, 19 Oct 2011 08:16:41 +0000 (01:16 -0700)]
Forgot using in io.tests

12 years agoFix help-lint for editors, peg.ebnf
Doug Coleman [Wed, 19 Oct 2011 07:57:20 +0000 (00:57 -0700)]
Fix help-lint for editors, peg.ebnf

12 years agoFix tools.annotations tests
Doug Coleman [Wed, 19 Oct 2011 07:57:06 +0000 (00:57 -0700)]
Fix tools.annotations tests

12 years agoAdd with-error>output word and test
Doug Coleman [Wed, 19 Oct 2011 07:56:11 +0000 (00:56 -0700)]
Add with-error>output word and test

12 years agoio.streams.limited: missed INSTANCE: input-stream
Joe Groff [Wed, 19 Oct 2011 04:26:32 +0000 (21:26 -0700)]
io.streams.limited: missed INSTANCE: input-stream

12 years agodelegate: not sure why protocols can be defined with arrays, but...
John Benediktsson [Wed, 19 Oct 2011 03:40:14 +0000 (20:40 -0700)]
delegate: not sure why protocols can be defined with arrays, but...

12 years agohelp.syntax: if you're gonna have HELP: stack effects, they might as well be correct...
John Benediktsson [Wed, 19 Oct 2011 03:12:42 +0000 (20:12 -0700)]
help.syntax: if you're gonna have HELP: stack effects, they might as well be correct...

12 years agosystem: fix stack effect for exit in docs.
John Benediktsson [Wed, 19 Oct 2011 03:03:19 +0000 (20:03 -0700)]
system: fix stack effect for exit in docs.

12 years agomongodb.driver: remove stack effect.
John Benediktsson [Wed, 19 Oct 2011 03:03:05 +0000 (20:03 -0700)]
mongodb.driver: remove stack effect.

12 years agotokyo.remotedb: remove stack effects.
John Benediktsson [Wed, 19 Oct 2011 03:01:37 +0000 (20:01 -0700)]
tokyo.remotedb: remove stack effects.

12 years agoparser-combinators: fix constructor stack effects.
John Benediktsson [Wed, 19 Oct 2011 02:23:22 +0000 (19:23 -0700)]
parser-combinators: fix constructor stack effects.

12 years agoirc: fix IRC: stack effects.
John Benediktsson [Wed, 19 Oct 2011 02:20:24 +0000 (19:20 -0700)]
irc: fix IRC: stack effects.

12 years agocpu.8080: fix stack effects.
John Benediktsson [Wed, 19 Oct 2011 02:15:09 +0000 (19:15 -0700)]
cpu.8080: fix stack effects.

12 years agohelp.syntax: allow HELP: to have optional stack effect.
John Benediktsson [Wed, 19 Oct 2011 02:14:53 +0000 (19:14 -0700)]
help.syntax: allow HELP: to have optional stack effect.

12 years agolistener: don't crash if we forget the current vocab. Fixes #259.
John Benediktsson [Tue, 18 Oct 2011 23:46:55 +0000 (16:46 -0700)]
listener: don't crash if we forget the current vocab.  Fixes #259.

12 years agodelegate: verify generics on protocol definition. Fixes #260.
John Benediktsson [Tue, 18 Oct 2011 23:29:38 +0000 (16:29 -0700)]
delegate: verify generics on protocol definition.  Fixes #260.

12 years agoio: input-stream and output-stream mixins
Joe Groff [Tue, 18 Oct 2011 23:24:50 +0000 (16:24 -0700)]
io: input-stream and output-stream mixins

12 years agoeditors: unify "edit" across vocabs and words, add edit words for docs, tests, platfo...
John Benediktsson [Tue, 18 Oct 2011 23:11:24 +0000 (16:11 -0700)]
editors: unify "edit" across vocabs and words, add edit words for docs, tests, platforms, authors, tags, and summary files.  Fixes #177.

12 years agonew vocab tools.annotations.assertions
Joe Groff [Tue, 18 Oct 2011 22:13:02 +0000 (15:13 -0700)]
new vocab tools.annotations.assertions
Annotates unsafe words with assertions that their inputs and outputs are valid. Provide annotations for stream-read(-partial)-unsafe and (set-)nth-unsafe to start with.

12 years agotools.annotations: send watch to error-stream
Joe Groff [Tue, 18 Oct 2011 21:30:05 +0000 (14:30 -0700)]
tools.annotations: send watch to error-stream

12 years agoui.tools.listener: set error stream
Joe Groff [Tue, 18 Oct 2011 21:29:06 +0000 (14:29 -0700)]
ui.tools.listener: set error stream

12 years agoio: error stream combinators
Joe Groff [Tue, 18 Oct 2011 21:28:41 +0000 (14:28 -0700)]
io: error stream combinators
* with-error-stream(*)
* with-output+error-stream(*) -- sets output and error stream to same stream
* with-output>error -- sets output stream to error stream for scope
* with-input-output+error-streams(*) -- like with-streams, but sets output and error to same stream

12 years agoRemove unused stack effects from DEFER: declarations.
John Benediktsson [Tue, 18 Oct 2011 21:42:17 +0000 (14:42 -0700)]
Remove unused stack effects from DEFER: declarations.

12 years agoFix stack effect to not print "(( -- ))", remove stray effect from smtp.
John Benediktsson [Tue, 18 Oct 2011 20:25:47 +0000 (13:25 -0700)]
Fix stack effect to not print "(( -- ))", remove stray effect from smtp.

12 years agoEliminate duplicate syntax for stack effects "(" no longer drops and is identical...
John Benediktsson [Tue, 18 Oct 2011 20:18:42 +0000 (13:18 -0700)]
Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed.

12 years agoio.files.windows: fix can-seek? and length
Joe Groff [Tue, 18 Oct 2011 19:42:53 +0000 (12:42 -0700)]
io.files.windows: fix can-seek? and length

12 years agowebapps.mason: link crashed and broken to latest build reports. Fixes #274.
John Benediktsson [Tue, 18 Oct 2011 18:57:03 +0000 (11:57 -0700)]
webapps.mason: link crashed and broken to latest build reports.  Fixes #274.

12 years agoui.gadgets.editors: implement Ctrl-A/E/K to be more compatible.
John Benediktsson [Tue, 18 Oct 2011 18:38:08 +0000 (11:38 -0700)]
ui.gadgets.editors: implement Ctrl-A/E/K to be more compatible.

12 years agomath.functions: when gcd is inlined, "gcd nip" is almost as good as "gcd*".
John Benediktsson [Tue, 18 Oct 2011 17:30:39 +0000 (10:30 -0700)]
math.functions: when gcd is inlined, "gcd nip" is almost as good as "gcd*".

12 years agoReport which file doesn't get deleted on Windows.
Doug Coleman [Tue, 18 Oct 2011 07:59:57 +0000 (00:59 -0700)]
Report which file doesn't get deleted on Windows.

12 years agoTry without-limits in mason.report. Fixes #275.
Doug Coleman [Tue, 18 Oct 2011 07:52:46 +0000 (00:52 -0700)]
Try without-limits in mason.report. Fixes #275.

12 years agoio.sockets.windows - Add a using, output count to fix compile error. Not bad for...
Doug Coleman [Tue, 18 Oct 2011 06:28:22 +0000 (23:28 -0700)]
io.sockets.windows - Add a using, output count to fix compile error. Not bad for having no Windows box.

12 years agoio.encodings.utf16: auto-use strikes again
Joe Groff [Tue, 18 Oct 2011 04:45:43 +0000 (21:45 -0700)]
io.encodings.utf16: auto-use strikes again

12 years agoRevert "Optimize byte-reverse macro in alien.endian -- it was shifting each byte...
John Benediktsson [Tue, 18 Oct 2011 04:38:49 +0000 (21:38 -0700)]
Revert "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."

This reverts commit c701a39e89bb159ba59120639d17f6e737f05fca.

12 years agoio.sockets: rename (receive) to (receive-unsafe)
Joe Groff [Tue, 18 Oct 2011 04:18:16 +0000 (21:18 -0700)]
io.sockets: rename (receive) to (receive-unsafe)

12 years agoio.ports: lift common methods onto buffered-port
Joe Groff [Tue, 18 Oct 2011 04:15:22 +0000 (21:15 -0700)]
io.ports: lift common methods onto buffered-port

12 years agoui.tools.listener: remove redundant method
Joe Groff [Tue, 18 Oct 2011 04:14:29 +0000 (21:14 -0700)]
ui.tools.listener: remove redundant method

12 years agoformatting
Joe Groff [Tue, 18 Oct 2011 04:12:48 +0000 (21:12 -0700)]
formatting

12 years agoio.sockets.windows: recv to byte-array via malloc
Joe Groff [Mon, 17 Oct 2011 17:41:03 +0000 (10:41 -0700)]
io.sockets.windows: recv to byte-array via malloc
WSARecvFrom on Windows does its work asynchronously, so the buffer cannot be in the managed heap during the extent of the operation.

12 years agoio.sockets: remove unix.ffi inserted by auto-use
Joe Groff [Mon, 17 Oct 2011 06:39:49 +0000 (23:39 -0700)]
io.sockets: remove unix.ffi inserted by auto-use

12 years agoio.sockets: receive directly into byte array
Joe Groff [Mon, 17 Oct 2011 05:57:32 +0000 (22:57 -0700)]
io.sockets: receive directly into byte array

12 years agoio.sockets: receive-unsafe and receive-into
Joe Groff [Mon, 17 Oct 2011 02:37:21 +0000 (19:37 -0700)]
io.sockets: receive-unsafe and receive-into
Analogous to read-unsafe/read-into for streams (and thereby TCP sockets), provide receive-unsafe and receive-into words for datagram sockets that receive into a caller-supplied buffer.

12 years agoio.encodings.utf16: guess-*coded-length hints
Joe Groff [Sun, 16 Oct 2011 20:19:16 +0000 (13:19 -0700)]
io.encodings.utf16: guess-*coded-length hints

12 years agoio.encodings.utf16: fast path & slow path speedups
Joe Groff [Sat, 15 Oct 2011 21:50:53 +0000 (14:50 -0700)]
io.encodings.utf16: fast path & slow path speedups
Implement M: utf16[bl]e encode-string to use a fast implementation if a string is ASCII only, and do some inlining so the slow path optimizes a bit better.

12 years agoio.streams.sequence: missed a USING:
Joe Groff [Sat, 15 Oct 2011 17:10:40 +0000 (10:10 -0700)]
io.streams.sequence: missed a USING:

12 years agocompiler.tree.dead-code: fix test
Joe Groff [Sat, 15 Oct 2011 06:24:36 +0000 (23:24 -0700)]
compiler.tree.dead-code: fix test
It was using "read" in an optimization test, but since "read" is now inline, it wasn't getting the expected optimized quotation back.

12 years agospecialized-arrays: fill in missing manifest bits
Joe Groff [Sat, 15 Oct 2011 06:23:42 +0000 (23:23 -0700)]
specialized-arrays: fill in missing manifest bits

12 years agoio: remove higher-order stack effects
Joe Groff [Sat, 15 Oct 2011 06:23:22 +0000 (23:23 -0700)]
io: remove higher-order stack effects
More stack checker breakage

12 years agoio.streams.c: remove -seek and -tell methods
Joe Groff [Sat, 15 Oct 2011 04:36:25 +0000 (21:36 -0700)]
io.streams.c: remove -seek and -tell methods
M: c-stream stream-seek was broken and bootstrap doesn't need it so save some code.

12 years agomore stream-seekable? and stream-length methods
Joe Groff [Sat, 15 Oct 2011 04:35:25 +0000 (21:35 -0700)]
more stream-seekable? and stream-length methods
- limited-streams and throw-on-eof-streams
- string-readers and byte-readers

12 years agoio: document new words
Joe Groff [Sat, 15 Oct 2011 03:53:17 +0000 (20:53 -0700)]
io: document new words

12 years agoio.streams.c: help-lint
Joe Groff [Sat, 15 Oct 2011 03:36:17 +0000 (20:36 -0700)]
io.streams.c: help-lint

12 years agodelegate.protocols: clean up input-stream-protocol
Joe Groff [Sat, 15 Oct 2011 03:35:24 +0000 (20:35 -0700)]
delegate.protocols: clean up input-stream-protocol

12 years agoio: stream-read-into and stream-read-partial-into
Joe Groff [Sat, 15 Oct 2011 02:58:29 +0000 (19:58 -0700)]
io: stream-read-into and stream-read-partial-into
Safe user-facing wrappers for stream-read-unsafe.

12 years agoio.ports: stream-seekable? and stream-length
Joe Groff [Sat, 15 Oct 2011 02:14:59 +0000 (19:14 -0700)]
io.ports: stream-seekable? and stream-length
io.files.windows, io.backend.unix: platform-specific backends for those methods

12 years agoio.encodings: stream-contents method for decoder
Joe Groff [Sat, 15 Oct 2011 01:08:27 +0000 (18:08 -0700)]
io.encodings: stream-contents method for decoder
stream-contents on decoder is much faster implemented using a read1 loop than with the default implementation.

12 years agoio: stream-contents, -seekable?, -length generics
Joe Groff [Sat, 15 Oct 2011 01:07:38 +0000 (18:07 -0700)]
io: stream-contents, -seekable?, -length generics
stream-contents is extremely slow on decoder streams when implemented with each-block, and it can be implemented very quickly for streams of known length using stream-read-unsafe. Make it generic and provide some off-the-shelf implementations using each-block, a read1 loop, or length + read-unsafe. Provide new stream-seekable? and stream-length generics that can be implemented by stream implementations that know their size.

12 years agounix.stat: bind to fstat
Joe Groff [Sat, 15 Oct 2011 00:59:54 +0000 (17:59 -0700)]
unix.stat: bind to fstat

12 years agoio: get variables out of stream-copy loop
Joe Groff [Fri, 14 Oct 2011 03:25:53 +0000 (20:25 -0700)]
io: get variables out of stream-copy loop

12 years agoclean up forwarding stream-read-partial-unsafe
Joe Groff [Fri, 14 Oct 2011 02:03:15 +0000 (19:03 -0700)]
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.

12 years agoio: default methods for extended stream protocols
Joe Groff [Fri, 14 Oct 2011 01:29:34 +0000 (18:29 -0700)]
io: default methods for extended stream protocols
Provide default implementations of all the input-stream methods in terms of stream-read1 and of all the output-stream methods in terms of stream-write1.

12 years agoio.streams.peek: test with memory-stream
Joe Groff [Thu, 13 Oct 2011 22:24:28 +0000 (15:24 -0700)]
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).