]> gitweb.factorcode.org Git - factor.git/log
factor.git
9 years agoFactor.app: update copyright.
John Benediktsson [Wed, 1 Apr 2015 21:59:23 +0000 (14:59 -0700)]
Factor.app: update copyright.

9 years agorobohash: adding a robot-based hashing tool.
John Benediktsson [Wed, 1 Apr 2015 21:56:23 +0000 (14:56 -0700)]
robohash: adding a robot-based hashing tool.

9 years agotools.echo: adding "echo" tool.
John Benediktsson [Wed, 1 Apr 2015 21:51:32 +0000 (14:51 -0700)]
tools.echo: adding "echo" tool.

9 years agotools.grep: adding "grep" tool.
John Benediktsson [Wed, 1 Apr 2015 21:41:41 +0000 (14:41 -0700)]
tools.grep: adding "grep" tool.

9 years agotools.uniq: adding "uniq" tool.
John Benediktsson [Wed, 1 Apr 2015 21:37:53 +0000 (14:37 -0700)]
tools.uniq: adding "uniq" tool.

9 years agotools.tree: adding "tree" tool.
John Benediktsson [Wed, 1 Apr 2015 21:37:39 +0000 (14:37 -0700)]
tools.tree: adding "tree" tool.

9 years agotools.seq: adding "seq" tool.
John Benediktsson [Wed, 1 Apr 2015 21:37:00 +0000 (14:37 -0700)]
tools.seq: adding "seq" tool.

9 years agotools.move: adding "move" tool.
John Benediktsson [Wed, 1 Apr 2015 21:31:02 +0000 (14:31 -0700)]
tools.move: adding "move" tool.

9 years agotools.copy: adding "copy" tool.
John Benediktsson [Wed, 1 Apr 2015 21:30:49 +0000 (14:30 -0700)]
tools.copy: adding "copy" tool.

9 years agotools.cat: adding "cat" tool.
John Benediktsson [Wed, 1 Apr 2015 21:26:22 +0000 (14:26 -0700)]
tools.cat: adding "cat" tool.

9 years agotools.which: enable use from command-line.
John Benediktsson [Wed, 1 Apr 2015 21:22:11 +0000 (14:22 -0700)]
tools.which: enable use from command-line.

9 years agotools.dns: enable use from command-line.
John Benediktsson [Wed, 1 Apr 2015 21:18:31 +0000 (14:18 -0700)]
tools.dns: enable use from command-line.

9 years agometar: adding METAR and TAF weather parsers.
John Benediktsson [Wed, 1 Apr 2015 21:07:40 +0000 (14:07 -0700)]
metar: adding METAR and TAF weather parsers.

9 years agotext-to-speech: simple cross-platform text-to-speech.
John Benediktsson [Wed, 1 Apr 2015 21:05:55 +0000 (14:05 -0700)]
text-to-speech: simple cross-platform text-to-speech.

9 years agotext-to-pdf: simple text to pdf utility
John Benediktsson [Wed, 1 Apr 2015 21:05:01 +0000 (14:05 -0700)]
text-to-pdf: simple text to pdf utility

9 years agopicomath: implementation of picomath.org small math words.
John Benediktsson [Wed, 1 Apr 2015 21:03:53 +0000 (14:03 -0700)]
picomath: implementation of picomath.org small math words.

9 years agoflip-text: fun with text flipping.
John Benediktsson [Wed, 1 Apr 2015 21:03:09 +0000 (14:03 -0700)]
flip-text: fun with text flipping.

9 years agoenigma: implementation of Enigma cipher machine.
John Benediktsson [Wed, 1 Apr 2015 20:57:25 +0000 (13:57 -0700)]
enigma: implementation of Enigma cipher machine.

9 years agocolors.flex-hex: implementation of "flex hex" color algorithm.
John Benediktsson [Wed, 1 Apr 2015 20:55:39 +0000 (13:55 -0700)]
colors.flex-hex: implementation of "flex hex" color algorithm.

9 years agoforestdb.ffi: Update for latest ffi changes.
Doug Coleman [Fri, 27 Mar 2015 20:32:48 +0000 (13:32 -0700)]
forestdb.ffi: Update for latest ffi changes.

9 years agohttp.parsers: parse a "simple request".
John Benediktsson [Thu, 12 Mar 2015 00:48:03 +0000 (17:48 -0700)]
http.parsers: parse a "simple request".

9 years agogrowable: Multiply growable size by 2 instead of 3 when growing.
Doug Coleman [Wed, 11 Mar 2015 23:53:20 +0000 (16:53 -0700)]
growable: Multiply growable size by 2 instead of 3 when growing.
http://stackoverflow.com/questions/1100311/what-is-the-ideal-growth-rate-for-a-dynamically-allocated-array
Fixes #1284.

9 years agogobject.ffi: fix windows dll name.
John Benediktsson [Sun, 8 Mar 2015 15:51:53 +0000 (08:51 -0700)]
gobject.ffi: fix windows dll name.

9 years agowebsites.factorcode: fix <br> so maybe our string>xml example works.
John Benediktsson [Tue, 3 Mar 2015 15:12:22 +0000 (07:12 -0800)]
websites.factorcode: fix <br> so maybe our string>xml example works.

9 years agoxml.writer: adding a test for pprint-xml fix.
John Benediktsson [Sun, 1 Mar 2015 00:40:13 +0000 (16:40 -0800)]
xml.writer: adding a test for pprint-xml fix.

9 years agoxml.data: fix issue with empty tags not being printed use shortened <tag/> format.
John Benediktsson [Sun, 1 Mar 2015 00:00:00 +0000 (16:00 -0800)]
xml.data: fix issue with empty tags not being printed use shortened <tag/> format.

9 years agoxml.data: adding tests for tags assoc protocol.
John Benediktsson [Sat, 28 Feb 2015 23:37:06 +0000 (15:37 -0800)]
xml.data: adding tests for tags assoc protocol.

9 years agoxml.data: make tags support assoc protocol as documented.
John Benediktsson [Sat, 28 Feb 2015 23:34:24 +0000 (15:34 -0800)]
xml.data: make tags support assoc protocol as documented.

9 years agoVM: new function visit_object to replace trace_object
Björn Lindqvist [Sat, 28 Feb 2015 20:43:48 +0000 (20:43 +0000)]
VM: new function visit_object to replace trace_object

9 years agoVM: refactoring to remove redundancy in retainstack|datastack_to_array
Björn Lindqvist [Sat, 28 Feb 2015 19:41:32 +0000 (19:41 +0000)]
VM: refactoring to remove redundancy in retainstack|datastack_to_array

9 years agoVM: cleanup of some infrequently used functions that can be replaced with direct...
Björn Lindqvist [Mon, 23 Feb 2015 16:11:09 +0000 (16:11 +0000)]
VM: cleanup of some infrequently used functions that can be replaced with direct code

also replacing some bitshifts with easier to understand multiplies and
divides, they are equally fast nowadays

9 years agoVM: splits out the little ugly scan_next-object + goto-loop into a function trace_card()
Björn Lindqvist [Mon, 23 Feb 2015 13:40:48 +0000 (13:40 +0000)]
VM: splits out the little ugly scan_next-object + goto-loop into a function trace_card()

9 years agoVM: simplification of the trace_partial_objects function
Björn Lindqvist [Sun, 22 Feb 2015 18:38:05 +0000 (18:38 +0000)]
VM: simplification of the trace_partial_objects function

9 years agoVM: the unmarker classes are not needed, easier to just send the unmask pattern to...
Björn Lindqvist [Sat, 21 Feb 2015 13:08:40 +0000 (13:08 +0000)]
VM: the unmarker classes are not needed, easier to just send the unmask pattern to the trace_cards function directly

9 years agoVM: new function visit_mark_stack() to factor out the mark stack iteration
Björn Lindqvist [Thu, 19 Feb 2015 13:43:54 +0000 (13:43 +0000)]
VM: new function visit_mark_stack() to factor out the mark stack iteration

9 years agoVM: it's confusing that slot_visitors are called "workhorse" sometimes, let's standar...
Björn Lindqvist [Thu, 19 Feb 2015 04:51:45 +0000 (04:51 +0000)]
VM: it's confusing that slot_visitors are called "workhorse" sometimes, let's standardize the name "visitor"

9 years agoVM: visit_roots and visit_contexts where always called in tandem, make a new method...
Björn Lindqvist [Thu, 19 Feb 2015 04:43:53 +0000 (04:43 +0000)]
VM: visit_roots and visit_contexts where always called in tandem, make a new method visit_all_roots that calls them both

9 years agoAdding help for <model-field> and <action-field>.
Mark Green [Sat, 21 Feb 2015 20:45:01 +0000 (20:45 +0000)]
Adding help for <model-field> and <action-field>.

9 years agoimages.tiff: Fix partial refactor rollback and offeset typo.
Doug Coleman [Sat, 14 Feb 2015 04:53:36 +0000 (20:53 -0800)]
images.tiff: Fix partial refactor rollback and offeset typo.

9 years agoimages.tiff: Fix infinite loop bug exposed by AFL test suite. IDFs are found at certa...
Doug Coleman [Fri, 13 Feb 2015 22:58:18 +0000 (14:58 -0800)]
images.tiff: Fix infinite loop bug exposed by AFL test suite. IDFs are found at certain offsets, then the next offset is after the IDF. If a next-offset is its own previous offset, then it would loop. Now we record the offset and stop if it would loop.

9 years agoalien.libraries: Cannot include alien.libraries.finder here for docs.
Doug Coleman [Fri, 13 Feb 2015 19:31:56 +0000 (11:31 -0800)]
alien.libraries: Cannot include alien.libraries.finder here for docs.

9 years agoExplicitly reference find-library in alien docs
Benjamin Pollack [Wed, 11 Feb 2015 12:21:50 +0000 (07:21 -0500)]
Explicitly reference find-library in alien docs

Factor 0.98 added a great find-library library, but unless you already know it
exists, you're probably not going to discover it.  This attempts to help with
that by adding a few cross-references with the add-library word and the main
alien article.

9 years agoFix typo in hash-set documentation
Benjamin Pollack [Wed, 11 Feb 2015 01:30:40 +0000 (20:30 -0500)]
Fix typo in hash-set documentation

9 years agoopencl: remove <size_t> (use size_t <ref> instead).
John Benediktsson [Sun, 8 Feb 2015 23:45:42 +0000 (15:45 -0800)]
opencl: remove <size_t> (use size_t <ref> instead).

9 years agoforestdb.ffi: Update ffi.
Doug Coleman [Tue, 10 Feb 2015 22:52:33 +0000 (14:52 -0800)]
forestdb.ffi: Update ffi.

9 years agoforestdb: Embrace the forestdb handle vs kvs handle idiom. Update tests.
Doug Coleman [Tue, 10 Feb 2015 22:21:21 +0000 (14:21 -0800)]
forestdb: Embrace the forestdb handle vs kvs handle idiom. Update tests.

9 years agostack-checker.state: Fix error in docs. Tweak doc grammar.
Doug Coleman [Thu, 5 Feb 2015 21:49:14 +0000 (13:49 -0800)]
stack-checker.state: Fix error in docs. Tweak doc grammar.

9 years agobootstrap.image.upload: Use pscp on Windows for uploading boot images
Doug Coleman [Thu, 5 Feb 2015 21:43:49 +0000 (13:43 -0800)]
bootstrap.image.upload: Use pscp on Windows for uploading boot images
since c:\ paths are treated as hostnames and the command fails.

9 years agostack-checker: minor help-lint fixes.
John Benediktsson [Thu, 5 Feb 2015 15:22:15 +0000 (07:22 -0800)]
stack-checker: minor help-lint fixes.

9 years agocompiler.tree.*: more compiler tree docs 1280/head
Björn Lindqvist [Thu, 5 Feb 2015 10:49:39 +0000 (10:49 +0000)]
compiler.tree.*: more compiler tree docs

9 years agostack-checker.*: misc doc additions
Björn Lindqvist [Thu, 5 Feb 2015 10:36:44 +0000 (10:36 +0000)]
stack-checker.*: misc doc additions

9 years agostack-checker.known-words: docs and tests
Björn Lindqvist [Thu, 5 Feb 2015 10:35:35 +0000 (10:35 +0000)]
stack-checker.known-words: docs and tests

9 years agostack-checker.values: docs and tests
Björn Lindqvist [Thu, 5 Feb 2015 10:21:07 +0000 (10:21 +0000)]
stack-checker.values: docs and tests

9 years agostack-checker.state: docs and tests
Björn Lindqvist [Thu, 5 Feb 2015 10:07:35 +0000 (10:07 +0000)]
stack-checker.state: docs and tests

9 years agostack-checker.backend: docs and tests
Björn Lindqvist [Thu, 5 Feb 2015 09:58:36 +0000 (09:58 +0000)]
stack-checker.backend: docs and  tests

9 years agoMake fuel more discoverable when browsing Factor help
Benjamin Pollack [Tue, 3 Feb 2015 23:00:20 +0000 (18:00 -0500)]
Make fuel more discoverable when browsing Factor help

9 years agoAdd more documentation to sequences.extras 1277/head
Benjamin Pollack [Tue, 3 Feb 2015 01:11:30 +0000 (20:11 -0500)]
Add more documentation to sequences.extras

9 years agotools.gc-decode: Remove duplicate line/dumb fix, maybe it was bootstrapping that...
Doug Coleman [Sat, 31 Jan 2015 23:11:57 +0000 (15:11 -0800)]
tools.gc-decode: Remove duplicate line/dumb fix, maybe it was bootstrapping that actually
 fixed it.

9 years agoFix some minor errors in help-lint.
John Benediktsson [Fri, 30 Jan 2015 21:34:37 +0000 (13:34 -0800)]
Fix some minor errors in help-lint.

9 years agoAdd more documentation for math.statistics
Benjamin Pollack [Fri, 30 Jan 2015 13:20:50 +0000 (08:20 -0500)]
Add more documentation for math.statistics

9 years agoAdd more documentation for sequences.extras
Benjamin Pollack [Fri, 30 Jan 2015 12:50:43 +0000 (07:50 -0500)]
Add more documentation for sequences.extras

9 years agogc-decode: Fix test for win64.
Doug Coleman [Fri, 30 Jan 2015 23:50:53 +0000 (15:50 -0800)]
gc-decode: Fix test for win64.

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()