]> gitweb.factorcode.org Git - factor.git/log
factor.git
9 years agoui: cleanup some using lists.
John Benediktsson [Thu, 29 Jan 2015 19:41:18 +0000 (11:41 -0800)]
ui: cleanup some using lists.

9 years agoVM: better error message in case factor_vm::store_external_address fails 1274/head
Björn Lindqvist [Wed, 28 Jan 2015 14:40:12 +0000 (14:40 +0000)]
VM: better error message in case factor_vm::store_external_address fails

9 years agoVM: fix the debug printing so that instead of always printing to std::cout, you suppl...
Björn Lindqvist [Wed, 28 Jan 2015 13:27:20 +0000 (13:27 +0000)]
VM: fix the debug printing so that instead of always printing to std::cout, you supply the stream to print to

9 years agotools.gc-decode.tests: make test case work on 32 bit
Björn Lindqvist [Wed, 28 Jan 2015 08:38:12 +0000 (08:38 +0000)]
tools.gc-decode.tests: make test case work on 32 bit

9 years agoforestdb.lib: Forestdb currently doesn't compile on Windows x86.
Doug Coleman [Sat, 24 Jan 2015 03:43:47 +0000 (19:43 -0800)]
forestdb.lib: Forestdb currently doesn't compile on Windows x86.
https://groups.google.com/forum/#!topic/forestdb/V9dwLOLCyCg

9 years agocompiler.tests.optimizer: Re-enable the minor-gc test case that was
Doug Coleman [Thu, 22 Jan 2015 21:03:28 +0000 (13:03 -0800)]
compiler.tests.optimizer: Re-enable the minor-gc test case that was
failing until bjourne's latest commits.

9 years agocompiler.cfg.stacks.clearing: Fix help-lint-all.
Doug Coleman [Thu, 22 Jan 2015 20:30:49 +0000 (12:30 -0800)]
compiler.cfg.stacks.clearing: Fix help-lint-all.

9 years agocompiler.cfg.stacks.*: more docs
Björn Lindqvist [Mon, 19 Jan 2015 13:08:37 +0000 (13:08 +0000)]
compiler.cfg.stacks.*: more docs

9 years agocompiler.cfg.stacks.*: updated tests to match
Björn Lindqvist [Mon, 19 Jan 2015 10:09:46 +0000 (10:09 +0000)]
compiler.cfg.stacks.*: updated tests to match

9 years agocompiler.cfg.stacks.*: use insn# as the key in the stack-record instead of the insn...
Björn Lindqvist [Mon, 19 Jan 2015 10:08:06 +0000 (10:08 +0000)]
compiler.cfg.stacks.*: use insn# as the key in the stack-record instead of the insn tuple itself

9 years agocompiler.cfg.stacks.*: many new and fixed tests
Björn Lindqvist [Thu, 1 Jan 2015 15:14:14 +0000 (16:14 +0100)]
compiler.cfg.stacks.*: many new and fixed tests

9 years agocompiler.cfg.stacks.*: vacant-peek checking readded
Björn Lindqvist [Thu, 1 Jan 2015 15:13:47 +0000 (16:13 +0100)]
compiler.cfg.stacks.*: vacant-peek checking readded

9 years agocompiler.cfg.*: new step in finalization: clear-uninitialized
Björn Lindqvist [Thu, 1 Jan 2015 10:12:58 +0000 (11:12 +0100)]
compiler.cfg.*: new step in finalization: clear-uninitialized

this step is supposed to analyze the cfg, find where there are peeks
that can cause stack underflow, and insert replace-imm instructions so
that there are no uninitialized stack locations if they do. could fix #1187

9 years agocompiler.cfg.stacks.map: new vocab for creating an assoc that contains the stack...
Björn Lindqvist [Wed, 31 Dec 2014 22:27:59 +0000 (23:27 +0100)]
compiler.cfg.stacks.map: new vocab for creating an assoc that contains the stack state for each instruction in a cfg

9 years agocompiler.cfg.*: detached the normalize-height and schedule-instructions passes
Björn Lindqvist [Wed, 31 Dec 2014 20:51:15 +0000 (21:51 +0100)]
compiler.cfg.*: detached the normalize-height and schedule-instructions passes

those stages cause uninitialized "holes" in the stacks which in turn
causes gc errors if stack underflows occur

9 years agocore-foundation.run-loop: make sure to reset when switching between UI and NO_UI.
John Benediktsson [Sun, 18 Jan 2015 00:40:21 +0000 (16:40 -0800)]
core-foundation.run-loop: make sure to reset when switching between UI and NO_UI.

9 years agoui.backend.cocoa: fix reset of thread-timer.
John Benediktsson [Sat, 17 Jan 2015 23:58:57 +0000 (15:58 -0800)]
ui.backend.cocoa: fix reset of thread-timer.

9 years agocombinators: fix broken optimization that made floats work for integer keys.
John Benediktsson [Sat, 17 Jan 2015 23:46:04 +0000 (15:46 -0800)]
combinators: fix broken optimization that made floats work for integer keys.

9 years agocore-foundation.run-loop: cleanup timer-thread code.
John Benediktsson [Sat, 17 Jan 2015 22:16:24 +0000 (14:16 -0800)]
core-foundation.run-loop: cleanup timer-thread code.

9 years agocompiler: Fix help-lint for @bjourne's recent awesome docs.
Doug Coleman [Sat, 17 Jan 2015 22:02:59 +0000 (14:02 -0800)]
compiler: Fix help-lint for @bjourne's recent awesome docs.

9 years agocompiler.tests.stack-trace: Fix unit test.
Doug Coleman [Sat, 17 Jan 2015 21:57:56 +0000 (13:57 -0800)]
compiler.tests.stack-trace: Fix unit test.

9 years agomime: Use new mime.types file. Keep old mime types around because I'm a hoarder....
Doug Coleman [Sat, 17 Jan 2015 21:47:56 +0000 (13:47 -0800)]
mime: Use new mime.types file. Keep old mime types around because I'm a hoarder. Closes #1258.

9 years agocompiler.tests.optimizer: Disable minor-gc test case for now. #1187.
Doug Coleman [Sat, 17 Jan 2015 19:01:36 +0000 (11:01 -0800)]
compiler.tests.optimizer: Disable minor-gc test case for now. #1187.

9 years agosequences.extras: removing contains? (probably a bad name or a bad definition).
John Benediktsson [Sat, 17 Jan 2015 18:27:39 +0000 (10:27 -0800)]
sequences.extras: removing contains? (probably a bad name or a bad definition).

9 years agocompiler.tests.stack-trace: unit tests against the #1265 bugs 1270/head
Björn Lindqvist [Thu, 15 Jan 2015 05:07:40 +0000 (05:07 +0000)]
compiler.tests.stack-trace: unit tests against the #1265 bugs

9 years agoVM: possible fix for #1265. the size of the stack frame appears to have been miscalcu...
Björn Lindqvist [Thu, 15 Jan 2015 03:56:38 +0000 (03:56 +0000)]
VM: possible fix for #1265. the size of the stack frame appears to have been miscalculated in iterate_callstack which this commit fixes.

9 years agoVM: simplified fixup_gc_workhorse::fixup_data by mering lots of functions only used...
Björn Lindqvist [Wed, 14 Jan 2015 03:11:49 +0000 (03:11 +0000)]
VM: simplified fixup_gc_workhorse::fixup_data by mering lots of functions only used once

9 years agoVM: instead of passing around the trace_contexts_p arg, just clear the contexts in...
Björn Lindqvist [Mon, 12 Jan 2015 06:19:06 +0000 (06:19 +0000)]
VM: instead of passing around the trace_contexts_p arg, just clear the contexts in primitive_save_image_and_exit() it has the same effect but is simpler

9 years agoVM: merge of slot_visitor and code_block_visitor
Björn Lindqvist [Mon, 12 Jan 2015 04:58:55 +0000 (04:58 +0000)]
VM: merge of slot_visitor and code_block_visitor

Looks like there is no reason for them to be separate classes and by
merging them you can simplify lots of code.

9 years agoVM: replaced the reset_generation() generic method with one method for each generation
Björn Lindqvist [Sat, 10 Jan 2015 15:14:54 +0000 (15:14 +0000)]
VM: replaced the reset_generation() generic method with one method for each generation

9 years agoVM: vm::iterate_active_callstacks is only used once, so it's simpler if the code...
Björn Lindqvist [Sat, 10 Jan 2015 15:08:09 +0000 (15:08 +0000)]
VM: vm::iterate_active_callstacks is only used once, so it's simpler if the code body is "inline"

9 years agoVM: the full_collector class isn't needed since it is only used once
Björn Lindqvist [Sat, 10 Jan 2015 15:00:12 +0000 (15:00 +0000)]
VM: the full_collector class isn't needed since it is only used once

9 years agoVM: the clear_mark_bits methods are only called once -- make the calls inline instead
Björn Lindqvist [Fri, 9 Jan 2015 21:28:16 +0000 (21:28 +0000)]
VM: the clear_mark_bits methods are only called once -- make the calls inline instead

9 years agoVM: change the definition of entry_point in word and quotation from void* to cell
Björn Lindqvist [Wed, 7 Jan 2015 10:51:19 +0000 (11:51 +0100)]
VM: change the definition of entry_point in word and quotation from void* to cell

this gets rid of lots of redundant casts from void* to cell

9 years agoVM: free_list_allocator::first_block, last_block and next_block_after can be refactor...
Björn Lindqvist [Tue, 6 Jan 2015 18:38:53 +0000 (19:38 +0100)]
VM: free_list_allocator::first_block, last_block and next_block_after can be refactored away

9 years agoVM: removes the template parameter from mark_bits
Björn Lindqvist [Tue, 6 Jan 2015 16:58:24 +0000 (17:58 +0100)]
VM: removes the template parameter from mark_bits

since mark_bits only deals with arithmetic on memory addresses, it
doesn't need to be specialized so it can be untemplateized

9 years agoVM converts the methods callstack::frame_top_at and code_block::offset to use cells...
Björn Lindqvist [Tue, 6 Jan 2015 16:35:44 +0000 (17:35 +0100)]
VM converts the methods callstack::frame_top_at and code_block::offset to use cells instead of void*'s

9 years agoVM: calls to visit_code_roots() replaced with visit_uninitialized_code_blocks()
Björn Lindqvist [Tue, 6 Jan 2015 13:53:52 +0000 (14:53 +0100)]
VM: calls to visit_code_roots() replaced with visit_uninitialized_code_blocks()

9 years agoVM: some more fixing to make the types match better, converting void* to cell
Björn Lindqvist [Mon, 5 Jan 2015 13:04:12 +0000 (14:04 +0100)]
VM: some more fixing to make the types match better, converting void* to cell

9 years agoVM: change type of callstack_top and callstack_bottom from void* to cell
Björn Lindqvist [Mon, 5 Jan 2015 11:59:54 +0000 (12:59 +0100)]
VM: change type of callstack_top and callstack_bottom from void* to cell

cell and void* is always the same size, but now you can remove lots of
redundant type casts from void* to cell.

9 years agoVM: the frame_return_address and set_frame_return_address functions aren't needed...
Björn Lindqvist [Sun, 4 Jan 2015 14:33:51 +0000 (15:33 +0100)]
VM: the frame_return_address and set_frame_return_address functions aren't needed (clearer to read/write the pointers directly)

9 years agoVM: code_block::scan, make it so the method always returns -1 if scan can't be determ...
Björn Lindqvist [Sun, 4 Jan 2015 14:30:04 +0000 (15:30 +0100)]
VM: code_block::scan, make it so the method always returns -1 if scan can't be determined, part of the fix for #1265

9 years agoVM: refactoring intended to remove trace_*-methods that are just
Björn Lindqvist [Sat, 3 Jan 2015 21:36:41 +0000 (22:36 +0100)]
VM: refactoring intended to remove trace_*-methods that are just
simple delegations to the data/code_visitor instances

9 years agoforestdb: Remove unix only forestdb. Fix segfault for fdb-get-kv.
Doug Coleman [Fri, 9 Jan 2015 01:26:28 +0000 (19:26 -0600)]
forestdb: Remove unix only forestdb. Fix segfault for fdb-get-kv.

9 years agojson.writer: make sure we make hex values two digits zero padded.
John Benediktsson [Sun, 4 Jan 2015 17:37:03 +0000 (09:37 -0800)]
json.writer: make sure we make hex values two digits zero padded.

9 years agojson.writer: support escaping unicode > 0x10000. Thanks @jonenst!
John Benediktsson [Sat, 3 Jan 2015 16:30:26 +0000 (08:30 -0800)]
json.writer: support escaping unicode > 0x10000.  Thanks @jonenst!

9 years agomason.git: fix status check.
John Benediktsson [Wed, 31 Dec 2014 03:29:05 +0000 (19:29 -0800)]
mason.git: fix status check.

9 years agocompiler.cfg.*: new unit test vocabs 1264/head
Björn Lindqvist [Wed, 31 Dec 2014 01:56:00 +0000 (02:56 +0100)]
compiler.cfg.*: new unit test vocabs

9 years agocompiler.cfg.*: more docs
Björn Lindqvist [Wed, 31 Dec 2014 01:46:35 +0000 (02:46 +0100)]
compiler.cfg.*: more docs

9 years agocompiler.cfg.*: refactoring away the compute-global-sets word
Björn Lindqvist [Wed, 31 Dec 2014 01:44:48 +0000 (02:44 +0100)]
compiler.cfg.*: refactoring away the compute-global-sets word

9 years agocompiler.cfg.*: docs and more tests
Björn Lindqvist [Sat, 27 Dec 2014 12:18:58 +0000 (13:18 +0100)]
compiler.cfg.*: docs and more tests

9 years agocompiler.cfg.stacks.local: refactoring making stack-changes and height-changes take...
Björn Lindqvist [Mon, 22 Dec 2014 04:57:53 +0000 (05:57 +0100)]
compiler.cfg.stacks.local: refactoring making stack-changes and height-changes take and return stuff instead of using variables and the make building

9 years agocompiler.cfg.parallel-copy: docs
Björn Lindqvist [Sat, 20 Dec 2014 15:10:37 +0000 (16:10 +0100)]
compiler.cfg.parallel-copy: docs

9 years agocompiler.cfg.stacks.height: these words are unused
Björn Lindqvist [Thu, 18 Dec 2014 20:33:42 +0000 (21:33 +0100)]
compiler.cfg.stacks.height: these words are unused

9 years agocompiler.cfg.*: more compiler docs
Björn Lindqvist [Thu, 18 Dec 2014 16:38:09 +0000 (17:38 +0100)]
compiler.cfg.*: more compiler docs

9 years agocompiler.cfg.stacks.finalize: initial docs
Björn Lindqvist [Thu, 18 Dec 2014 16:12:41 +0000 (17:12 +0100)]
compiler.cfg.stacks.finalize: initial docs

9 years agoio.launcher: fix stack effects.
John Benediktsson [Wed, 31 Dec 2014 01:23:24 +0000 (17:23 -0800)]
io.launcher: fix stack effects.

9 years agoio.launcher: fix docs for with-process-reader and with-process-writer.
John Benediktsson [Tue, 30 Dec 2014 23:04:34 +0000 (15:04 -0800)]
io.launcher: fix docs for with-process-reader and with-process-writer.

9 years agoio.launcher: add versions of with-process that preserve process and status.
John Benediktsson [Tue, 30 Dec 2014 22:51:23 +0000 (14:51 -0800)]
io.launcher: add versions of with-process that preserve process and status.

9 years agomason.git: fix use.
John Benediktsson [Tue, 30 Dec 2014 22:48:21 +0000 (14:48 -0800)]
mason.git: fix use.

9 years agomason.git: fix for rename.
John Benediktsson [Tue, 30 Dec 2014 20:51:33 +0000 (12:51 -0800)]
mason.git: fix for rename.

9 years agoio.launcher: cleanup public interface, make some things private or internal.
John Benediktsson [Tue, 30 Dec 2014 18:04:09 +0000 (10:04 -0800)]
io.launcher: cleanup public interface, make some things private or internal.

9 years agogopher: set 1 minute timeout by default.
John Benediktsson [Sat, 27 Dec 2014 03:20:22 +0000 (19:20 -0800)]
gopher: set 1 minute timeout by default.

9 years agobrainfuck: cleanup tests.
John Benediktsson [Sat, 27 Dec 2014 03:20:11 +0000 (19:20 -0800)]
brainfuck: cleanup tests.

9 years agojson.writer: don't escape spaces, thats weird.
John Benediktsson [Thu, 25 Dec 2014 16:39:53 +0000 (08:39 -0800)]
json.writer: don't escape spaces, thats weird.

9 years agounix: some using cleanups.
John Benediktsson [Wed, 24 Dec 2014 19:16:11 +0000 (11:16 -0800)]
unix: some using cleanups.

9 years agopython: rename startup/shutdown hooks.
John Benediktsson [Wed, 24 Dec 2014 16:10:52 +0000 (08:10 -0800)]
python: rename startup/shutdown hooks.

9 years agomath.extras: adding the Möbius function.
John Benediktsson [Wed, 24 Dec 2014 04:08:23 +0000 (20:08 -0800)]
math.extras: adding the Möbius function.

9 years agoalien.c-types: move definitions of stdint.h from unix.types.
John Benediktsson [Wed, 24 Dec 2014 03:40:21 +0000 (19:40 -0800)]
alien.c-types: move definitions of stdint.h from unix.types.

9 years agogopher: use contents now that it works.
John Benediktsson [Wed, 24 Dec 2014 03:22:35 +0000 (19:22 -0800)]
gopher: use contents now that it works.

9 years agoio.ports: Make buffered-port not have a length because of Linux virtual files and...
Doug Coleman [Tue, 23 Dec 2014 21:47:50 +0000 (13:47 -0800)]
io.ports: Make buffered-port not have a length because of Linux virtual files and TCP sockets.
Related to issues #1256 and #1259.

9 years agotools.deploy.backend: add word for deleting cached staging images.
John Benediktsson [Tue, 23 Dec 2014 16:56:05 +0000 (08:56 -0800)]
tools.deploy.backend: add word for deleting cached staging images.

9 years agocommand-line: save the executable in a variable so that people don't use (command...
John Benediktsson [Tue, 23 Dec 2014 16:12:31 +0000 (08:12 -0800)]
command-line: save the executable in a variable so that people don't use (command-line) directly if possible.

9 years agobootstrap: fix this use of (command-line).
John Benediktsson [Tue, 23 Dec 2014 07:14:47 +0000 (23:14 -0800)]
bootstrap: fix this use of (command-line).

9 years agotools.deploy.shaker: set the rest of the args to preserve current behavior.
John Benediktsson [Tue, 23 Dec 2014 06:44:42 +0000 (22:44 -0800)]
tools.deploy.shaker: set the rest of the args to preserve current behavior.

9 years agovm: store full command-line including executable first argument.
John Benediktsson [Tue, 23 Dec 2014 06:39:52 +0000 (22:39 -0800)]
vm: store full command-line including executable first argument.

9 years agogopher: fix bug where empty lines weren't printed properly in menus.
John Benediktsson [Sun, 21 Dec 2014 17:42:54 +0000 (09:42 -0800)]
gopher: fix bug where empty lines weren't printed properly in menus.

9 years agogopher: simplify.
John Benediktsson [Sat, 20 Dec 2014 20:27:51 +0000 (12:27 -0800)]
gopher: simplify.

9 years agogopher: change gopher-text to use split1.
John Benediktsson [Sat, 20 Dec 2014 20:11:23 +0000 (12:11 -0800)]
gopher: change gopher-text to use split1.

9 years agoio.encodings.detect: simplify prolog-tag.
John Benediktsson [Sat, 20 Dec 2014 20:06:54 +0000 (12:06 -0800)]
io.encodings.detect: simplify prolog-tag.

9 years agogopher: add way to get result without converting to objects.
John Benediktsson [Sat, 20 Dec 2014 19:28:23 +0000 (11:28 -0800)]
gopher: add way to get result without converting to objects.

9 years agotools.disassembler: allow disassemble of compose and curry.
John Benediktsson [Fri, 19 Dec 2014 19:40:41 +0000 (11:40 -0800)]
tools.disassembler: allow disassemble of compose and curry.

9 years agosequences: Add some examples of head and tail with short.
Doug Coleman [Thu, 18 Dec 2014 01:41:25 +0000 (17:41 -0800)]
sequences: Add some examples of head and tail with short.

9 years agoRevert "ui.tools.browser: one browser to rule them all."
John Benediktsson [Thu, 18 Dec 2014 01:38:14 +0000 (17:38 -0800)]
Revert "ui.tools.browser: one browser to rule them all."

This reverts commit 178c8c27e83dbbe010856ac5ef03af84c6115634.

9 years agoui.tools.browser: one browser to rule them all.
John Benediktsson [Thu, 18 Dec 2014 01:30:10 +0000 (17:30 -0800)]
ui.tools.browser: one browser to rule them all.

9 years agosubrip-subtitles: Add parser for .srt files. Kind of ugly.
Doug Coleman [Thu, 18 Dec 2014 00:44:21 +0000 (16:44 -0800)]
subrip-subtitles: Add parser for .srt files. Kind of ugly.

9 years agogml.viewer: fix using.
John Benediktsson [Wed, 17 Dec 2014 22:45:31 +0000 (14:45 -0800)]
gml.viewer: fix using.

9 years agogopher: make default selector the menu.
John Benediktsson [Wed, 17 Dec 2014 22:30:31 +0000 (14:30 -0800)]
gopher: make default selector the menu.

9 years agogopher-ui: remember scroll position in history.
John Benediktsson [Wed, 17 Dec 2014 22:20:18 +0000 (14:20 -0800)]
gopher-ui: remember scroll position in history.

9 years agogopher: fix query params for searching.
John Benediktsson [Wed, 17 Dec 2014 22:12:06 +0000 (14:12 -0800)]
gopher: fix query params for searching.

9 years agogopher: don't require UI by default.
John Benediktsson [Wed, 17 Dec 2014 21:54:14 +0000 (13:54 -0800)]
gopher: don't require UI by default.

9 years agogopher-ui: adding a UI for gopher browsing.
John Benediktsson [Wed, 17 Dec 2014 21:40:11 +0000 (13:40 -0800)]
gopher-ui: adding a UI for gopher browsing.

9 years agogopher: handle query params, maybe (not tested).
John Benediktsson [Wed, 17 Dec 2014 21:38:29 +0000 (13:38 -0800)]
gopher: handle query params, maybe (not tested).

9 years agogopher: initial commit of gopher lib.
John Benediktsson [Wed, 17 Dec 2014 21:07:15 +0000 (13:07 -0800)]
gopher: initial commit of gopher lib.

9 years agoui: use control-value/set-control-value in a few places.
John Benediktsson [Wed, 17 Dec 2014 21:04:33 +0000 (13:04 -0800)]
ui: use control-value/set-control-value in a few places.

9 years agofile-picker.windows: Basic file-picker works!
Doug Coleman [Tue, 16 Dec 2014 21:44:51 +0000 (13:44 -0800)]
file-picker.windows: Basic file-picker works!

9 years agomacros: some cleanup.
John Benediktsson [Tue, 16 Dec 2014 19:09:47 +0000 (11:09 -0800)]
macros: some cleanup.

9 years agobitstreams: cleanup and fix bug in bit-writer-bytes.
John Benediktsson [Tue, 16 Dec 2014 03:28:24 +0000 (19:28 -0800)]
bitstreams: cleanup and fix bug in bit-writer-bytes.

9 years agococoa.dialogs: document save-panel stack effect better.
John Benediktsson [Tue, 16 Dec 2014 03:24:57 +0000 (19:24 -0800)]
cocoa.dialogs: document save-panel stack effect better.

9 years agofile-picker.windows: mock up some code for windows.
John Benediktsson [Mon, 15 Dec 2014 23:36:03 +0000 (15:36 -0800)]
file-picker.windows: mock up some code for windows.