]> gitweb.factorcode.org Git - factor.git/log
factor.git
12 years agofix build for linux (issue #480). thanks, jcollado!
Felix Kaiser [Tue, 13 Mar 2012 19:05:14 +0000 (20:05 +0100)]
fix build for linux (issue #480). thanks, jcollado!

12 years agowolfram-alpha: display error if query unsuccessful.
John Benediktsson [Thu, 8 Mar 2012 01:53:59 +0000 (17:53 -0800)]
wolfram-alpha: display error if query unsuccessful.

12 years agounits.imperial: How much is a liter? About eight gills.
Doug Coleman [Wed, 29 Feb 2012 07:33:10 +0000 (23:33 -0800)]
units.imperial: How much is a liter? About eight gills.

12 years agoui.tools.listener: dumb hack to set listener font
Joe Groff [Sun, 4 Mar 2012 21:07:58 +0000 (13:07 -0800)]
ui.tools.listener: dumb hack to set listener font

12 years agomath.combinatorics: fix tests for next-permutation.
John Benediktsson [Fri, 2 Mar 2012 18:05:57 +0000 (10:05 -0800)]
math.combinatorics: fix tests for next-permutation.

12 years agomath.combinatorics: fix docs for next-permutation.
John Benediktsson [Fri, 2 Mar 2012 17:55:22 +0000 (09:55 -0800)]
math.combinatorics: fix docs for next-permutation.

12 years agomath.combinatorics: implementing "next-permutation".
John Benediktsson [Fri, 2 Mar 2012 17:54:11 +0000 (09:54 -0800)]
math.combinatorics: implementing "next-permutation".

12 years agoaudio.gadget: create/dispose clip on graft/ungraft
Joe Groff [Wed, 22 Feb 2012 23:46:45 +0000 (15:46 -0800)]
audio.gadget: create/dispose clip on graft/ungraft

12 years agoadd content-gadget hook for inspector
Joe Groff [Tue, 21 Feb 2012 23:06:27 +0000 (15:06 -0800)]
add content-gadget hook for inspector
Allow objects such as images, strings, and audio clips to display rich representations of themselves in the inspector by providing methods for a content-gadget generic.

12 years agoaudio.gadget: printable audio play button
Joe Groff [Tue, 21 Feb 2012 07:49:01 +0000 (23:49 -0800)]
audio.gadget: printable audio play button

12 years agouse clang when building w/ xcode >4.3; it's faster
Joe Groff [Sun, 19 Feb 2012 07:40:38 +0000 (23:40 -0800)]
use clang when building w/ xcode >4.3; it's faster

12 years agofactor.sh: note xcode 4.3 command line tools req
Joe Groff [Sun, 19 Feb 2012 07:23:47 +0000 (23:23 -0800)]
factor.sh: note xcode 4.3 command line tools req

12 years agoui.gadgets.panes: add gadget-alt-text
Joe Groff [Sun, 19 Feb 2012 05:55:59 +0000 (21:55 -0800)]
ui.gadgets.panes: add gadget-alt-text
Provide a default implementation of write-gadget that writes plain text to a stream that doesn't support gadgets.

12 years agokernel: Change the example for with to be more clear. Division example credit goes...
Doug Coleman [Thu, 16 Feb 2012 17:48:08 +0000 (09:48 -0800)]
kernel: Change the example for with to be more clear. Division example credit goes to chezmax.

12 years agosystem-info.macosx: adding "Mountain Lion".
John Benediktsson [Thu, 16 Feb 2012 16:30:56 +0000 (08:30 -0800)]
system-info.macosx: adding "Mountain Lion".

12 years agoAdd the banner. It should give the instructions before asking for a guess.
Guillermo Alcantara [Thu, 9 Feb 2012 05:31:31 +0000 (21:31 -0800)]
Add the banner. It should give the instructions before asking for a guess.

12 years agofactor.sh: Install git instead of git-core for linux-deps.X
Doug Coleman [Tue, 7 Feb 2012 20:57:52 +0000 (12:57 -0800)]
factor.sh: Install git instead of git-core for linux-deps.X

12 years agotools.ps: Add a simple Linux-only ps clone.
Doug Coleman [Sat, 4 Feb 2012 01:30:34 +0000 (17:30 -0800)]
tools.ps: Add a simple Linux-only ps clone.

12 years agounix.groups: Return an empty sequence if the user in 'user user-groups' doesn't exist.
Doug Coleman [Fri, 3 Feb 2012 03:58:24 +0000 (19:58 -0800)]
unix.groups: Return an empty sequence if the user in 'user user-groups' doesn't exist.

12 years agounix.groups: Get the second parameter to getgrouplist from /etc/passwd.
Doug Coleman [Fri, 3 Feb 2012 03:53:42 +0000 (19:53 -0800)]
unix.groups: Get the second parameter to getgrouplist from /etc/passwd.

12 years agocalendar: today is now midnight.
John Benediktsson [Fri, 3 Feb 2012 03:47:05 +0000 (19:47 -0800)]
calendar: today is now midnight.

12 years agounix.groups: 64 ought to be enough, right?
John Benediktsson [Fri, 3 Feb 2012 03:41:39 +0000 (19:41 -0800)]
unix.groups: 64 ought to be enough, right?

12 years agoRevert "io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname."
Joe Groff [Tue, 31 Jan 2012 19:46:02 +0000 (11:46 -0800)]
Revert "io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname."

This reverts commit 4e10f097875d8f910abba832134b841d115eca8e.

12 years agoRevert "io.pathnames: Revised ~ support to expand on the first tilde, and not on...
Joe Groff [Tue, 31 Jan 2012 19:45:51 +0000 (11:45 -0800)]
Revert "io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/"."

This reverts commit 251a2a19a67ce305b8318ae5aab7b4be204903f4.

12 years agoio.pathnames: Revised ~ support to expand on the first tilde, and not on "~/".
otoburb [Wed, 11 Jan 2012 02:25:53 +0000 (02:25 +0000)]
io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/".

This mimics the same behaviour as "ls ~" in the shell, which expands the alias
as a directory, and not as a filename. For the specific edge-case where a
filename called "~" must have a path constructed to it (e.g. "./~" or "~/~").

12 years agoio.pathnames: Added ~/ (tilde) prefix recognition as a special pathname.
otoburb [Wed, 21 Dec 2011 16:35:05 +0000 (16:35 +0000)]
io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname.

vocab:, resource: and ~/ are special pathnames. Modified absolute-path word,
added test cases and updated io.pathname documentation.

12 years agoclient-docs: Updated HTTP PUT documentation typos
otoburb [Fri, 18 Nov 2011 06:47:56 +0000 (01:47 -0500)]
client-docs: Updated HTTP PUT documentation typos

12 years agolistener: update docs
Slava Pestov [Tue, 3 Jan 2012 05:38:56 +0000 (21:38 -0800)]
listener: update docs

12 years agoSet up listener's manifest so that words defined in "scratchpad" take precedence...
Slava Pestov [Tue, 3 Jan 2012 05:18:52 +0000 (23:18 -0600)]
Set up listener's manifest so that words defined in "scratchpad" take precedence over other vocabularies and do not raise a restart. This matches the behavior of IN: and USE: in files, where the IN: takes precedence. Also remove unused clear-manifest word. Fixes #407

12 years agogdbm.ffi: fix library name on Linux
Slava Pestov [Tue, 3 Jan 2012 04:44:43 +0000 (22:44 -0600)]
gdbm.ffi: fix library name on  Linux

12 years agoextra:math.erato: Remove txt files; vocab was moved to basis.
Doug Coleman [Mon, 2 Jan 2012 20:14:03 +0000 (12:14 -0800)]
extra:math.erato: Remove txt files; vocab was moved to basis.

12 years agoRevert "ui.gadgets.books: needs help.markup.private."
John Benediktsson [Fri, 30 Dec 2011 05:38:05 +0000 (21:38 -0800)]
Revert "ui.gadgets.books: needs help.markup.private."

This reverts commit dc9aa68961e5d2c4e5762b09e1abebea70d5c97b.

12 years agounicode: Fix some $vocab-links in docs.
John Benediktsson [Fri, 30 Dec 2011 01:32:05 +0000 (17:32 -0800)]
unicode: Fix some $vocab-links in docs.

12 years agomath.vectors: fix some $examples in docs.
John Benediktsson [Fri, 30 Dec 2011 01:31:55 +0000 (17:31 -0800)]
math.vectors: fix some $examples in docs.

12 years agoui.gadgets.books: needs help.markup.private.
John Benediktsson [Fri, 30 Dec 2011 01:19:48 +0000 (17:19 -0800)]
ui.gadgets.books: needs help.markup.private.

12 years agoui: fix error in docs (USE: ui.gadgets.books).
John Benediktsson [Fri, 30 Dec 2011 00:33:16 +0000 (16:33 -0800)]
ui: fix error in docs (USE: ui.gadgets.books).

12 years agosplitting.monotonic: Don't throw away the last result. Fixes #462.
Doug Coleman [Tue, 27 Dec 2011 17:43:32 +0000 (11:43 -0600)]
splitting.monotonic: Don't throw away the last result. Fixes #462.

12 years agovm: actually code_block_pic is a fine frame type
Joe Groff [Thu, 22 Dec 2011 05:12:54 +0000 (21:12 -0800)]
vm: actually code_block_pic is a fine frame type

12 years agovm: also smoke-check callstack after pic update
Joe Groff [Thu, 22 Dec 2011 02:31:37 +0000 (18:31 -0800)]
vm: also smoke-check callstack after pic update

12 years agovm: flush after print_obj so it's usable from gdb
Joe Groff [Wed, 21 Dec 2011 21:25:28 +0000 (13:25 -0800)]
vm: flush after print_obj so it's usable from gdb

12 years agovm: fashion brigade
Joe Groff [Wed, 21 Dec 2011 21:25:05 +0000 (13:25 -0800)]
vm: fashion brigade

12 years agovm: walk stack on inline_cache_miss if PIC_DEBUG=1
Joe Groff [Wed, 21 Dec 2011 21:24:35 +0000 (13:24 -0800)]
vm: walk stack on inline_cache_miss if PIC_DEBUG=1
Reveals inline cache stack coherency bug behind #460

12 years agovm: load mega cache object before popping frame
Joe Groff [Tue, 20 Dec 2011 22:38:01 +0000 (14:38 -0800)]
vm: load mega cache object before popping frame
Fixes #457 harder

12 years agocpu.x86.32.bootstrap: oops, meant bootstrap-cell
Joe Groff [Tue, 20 Dec 2011 04:55:07 +0000 (20:55 -0800)]
cpu.x86.32.bootstrap: oops, meant bootstrap-cell

12 years agocpu.x86.32.bootstrap: update unwind-native-frames
Joe Groff [Tue, 20 Dec 2011 02:42:14 +0000 (18:42 -0800)]
cpu.x86.32.bootstrap: update unwind-native-frames
The arguments passed from C are in a different position now.

12 years agovm: unwind-native-frames is special
Joe Groff [Tue, 20 Dec 2011 00:54:25 +0000 (16:54 -0800)]
vm: unwind-native-frames is special
Fixes #457

12 years agocombinators.smart: Make map-reduce-outputs a macro. To be a combinator, we need a...
Doug Coleman [Mon, 19 Dec 2011 19:12:37 +0000 (11:12 -0800)]
combinators.smart: Make map-reduce-outputs a macro. To be a combinator, we need a full stack-checker rewrite.

12 years agomath.parser: hex> etc. shouldn't take radix prefix
Joe Groff [Sat, 17 Dec 2011 01:20:05 +0000 (17:20 -0800)]
math.parser: hex> etc. shouldn't take radix prefix
Fixes #453

12 years agofix link when extracting the feed address
Samuel Tardieu [Wed, 14 Dec 2011 22:18:26 +0000 (23:18 +0100)]
fix link when extracting the feed address

If the <link rel="alternate" href="..."/> was not the first
<link/> attribute under the <feed/> tag, the bad one was extracted
as the corresponding site URL.

12 years agoadd tag-named-with-attr to xml.traversal
Samuel Tardieu [Wed, 14 Dec 2011 22:05:57 +0000 (23:05 +0100)]
add tag-named-with-attr to xml.traversal

12 years agofastcgi: er, linux + macosx = unix
Joe Groff [Sat, 17 Dec 2011 00:06:46 +0000 (16:06 -0800)]
fastcgi: er, linux + macosx = unix

12 years agofastcgi: only load on unix until #454 is resolved
Joe Groff [Sat, 17 Dec 2011 00:02:53 +0000 (16:02 -0800)]
fastcgi: only load on unix until #454 is resolved

12 years agotools.deploy.shaker: strip globals harder
Joe Groff [Fri, 16 Dec 2011 23:56:59 +0000 (15:56 -0800)]
tools.deploy.shaker: strip globals harder
Separate the list of strippable globals in "stripped" and "cleared". Completely remove the former set, but only reset to 'f' the latter. Fixes #447.

12 years agothreads: update test
Joe Groff [Wed, 14 Dec 2011 21:45:53 +0000 (13:45 -0800)]
threads: update test

12 years agoRevert "pubsubhubbub support by samueltardieu". Fixes #455.
Joe Groff [Wed, 14 Dec 2011 21:13:18 +0000 (13:13 -0800)]
Revert "pubsubhubbub support by samueltardieu". Fixes #455.

This reverts commit e3483c9c0383dbc89888f58fa471b8777fe35ce1.

12 years agofix compiler.codegen tests
Joe Groff [Wed, 14 Dec 2011 20:51:12 +0000 (12:51 -0800)]
fix compiler.codegen tests

12 years agotools.deploy.shaker: clear MEMO: caches
Joe Groff [Wed, 14 Dec 2011 20:44:40 +0000 (12:44 -0800)]
tools.deploy.shaker: clear MEMO: caches

12 years agofix help-lint failures
Joe Groff [Wed, 14 Dec 2011 19:33:17 +0000 (11:33 -0800)]
fix help-lint failures

12 years agocpu.x86.64: define jit-load-vm as a no-op
Joe Groff [Wed, 14 Dec 2011 19:33:05 +0000 (11:33 -0800)]
cpu.x86.64: define jit-load-vm as a no-op
This was the signal handler prolog code can be shared completely between x86.32 and x86.64.

12 years agovm: cleanups
Joe Groff [Wed, 14 Dec 2011 17:52:43 +0000 (09:52 -0800)]
vm: cleanups

12 years agooops, handler still need to jit-load-vm on x86-32
Joe Groff [Wed, 14 Dec 2011 04:09:07 +0000 (20:09 -0800)]
oops, handler still need to jit-load-vm on x86-32

12 years agovm: don't scribble memory handling leaf signals
Joe Groff [Wed, 14 Dec 2011 03:36:05 +0000 (19:36 -0800)]
vm: don't scribble memory handling leaf signals

12 years agocpu.x86.*: clean up signal handler prolog code
Joe Groff [Wed, 14 Dec 2011 03:31:59 +0000 (19:31 -0800)]
cpu.x86.*: clean up signal handler prolog code
Also bump the signal handler frame sizes up again since it looks like we shrank them too much.

12 years agovm: factor out word_stack_frame_size
Joe Groff [Wed, 14 Dec 2011 01:04:35 +0000 (17:04 -0800)]
vm: factor out word_stack_frame_size

12 years agovm: get rid of now-trivial innermost_stack_frame
Joe Groff [Wed, 14 Dec 2011 00:21:53 +0000 (16:21 -0800)]
vm: get rid of now-trivial innermost_stack_frame

12 years agocpu.x86: reduce compiled frames by 2 cells too
Joe Groff [Tue, 13 Dec 2011 23:41:40 +0000 (15:41 -0800)]
cpu.x86: reduce compiled frames by 2 cells too

12 years agosimplify function prologs
Joe Groff [Tue, 13 Dec 2011 23:13:32 +0000 (15:13 -0800)]
simplify function prologs

12 years agovm: fix types after rebase
Joe Groff [Tue, 13 Dec 2011 20:27:39 +0000 (12:27 -0800)]
vm: fix types after rebase

12 years agovm: replace remaining stack_frame-based logic
Joe Groff [Wed, 7 Dec 2011 01:53:52 +0000 (17:53 -0800)]
vm: replace remaining stack_frame-based logic

12 years agovm: remove _reversed from callstack iterator names
Joe Groff [Tue, 6 Dec 2011 23:00:02 +0000 (15:00 -0800)]
vm: remove _reversed from callstack iterator names
Now that they're the only game in town we can give them the short names

12 years agovm: remove iterate_callstack_object
Joe Groff [Tue, 6 Dec 2011 22:57:09 +0000 (14:57 -0800)]
vm: remove iterate_callstack_object

12 years agovm: callstack_reversed for callstack_to_array
Joe Groff [Tue, 6 Dec 2011 22:51:41 +0000 (14:51 -0800)]
vm: callstack_reversed for callstack_to_array

12 years agoremove iterate_callstack now that it's unused
Joe Groff [Tue, 6 Dec 2011 17:41:50 +0000 (09:41 -0800)]
remove iterate_callstack now that it's unused

12 years agovm: callstack_reversed in call_frame_scrubber
Joe Groff [Tue, 6 Dec 2011 17:28:00 +0000 (09:28 -0800)]
vm: callstack_reversed in call_frame_scrubber

12 years agovm: stage code block map fixup properly for GC
Joe Groff [Tue, 6 Dec 2011 17:14:56 +0000 (09:14 -0800)]
vm: stage code block map fixup properly for GC
Don't update the map until the very last thing, and pass untranslated addresses to the iterator functors. Somewhat complicated by the fact that, for startup_fixup, the map is initialized with fixed-up values, so the fixup functor needs a flag indicating whether it operates with a fixed or unfixed code heap map.

12 years agovm: callstack_reversed in code_block_visitor
Joe Groff [Mon, 5 Dec 2011 22:18:42 +0000 (14:18 -0800)]
vm: callstack_reversed in code_block_visitor

12 years agovm: iterate_callstack_reversed in slot_visitor
Joe Groff [Mon, 5 Dec 2011 20:53:34 +0000 (12:53 -0800)]
vm: iterate_callstack_reversed in slot_visitor

12 years agovm: reversed callstack iteration
Joe Groff [Fri, 2 Dec 2011 17:11:34 +0000 (09:11 -0800)]
vm: reversed callstack iteration

12 years agoWIP verify_callstack function
Joe Groff [Thu, 1 Dec 2011 01:56:24 +0000 (17:56 -0800)]
WIP verify_callstack function
dumps callstack in reverse order so i can visually inspect that it matches the old forward walking logic

12 years agovm: method to calculate frame size for address
Joe Groff [Wed, 30 Nov 2011 20:57:35 +0000 (12:57 -0800)]
vm: method to calculate frame size for address
If we're before the prolog or or in a leaf procedure, the stack frame is really a leaf frame created by the signal handler, with a known fixed size, instead of the real stack frame (if any) with a different size.

12 years agovm: don't suffer null return addresses
Joe Groff [Wed, 30 Nov 2011 20:55:57 +0000 (12:55 -0800)]
vm: don't suffer null return addresses

12 years agocpu.*.bootstrap: return address for (set-context)
Joe Groff [Wed, 30 Nov 2011 20:52:06 +0000 (12:52 -0800)]
cpu.*.bootstrap: return address for (set-context)
Instead of pushing zero as the fake return address for a set-context call, push an address that points back into the primitive so that callstack walking can match the frame back to the subprimitive.

12 years agovm: frame size for signal handler code blocks
Joe Groff [Wed, 30 Nov 2011 20:39:21 +0000 (12:39 -0800)]
vm: frame size for signal handler code blocks

12 years agovm: initialize all_blocks set after initial fixup
Joe Groff [Wed, 30 Nov 2011 04:19:13 +0000 (20:19 -0800)]
vm: initialize all_blocks set after initial fixup

12 years agovm: make all_blocks a set of cells
Joe Groff [Wed, 30 Nov 2011 04:18:51 +0000 (20:18 -0800)]
vm: make all_blocks a set of cells
gcc was doing bad things assuming the pointer given to upper_bound was aligned

12 years agovm: verifier shouldn't check for leftovers
Joe Groff [Sat, 26 Nov 2011 03:44:43 +0000 (19:44 -0800)]
vm: verifier shouldn't check for leftovers
It doesn't work after things have been freed

12 years agovm: pack frame size into code block header bits
Joe Groff [Sat, 26 Nov 2011 03:23:07 +0000 (19:23 -0800)]
vm: pack frame size into code block header bits

12 years agocompiler.constants: remove unused constants
Joe Groff [Sat, 26 Nov 2011 02:58:40 +0000 (18:58 -0800)]
compiler.constants: remove unused constants

12 years agovm: store stack frame size in code blocks
Joe Groff [Sat, 26 Nov 2011 02:58:21 +0000 (18:58 -0800)]
vm: store stack frame size in code blocks
Change modify-code-heap primitive so it takes a sixth element in each array for the frame size.

12 years agomath.vectors: add higher-order stack effect to vif
Joe Groff [Wed, 14 Dec 2011 03:46:44 +0000 (19:46 -0800)]
math.vectors: add higher-order stack effect to vif

12 years agovm: erase code blocks from all_blocks during sweep
Joe Groff [Tue, 13 Dec 2011 20:28:09 +0000 (12:28 -0800)]
vm: erase code blocks from all_blocks during sweep
Fixes #437

12 years agovm: reinitialize all_blocks from scratch after gc
Joe Groff [Tue, 13 Dec 2011 03:05:48 +0000 (19:05 -0800)]
vm: reinitialize all_blocks from scratch after gc
Faster and more likely to be correct than trying to fixup the existing set

12 years agovm: only verify all_blocks set if it's invalid
Joe Groff [Tue, 13 Dec 2011 03:04:56 +0000 (19:04 -0800)]
vm: only verify all_blocks set if it's invalid
Verifying on every sample is way too slow to be practical when debugging bootstrap.

12 years agovm: add compact-gc command to factorbug
Joe Groff [Tue, 13 Dec 2011 03:03:42 +0000 (19:03 -0800)]
vm: add compact-gc command to factorbug

12 years agocpu.x86: enable POPCNT with a flag
Joe Groff [Tue, 13 Dec 2011 00:43:49 +0000 (16:43 -0800)]
cpu.x86: enable POPCNT with a flag
If bootstrapped with '-enable-popcnt' and the host CPU supports it, enable the POPCNT-based fixnum-bit-count intrinsic. Fixes #436.

12 years agotools.deploy.shaker: more timid global stripping
Joe Groff [Tue, 13 Dec 2011 00:08:25 +0000 (16:08 -0800)]
tools.deploy.shaker: more timid global stripping
Strip globals by replacing their value with "f". The list of globals to strip was written with the assumption that the stripped globals would get restored like normal hashtable keys when accessed. This isn't valid anymore with the globals optimization, since creating a new box breaks the foldable invariant between a global name and its associated box. Need to go through the list of globals to strip and find the ones that actually can be entirely removed as opposed to just reset to f. Fixes #445. Fixes #446.

12 years agoadded B: (break for parsing words) and appropriate documentation
rien [Sun, 11 Dec 2011 01:59:22 +0000 (20:59 -0500)]
added B: (break for parsing words) and appropriate documentation

12 years agofixed effect based on inner behavior and outer context
rien [Sun, 11 Dec 2011 00:47:34 +0000 (19:47 -0500)]
fixed effect based on inner behavior and outer context

12 years agomath.vectors.simd.intrinsics: fix deploy bug
Joe Groff [Wed, 7 Dec 2011 20:46:52 +0000 (12:46 -0800)]
math.vectors.simd.intrinsics: fix deploy bug
If not called with a known-at-compile-time SIMD type, the intrinsic definitions were leaving behind runtime quotations that referenced the c-array words after c-type information had been stripped, causing deployed applications that used SIMD to fail.

12 years agohelp-lint fixes for recent changes
Doug Coleman [Wed, 7 Dec 2011 20:26:35 +0000 (12:26 -0800)]
help-lint fixes for recent changes