]> gitweb.factorcode.org Git - factor.git/log
factor.git
8 years agounix: don't need << >>.
John Benediktsson [Wed, 29 Jul 2015 02:23:54 +0000 (19:23 -0700)]
unix: don't need << >>.

8 years agomath.floats.env: don't need << >>.
John Benediktsson [Wed, 29 Jul 2015 02:23:43 +0000 (19:23 -0700)]
math.floats.env: don't need << >>.

8 years agoui: cleanup some usings.
John Benediktsson [Wed, 29 Jul 2015 02:14:14 +0000 (19:14 -0700)]
ui: cleanup some usings.

8 years agoui.images: don't need to << >>.
John Benediktsson [Wed, 29 Jul 2015 02:14:01 +0000 (19:14 -0700)]
ui.images: don't need to << >>.

8 years agoui.commands: don't need to \ .
John Benediktsson [Wed, 29 Jul 2015 02:13:43 +0000 (19:13 -0700)]
ui.commands: don't need to \ .

8 years agoio.backend.unix.macosx: change USE: to require.
John Benediktsson [Wed, 29 Jul 2015 02:13:29 +0000 (19:13 -0700)]
io.backend.unix.macosx: change USE: to require.

8 years agoalien.libraries: don't need << >>.
John Benediktsson [Wed, 29 Jul 2015 02:13:13 +0000 (19:13 -0700)]
alien.libraries: don't need << >>.

8 years agodisjoint-sets: some cleanup.
John Benediktsson [Wed, 29 Jul 2015 01:14:20 +0000 (18:14 -0700)]
disjoint-sets: some cleanup.

8 years agojson.reader: fix segfault when parsing non-JSON documents.
John Benediktsson [Wed, 29 Jul 2015 01:10:24 +0000 (18:10 -0700)]
json.reader: fix segfault when parsing non-JSON documents.

8 years agojson.reader: enforce json> takes a string.
John Benediktsson [Wed, 29 Jul 2015 01:02:57 +0000 (18:02 -0700)]
json.reader: enforce json> takes a string.

8 years agocompiler.cfg.*: tests against #1308
Björn Lindqvist [Tue, 28 Jul 2015 22:44:06 +0000 (00:44 +0200)]
compiler.cfg.*: tests against #1308

8 years agocompiler.cfg.ssa.destruction.coalescing: refactor and maybe a fix for #1308
Björn Lindqvist [Tue, 28 Jul 2015 21:18:01 +0000 (23:18 +0200)]
compiler.cfg.ssa.destruction.coalescing: refactor and maybe a fix for #1308

the eliminatable-copy? word is the fix. the previous code only checked
that the registers had the same register class, but you also need to
check that they dont have the same representation size. because a copy
from double-rep -> double-2-rep is not eliminatable

8 years agocompiler.cfg.*: some extra unit tests for the compiler
Björn Lindqvist [Tue, 28 Jul 2015 21:15:21 +0000 (23:15 +0200)]
compiler.cfg.*: some extra unit tests for the compiler

8 years agocompiler.cfg.ssa.destruction.coalescing: simpler code for setting up the
Björn Lindqvist [Tue, 28 Jul 2015 18:39:51 +0000 (20:39 +0200)]
compiler.cfg.ssa.destruction.coalescing: simpler code for setting up the
initial leader-map and class-element-map

8 years agocpu.x86: define %alien-invoke and %alien-indirect using %alien-assembly
Björn Lindqvist [Mon, 27 Jul 2015 21:44:59 +0000 (23:44 +0200)]
cpu.x86: define %alien-invoke and %alien-indirect using %alien-assembly

8 years agoDocs: various more compiler-related docs
Björn Lindqvist [Mon, 27 Jul 2015 09:35:19 +0000 (11:35 +0200)]
Docs: various more compiler-related docs

8 years agocompiler.cfg.representations.selection: use a union instead of a generic
Björn Lindqvist [Mon, 27 Jul 2015 09:26:48 +0000 (11:26 +0200)]
compiler.cfg.representations.selection: use a union instead of a generic
to see if an insn is peephole-optimizable + test

8 years agocompiler.tree.*: new docs
Björn Lindqvist [Mon, 27 Jul 2015 09:22:17 +0000 (11:22 +0200)]
compiler.tree.*: new docs

8 years agocompiler.cfg.*: even more docs
Björn Lindqvist [Mon, 27 Jul 2015 09:11:49 +0000 (11:11 +0200)]
compiler.cfg.*: even more docs

8 years agocompiler.tree.escape-analysis.*: new doc files
Björn Lindqvist [Sun, 26 Jul 2015 18:40:50 +0000 (20:40 +0200)]
compiler.tree.escape-analysis.*: new doc files

8 years agocompiler.tree.escape-analysis.allocations: stub doc file from comments
Björn Lindqvist [Sun, 26 Jul 2015 18:37:24 +0000 (20:37 +0200)]
compiler.tree.escape-analysis.allocations: stub doc file from comments

8 years agocompiler.cfg.*: a bunch of docs updates
Björn Lindqvist [Sun, 26 Jul 2015 18:32:12 +0000 (20:32 +0200)]
compiler.cfg.*: a bunch of docs updates

8 years agocompiler.cfg.representations.selection: some initial docs from comments
Björn Lindqvist [Sun, 26 Jul 2015 16:14:59 +0000 (18:14 +0200)]
compiler.cfg.representations.selection: some initial docs from comments

8 years agocompiler.cfg.linear-scan.live-intervals: simpler code for finding the
Björn Lindqvist [Sun, 26 Jul 2015 15:56:29 +0000 (17:56 +0200)]
compiler.cfg.linear-scan.live-intervals: simpler code for finding the
sync points in the cfg

8 years agocompiler.cfg.instructions: ##read -> read-insn and ##write -> write-insn
Björn Lindqvist [Thu, 23 Jul 2015 08:11:24 +0000 (10:11 +0200)]
compiler.cfg.instructions: ##read -> read-insn and ##write -> write-insn

8 years agocompiler.cfg.instructions: rename ##allocation to allocation-insn,
Björn Lindqvist [Thu, 23 Jul 2015 08:08:10 +0000 (10:08 +0200)]
compiler.cfg.instructions: rename ##allocation to allocation-insn,
because it's nicer if all instruction unions have the -insn suffix and
the ## prefix is reserved for tuples

8 years agomath.statistics: fix docs
Doug Coleman [Mon, 27 Jul 2015 19:41:02 +0000 (12:41 -0700)]
math.statistics: fix docs

8 years agocore: rename parse-call( to parse-call-paren
Doug Coleman [Mon, 27 Jul 2015 16:53:10 +0000 (09:53 -0700)]
core: rename parse-call( to parse-call-paren

8 years agomath.statistics: clean up some weird stack effects
Doug Coleman [Mon, 27 Jul 2015 16:52:31 +0000 (09:52 -0700)]
math.statistics: clean up some weird stack effects

8 years agoui.gadgets.panes: don't use extract-keys, don't clone twice in specified-font.
John Benediktsson [Mon, 27 Jul 2015 15:42:42 +0000 (08:42 -0700)]
ui.gadgets.panes: don't use extract-keys, don't clone twice in specified-font.

8 years agoui.gadgets.sliders: rename slider-pen-tuple to slider-pen.
John Benediktsson [Mon, 27 Jul 2015 15:41:01 +0000 (08:41 -0700)]
ui.gadgets.sliders: rename slider-pen-tuple to slider-pen.

8 years agoui.gadgets.grids: rename grid-layout-tuple to grid-layout.
John Benediktsson [Mon, 27 Jul 2015 15:40:30 +0000 (08:40 -0700)]
ui.gadgets.grids: rename grid-layout-tuple to grid-layout.

8 years agobootstrap: cleanup usings.
John Benediktsson [Mon, 27 Jul 2015 04:20:55 +0000 (21:20 -0700)]
bootstrap: cleanup usings.

8 years agomath.integers, comment and simplify bignum/f
Jon Harper [Sun, 26 Jul 2015 19:11:29 +0000 (21:11 +0200)]
math.integers, comment and simplify bignum/f

change the "while" that could only execute once to "when"
change the f/loop word name to "mantissa-and-guard" since it's what it
computes
change the check against 2^53 to be explicit

8 years agomath.integers, bignum/f, improve performance.
Jon Harper [Sun, 26 Jul 2015 16:07:10 +0000 (18:07 +0200)]
math.integers, bignum/f, improve performance.

This changes avoids looping many times if the denominator is a power of
2. After this change, the implementation matches the linked sbcl
algorithm.  This was probably a mistake done when porting the algorithm.
Basically, as an optimization, all trailing zeros are removed from the
base2 representation of the denominator to have smaller bignums to
divide. But the previous factor implementation didn't take this into
account when making the initial guess of the shift of the numerator to
obtain a result in the range [2^54-1,2^53]. The loop would then correct
the initial guess by a factor of 2 at each iteration, so it would run as
many iteration as the denominator base2 power reduction, instead of only
a few times. For pathological cases, the speed up is huge (10^4):
1 1000 2^ bignum/f

8 years agomath.integers, fix bignum/f for results in ]0x1.0p-1022,0x0.4p-1022]
Jon Harper [Sun, 26 Jul 2015 15:53:42 +0000 (17:53 +0200)]
math.integers, fix bignum/f for results in ]0x1.0p-1022,0x0.4p-1022]

8 years agomath.vectors.conversion: [foo] for words that make quots is ok, but [[foo]] is overbo...
Doug Coleman [Sun, 26 Jul 2015 19:24:23 +0000 (12:24 -0700)]
math.vectors.conversion: [foo] for words that make quots is ok, but [[foo]] is overboard. change to ([foo])

8 years agofix a couple string escapes.
John Benediktsson [Sun, 26 Jul 2015 15:32:40 +0000 (08:32 -0700)]
fix a couple string escapes.

8 years agofactor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping ...
Doug Coleman [Sun, 26 Jul 2015 05:59:56 +0000 (22:59 -0700)]
factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon.

8 years agoui.gadgets.labels: respect the labels background and foreground.
John Benediktsson [Sun, 26 Jul 2015 05:38:34 +0000 (22:38 -0700)]
ui.gadgets.labels: respect the labels background and foreground.

8 years agodebugger: final fix for path/file rename
Doug Coleman [Fri, 24 Jul 2015 17:56:31 +0000 (10:56 -0700)]
debugger: final fix for path/file rename

8 years agofuel: fix load
Doug Coleman [Fri, 24 Jul 2015 07:32:51 +0000 (00:32 -0700)]
fuel: fix load

8 years agomason.test: fix file->path
Doug Coleman [Fri, 24 Jul 2015 06:49:02 +0000 (23:49 -0700)]
mason.test: fix file->path

8 years agoparser, source-files: you need to bootstrap after this patch.
Doug Coleman [Fri, 24 Jul 2015 05:00:48 +0000 (22:00 -0700)]
parser, source-files: you need to bootstrap after this patch.
cleans up some file vs path naming.

file -> current-source-file
file -> current-test-file somewhere else
source-file -> path>source-file
source-file-tuple -> source-file

8 years agotools.image-analyzer.gc-info: fix for gml moving to unmaintained.
John Benediktsson [Wed, 22 Jul 2015 15:18:31 +0000 (08:18 -0700)]
tools.image-analyzer.gc-info: fix for gml moving to unmaintained.

8 years agoeuler: move to unmaintained.
Doug Coleman [Wed, 22 Jul 2015 02:35:40 +0000 (19:35 -0700)]
euler: move to unmaintained.

8 years agopcre: fix test
Doug Coleman [Wed, 22 Jul 2015 02:33:54 +0000 (19:33 -0700)]
pcre: fix test

8 years agoio.encodints.iso2022: fix unit tests
Doug Coleman [Wed, 22 Jul 2015 02:33:08 +0000 (19:33 -0700)]
io.encodints.iso2022: fix unit tests

8 years agoinfix: fix infix syntax
Doug Coleman [Wed, 22 Jul 2015 00:59:44 +0000 (17:59 -0700)]
infix: fix infix syntax

8 years agocpu.x86: fix article title help-lint.
John Benediktsson [Wed, 22 Jul 2015 00:55:24 +0000 (17:55 -0700)]
cpu.x86: fix article title help-lint.

8 years agofonts.syntax: not sure what this does, moving to unmaintained for now.
Doug Coleman [Wed, 22 Jul 2015 00:07:42 +0000 (17:07 -0700)]
fonts.syntax: not sure what this does, moving to unmaintained for now.

8 years agogml: move to unmaintained for now.
Doug Coleman [Wed, 22 Jul 2015 00:03:43 +0000 (17:03 -0700)]
gml: move to unmaintained for now.

8 years agovariants: Add a ";" to VARIANT-MEMBER:
Doug Coleman [Wed, 22 Jul 2015 00:00:13 +0000 (17:00 -0700)]
variants: Add a ";" to VARIANT-MEMBER:

8 years agopair-rocket: move to unmaintained for now.
Doug Coleman [Tue, 21 Jul 2015 23:44:17 +0000 (16:44 -0700)]
pair-rocket: move to unmaintained for now.

8 years agomultiline: disable test that defines a weird syntax word.
Doug Coleman [Tue, 21 Jul 2015 23:42:48 +0000 (16:42 -0700)]
multiline: disable test that defines a weird syntax word.

8 years agopersistency: not sure what it does, no docs, no tests. weird parsing word. move to...
Doug Coleman [Tue, 21 Jul 2015 23:38:31 +0000 (16:38 -0700)]
persistency: not sure what it does, no docs, no tests. weird parsing word. move to unmaintained.

8 years agocuda: fix CUDA-LIBRARY: to take a proper path that could have spaces in it
Doug Coleman [Tue, 21 Jul 2015 23:36:24 +0000 (16:36 -0700)]
cuda: fix CUDA-LIBRARY: to take a proper path that could have spaces in it

8 years agoregexp: remove R" R[ and R{, there are still plenty of options and better ones to...
Doug Coleman [Tue, 21 Jul 2015 23:26:40 +0000 (16:26 -0700)]
regexp: remove R" R[ and R{, there are still plenty of options and better ones to come.

8 years agoio.encodings.iso2022: use $ instead of making ESC a parsing word.
Doug Coleman [Tue, 21 Jul 2015 23:14:53 +0000 (16:14 -0700)]
io.encodings.iso2022: use $ instead of making ESC a parsing word.

8 years agospecialized: no docs, no tests, banished for now.
Doug Coleman [Tue, 21 Jul 2015 23:05:33 +0000 (16:05 -0700)]
specialized: no docs, no tests, banished for now.

8 years agoroles: TUPLE: -> ROLES-TUPLE: for now
Doug Coleman [Tue, 21 Jul 2015 23:02:51 +0000 (16:02 -0700)]
roles: TUPLE: -> ROLES-TUPLE: for now

8 years agomath.extras: .. and ... are cool but not used and can come back soon.
Doug Coleman [Tue, 21 Jul 2015 22:53:45 +0000 (15:53 -0700)]
math.extras: .. and ... are cool but not used and can come back soon.

8 years agoextra: move multimethods and pong to unmaintained for now.
Doug Coleman [Tue, 21 Jul 2015 22:48:36 +0000 (15:48 -0700)]
extra: move multimethods and pong to unmaintained for now.

8 years agocpu.x86: use push and pop when emitting %prologue and %epilogue
Björn Lindqvist [Tue, 21 Jul 2015 21:45:25 +0000 (23:45 +0200)]
cpu.x86: use push and pop when emitting %prologue and %epilogue

push/pop REG has the same effect as sub/add rsp, 8 so use them instead
when applicable to generate a little shorter code

8 years agomath.derivatives: Add a ; to the syntax for derivatives so the parsing word doesn...
Doug Coleman [Tue, 21 Jul 2015 19:35:08 +0000 (12:35 -0700)]
math.derivatives: Add a ; to the syntax for derivatives so the parsing word doesn't have to introspect its input arity.

8 years agovariables: move to unmaintained. nothing uses this experimental vocab and
Doug Coleman [Tue, 21 Jul 2015 19:10:41 +0000 (12:10 -0700)]
variables: move to unmaintained. nothing uses this experimental vocab and
we can look at merging its ideas into core soon, but move for now.

8 years agonested-comments: remove this vocab. we have /* */ which is good enough for now.
Doug Coleman [Tue, 21 Jul 2015 19:07:53 +0000 (12:07 -0700)]
nested-comments: remove this vocab.  we have /* */ which is good enough for now.

broken case:
(*
: print-broken ( -- ) "*)" ;
*)

not worth fixing, please don't bring this back :)
its functionality will be replaced soon.

8 years agodns: remove nested-comment, add comment about resolve-host
Doug Coleman [Tue, 21 Jul 2015 19:06:17 +0000 (12:06 -0700)]
dns: remove nested-comment, add comment about resolve-host

8 years agomultiline: remove unused DELIMITED: word.
Doug Coleman [Tue, 21 Jul 2015 19:02:15 +0000 (12:02 -0700)]
multiline: remove unused DELIMITED: word.

8 years agocode-arrays: move to unmaintained
Doug Coleman [Tue, 21 Jul 2015 18:22:13 +0000 (11:22 -0700)]
code-arrays: move to unmaintained

8 years agocompiler.cfg: use "f [ or ] reduce" instead of "map [ ] any?"
John Benediktsson [Tue, 21 Jul 2015 16:54:44 +0000 (09:54 -0700)]
compiler.cfg: use "f [ or ] reduce" instead of "map [ ] any?"

8 years agobloom-filters: use all? instead of "map [ ] all?".
John Benediktsson [Tue, 21 Jul 2015 16:54:31 +0000 (09:54 -0700)]
bloom-filters: use all? instead of "map [ ] all?".

8 years agocompiler.cfg.build-stack-frame: refactoring which removes the 1399/head
Björn Lindqvist [Tue, 21 Jul 2015 09:27:14 +0000 (11:27 +0200)]
compiler.cfg.build-stack-frame: refactoring which removes the
frame-required? variable

8 years agocompiler.*: fix the tests that broke because i removed the stack-frame variable
Björn Lindqvist [Tue, 21 Jul 2015 09:22:38 +0000 (11:22 +0200)]
compiler.*: fix the tests that broke because i removed the stack-frame variable

8 years agocompiler.cfg.stacks.map: this vocab is subsumed by
Björn Lindqvist [Tue, 21 Jul 2015 07:29:00 +0000 (09:29 +0200)]
compiler.cfg.stacks.map: this vocab is subsumed by
compiler.cfg.stacks.padding which works much better

8 years agocompiler.cfg.build-stack-frame: the frame-required? variable needs to be
Björn Lindqvist [Tue, 21 Jul 2015 07:03:33 +0000 (09:03 +0200)]
compiler.cfg.build-stack-frame: the frame-required? variable needs to be
reset so that stack frames aren't included in words that doesn't need them

8 years agocompiler.cfg.stack-frame: using cfg get stack-frame>> instead of the
Björn Lindqvist [Mon, 20 Jul 2015 21:45:47 +0000 (23:45 +0200)]
compiler.cfg.stack-frame: using cfg get stack-frame>> instead of the
stack-frame variable that pointed to the same instance

8 years agouse ``if*`` instead of ``dup [ ] [ drop ] if``.
John Benediktsson [Tue, 21 Jul 2015 05:24:30 +0000 (22:24 -0700)]
use ``if*`` instead of ``dup [ ] [ drop ] if``.

8 years agovocabs.loader: fix tests.
John Benediktsson [Tue, 21 Jul 2015 04:11:16 +0000 (21:11 -0700)]
vocabs.loader: fix tests.

8 years agovocabs.loader: make require-all throw restarts.
John Benediktsson [Tue, 21 Jul 2015 00:34:24 +0000 (17:34 -0700)]
vocabs.loader: make require-all throw restarts.

We only want to catch the restarts in mason, so make a special
load-no-restarts that will catch the failures and print them out
the same way it worked before.

8 years agolocals.parser: don't clone the manifest, just pop used words.
John Benediktsson [Tue, 21 Jul 2015 00:33:33 +0000 (17:33 -0700)]
locals.parser: don't clone the manifest, just pop used words.

It seems the manifest gets cloned on restarts, which makes unuse-words
not work since it just checks ``eq?``. If we pop the last qualified
vocabs, then everything works.

8 years agoRevert "hints: add hints to index."
John Benediktsson [Mon, 20 Jul 2015 21:00:27 +0000 (14:00 -0700)]
Revert "hints: add hints to index."

This reverts commit 96ce04755a146404239fda91e2bac1b43385b46c.

8 years agovocabs.prettyprint: lookup syntax vocab only once in pprint-using.
John Benediktsson [Mon, 20 Jul 2015 20:21:40 +0000 (13:21 -0700)]
vocabs.prettyprint: lookup syntax vocab only once in pprint-using.

8 years agobasis: whitespace.
Doug Coleman [Tue, 21 Jul 2015 00:13:52 +0000 (17:13 -0700)]
basis: whitespace.

8 years agowrap: some cleanup.
John Benediktsson [Mon, 20 Jul 2015 19:25:30 +0000 (12:25 -0700)]
wrap: some cleanup.

8 years agowrap: use infimum-by instead of min-by.
John Benediktsson [Mon, 20 Jul 2015 17:50:01 +0000 (10:50 -0700)]
wrap: use infimum-by instead of min-by.

8 years agoforestdb.paths: fix members call
Doug Coleman [Mon, 20 Jul 2015 18:58:12 +0000 (11:58 -0700)]
forestdb.paths: fix members call

8 years agosequences: bring back check-length.
John Benediktsson [Mon, 20 Jul 2015 16:58:12 +0000 (09:58 -0700)]
sequences: bring back check-length.

8 years agotools.image-analyzer.data-heap-reader: cell => cell_t.
John Benediktsson [Mon, 20 Jul 2015 16:36:20 +0000 (09:36 -0700)]
tools.image-analyzer.data-heap-reader: cell => cell_t.

8 years agofix some sets:members.
John Benediktsson [Mon, 20 Jul 2015 16:32:31 +0000 (09:32 -0700)]
fix some sets:members.

8 years agomagic: fix image path
Doug Coleman [Mon, 20 Jul 2015 15:15:19 +0000 (08:15 -0700)]
magic: fix image path

8 years agofactor: fix renaming bugs
Doug Coleman [Mon, 20 Jul 2015 14:54:26 +0000 (07:54 -0700)]
factor: fix renaming bugs

8 years agofactor: fix breakage with word renamings.
Doug Coleman [Mon, 20 Jul 2015 12:51:16 +0000 (05:51 -0700)]
factor: fix breakage with word renamings.

8 years agowrap.words: fix docs
Doug Coleman [Mon, 20 Jul 2015 08:31:10 +0000 (01:31 -0700)]
wrap.words: fix docs

8 years agobootstrap.image: rename image -> bootstrapping-image
Doug Coleman [Mon, 20 Jul 2015 08:26:44 +0000 (01:26 -0700)]
bootstrap.image: rename image -> bootstrapping-image

8 years agoui.gadgetes.grids: cell -> grid-cell. it's private and hardly used and loaded by...
Doug Coleman [Mon, 20 Jul 2015 08:23:00 +0000 (01:23 -0700)]
ui.gadgetes.grids: cell -> grid-cell. it's private and hardly used and loaded by default, let's not confuse the tools with the layouts:cell.

8 years agowrap.words: rename wrap.words:word to wrapping-word. this ``wrapping-word`` is loaded...
Doug Coleman [Mon, 20 Jul 2015 08:11:05 +0000 (01:11 -0700)]
wrap.words: rename wrap.words:word to wrapping-word. this ``wrapping-word`` is loaded by default and now this trivial vocabulary won't cause a naming conflict with the builtin ``word`` and one of the most used symbols and concepts in the entire language.

8 years agocore: fix docs
Doug Coleman [Mon, 20 Jul 2015 08:01:31 +0000 (01:01 -0700)]
core: fix docs

8 years agovm: rename vm:cell to cell_t. it's just a typedef.....
Doug Coleman [Mon, 20 Jul 2015 08:01:01 +0000 (01:01 -0700)]
vm: rename vm:cell to cell_t. it's just a typedef.....

8 years agofactor: superclass -> superclass-of, superclasses -> superclasses-of
Doug Coleman [Mon, 20 Jul 2015 07:46:33 +0000 (00:46 -0700)]
factor: superclass -> superclass-of, superclasses -> superclasses-of