]> gitweb.factorcode.org Git - factor.git/log
factor.git
8 years agowindows: fix words -> vocab-words
Doug Coleman [Mon, 8 Jun 2015 20:07:12 +0000 (13:07 -0700)]
windows: fix words -> vocab-words

8 years agocore: Rename create to create-word, create-in to create-word-in.
Doug Coleman [Mon, 8 Jun 2015 19:38:38 +0000 (12:38 -0700)]
core: Rename create to create-word, create-in to create-word-in.

8 years agocore/basis: Rename words dealing with vocabs to loaded-vocabs or disk-vocabs because...
Doug Coleman [Mon, 8 Jun 2015 19:02:25 +0000 (12:02 -0700)]
core/basis: Rename words dealing with vocabs to loaded-vocabs or disk-vocabs because it's too confusing otherwise.

8 years agounicode.breaks: Rename words to unicode-words
Doug Coleman [Mon, 8 Jun 2015 18:48:13 +0000 (11:48 -0700)]
unicode.breaks: Rename words to unicode-words

8 years agovocabs.refresh: Trying to clean up some vocabs code.
Doug Coleman [Sun, 7 Jun 2015 23:12:20 +0000 (16:12 -0700)]
vocabs.refresh: Trying to clean up some vocabs code.

8 years agoFUEL: improved highlighting of some syntax words: PRIMITIVE, MAIN, INSTANCE
Björn Lindqvist [Sun, 7 Jun 2015 22:59:12 +0000 (00:59 +0200)]
FUEL: improved highlighting of some syntax words: PRIMITIVE, MAIN, INSTANCE

8 years agoFUEL: make it so $complex-shuffle words (like -rot) are rendered correctly
Björn Lindqvist [Sun, 7 Jun 2015 22:03:35 +0000 (00:03 +0200)]
FUEL: make it so $complex-shuffle words (like -rot) are rendered correctly

8 years agoFUEL: better way to font-lock comments.
Björn Lindqvist [Sun, 7 Jun 2015 18:36:34 +0000 (20:36 +0200)]
FUEL: better way to font-lock comments.

just setting the comment property of the string in the
syntax-propertize-rules regexp appears to generate best results

8 years agoFUEL: the web reference have next and prev links for each word, let's add them to...
Björn Lindqvist [Sun, 7 Jun 2015 02:16:23 +0000 (04:16 +0200)]
FUEL: the web reference have next and prev links for each word, let's add them to the fuel
help too

8 years agobenchmark.sieve: calculating the number of primes in [1,100,000,000].
John Benediktsson [Sun, 7 Jun 2015 18:30:04 +0000 (11:30 -0700)]
benchmark.sieve: calculating the number of primes in [1,100,000,000].

8 years agomath.integers: speedup to fixnum-bit?.
John Benediktsson [Sun, 7 Jun 2015 18:07:58 +0000 (11:07 -0700)]
math.integers: speedup to fixnum-bit?.

8 years agobootstrap.primitives: fix stack effect names for bignum-bit?.
John Benediktsson [Sun, 7 Jun 2015 18:07:34 +0000 (11:07 -0700)]
bootstrap.primitives: fix stack effect names for bignum-bit?.

8 years agomason: rename some vague words like build to do-build, build? to
Doug Coleman [Sun, 7 Jun 2015 00:04:30 +0000 (17:04 -0700)]
mason: rename some vague words like build to do-build, build? to
should-build? for clarity and because they're too generic and conflict
with kernel:build.

8 years agowindows.com: Prevent release from being called with f, which causes a
Doug Coleman [Sun, 7 Jun 2015 00:04:02 +0000 (17:04 -0700)]
windows.com: Prevent release from being called with f, which causes a
segfault.

8 years agochecksums.sha: remove trailing whitespace.
John Benediktsson [Sat, 6 Jun 2015 16:27:19 +0000 (09:27 -0700)]
checksums.sha: remove trailing whitespace.

8 years agometar: simplify <taf-report>.
John Benediktsson [Sat, 6 Jun 2015 16:27:09 +0000 (09:27 -0700)]
metar: simplify <taf-report>.

8 years agoformatting: use nappend-as in sprintf.
John Benediktsson [Sat, 6 Jun 2015 16:26:17 +0000 (09:26 -0700)]
formatting: use nappend-as in sprintf.

8 years agosequences.generalizations: use concat-as in nappend-as.
John Benediktsson [Sat, 6 Jun 2015 16:25:58 +0000 (09:25 -0700)]
sequences.generalizations: use concat-as in nappend-as.

8 years agosequences: make concat-as inline and don't special-case empty.
John Benediktsson [Sat, 6 Jun 2015 16:24:56 +0000 (09:24 -0700)]
sequences: make concat-as inline and don't special-case empty.

8 years agocompiler.tree: renaming is hard. cleanup -> cleanup-tree
Doug Coleman [Sat, 6 Jun 2015 06:18:43 +0000 (23:18 -0700)]
compiler.tree: renaming is hard. cleanup -> cleanup-tree

8 years agocompiler.tree.debugger: more "cleanup"
Doug Coleman [Sat, 6 Jun 2015 06:03:42 +0000 (23:03 -0700)]
compiler.tree.debugger: more "cleanup"

8 years agoformatting: Welcome to the sprintf club, MSVC 2015. Fixes #1337.
Doug Coleman [Sat, 6 Jun 2015 12:52:35 +0000 (05:52 -0700)]
formatting: Welcome to the sprintf club, MSVC 2015. Fixes #1337.

8 years agocompiler.tree.cleanup: Fix docs
Doug Coleman [Sat, 6 Jun 2015 04:22:50 +0000 (21:22 -0700)]
compiler.tree.cleanup: Fix docs

8 years agobit-arrays: rename clean-up to zero-end-bits
Doug Coleman [Sat, 6 Jun 2015 04:09:57 +0000 (21:09 -0700)]
bit-arrays: rename clean-up to zero-end-bits

8 years agocompiler: rename cleanup to cleanup-tree, cleanup* to cleanup-tree*
Doug Coleman [Sat, 6 Jun 2015 04:08:18 +0000 (21:08 -0700)]
compiler: rename cleanup to cleanup-tree, cleanup* to cleanup-tree*

8 years agoalien.libraries.finder: Allow library to match just by name. Related to #1099.
Doug Coleman [Sat, 6 Jun 2015 00:05:57 +0000 (17:05 -0700)]
alien.libraries.finder: Allow library to match just by name. Related to #1099.
Add some more unit tests. Fix a typo fidner->finder.

8 years agoplatform.hpp: Indent so I can see wtf is going on with the preprocessor control flow.
Doug Coleman [Fri, 5 Jun 2015 17:53:02 +0000 (10:53 -0700)]
platform.hpp: Indent so I can see wtf is going on with the preprocessor control flow.
Look for ``__linux__`` on linux instead of ``linux`` because compiling with
-std=c++11 removes the ``linux`` preprocessor symbol.

8 years agoRevert "GNUmakefile: Don't compile.gch with -std=c++11"
Doug Coleman [Fri, 5 Jun 2015 17:52:48 +0000 (10:52 -0700)]
Revert "GNUmakefile: Don't compile.gch with -std=c++11"
This wasn't the problem.

This reverts commit e97e74b682aa1692fd72fe63f22b991176bb3e4e.

8 years agoGNUmakefile: Don't compile.gch with -std=c++11
Doug Coleman [Fri, 5 Jun 2015 17:35:03 +0000 (10:35 -0700)]
GNUmakefile: Don't compile.gch with -std=c++11

8 years agoGNUmakefile: add -std=c++11 to CXXFLAGS
Doug Coleman [Fri, 5 Jun 2015 17:31:49 +0000 (10:31 -0700)]
GNUmakefile: add -std=c++11 to CXXFLAGS

8 years agoffi_test.c: Casting a 32bit int to a 64bit pointer is invalid. Instead,
Doug Coleman [Fri, 5 Jun 2015 17:21:20 +0000 (10:21 -0700)]
ffi_test.c: Casting a 32bit int to a 64bit pointer is invalid. Instead,
cast it to a 64bit int then to the pointer. Found with visual studio 2015.

8 years agoutilities.hpp: Use auto pointer instead of gcc extension typeof().
Doug Coleman [Fri, 5 Jun 2015 17:20:32 +0000 (10:20 -0700)]
utilities.hpp: Use auto pointer instead of gcc extension typeof().
Fixes #1336.

8 years agodeques: use fry to simplify.
John Benediktsson [Fri, 5 Jun 2015 06:15:51 +0000 (23:15 -0700)]
deques: use fry to simplify.

8 years agoVM: fixes so that raw_fread and safe_fread returns a size_t again 1334/head
Björn Lindqvist [Fri, 5 Jun 2015 00:11:28 +0000 (02:11 +0200)]
VM: fixes so that raw_fread and safe_fread returns a size_t again

8 years agoVM: make FACTOR_FOR_EACH not call .end() more than once
Björn Lindqvist [Thu, 4 Jun 2015 15:30:36 +0000 (17:30 +0200)]
VM: make FACTOR_FOR_EACH not call .end() more than once

8 years agoVM: safe_fread needs to return an int so you can return -1 on error
Björn Lindqvist [Sun, 31 May 2015 22:21:32 +0000 (00:21 +0200)]
VM: safe_fread needs to return an int so you can return -1 on error

8 years agoVM: move free_list_allocator<Block>::next_allocated_block_after to
Björn Lindqvist [Sat, 30 May 2015 18:07:16 +0000 (20:07 +0200)]
VM: move free_list_allocator<Block>::next_allocated_block_after to
tenured_space::next_allocated_object_after, because it's only used there

8 years agoVM: new functions raw_fclose and raw_fread
Björn Lindqvist [Sat, 30 May 2015 00:29:57 +0000 (02:29 +0200)]
VM: new functions raw_fclose and raw_fread

These need to be used when the image is loaded because there is no
context so you can't throw io errors yet.

8 years agoVM: macro FACTOR_FOR_EACH used in more places to drive iteration
Björn Lindqvist [Fri, 29 May 2015 10:25:12 +0000 (12:25 +0200)]
VM: macro FACTOR_FOR_EACH used in more places to drive iteration

8 years agoVM: macro FACTOR_FOR_EACH to make stl container iteration easier to express
Björn Lindqvist [Fri, 29 May 2015 00:03:37 +0000 (02:03 +0200)]
VM: macro FACTOR_FOR_EACH to make stl container iteration easier to express

8 years agovm: Only call fclose() once. Rename io_error() to io_error_if_not_EINTR() to be more...
Doug Coleman [Wed, 3 Jun 2015 21:35:48 +0000 (14:35 -0700)]
vm: Only call fclose() once. Rename io_error() to io_error_if_not_EINTR() to be more explicit.
Fixes #1335.

8 years agoassocs.extras: minor changes to assoc-merge.
John Benediktsson [Wed, 3 Jun 2015 15:59:41 +0000 (08:59 -0700)]
assocs.extras: minor changes to assoc-merge.

8 years agomath.functions: some silly cleanup.
John Benediktsson [Tue, 2 Jun 2015 18:54:05 +0000 (11:54 -0700)]
math.functions: some silly cleanup.

8 years agobenchmark.backtrack: some cleanup.
John Benediktsson [Tue, 2 Jun 2015 02:46:40 +0000 (19:46 -0700)]
benchmark.backtrack: some cleanup.

8 years agogame.models.obj: some cleanup.
John Benediktsson [Tue, 2 Jun 2015 02:46:15 +0000 (19:46 -0700)]
game.models.obj: some cleanup.

8 years agobacktrack: some cleanup.
John Benediktsson [Tue, 2 Jun 2015 02:46:08 +0000 (19:46 -0700)]
backtrack: some cleanup.

8 years agoeditors.sublime: keep Sublime Text 2 support like we do on OS X.
John Benediktsson [Mon, 1 Jun 2015 22:34:11 +0000 (15:34 -0700)]
editors.sublime: keep Sublime Text 2 support like we do on OS X.

8 years agoio.files.unique: Better docs for with-unique-directory.
Doug Coleman [Mon, 1 Jun 2015 22:22:05 +0000 (15:22 -0700)]
io.files.unique: Better docs for with-unique-directory.

8 years agoeditors.sublime: Fix sublime for windows.
Doug Coleman [Mon, 1 Jun 2015 22:00:10 +0000 (15:00 -0700)]
editors.sublime: Fix sublime for windows.

8 years agoRevert "io.standard-paths: adding support for PATHEXT."
John Benediktsson [Mon, 1 Jun 2015 21:59:36 +0000 (14:59 -0700)]
Revert "io.standard-paths: adding support for PATHEXT."

This reverts commit be9bff0e5bc77e3998bfc92257dcee9d8ee5728b.

8 years agoio.standard-paths: adding support for PATHEXT.
John Benediktsson [Mon, 1 Jun 2015 21:57:47 +0000 (14:57 -0700)]
io.standard-paths: adding support for PATHEXT.

8 years agoeditors: bunch of cleanup.
John Benediktsson [Mon, 1 Jun 2015 21:39:30 +0000 (14:39 -0700)]
editors: bunch of cleanup.

8 years agoio.standard-paths: add ?find-in-path.
John Benediktsson [Mon, 1 Jun 2015 21:26:38 +0000 (14:26 -0700)]
io.standard-paths: add ?find-in-path.

8 years agoio.standard-paths.windows: use map-find.
John Benediktsson [Mon, 1 Jun 2015 21:26:27 +0000 (14:26 -0700)]
io.standard-paths.windows: use map-find.

8 years agotools.which: add a convenience for "which or".
John Benediktsson [Mon, 1 Jun 2015 16:11:19 +0000 (09:11 -0700)]
tools.which: add a convenience for "which or".

8 years agocalendar.format: Add a word to output times in the format that git uses. Rename a...
Doug Coleman [Sun, 31 May 2015 22:08:51 +0000 (15:08 -0700)]
calendar.format: Add a word to output times in the format that git uses. Rename a paren word.

8 years agoio.binary.fast: adding fast version of signed> words.
John Benediktsson [Sun, 31 May 2015 15:44:55 +0000 (08:44 -0700)]
io.binary.fast: adding fast version of signed> words.

8 years agoio.binary: adding some tests for signed>.
John Benediktsson [Sun, 31 May 2015 15:44:39 +0000 (08:44 -0700)]
io.binary: adding some tests for signed>.

8 years agoio.binary.fast: easier to read using stdint types.
John Benediktsson [Sun, 31 May 2015 15:09:05 +0000 (08:09 -0700)]
io.binary.fast: easier to read using stdint types.

8 years agomath.bitwise: bitfield should just use map-reduce.
John Benediktsson [Sun, 31 May 2015 15:04:34 +0000 (08:04 -0700)]
math.bitwise: bitfield should just use map-reduce.

8 years agoio.binary.fast: speed up when used by byte-arrays.
John Benediktsson [Sun, 31 May 2015 14:08:07 +0000 (07:08 -0700)]
io.binary.fast: speed up when used by byte-arrays.

8 years agomath.bitwise: change bitfield to reduce from first argument rather than zero.
John Benediktsson [Sun, 31 May 2015 04:55:27 +0000 (21:55 -0700)]
math.bitwise: change bitfield to reduce from first argument rather than zero.

8 years agoenglish: fix copyright.
John Benediktsson [Sun, 31 May 2015 04:55:16 +0000 (21:55 -0700)]
english: fix copyright.

8 years agomath.bitwise: fix docs for bitfield.
John Benediktsson [Sun, 31 May 2015 04:51:08 +0000 (21:51 -0700)]
math.bitwise: fix docs for bitfield.

8 years agobootstrap.x86: fix assembler code bug in fixnum*
Björn Lindqvist [Mon, 25 May 2015 13:04:33 +0000 (15:04 +0200)]
bootstrap.x86: fix assembler code bug in fixnum*

Now the operands are kept in EBP and ECX and the vm-reg (EBX) is not
used unnecessarily

8 years agobootstrap.primitives: shorter code for mapping architecture to assembly file
Björn Lindqvist [Fri, 22 May 2015 18:29:20 +0000 (20:29 +0200)]
bootstrap.primitives: shorter code for mapping architecture to assembly file

8 years agocpu.x86.*: %mov-vm-ptr isn't so useful, shorter and simpler to write
Björn Lindqvist [Fri, 22 May 2015 15:17:00 +0000 (17:17 +0200)]
cpu.x86.*: %mov-vm-ptr isn't so useful, shorter and simpler to write
vm-reg MOV

8 years agobootstrap.ppc: untested fix for #1319 for ppc
Björn Lindqvist [Fri, 22 May 2015 15:16:00 +0000 (17:16 +0200)]
bootstrap.ppc: untested fix for #1319 for ppc

8 years agoVM: after reset_datastack and retainstack clear the stack segment. makes
Björn Lindqvist [Fri, 22 May 2015 14:52:13 +0000 (16:52 +0200)]
VM: after reset_datastack and retainstack clear the stack segment. makes
it easier to find bad accesses to shadow data

8 years agoVM: possible fix for #1319.
Björn Lindqvist [Fri, 22 May 2015 13:29:38 +0000 (15:29 +0200)]
VM: possible fix for #1319.

Fix for reset_context() so that the top two stack items are never
removed from the stack so if the parent->init_context(ctx) call triggers
a GC, those items are never collected.

8 years agothreads.test: a test that is mostly able to reproduce #1319
Björn Lindqvist [Wed, 20 May 2015 23:35:43 +0000 (01:35 +0200)]
threads.test: a test that is mostly able to reproduce #1319

8 years agoVM: the delete_context() and reset_context() api functions can be
Björn Lindqvist [Mon, 18 May 2015 16:43:20 +0000 (18:43 +0200)]
VM: the delete_context() and reset_context() api functions can be
simplified a bit

The functions always operates on parent->ctx, so passing a context*
parameter is redundant. This enables shorter assembly code for
the (start-context-and-delete) and (set-context-and-delete) primitives.

8 years agobootstrap.x86: new words jit-call-Xarg for calling vm functions with
Björn Lindqvist [Mon, 18 May 2015 13:58:07 +0000 (15:58 +0200)]
bootstrap.x86: new words jit-call-Xarg for calling vm functions with
arguments, simplifies some assembly code

8 years agoReorganising bootstrap files
Björn Lindqvist [Sun, 17 May 2015 08:11:48 +0000 (10:11 +0200)]
Reorganising bootstrap files

All the bootstrap.factor scripts in cpu/ are run by the bootstrap to
make boot images, but aren't used otherwise. So I think it's cleaner to
put them in one directory inside the bootstrap hierarchy.

8 years agoio.directories.search: Add some more combinators for finding files.
Doug Coleman [Fri, 22 May 2015 05:34:55 +0000 (22:34 -0700)]
io.directories.search: Add some more combinators for finding files.

8 years agosequences.extras: Add selector* which saves the output from the quotation
Doug Coleman [Fri, 22 May 2015 05:34:29 +0000 (22:34 -0700)]
sequences.extras: Add selector* which saves the output from the quotation
not the original value.

8 years agogeneralizations: dos2unix
Doug Coleman [Wed, 20 May 2015 22:02:04 +0000 (15:02 -0700)]
generalizations: dos2unix

8 years agogeneralizations: Only define npick for >= 1. Fixes #1306.
Doug Coleman [Wed, 20 May 2015 21:57:43 +0000 (14:57 -0700)]
generalizations: Only define npick for >= 1. Fixes #1306.

8 years agoio.monitors: Fix using, speed up test from 3 second timeouts to 100ms timeouts.
Doug Coleman [Tue, 19 May 2015 19:37:07 +0000 (12:37 -0700)]
io.monitors: Fix using, speed up test from 3 second timeouts to 100ms timeouts.

8 years agocompression.zlib: Add some helper functions for streaming unzipping.
Doug Coleman [Tue, 19 May 2015 17:57:13 +0000 (10:57 -0700)]
compression.zlib: Add some helper functions for streaming unzipping.

8 years agocompression.zlib.ffi: Add some structures and functions for streaming unzipping.
Doug Coleman [Tue, 19 May 2015 17:55:47 +0000 (10:55 -0700)]
compression.zlib.ffi: Add some structures and functions for streaming unzipping.

8 years agoio.monitors: Run each set of monitors tests in its own directory. Fixes #1106.
Doug Coleman [Tue, 19 May 2015 17:50:17 +0000 (10:50 -0700)]
io.monitors: Run each set of monitors tests in its own directory. Fixes #1106.

8 years agocompiler.cfg.stacks.clearing: fix help-lint.
John Benediktsson [Mon, 18 May 2015 17:02:04 +0000 (10:02 -0700)]
compiler.cfg.stacks.clearing: fix help-lint.

8 years agocpu.architecture: Fix trivial doc.
Doug Coleman [Mon, 18 May 2015 07:37:05 +0000 (00:37 -0700)]
cpu.architecture: Fix trivial doc.

8 years agocpu.x86: fix silly bug in %clear 1322/head
Björn Lindqvist [Mon, 18 May 2015 04:28:15 +0000 (06:28 +0200)]
cpu.x86: fix silly bug in %clear

8 years agocompiler.cfg.stacks.clearing: fix tests.
John Benediktsson [Sun, 17 May 2015 16:32:44 +0000 (09:32 -0700)]
compiler.cfg.stacks.clearing: fix tests.

8 years agocompiler.*: new cfg instruction ##clear, it makes it easier to see where 1321/head
Björn Lindqvist [Sun, 17 May 2015 05:57:24 +0000 (07:57 +0200)]
compiler.*: new cfg instruction ##clear, it makes it easier to see where
the compiler.cfg.stacks.clearing pass inserts extra instructions

8 years agocompiler.*: now when we're tracking uninitialized locations instead of
Björn Lindqvist [Sun, 17 May 2015 01:11:32 +0000 (03:11 +0200)]
compiler.*: now when we're tracking uninitialized locations instead of
initialized ones, the height slot isn't needed on ##call anymore

8 years agoVM: simplified logic in data_heap_checker
Björn Lindqvist [Wed, 13 May 2015 02:33:40 +0000 (04:33 +0200)]
VM: simplified logic in data_heap_checker

8 years agocompiler.cfg.stacks.*: new attempt at fixing the gc maps bugs
Björn Lindqvist [Tue, 12 May 2015 22:35:13 +0000 (00:35 +0200)]
compiler.cfg.stacks.*: new attempt at fixing the gc maps bugs

the padding vocab is inverted so that instead of trying to track which
locations are live, it tracks those which are dead which is much easier
to get right.

8 years agocompiler.tree.debugger: fix docs using.
John Benediktsson [Thu, 14 May 2015 15:16:27 +0000 (08:16 -0700)]
compiler.tree.debugger: fix docs using.

8 years agominor cleanup to some docs.
John Benediktsson [Wed, 13 May 2015 23:09:14 +0000 (16:09 -0700)]
minor cleanup to some docs.

8 years agomath.primes: little bit more cleanup.
John Benediktsson [Wed, 13 May 2015 22:17:15 +0000 (15:17 -0700)]
math.primes: little bit more cleanup.

8 years agomath.primes: use fast-gcd in coprime? and replicate instead of make.
John Benediktsson [Wed, 13 May 2015 21:47:31 +0000 (14:47 -0700)]
math.primes: use fast-gcd in coprime? and replicate instead of make.

8 years agopicomath: simplify.
John Benediktsson [Wed, 13 May 2015 21:47:15 +0000 (14:47 -0700)]
picomath: simplify.

8 years agoproject-euler.026: simplify, use coprime? from math.primes.
John Benediktsson [Wed, 13 May 2015 21:46:59 +0000 (14:46 -0700)]
project-euler.026: simplify, use coprime? from math.primes.

8 years agoio.streams.peek: fix test using.
John Benediktsson [Wed, 13 May 2015 13:29:05 +0000 (06:29 -0700)]
io.streams.peek: fix test using.

8 years agoio.streams.peek: Peek streams can break on file input. Fixes #1317.
Doug Coleman [Wed, 13 May 2015 04:50:01 +0000 (21:50 -0700)]
io.streams.peek: Peek streams can break on file input. Fixes #1317.

8 years agoupdate vim syntax file.
John Benediktsson [Wed, 13 May 2015 02:40:21 +0000 (19:40 -0700)]
update vim syntax file.

8 years agouse assoc-reject instead of [ ... not ] assoc-filter.
John Benediktsson [Wed, 13 May 2015 02:08:42 +0000 (19:08 -0700)]
use assoc-reject instead of [ ... not ] assoc-filter.