Commit Graph

10749 Commits (3515a45b848a0ff2883763f17018859a4fc3311f)

Author SHA1 Message Date
John Benediktsson 17de36ddfc sorting.extras: faster map-sort. 2014-12-05 10:50:32 -08:00
John Benediktsson 31b22494a1 extra: using empty? in some places. 2014-12-04 19:13:08 -08:00
John Benediktsson 1e1646a691 combinators.extras: adding swap-when. 2014-12-03 12:03:04 -08:00
John Benediktsson 6fd908da40 use suffix! and append!. 2014-12-03 11:37:34 -08:00
John Benediktsson 3aa14d7570 heaps: faster heaps, simpler heapsort. 2014-12-01 15:16:47 -08:00
John Benediktsson 937f575735 heaps: change slurp-heap to slurp keys and values. 2014-12-01 15:14:25 -08:00
John Benediktsson ab3f3173af change errors to use "object" instead of "obj". 2014-12-01 08:04:49 -08:00
Björn Lindqvist 3fc1842ac5 tools.gc-decode.tests: if the #1227 test failure happens again, you now get informativer output 2014-12-01 07:12:14 -08:00
John Benediktsson 76761b2e59 more minor cleanup. 2014-11-30 19:26:23 -08:00
John Benediktsson c8feb479cb variants: simplify M\ variant-class initial-value*. 2014-11-30 09:07:11 -08:00
John Benediktsson e12d4fba4c using crlf. 2014-11-30 08:48:28 -08:00
John Benediktsson 818f337b02 cleanup "over push" is "suffix!". 2014-11-30 08:38:59 -08:00
Doug Coleman 6dac68d593 html.parser: Strip trailing slashes / in html tags. Add unit test. Fixes #1233. 2014-11-30 09:33:39 -06:00
John Benediktsson 4b1690b9c1 models: some more cleanup. 2014-11-29 23:00:24 -08:00
John Benediktsson e41dea63e7 elf: some cleanup and minor performance improvements. 2014-11-29 19:04:04 -08:00
John Benediktsson d21ce7aa1c sorting.bubble: loop up to last changed index. 2014-11-29 18:36:46 -08:00
John Benediktsson 0d3fc9d976 sorting.bubble: adding Bubblesort. 2014-11-29 18:18:59 -08:00
John Benediktsson bcbd6c55e4 extra: "1 tail" is rest. 2014-11-29 17:44:43 -08:00
John Benediktsson 921e995ed9 math.binpack: faster by storing only items, not weights. 2014-11-29 17:35:01 -08:00
John Benediktsson 49bcbaee7a removing small and unnecessary files. 2014-11-29 17:24:42 -08:00
John Benediktsson 43fcee0d75 math.binpack: cleanup using. 2014-11-29 15:57:30 -08:00
John Benediktsson c4125ad96a math.binpack: make binpacking much faster by caching total weight per bin. 2014-11-29 15:54:14 -08:00
John Benediktsson 761be328a6 extra: using "swap index". 2014-11-29 11:25:42 -08:00
John Benediktsson 7379741b54 z-algorithm: slightly faster by allocating and using an array. 2014-11-28 10:19:10 -08:00
Doug Coleman 20add9544a compiler.cfg: cfg>insns has to go in linearization because of bootstrap circularity. Fix usings. 2014-11-23 22:53:27 -08:00
Björn Lindqvist 07178e16d5 tools.gc-decode: tests now get invariants from the compiler instead of hardcoding them 2014-11-24 06:27:19 +01:00
John Benediktsson 1f1f8d9839 tools.gc-decode: fix (again) for 64-bit. 2014-11-23 07:31:37 -08:00
John Benediktsson d65876021b tools.gc-decode: fix for 64-bit. 2014-11-23 07:13:30 -08:00
John Benediktsson 048ed1e5fd tools.gc-decode: fix for 32-bit. 2014-11-23 07:12:10 -08:00
Doug Coleman 339c73737b reddit: Add more slots that cause it to fail. There has to be a better way! 2014-11-23 02:40:26 -08:00
Björn Lindqvist 422c4b2051 splitting: new word split-indices, it's useful compiler.cfg.scheduling so let's add it to the splitting vocab too 2014-11-22 17:31:38 -08:00
Björn Lindqvist 96396cb3ad compiler.*: use block>cfg and insns>block in many tests instead of wordier code 2014-11-22 17:31:38 -08:00
Doug Coleman bc12a60a49 forestdb: fdb-handle -> fdb-kvs-handle. etc. 2014-11-21 23:58:26 -08:00
John Benediktsson 44f31ee13e use swapd instead of [ swap ] dip. 2014-11-21 11:56:17 -08:00
John Benediktsson 39093727b1 libc: rename (io-error) to throw-errno. 2014-11-21 09:29:45 -08:00
John Benediktsson 45c5213a5b alien.cxx.demangle.libstdcxx: fix using list. 2014-11-21 06:57:43 -08:00
John Benediktsson 115511038d libc: removing &(free) and |(free) destructors which aren't really used. 2014-11-20 19:51:10 -08:00
John Benediktsson 0ba693b3fa cuda.memory: use binary-object. 2014-11-20 18:41:19 -08:00
Doug Coleman 8c95cddc08 pcre.ffi: Use pcre.dll on Windows. 2014-11-18 13:51:29 -08:00
Björn Lindqvist 8b09038e2f project-euler: [ + ] 2map -> v+ 2014-11-17 19:02:12 -08:00
Björn Lindqvist 61ba941740 math.vectors: changes so that some vocabs that can use math.vector words does it 2014-11-17 19:02:12 -08:00
Björn Lindqvist 001acde590 math.vectors: new word v>integer = [ >integer ] map 2014-11-17 19:02:12 -08:00
Björn Lindqvist 45ef36e42c fuel.xref: refactor of normalize-loc and group-xrefs per mrjbq7s comments 2014-11-17 19:00:32 -08:00
Björn Lindqvist 2b1e080ccd FUEL: big refactoring of fuel-xref-mode and the fuel.xref vocab
The big difference is that links to words are now grouped by vocab and
sorted alphabetically which I think makes *fuel xref* much more usable
when you have lots of words in the list
2014-11-17 19:00:32 -08:00
Björn Lindqvist bc3a6660b8 FUEL: words-matching outputs an assoc so pick only the keys which are the words + test 2014-11-17 19:00:32 -08:00
Doug Coleman df1b9dffe0 forestdb: Update forestdb api.
Fix opening snapshots -- use -1 as parameter.
2014-11-17 08:48:21 -08:00
John Benediktsson ef6b2e231f mason: cleanup usings and misc stuff. 2014-11-15 16:20:49 -08:00
John Benediktsson b7ed0a431c basis/extra: cleanup some platform requires. 2014-11-15 14:25:12 -08:00
John Benediktsson de179243ce basis/extra: cleanup uses of add-library. 2014-11-13 13:05:14 -08:00
John Benediktsson 2b32e31ad2 readline-listener: print version-info. 2014-11-13 13:02:30 -08:00
John Benediktsson d6b6f3893d basis/extra: switch to "vocab." os name>> append require. 2014-11-13 13:00:44 -08:00
John Benediktsson 4154f25c58 magic.ffi: add platforms.txt. 2014-11-13 09:37:32 -08:00
John Benediktsson 3a0c04340e Revert "alien.libraries.finder: using find-library for some often missing libs"
This reverts commit a6b3f50e2c.

Conflicts:
	basis/gtk/ffi/ffi.factor
2014-11-13 09:33:30 -08:00
John Benediktsson 9f44b1c37a xkcd: need to html-unescape. 2014-11-12 19:44:25 -08:00
John Benediktsson 4fce958402 xkcd: fix comic-text. 2014-11-12 19:41:58 -08:00
John Benediktsson 760126525b basis/extra: fix using for map-index move back to sequences. 2014-11-11 18:00:44 -08:00
John Benediktsson be25dc2b7e Revert "tools.gc-decode: Dumb fix for zip change."
This reverts commit 4c1f7451a4.
2014-11-11 17:56:35 -08:00
Doug Coleman 114342a799 forestdb: Fix platforms.txt 2014-11-10 20:32:48 -08:00
Doug Coleman 114afdaaf7 forestdb.lib: Fix resource usage and cleanup. Reenable some snapshot tests but they expose bugs in forestdb, I think. 2014-11-10 19:10:36 -08:00
Doug Coleman 80f53ac954 forestdb.utils: Move utility words for tests into own vocab. 2014-11-10 19:10:35 -08:00
Doug Coleman a58dbdabb2 forestdb.lib: Remove concept of handle pair. 2014-11-10 19:10:35 -08:00
Doug Coleman 089b6e2570 forestdb.lib: Add byseq mapper and unit test some deletion. 2014-11-10 19:10:35 -08:00
Doug Coleman 89c33e9e30 forestdb.lib: Adding code to do compaction. 2014-11-10 19:10:35 -08:00
Doug Coleman bc25858a4e forestdb.paths: Add words for messing around with forestdb paths. 2014-11-10 19:10:35 -08:00
Doug Coleman 4c1f7451a4 tools.gc-decode: Dumb fix for zip change. 2014-11-08 22:32:50 -08:00
Doug Coleman 7cfa9d9518 assocs: Make map-index-as support seq or assoc exemplars and move map-index, map-index-as to assocs because they need to use new-assoc. Make zip-index-as support assoc exemplars. Fix up docs and tests.
assocs.extras: Remove zip-as and move tests to assocs.
2014-11-08 18:18:00 -08:00
Doug Coleman 56f1b87a6f basis, extra: Use zip-index. 2014-11-08 00:46:30 -08:00
Doug Coleman 590cde5617 forestdb.ffi: Fix up api. 2014-11-07 15:33:48 -08:00
Doug Coleman c4be743bbe forestdb: Update for new api changes. Fix some unit tests, they look better now. 2014-11-07 13:06:53 -08:00
Doug Coleman bfd8771081 forestdb.lib: Must close with WAL commit or else data gets lost on next open. 2014-11-07 12:34:07 -08:00
Doug Coleman 24c6bbc2a8 forestdb.lib: iterator needs to call free on docs. 2014-11-07 02:23:19 -08:00
Doug Coleman 2f2cd7b299 forestdb.lib: fdb_doc has to be malloc'd. Iterators have to fdb_doc_free docs. Add with-doc and with-create-doc combinators. Unit testing fdb-get etc. 2014-11-07 01:56:37 -08:00
Doug Coleman 9348cb48ef forestdb.lib: Relax our expectations of ALIEN: slots and save other slots to doc tuple. 2014-11-06 20:20:39 -08:00
Doug Coleman ef743f3b90 forestdb: Add iteration by seq-num. Add tests for iteration by seq-num.
Document potential bugs.
2014-11-06 19:06:59 -08:00
Doug Coleman 76b14d1bea forestdb.ffi: Make fdb_iterator_opt_t its own type and remove comment.
forestdb.lib: Implement iterators and some related stuff.
Document possible bugs for now.
forestdb.lib-tests: Test iterators.
2014-11-06 18:33:51 -08:00
Doug Coleman 046e815a8c forestdb: Support snapshots and rollbacks, change how with-forestdb works. Unit test things. 2014-11-06 17:01:58 -08:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
Doug Coleman 0b72a51cb3 forestdb: Support more api calls. 2014-11-05 10:04:09 -08:00
Benjamin Pollack 3359e9716b Link to the Python binding documentation from the Python vocabulary 2014-11-04 16:01:51 -08:00
Doug Coleman f6d28bebc8 extra: Update usages of CONSTRUCTOR: for new parameter. 2014-11-04 15:59:13 -08:00
Doug Coleman 73bd47f639 constructors: Unify C:, CONSTRUCTOR:, NAMED-CONSTRUCTOR:, and DEFAULT-CONSTRUCTOR: by requiring the class name after the constructor word name.
example: CONSTRUCTOR: <foo> foo ( stack effect -- obj ) ;

The benefit is that we can now search for <foo> by name and it's not auto-generated--less magic. Also, there are fewer kinds of constructors.

Rename CONSTRUCTOR-SYNTAX: to SLOT-CONSTRUCTOR: since it's more descriptive.
2014-11-04 15:56:23 -08:00
Björn Lindqvist db88ae8d30 fuel: get-vocabs word is redundant 2014-11-04 07:40:16 -08:00
Doug Coleman e5ee876dc5 forestdb.lib: use returned length since strings dont seem to be null terminated. 2014-11-04 00:39:05 -08:00
Doug Coleman d5834dd7c6 forestdb.lib: Fix file name for test db. 2014-11-04 00:19:45 -08:00
Doug Coleman 9905b52f15 forestdb: Fix platforms.txt 2014-11-03 18:10:17 -08:00
Doug Coleman 0cb9ae0fb4 forestdb: Make an ffi binding and a basic lib wrapper that can save a key/document and retrieve it by key. 2014-11-03 16:51:47 -08:00
John Benediktsson eb3ca17974 tar: cleanup stack effects, make read-data-blocks recursive. 2014-11-02 11:38:49 -08:00
John Benediktsson d31d836f86 tar: cleanup stack effects, minor things. 2014-11-02 10:32:53 -08:00
Doug Coleman d11737ac8e tar: Fix comment, just trim tail. 2014-11-02 09:54:01 -08:00
Doug Coleman cbe72a7605 tar: Couple of optimizations. 2014-11-01 23:12:25 -07:00
Doug Coleman fb09b8c69c zeromq: Opaque unit tests that keep failing are bad. Change to something
we can debug.
2014-11-01 13:19:53 -07:00
Doug Coleman 44e7c9b142 imap: Use uuids instead of random numbers. 2014-11-01 11:36:43 -07:00
Doug Coleman d5ad435914 imap: linux-x64.64/foo existed, so we couldn't delete linux-x64.64/ for some reason.
Delete like crazypeople.
Memoize _my_ random number. Hopefully tests are robust now?
2014-10-31 22:39:16 -07:00
John Benediktsson 6d6303010f python.objects: use flags{ } for flags. 2014-10-31 11:35:15 -07:00
Björn Lindqvist 929fca6b7e python: both METH_VARARGS METH_KEYWORDS needed in ml_flags should fix #1171 2014-10-31 10:48:55 -07:00
Björn Lindqvist 8cbfaa9450 python.objects: fix <py-cfunction> need to malloc-struct PyMethodDef 2014-10-27 19:38:27 -07:00
Doug Coleman 60f7197134 python: Fix >py stack effect for docs. 2014-10-27 11:33:59 -07:00
Björn Lindqvist 584e9c5ce2 python.syntax: new way to bind python functions to factor words and updated tests
this way avoids binding literal alien values inside the words which is
just wrong. the hardcoded alien addresses goes "out of sync" when
factor is restarded and causes crashes.
2014-10-27 09:52:04 -07:00
Björn Lindqvist f0b07540d3 python.tests: more destructors & refcounting tests 2014-10-27 09:52:04 -07:00
Björn Lindqvist e819e34cec python.modules: vocab hierarchy for standard library modules
pre-existing bindings for various python modules can be placed here so
that they dont have to be redeclared for everyone using them
2014-10-27 09:52:04 -07:00