Joe Groff
943596575a
use radix literals
2011-11-23 19:03:40 -08:00
Joe Groff
e738c7206c
math.parser: natively support 0b 0o 0x syntax
...
Closes #371
2011-11-23 18:30:22 -08:00
Joe Groff
29bf4d7214
ui.backend.cocoa.views: clickthrough is bullshit
...
I don't care what Slava thinks
2011-11-23 11:29:03 -08:00
Joe Groff
88d31b166b
vm: don't die if foreign thread gets async signal
...
Fixes #425
2011-11-23 11:26:42 -08:00
Joe Groff
065a4d4353
vm: remove useless forward declare
2011-11-23 11:11:28 -08:00
Joe Groff
b6246f2c00
vm: quell warnings from vars only used by asserts
2011-11-23 11:11:28 -08:00
Joe Groff
4df56f31f2
vm: clean up baroque jit safepoint logic
2011-11-23 11:11:27 -08:00
Joe Groff
15c4b7aa57
vm: verify code heap's all_blocks set when DEBUG
2011-11-23 11:11:27 -08:00
Joe Groff
c2c2023e34
vm: FACTOR_ASSERT only if FACTOR_DEBUG
2011-11-23 11:11:27 -08:00
Joe Groff
f225bf7f55
compiler.cfg.finalization: reenable scheduling
...
Prolog safepoint appears to work with it enabled
2011-11-23 11:11:27 -08:00
Joe Groff
0a1a252cdb
vm: replace assert with FACTOR_ASSERT
...
Factor is finally a real C++ project and has a custom assert macro. Assertion failures were still getting caught as exceptions and causing failure loops. Write our own macro that calls factor::abort on failure.
2011-11-23 11:11:26 -08:00
Joe Groff
6c0ecf631a
vm: charge samples collected in prolog to parent
...
Fixes #379
2011-11-23 11:11:26 -08:00
Joe Groff
81911b9f87
vm: initialize all_blocks map from image
...
um, code blocks from the image need to go in the set too
2011-11-23 11:11:26 -08:00
Joe Groff
2705fc67cb
vm: keep a set of all code_blocks in the code_heap
...
This way looking up code blocks by return address is an O(log n) set lookup rather than an O(n) linear scan.
2011-11-23 11:11:26 -08:00
Joe Groff
6498bc65ce
compiler: emit safepoints in optimized prologs
2011-11-23 11:11:25 -08:00
Joe Groff
44b608bb22
vm: emit safepoints before VM compiler prologs
...
For #379
2011-11-23 11:11:25 -08:00
Doug Coleman
64bbd248d5
classes.maybe: Change the type of maybe's class slot. As a result, maybe: maybe: integer is valid now, so fix the unit tests and its prettyprinting.
2011-11-23 01:43:02 -08:00
Doug Coleman
0700dca792
classes.maybe: make maybe's slot type a classoid so you can do maybe: union{ }. Fix prettyprinting of anonymous-union/intersection. Fixes #427 , fixes #428 .
2011-11-23 01:19:09 -08:00
Doug Coleman
f7700809c5
compiler tests: fix using, add tests to make sure instance? inlines
2011-11-23 01:01:11 -08:00
Doug Coleman
b37bebb17f
compiler.tree.propagation.transforms: fix infinite recursion that was breaking prettyprint
2011-11-23 00:48:05 -08:00
Doug Coleman
f90bc5cdb6
classes: optimize instance? for classoids
2011-11-22 20:38:07 -08:00
Doug Coleman
17cc8ad1f3
dlists: use maybe: dlist-link.
2011-11-22 19:38:46 -08:00
Doug Coleman
82c5388f68
classes: add syntax for intersection{ and union{ anonymous classes. make classoid a mixin.
2011-11-22 18:49:42 -08:00
Doug Coleman
cab0369fec
classes: Make methods dispatch on maybes. Fix a couple bugs in the implementation of maybe. classoid? is now a dumb test if an object could be a well-formed classoid; valid-classoid? tests for well-formedness. Move maybe tests. Make pprint* work better on methods.
2011-11-22 15:12:20 -08:00
Doug Coleman
fac17c10ba
classes.maybe: move maybe definition from classes.union to classes.maybe
2011-11-22 02:46:36 -08:00
Doug Coleman
fad4a28d70
multi-methods: predicate-quot -> predicate-def
2011-11-22 02:12:01 -08:00
Doug Coleman
0bdd87dace
typed: Teach typed about maybe: foo. Should maybe: foo satisfy unboxable-tuple-class? ?
2011-11-22 02:09:12 -08:00
Doug Coleman
067f9830ef
classes.union: Define a maybe: word that makes a tuple that acts as an anonymous union for a type and f. Updated all the places we define UNION: ?foo foo POSTPONE: f ;. Fixes #416 and lots of headaches.
2011-11-22 01:56:13 -08:00
Doug Coleman
cb119568d3
benchmark: remove debug code
2011-11-21 21:54:09 -08:00
Doug Coleman
e435a7aa59
cocoa.messages: Apply mrjbq's patch to show the name of the cooca function in sender stubs. rename 'method' in stack effects to 'signature' since we are passing an array with the return value and arguments, not the method.
2011-11-21 16:38:16 -08:00
Doug Coleman
857fc50fff
benchmark: Add a way to run a profile for each benchmark vocabulary.
2011-11-21 13:42:49 -08:00
Joe Groff
9b73ecdf70
io.monitors: kill outdated doc about kqueue on BSD
2011-11-17 16:56:34 -08:00
Joe Groff
07f206b31b
vocabs.refresh.monitor: use resolve-symlinks
...
It already exists and actually works on windows
2011-11-16 20:35:42 -08:00
Joe Groff
72feb14521
webbrowser.windows: USING
2011-11-16 20:33:36 -08:00
Joe Groff
41fe611dda
random.unix: roll back type assertions
...
Probably don't really make much difference and are invalid in apps that deploy with io level 2 or lower.
2011-11-16 17:29:46 -08:00
Joe Groff
6de9585114
tools.deploy.macosx: fix path to MiniFactor.nib
...
Fixes #414 .
2011-11-16 17:17:54 -08:00
Joe Groff
02df268261
random: don't assume random-bytes is a byte-vector
...
It's not anymore.
2011-11-16 10:03:42 -08:00
John Benediktsson
40898bf4d0
editors: fix editing of links. Fixes #411 .
2011-11-16 09:18:54 -08:00
Joe Groff
1d4660c7ec
random: go faster
...
* Use int <ref> instead of 4 >le
* Inline sequences:push-all
* Types, hints, inlines
Re: #328
2011-11-15 20:45:16 -08:00
Joe Groff
090dc2f410
vocabs.refresh.monitor: remove debug traces
2011-11-15 20:15:11 -08:00
Joe Groff
30bc92a78c
webbrowser.windows: fix loading
2011-11-15 20:05:57 -08:00
Joe Groff
b5c72dab40
vocabs.refresh.monitor: handle symlink paths
...
On macosx, fsevents always provides the true path for changed files, even if the monitored path includes symlinks. This screws things up if a symlinked path is used as a vocab root. Fixes #404 .
2011-11-15 20:04:44 -08:00
Joe Groff
34e77ec408
strings: inline >string and 1string
...
Fixes #340
2011-11-15 19:15:19 -08:00
Joe Groff
5e99a7bbbf
vm: disable SIGINT handler while in factorbug
...
Fixes #410
2011-11-15 18:50:42 -08:00
Joe Groff
36dac58380
update USING:s
2011-11-15 18:37:30 -08:00
Joe Groff
5a66b3b329
rearrange source-file-error error. to load earlier
...
Fixes #359
2011-11-15 18:26:35 -08:00
Doug Coleman
9ae3b50a53
dlists: make a dlist-link tuple so you can "be the node" by subclassing it. this allows you go put a type on the obj>> slot. ensure that dlist nodes are returned with prev/next pointers set to f so they can be reused. dlist-filter used to work destructively on the dlist, make a new dlist instead because the combinator relied on using prev/next of deleted nodes.
2011-11-15 16:33:16 -08:00
Doug Coleman
5a2243d481
alien.endian: read 64bit numbers of the opposite endian as two 32bit numbers, then bitor them together
2011-11-15 13:22:49 -08:00
Joe Groff
ddcc87f58a
command-line.startup: fix help message on windows
...
Support /? while we're at it. Fixes #323
2011-11-15 13:09:32 -08:00
Joe Groff
1db3d6f051
ui.tools.deploy: remove monkey traps from UI
2011-11-15 12:53:21 -08:00