Joe Groff
8cf18d1a82
remove BSD,solaris,etc. misc platform support code
2011-11-02 17:13:51 -07:00
Doug Coleman
7378ba7717
Unbreakify the new profiler, add a couple of unit tests to demonstrate displaying output.
2011-11-02 17:01:43 -07:00
Doug Coleman
4d66cd26dc
Keep the profiling results even when the quotation throws an exception.
2011-11-02 16:47:27 -07:00
Doug Coleman
05c96477f3
Use -reuseview in jedit by default.
2011-11-02 16:47:10 -07:00
Doug Coleman
fb44adef99
Clean up formatting, rename load-vocab-hook to require-hook. Add a unit test for vocabs.loader.
2011-11-02 16:31:42 -07:00
Doug Coleman
86e3817e40
Actually let the user pick an editor after editor protocol change.
2011-11-02 16:05:39 -07:00
Joe Groff
82a62181ce
vm: count samples during unoptimized compiler
2011-11-02 13:23:21 -07:00
Joe Groff
7de62e8dbb
hashtables.identity: test assoc-like
2011-11-02 13:23:20 -07:00
Joe Groff
81aac9359f
tools.profiler.sampling: fix stack effect name
2011-11-02 13:23:19 -07:00
Joe Groff
1745e22211
tools.profiler.sampling: make rate a global var
2011-11-02 13:23:19 -07:00
Joe Groff
4330a645f4
tools.profiler.sampling: groom flat profile
2011-11-02 13:23:18 -07:00
Joe Groff
fb837b91dc
tools.profiler.sampling: flat profile report
2011-11-02 13:23:18 -07:00
Joe Groff
fd96103d50
tools.profiler.sampling: smoke test compact-gc
2011-11-02 13:23:18 -07:00
Joe Groff
575f7fd663
hashtables.identity: support assoc-like
2011-11-02 13:23:17 -07:00
Joe Groff
f645c82b8a
tools.profiler.sampling: add detail to profile.
2011-11-02 13:23:16 -07:00
Joe Groff
d4736d4e3a
tools.profiler.sampling: "top-down" and "profile."
2011-11-02 13:23:16 -07:00
Joe Groff
30ed9b535b
vm: parameterize sampling rate
2011-11-02 13:23:15 -07:00
Joe Groff
43c832c991
help.handbook: update link to counting profiler
2011-11-02 13:23:15 -07:00
Joe Groff
87316ae28f
tools.profiler.sampling: smoke tests and metadata
2011-11-02 13:23:15 -07:00
Joe Groff
6d3d8392d1
tools.profiler.counting: rename help article
2011-11-02 13:23:14 -07:00
Joe Groff
eb749bb535
tools.profiler.sampling: very basic frontend words
2011-11-02 13:23:14 -07:00
Joe Groff
38a5184fdf
math.statistics: fix stack effect on collect-by
2011-11-02 13:23:13 -07:00
Joe Groff
252915a37c
fix platform dependency in leaf-signal-handler
2011-11-02 13:23:12 -07:00
Joe Groff
eac90675c0
move counting profiler to tools.profiler.counting
2011-11-02 13:23:09 -07:00
Joe Groff
9f6f36fdec
cpu.x86.bootstrap: simplify leaf-signal-handler
...
We can use RET (stack-frame-size - cell) instead of doing stack gymnastics.
2011-11-02 13:23:08 -07:00
Joe Groff
33919b2919
tools.profiler: rename to tools.counting-profiler
2011-11-02 13:23:06 -07:00
Joe Groff
186bf65a00
constants for special object hardcoded literals
2011-11-02 12:54:50 -07:00
Doug Coleman
94db86a6db
Make "foo.private" require load foo instead.
...
Move require from vocabs.loader to vocabs. Update everything.
Fixes #201 .
2011-11-02 11:50:03 -07:00
Doug Coleman
359c931d35
Rename images.gtk|gdiplus|cocoa to images.loader.*. Fixes #176 .
2011-11-02 09:38:03 -07:00
Doug Coleman
c44a998ef4
Fix typo in tests
2011-11-02 09:15:32 -07:00
Doug Coleman
4002945c09
Don't test coverage of auto-generated class predicates. Get a better count of callabales in a word to fix %coverage.
2011-11-01 17:13:11 -07:00
Doug Coleman
a647df58f6
Make editors use the new path-finding vocabulary and protocol.
...
Implement io.standard-paths on Windows.
2011-10-31 13:16:37 -07:00
Joe Groff
bf0c7eaa22
io.encodings.string: make binary decode/encode nop
...
Fixes #319 .
2011-10-31 11:07:44 -07:00
Slava Pestov
b31ffdfcb4
math.vectors.simd: vlshift, vrshift, hlshift and hrshift were being miscompiled if the shift count was a bignum. Fixes #264
2011-10-30 21:50:17 -07:00
Doug Coleman
0774944b8d
Find the macvim bundle or use mvim. Add a flag for -g option to vim.
2011-10-30 16:11:18 -07:00
Doug Coleman
ada631c202
Add core-foundation.launch-services for finding the path of a bundle. Add a new standard-paths vocabulary for finding files.
2011-10-30 16:11:18 -07:00
Slava Pestov
136ffc0671
bootstrap-error.factor: vocab => lookup-vocab
2011-10-29 17:25:51 -07:00
Slava Pestov
258b9590a2
tools.deploy: fix unit test
2011-10-29 17:15:49 -07:00
Slava Pestov
c1b7de8339
stack-checker.known-words: add effects for signal-handler and leaf-signal-handler primitives, even though they can't be called directly
2011-10-29 17:15:35 -07:00
Slava Pestov
70056d756b
compiler.cfg.builder: add test to ensure that fast union predicates do not contain a conditional
2011-10-29 17:11:04 -07:00
Slava Pestov
5a46b45312
compiler.tree.propagation: more accurate output type for 'tag' primitive
2011-10-29 17:11:04 -07:00
Slava Pestov
e5a308d56a
compiler.tree.debugger: disable length limit when printing optimized. quotation
2011-10-29 17:11:03 -07:00
Doug Coleman
a1878ea818
Look for mvim on mac and use 'open -a MacVim' if it's not in the path. Since 'open -a macvim' doesn't support command line options, add a generic for opening to a line or not.
2011-10-29 15:31:06 -07:00
Slava Pestov
99b4752c57
help.html: I give up with the article name escaping. Just compute a SHA1 hash and use that as the file name. Fixes #309
2011-10-29 15:27:27 -07:00
Slava Pestov
914a4aee09
help.html: simpler stylesheet for navbar to give it a consistent look. Fixes #310
2011-10-29 15:27:27 -07:00
Slava Pestov
650fdc8fe5
help.html: use GET not POST for search form, so that the search term appears in the URL, and to make the back button work. Fixes #312
2011-10-29 15:27:27 -07:00
Slava Pestov
4c3c4f177b
ui.gadgets.editors: fix wonky word names. Fixes #277
2011-10-29 15:27:27 -07:00
Slava Pestov
0285de7e7d
Revert "ui.gadgets.editors: implement Ctrl-A/E/K to be more compatible."
...
This reverts commit 6a096a1e71
.
2011-10-29 15:27:27 -07:00
Slava Pestov
d212b18be3
Revert "ui.gadgets.editors: windows doesn't work like macosx."
...
This reverts commit cf1d12ce78
.
2011-10-29 15:27:27 -07:00
Doug Coleman
ff27f2c3f7
Change order or articles in io.launcher.
2011-10-29 15:13:45 -07:00
Doug Coleman
5594e82492
Clean up editors.*vim so that it runs detached with gvim and there is less
...
code duplication. Use mvim on mac. Remove gvim.unix vocabulary since it
doesn't do anything besides return "gvim" as the path.
2011-10-29 15:10:42 -07:00
Doug Coleman
8205caa5ca
Add edit-file and edit-vocab words and make edit on strings call
...
edit-vocab.
2011-10-29 13:35:13 -07:00
Doug Coleman
eb7fd4a69b
Add options to set the child process group id or session for Unix. This fixes part of #307 .
2011-10-29 02:47:10 -07:00
Doug Coleman
dc0a921866
Remove the lexer-factory because nothing uses it. Update usages.
2011-10-29 01:11:19 -07:00
Doug Coleman
53c6d08b54
Add a toggle word to namespaces and update docs, tests, and usages. Document with-global too.
2011-10-29 01:05:38 -07:00
Doug Coleman
b43c069b81
Change prompt to something we can copy/paste back into the Factor repl. Add auto-use word. Fixes #301 .
2011-10-29 01:05:38 -07:00
Doug Coleman
aa7f22edc0
Cleanup vocab name validation. Vocab names and vocab prefixes are the same concept, and by disallowing slashes, spaces, and colon, we automatically check for absolute paths. Unit test this.
2011-10-29 01:05:37 -07:00
Doug Coleman
3f4f8c678d
Add a seq>dlist word and make a dlist literal DL{
...
Implement prettyprint on dlists.
2011-10-29 01:05:37 -07:00
Slava Pestov
721d035901
http.server: closing socket without sending any text would hang the http.server. Fixes #311
2011-10-28 23:54:55 -07:00
Slava Pestov
5b69026f59
io.launcher: change kill-process to also close the pipe, if there is one, so that try-output-process can timeout even if the process spawns a subprocess which inherits the pipe. This fixes part of #307
2011-10-28 21:53:25 -07:00
Joe Groff
2d5360778f
cleanups from code review
2011-10-27 21:18:23 -07:00
Joe Groff
c70a1004f8
cpu.x86.64: also must save ctx-reg
2011-10-27 21:18:21 -07:00
Joe Groff
ff2d480d98
cpu.x86.32: update for resumable signal handlers
2011-10-27 21:18:19 -07:00
Joe Groff
d6eae2f42d
vm: suppress signal-handler stack frame generation
...
This is a hack; see #295
2011-10-27 21:18:19 -07:00
Joe Groff
402e1155a5
vm: resumably handle signals from leaf procedures
2011-10-27 21:18:18 -07:00
Joe Groff
1386212d23
vm: dispatch signal handlers through subprimitive
...
We also need to save C ABI volatile registers before calling the signal handler in order to be able to reliably resume. Add signal-handler and leaf-signal-handler subprimitives to preserve volatile registers before invoking the signal handler C function.
2011-10-27 21:18:18 -07:00
Joe Groff
68518e741e
cpu.x86.(32,64).bootstrap: get rid of PUSH malarky
...
In the function prologue, move the stack pointer once after the stack frame is set up instead of PUSHing the stack frame piece by piece.
2011-10-27 21:14:50 -07:00
Joe Groff
b0b0905460
vm: add factorbug command to throw exception
...
Also rename "q" to "c" because it "c"ontinues, remove the useless "im" command, and rename the less useful "t" to "trim" so we can use "t" to mean "throw"
2011-10-27 21:14:49 -07:00
Joe Groff
c06be95816
compiler: no spurious safepoint at start of loops
2011-10-27 21:14:48 -07:00
Joe Groff
41c36752fc
compiler.cfg.tco: clean up commented-out old code
2011-10-27 21:14:47 -07:00
Joe Groff
6f75e84d93
compiler.cfg.tco: teach TCO about safepoints
2011-10-27 21:14:46 -07:00
Joe Groff
e449fef4e3
compiler.cfg.builder: safepoint loops and epilogs
2011-10-27 21:14:46 -07:00
Joe Groff
0c022f2454
compiler: add ##safepoint IR insn
2011-10-27 21:14:46 -07:00
Joe Groff
ae1a903c4e
cpu.x86.assembler: add MOVABS instruction
...
MOVABS generates the one-byte opcode version of MOV eAX, [absolute] or MOV [absolute], eAX, which saves a byte per safepoint on x86-32.
2011-10-27 21:14:45 -07:00
Joe Groff
4be5eadb34
cpu.x86.bootstrap: add safepoint to jit-epilog
2011-10-27 21:14:45 -07:00
Joe Groff
98fa51f0e0
compiler: rt-safepoint and rel-safepoint words
2011-10-27 21:14:45 -07:00
Doug Coleman
7b6f27eda6
Add a lint check for swap .. swap that can be replaced by dip. Clean up the cases it finds.
2011-10-26 13:01:04 -07:00
Doug Coleman
80a1a68e0f
Fix error reporting for load, reported by Recursed
2011-10-25 14:54:23 -07:00
Doug Coleman
4ebe5218c7
Update Windows for word renames, fix lint errors
2011-10-24 21:50:02 -07:00
Doug Coleman
51c033a1f6
Fix all failures in the linux64 build email
2011-10-24 19:33:09 -07:00
Doug Coleman
763d9a3f7d
Missed yet more renames
2011-10-24 17:00:09 -07:00
Doug Coleman
df64529fb5
Forget some classes after unit tests so that running "classes" test succeeds multiple times in a row
2011-10-24 16:59:46 -07:00
Doug Coleman
d5dc5cfa2c
Fix 32bit platform bootstrap
2011-10-24 16:24:01 -07:00
Doug Coleman
0d059e0f19
Found a few more places to use lookup-c-type
2011-10-24 15:58:40 -07:00
John Benediktsson
4246c0ad36
windows.directx: add platforms.txt.
2011-10-24 15:47:06 -07:00
Doug Coleman
ff69e2f240
Rename c-type to lookup-c-type. Fixes #230 .
2011-10-24 14:37:24 -07:00
Doug Coleman
f9257959fd
Rename class to class-of
2011-10-24 06:47:42 -05:00
Doug Coleman
26872ffe4d
Rename vocab to lookup-vocab
2011-10-24 06:42:54 -05:00
Doug Coleman
2ecd513130
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
2011-10-23 19:59:01 -05:00
Doug Coleman
441a8b8926
Checked in some code on accident.
2011-10-21 15:34:44 -05:00
John Benediktsson
5a943b32c4
Remove stack effects from HELP: declarations.
2011-10-20 19:36:11 -07:00
John Benediktsson
3d1155130c
core-foundation.timers: allow interval to be specified in the constructor.
2011-10-19 15:30:55 -07:00
John Benediktsson
b1922274e3
smtp: removing unused test.
2011-10-19 13:39:26 -07:00
John Benediktsson
f4a6e10818
More cleanup of unused stuff.
2011-10-19 11:01:16 -07:00
John Benediktsson
d1f5fefab0
Cleanup some uses of global [ ] bind.
2011-10-19 11:01:16 -07:00
John Benediktsson
469f4314df
calendar: removing unused (month-name) word.
2011-10-19 11:01:16 -07:00
John Benediktsson
fb2aab3545
Remove unused words. Fixes #132 .
2011-10-19 11:01:16 -07:00
Doug Coleman
3507a0cc4b
Don't use exception handling for handle>file-size
2011-10-19 10:15:09 -07:00
John Benediktsson
a625197ba5
ui.gadgets.editors: windows doesn't work like macosx.
2011-10-19 09:42:12 -07:00
Doug Coleman
55bb863704
Create attributes>> accessor in io.files.windows
2011-10-19 03:14:19 -07:00
Doug Coleman
b58688f87d
Add throw-win32-error, use it in (delete-file)
2011-10-19 02:51:36 -07:00
Doug Coleman
5608178389
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.
2011-10-19 02:28:45 -07:00
Doug Coleman
55790cc6e4
Check if streams are seekable in Windows
2011-10-19 01:16:53 -07:00
Doug Coleman
986ff071b4
Fix help-lint for editors, peg.ebnf
2011-10-19 00:57:20 -07:00
Doug Coleman
df3cf77e59
Fix tools.annotations tests
2011-10-19 00:57:06 -07:00
Joe Groff
e40453ebee
io.streams.limited: missed INSTANCE: input-stream
2011-10-18 21:27:08 -07:00
John Benediktsson
d1009d74f4
delegate: not sure why protocols can be defined with arrays, but...
2011-10-18 20:40:14 -07:00
John Benediktsson
d750197a7e
help.syntax: if you're gonna have HELP: stack effects, they might as well be correct...
2011-10-18 20:12:42 -07:00
John Benediktsson
2608214622
help.syntax: allow HELP: to have optional stack effect.
2011-10-18 19:14:53 -07:00
John Benediktsson
774d39a524
listener: don't crash if we forget the current vocab. Fixes #259 .
2011-10-18 16:46:55 -07:00
John Benediktsson
faf556f971
delegate: verify generics on protocol definition. Fixes #260 .
2011-10-18 16:31:15 -07:00
Joe Groff
13b17fb84a
io: input-stream and output-stream mixins
2011-10-18 16:25:09 -07:00
John Benediktsson
315767d6f3
editors: unify "edit" across vocabs and words, add edit words for docs, tests, platforms, authors, tags, and summary files. Fixes #177 .
2011-10-18 16:11:24 -07:00
Joe Groff
300a0256c8
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.
2011-10-18 15:13:34 -07:00
Joe Groff
c850722cbb
tools.annotations: send watch to error-stream
2011-10-18 15:13:34 -07:00
Joe Groff
b4d406cfa3
ui.tools.listener: set error stream
2011-10-18 15:13:33 -07:00
John Benediktsson
b237df3a3b
Remove unused stack effects from DEFER: declarations.
2011-10-18 14:42:17 -07:00
John Benediktsson
6e00eaa3f8
Fix stack effect to not print "(( -- ))", remove stray effect from smtp.
2011-10-18 13:25:47 -07:00
John Benediktsson
80e1c8e3f2
Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed.
2011-10-18 13:19:39 -07:00
Joe Groff
9b2634fbd7
io.files.windows: fix can-seek? and length
2011-10-18 12:42:53 -07:00
John Benediktsson
8d15fb1021
ui.gadgets.editors: implement Ctrl-A/E/K to be more compatible.
2011-10-18 11:38:08 -07:00
John Benediktsson
cf54ce8e42
math.functions: when gcd is inlined, "gcd nip" is almost as good as "gcd*".
2011-10-18 10:30:39 -07:00
Doug Coleman
5c694767cd
Report which file doesn't get deleted on Windows.
2011-10-18 00:59:57 -07:00
Doug Coleman
24a6895436
io.sockets.windows - Add a using, output count to fix compile error. Not bad for having no Windows box.
2011-10-17 23:28:22 -07:00
John Benediktsson
9f4eeb55f9
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 c701a39e89
.
2011-10-17 21:39:57 -07:00
Joe Groff
90e1002349
io.sockets: rename (receive) to (receive-unsafe)
2011-10-17 21:23:37 -07:00
Joe Groff
9a812cc5c9
io.ports: lift common methods onto buffered-port
2011-10-17 21:23:37 -07:00
Joe Groff
0c74190a50
ui.tools.listener: remove redundant method
2011-10-17 21:23:37 -07:00
Joe Groff
67cccc63b3
formatting
2011-10-17 21:23:36 -07:00
Joe Groff
68621c4d79
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.
2011-10-17 21:23:36 -07:00
Joe Groff
8fc0be3c2f
io.sockets: remove unix.ffi inserted by auto-use
2011-10-17 21:23:36 -07:00
Joe Groff
5d0ff43613
io.sockets: receive directly into byte array
2011-10-17 21:23:11 -07:00
Joe Groff
20e49c273f
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.
2011-10-17 21:23:11 -07:00
Joe Groff
dbda6cb40b
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.
2011-10-17 21:23:10 -07:00
Joe Groff
f626e456dd
specialized-arrays: fill in missing manifest bits
2011-10-17 21:23:10 -07:00
Joe Groff
e426512534
more stream-seekable? and stream-length methods
...
- limited-streams and throw-on-eof-streams
- string-readers and byte-readers
2011-10-17 21:23:09 -07:00
Joe Groff
e589f58163
delegate.protocols: clean up input-stream-protocol
2011-10-17 21:23:08 -07:00
Joe Groff
863ab575e3
io.ports: stream-seekable? and stream-length
...
io.files.windows, io.backend.unix: platform-specific backends for those methods
2011-10-17 21:23:08 -07:00
Joe Groff
bd50acf424
unix.stat: bind to fstat
2011-10-17 21:23:07 -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
ae6d6ba951
specialized-arrays: direct-slice for byte-arrays
...
Implement nth-c-ptr and direct-like for byte-arrays so that direct-slice over a byte-array makes a uchar-array{ } over a part of the byte-array
2011-10-17 21:23:06 -07:00
Joe Groff
c3c382e45c
ui.tools.listener: fix stream-read-unsafe
...
It was returning the number of requested bytes even if eof was encountered.
2011-10-17 21:23:05 -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
a9ab3db167
ui.tools.listener: read-unsafe for interactorâ€
...
†there's a failing test with this patch that needs investigation:
===
resource:basis/ui/tools/listener/listener-tests.factor: 90
Unit Test: { [ t ] [ "promise" get 2 seconds ?promise-timeout text = ] }
wait-timeout
===
2011-10-17 21:23:04 -07:00
Joe Groff
7caed69d26
delegate.protocols: update input-stream-protocol
...
Add stream-read-unsafe and stream-read-partial-unsafe to input-stream-protocol.
2011-10-17 21:23:04 -07:00
Joe Groff
5c945595ee
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.
2011-10-17 21:23:02 -07:00
Joe Groff
055196d4b7
io.streams.(limited,throwing): read-unsafe methods
2011-10-17 21:23:00 -07:00
Joe Groff
01419b3e6b
io.streams.null: read-unsafe methods
2011-10-17 21:23:00 -07:00
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
Doug Coleman
871dfb9a3a
On Windows, escape command line arguments with double quotes with a backslash: " -> \". Fixes #245 .
2011-10-10 22:24:23 -07:00
Slava Pestov
84fda0bb05
alien.complex: fix docs
2011-10-10 22:12:50 -07:00
Slava Pestov
ae286fb7ef
callback-error: don't use -e until we fix issue #245
2011-10-10 21:25:50 -07:00
Slava Pestov
df7ee85daf
regexp.classes: remove dependency on mirrors vocab
2011-10-10 21:09:59 -07:00
Slava Pestov
ea73b42578
bootstrap.compiler: now that C types are named by words, we don't have to load alien.complex on bootstrap
2011-10-10 21:09:58 -07:00
Joe Groff
e200656ce4
tools.test.fuzz tests: missing using
2011-10-10 18:03:52 -07:00
Slava Pestov
7bc38641f9
compiler.tree.identities: the identity on mod was useless too, because we already have a rewrite rule which handles this case in compiler.tree.propagation
2011-10-10 12:34:21 -07:00
Joe Groff
b5fc65707d
new module tools.test.fuzz: quickcheck-style probabilistic testing, based on Andrew Pennebaker's factcheck vocab
2011-10-10 12:23:23 -07:00
Joe Groff
5a21742f74
tools.test: move fake-unit-test utility from test suite to module
2011-10-10 12:23:23 -07:00
Slava Pestov
dc36fd712d
compiler.cfg.representations: fix unit test, it depended on hashing order which changed recently
2011-10-10 12:15:41 -07:00
Slava Pestov
3a0ffceed9
compiler.tree.propagation.transforms: fix rem and mod custom inlining
2011-10-10 12:12:53 -07:00
Slava Pestov
7a4ab74703
compiler.codegen.gc-maps: fix tests
2011-10-10 12:07:09 -07:00
Slava Pestov
901ee2434c
Fix custom-inlining for mod and rem, which was converting these calls to bitand in some cases, even if the input was not known to be an integer. Fixes #243
2011-10-09 13:51:35 -07:00
Slava Pestov
b4588629ab
Remove identities on / and rem, which were no-ops because integer-derived-ops would return an empty array
2011-10-09 13:51:03 -07:00
Doug Coleman
044a03dc34
On Windows, the overlapped structure high bits were always zero, so reading through a file > 4gb would loop forever.
2011-10-07 15:04:00 -07:00
Doug Coleman
31175eb5cc
Mixin classes in redefine25 test are forgotten, but words still reference them -- forget those words, too. Fixes #143 .
2011-10-07 10:49:17 -07:00
Doug Coleman
cca76e0f6e
Rename forget-struct-slot-accessors -> forget-slot-accessors
2011-10-06 13:21:18 -07:00
Doug Coleman
2402345794
Add examples to encode/decode docs.
2011-10-06 13:21:18 -07:00
Doug Coleman
e7e6191df9
Throw an error if an odd number of hex digits gets parsed by H{.
2011-10-06 13:21:17 -07:00
Doug Coleman
685fc2f86f
Rename method -> lookup-method in three places.
2011-10-04 20:37:23 -07:00
Doug Coleman
be3eebf719
Document reset-class, forget-class, forget-method. Use lookup-method in see, fix gpu.render for method->lookup-method renaming. Fixes #232 .
2011-10-04 10:40:48 -07:00
Doug Coleman
acbe85f0f4
Rename the STRUCT: point word to something else because it conflicts with other unit tests which define a point word in scratchpad. The struct point is redefined to a tuple point and causes the macro-expansion to error out now that structs are properly reset, so instead we just give it a unique name so it doesnt get redefined. Perhaps examples should define their own vocabularies instead of using scratchpad.
2011-10-03 17:13:20 -07:00
Doug Coleman
25c64d12e8
Forget struct slot accessors when structs classes are redefined
2011-10-03 17:12:49 -07:00
Doug Coleman
c14f217300
Fix delegate vocab for lookup-method change.
2011-10-03 16:42:24 -07:00
Doug Coleman
181f11faa8
Make M\ throw an error upon lookup failure. Change method -> ?lookup-method, lookup-method is the throwing version of ?lookup-method. Fixes #229 .
2011-10-03 15:49:49 -07:00
Doug Coleman
8ee9fcc11f
Less use of eval( in unit tests
2011-10-03 13:54:34 -07:00
Doug Coleman
25cdeaf8b0
Fix using list in classes.struct tests
2011-10-03 01:06:02 -07:00
Slava Pestov
6bd956670b
tools.continuations: >c and c> are gone
2011-10-03 00:37:48 -07:00
Slava Pestov
f8e475485a
Add RT_INLINE_CACHE_MISS relocation type to avoid frequent dlsym lookups when compiling PICs. Fixes #123
2011-10-03 00:26:21 -07:00
Slava Pestov
72d3c6e791
Fix linkage-errors test to not clobber its own linkage error
2011-10-03 00:26:21 -07:00
Slava Pestov
05f7419f2f
Rework non-optimizing compiler backend to use compiler.codegen.relocation
2011-10-03 00:26:21 -07:00
Slava Pestov
b89e9a549b
Split up compiler.codegen.fixup into compiler.codegen.{gc-maps,labels,relocation}
2011-10-03 00:25:47 -07:00
Slava Pestov
c68e2308a8
Display a system-alert for callback errors in the UI; also for thread errors in deployed apps; fixes #92 , fixes #95
2011-10-03 00:24:37 -07:00
Slava Pestov
dabbe35bd9
concurrency.mailboxes: linked-thread's error reporting should still work even when debugger.threads is not loaded. This addresses part of #95
2011-10-03 00:24:37 -07:00
Doug Coleman
f4da6f366c
Make histogram example unchecked since hashtables print differently now that hashcodes are more optimized
2011-10-02 22:21:12 -07:00
Doug Coleman
44ef1d3698
compiler.tree.modular-arithmetic needs shallow-spread>quot
2011-10-02 22:21:11 -07:00
Slava Pestov
daf40ea0c6
Fix infinite loop and empty-dlist error when an error is thrown from a callback running in a thread other than the initial thread. This addresses part of issue #92
2011-10-02 21:59:09 -07:00
Doug Coleman
b6f0ee64a0
Fix abuse of spread in persistent.hashtables.
2011-10-02 21:53:17 -07:00
Doug Coleman
8504b17aad
Rename spread>quot to deep-spread>quot, and spread>quot-shallow to shallow-spread>quot.
2011-10-02 20:25:39 -07:00
Doug Coleman
c4418e637e
Define reset-class for struct-classes, add unit tests. Fixes #206 .
2011-10-02 20:08:23 -07:00
Slava Pestov
06218d5d12
compiler.cfg.builder.alien: fix compilation of callbacks which unconditionally throw errors
2011-10-02 19:52:12 -07:00
Doug Coleman
38feae0e8f
Spread now infers with the correct stack effect. Make spread>quot-shallow which trims empty quotations off the head of the spread sequence. Fixes #139 .
2011-10-02 18:35:01 -07:00
John Benediktsson
3b72b641e0
Fix help-lint errors for recent hashtable changes.
2011-10-02 17:49:11 -07:00
John Benediktsson
32111a1095
xml.char-classes: fix upper bound.
2011-10-02 15:30:41 -07:00
Doug Coleman
671f19d70f
Remove all non-core uses of (scan-token)
...
Add scan-datum
Add scan-number
Document more words
Fixes #225 .
2011-10-02 12:00:08 -07:00
Doug Coleman
2fc44d7027
hybrid -> alphanum in stack effects
2011-10-02 11:59:38 -07:00
John Benediktsson
aa4e65ef6f
sorting.human: rename <hybrid> to <alphanum>. Fixes #226 .
2011-10-02 09:24:51 -07:00
John Benediktsson
81e3bef507
xml: 25% (or more) faster.
...
Main performance improvements from:
- improving text? check performance
- fewer "spot get char>>" in skip-until
- better string matching (don't use circular-string sequence=)
2011-09-30 12:47:38 -07:00
John Benediktsson
7bdf805a0f
help.html: better to set all recent help entries to empty.
2011-09-29 13:34:27 -07:00
John Benediktsson
002972c3b4
Revert "ui.clipboards: adding a gadget-copy-all."
...
This reverts commit bee1c0c61e
.
2011-09-29 13:10:21 -07:00
John Benediktsson
73bc2bbbd1
ui.clipboards: adding a gadget-copy-all.
2011-09-29 13:02:23 -07:00
John Benediktsson
aa0f7d0f72
help.html: don't display recent searches. Fixes #211 .
2011-09-29 12:10:55 -07:00