]> gitweb.factorcode.org Git - factor.git/log
factor.git
9 years agomultiline: pass the lexer around instead of using namespaces all the time.
John Benediktsson [Tue, 20 May 2014 04:26:59 +0000 (21:26 -0700)]
multiline: pass the lexer around instead of using namespaces all the time.

9 years agomultiline: fix lexer eof detection.
John Benediktsson [Tue, 20 May 2014 04:10:31 +0000 (21:10 -0700)]
multiline: fix lexer eof detection.

9 years agounicode.breaks: change to using constants instead of globals.
John Benediktsson [Tue, 20 May 2014 03:59:42 +0000 (20:59 -0700)]
unicode.breaks: change to using constants instead of globals.

9 years agoregexp.parser: fix for recent unicode.scripts change.
John Benediktsson [Tue, 20 May 2014 03:51:01 +0000 (20:51 -0700)]
regexp.parser: fix for recent unicode.scripts change.

9 years agolexer: change line-text to always be a string.
John Benediktsson [Mon, 19 May 2014 21:31:08 +0000 (14:31 -0700)]
lexer: change line-text to always be a string.

9 years agounicode.script: change to use a constant instead of a global.
John Benediktsson [Mon, 19 May 2014 21:29:16 +0000 (14:29 -0700)]
unicode.script: change to use a constant instead of a global.

9 years agostrings.parser: use sbuf accumulator instead of make.
John Benediktsson [Mon, 19 May 2014 21:14:02 +0000 (14:14 -0700)]
strings.parser: use sbuf accumulator instead of make.

9 years agohelp: use effect>string instead of present.
John Benediktsson [Mon, 19 May 2014 17:18:48 +0000 (10:18 -0700)]
help: use effect>string instead of present.

9 years agohelp.lint.checks: temporary fix for $quotation changes.
John Benediktsson [Mon, 19 May 2014 17:04:39 +0000 (10:04 -0700)]
help.lint.checks: temporary fix for $quotation changes.

9 years agoRevert "regexp.compiler: slightly faster with t/f check."
John Benediktsson [Mon, 19 May 2014 17:04:16 +0000 (10:04 -0700)]
Revert "regexp.compiler: slightly faster with t/f check."

This reverts commit 9dcaa5c7e690bc38e468f355cbbafd3c5b299f90.

9 years agointerval-sets: can just check one side or the other.
John Benediktsson [Mon, 19 May 2014 16:40:51 +0000 (09:40 -0700)]
interval-sets: can just check one side or the other.

9 years agointerval-sets: a little bit faster by not using slices.
John Benediktsson [Mon, 19 May 2014 16:28:01 +0000 (09:28 -0700)]
interval-sets: a little bit faster by not using slices.

9 years agounicode.data: using interval-sets.
John Benediktsson [Mon, 19 May 2014 05:50:03 +0000 (22:50 -0700)]
unicode.data: using interval-sets.

9 years agointerval-sets: faster find-interval.
John Benediktsson [Mon, 19 May 2014 05:49:39 +0000 (22:49 -0700)]
interval-sets: faster find-interval.

9 years agounicode: some performance improvements to category checking.
John Benediktsson [Mon, 19 May 2014 03:47:36 +0000 (20:47 -0700)]
unicode: some performance improvements to category checking.

9 years agobenchmark.regexp: longer benchmark.
John Benediktsson [Mon, 19 May 2014 03:47:22 +0000 (20:47 -0700)]
benchmark.regexp: longer benchmark.

9 years agoregexp.compiler: slightly faster with t/f check.
John Benediktsson [Mon, 19 May 2014 03:42:02 +0000 (20:42 -0700)]
regexp.compiler: slightly faster with t/f check.

9 years agointerval-maps: some inline.
John Benediktsson [Mon, 19 May 2014 03:41:51 +0000 (20:41 -0700)]
interval-maps: some inline.

9 years agodocs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``.
John Benediktsson [Mon, 19 May 2014 03:09:10 +0000 (20:09 -0700)]
docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``.

9 years agohtml.entities: switch to using re-replace-with.
John Benediktsson [Sun, 18 May 2014 20:48:35 +0000 (13:48 -0700)]
html.entities: switch to using re-replace-with.

9 years agoregexp: adding re-replace-with.
John Benediktsson [Sun, 18 May 2014 20:48:22 +0000 (13:48 -0700)]
regexp: adding re-replace-with.

9 years agovectors: small speedup to ``f ?push`` and inline 1vector.
John Benediktsson [Mon, 12 May 2014 16:07:19 +0000 (09:07 -0700)]
vectors: small speedup to ``f ?push`` and inline 1vector.

9 years agocompile.codegen.relocation: make doc example work on 32-bit.
John Benediktsson [Sun, 11 May 2014 15:21:13 +0000 (08:21 -0700)]
compile.codegen.relocation: make doc example work on 32-bit.

10 years agoWindows: Add two new targets, x86-32-vista and x86-64-vista for bjourne's
Doug Coleman [Sun, 11 May 2014 00:58:53 +0000 (17:58 -0700)]
Windows: Add two new targets, x86-32-vista and x86-64-vista for bjourne's
ctrl-c patch. We still support Windows XP by default for now. Closes

10 years agoVM: attempt to cancel blocking system calls when ctrl-c is pressed
Björn Lindqvist [Tue, 25 Mar 2014 16:44:55 +0000 (17:44 +0100)]
VM: attempt to cancel blocking system calls when ctrl-c is pressed

Windows runs ctrl-c in its own thread and doesn't by itself interrupt
blocking system calls when it is pressed. Therefore you have to manually
send an interrupt signal to the stuck thread.

10 years agoDocs: mostly fixes for doc errors found by help lint
Björn Lindqvist [Sat, 10 May 2014 23:45:07 +0000 (01:45 +0200)]
Docs: mostly fixes for doc errors found by help lint

10 years agoDocs: docs for compiler.* and cpu.* words
Björn Lindqvist [Fri, 9 May 2014 13:38:28 +0000 (15:38 +0200)]
Docs: docs for compiler.* and cpu.* words

10 years agoDocs: docs for compiler-related vocabs
Björn Lindqvist [Thu, 8 May 2014 16:50:49 +0000 (18:50 +0200)]
Docs: docs for compiler-related vocabs

10 years agoDocs: for compiler.cfg and compiler.codegen
Björn Lindqvist [Wed, 7 May 2014 21:48:41 +0000 (23:48 +0200)]
Docs: for compiler.cfg and compiler.codegen

10 years agoDocs: for node and #call tuples
Björn Lindqvist [Tue, 6 May 2014 21:24:32 +0000 (23:24 +0200)]
Docs: for node and #call tuples

10 years agoDocs: docs for cpu.* vocabs
Björn Lindqvist [Tue, 6 May 2014 16:10:24 +0000 (18:10 +0200)]
Docs: docs for cpu.* vocabs

10 years agoDocs: more compiler documentation
Björn Lindqvist [Tue, 6 May 2014 16:09:34 +0000 (18:09 +0200)]
Docs: more compiler documentation

10 years agoDocs: for cpu.x86.* words
Björn Lindqvist [Sun, 4 May 2014 23:38:43 +0000 (01:38 +0200)]
Docs: for cpu.x86.* words

10 years agoDocs: initial docs for the compiler.cfg.* vocabs
Björn Lindqvist [Sun, 4 May 2014 23:12:41 +0000 (01:12 +0200)]
Docs: initial docs for the compiler.cfg.* vocabs

10 years agoDocs: initial docs for compiler.tree.propagation.* vocabs
Björn Lindqvist [Sat, 3 May 2014 23:57:47 +0000 (01:57 +0200)]
Docs: initial docs for compiler.tree.propagation.* vocabs

10 years agoDocs: stub docs for cpu.architecture
Björn Lindqvist [Sat, 3 May 2014 23:07:21 +0000 (01:07 +0200)]
Docs: stub docs for cpu.architecture

10 years agoDocs: generic.math and layouts
Björn Lindqvist [Sat, 3 May 2014 14:29:35 +0000 (16:29 +0200)]
Docs: generic.math and layouts

10 years agoDocs: stub docs for some compiler-related words
Björn Lindqvist [Thu, 24 Apr 2014 19:35:04 +0000 (21:35 +0200)]
Docs: stub docs for some compiler-related words

10 years agocode_blocks: Same error message in two places, make it clear which is triggering.
Doug Coleman [Wed, 7 May 2014 21:02:14 +0000 (14:02 -0700)]
code_blocks: Same error message in two places, make it clear which is triggering.

10 years agoGNUMakefile: Use -g for symbols.
Doug Coleman [Wed, 7 May 2014 20:29:05 +0000 (13:29 -0700)]
GNUMakefile: Use -g for symbols.

10 years agodeploy-tests: Bump the sizes to get a Linux32 build.
Doug Coleman [Wed, 7 May 2014 20:28:31 +0000 (13:28 -0700)]
deploy-tests: Bump the sizes to get a Linux32 build.

10 years agoUpdate redis vocabulary to use the modern protocol
Benjamin Pollack [Fri, 2 May 2014 20:41:44 +0000 (16:41 -0400)]
Update redis vocabulary to use the modern protocol

The existing Redis vocabulary was using a very old and outdated version of the
Redis protocol that couldn't even write values to a modern Redis install.  This
patch updates the library and tests to use the newer protocol, which should
also work on Redis servers all the way back to Redis 1.2.

10 years agowebapps.calculator: Utility word to run the calculator on other ports.
Doug Coleman [Tue, 6 May 2014 00:44:23 +0000 (20:44 -0400)]
webapps.calculator: Utility word to run the calculator on other ports.

10 years agoyaml: accidentally these lines.
John Benediktsson [Thu, 1 May 2014 21:00:50 +0000 (14:00 -0700)]
yaml: accidentally these lines.

10 years agoui.tools.listener.history: cleanup and minor bugfix.
John Benediktsson [Thu, 1 May 2014 02:06:36 +0000 (19:06 -0700)]
ui.tools.listener.history: cleanup and minor bugfix.

10 years agobit-sets: some cleanup, small performance improvement to members.
John Benediktsson [Wed, 30 Apr 2014 05:13:37 +0000 (22:13 -0700)]
bit-sets: some cleanup, small performance improvement to members.

10 years agomath.bitwise: simplify byte-array-bit-count.
John Benediktsson [Wed, 30 Apr 2014 05:11:42 +0000 (22:11 -0700)]
math.bitwise: simplify byte-array-bit-count.

10 years agowebapps.factorcode: minor cleanup, removing double <table>.
John Benediktsson [Tue, 29 Apr 2014 23:37:01 +0000 (16:37 -0700)]
webapps.factorcode: minor cleanup, removing double <table>.

10 years agobase64: inline the { 3 2 1 0 } [ -6 * ].
John Benediktsson [Tue, 29 Apr 2014 22:59:48 +0000 (15:59 -0700)]
base64: inline the { 3 2 1 0 } [ -6 * ].

10 years agobase64: faster decoding, use an sbuf instead of replicate/filter.
John Benediktsson [Tue, 29 Apr 2014 22:47:15 +0000 (15:47 -0700)]
base64: faster decoding, use an sbuf instead of replicate/filter.

10 years agoRevert "unix.ffi: be more explicit about dirent64."
John Benediktsson [Tue, 29 Apr 2014 21:02:30 +0000 (14:02 -0700)]
Revert "unix.ffi: be more explicit about dirent64."

This reverts commit edf456149330d44995b1c8bdf61a1c5d2617ed9c.

10 years agounix.ffi: be more explicit about dirent64.
John Benediktsson [Tue, 29 Apr 2014 20:54:27 +0000 (13:54 -0700)]
unix.ffi: be more explicit about dirent64.

10 years agoio.directories.unix.linux: fix using.
John Benediktsson [Tue, 29 Apr 2014 20:38:27 +0000 (13:38 -0700)]
io.directories.unix.linux: fix using.

10 years agoio.directories: faster directory-entries by caching dirent structs.
John Benediktsson [Tue, 29 Apr 2014 20:22:56 +0000 (13:22 -0700)]
io.directories: faster directory-entries by caching dirent structs.

10 years agosource-files: this looks cleaner.
John Benediktsson [Tue, 29 Apr 2014 20:20:33 +0000 (13:20 -0700)]
source-files: this looks cleaner.

10 years agoio.streams.memory: use constructor syntax.
John Benediktsson [Tue, 29 Apr 2014 20:20:03 +0000 (13:20 -0700)]
io.streams.memory: use constructor syntax.

10 years agoui.tools.common: reuse code.
John Benediktsson [Mon, 28 Apr 2014 20:01:18 +0000 (13:01 -0700)]
ui.tools.common: reuse code.

10 years agoui.backend.cocoa.views: clear cache to remove possibly non-retina stuff.
John Benediktsson [Mon, 28 Apr 2014 20:00:20 +0000 (13:00 -0700)]
ui.backend.cocoa.views: clear cache to remove possibly non-retina stuff.

10 years agoaline.libraries.finder.linux: Fix spacing. oops
Doug Coleman [Mon, 28 Apr 2014 08:46:33 +0000 (01:46 -0700)]
aline.libraries.finder.linux: Fix spacing. oops

10 years agoalien.libraries.finder: Linux32 ldconfig has (libc6) or (libc6,x32) as the platform...
Doug Coleman [Mon, 28 Apr 2014 08:41:31 +0000 (08:41 +0000)]
alien.libraries.finder: Linux32 ldconfig has (libc6) or (libc6,x32) as the platform strings. Refactor parsing to not use regular expressions and change the matching from exact to requiring the ldconfig line to be a subset of the supported platforms.

10 years agoRevert "pcre.ffi: Fix pcre for Arch Linux 32bit on 64bit multilib." Wrong fix.
Doug Coleman [Mon, 28 Apr 2014 08:25:49 +0000 (01:25 -0700)]
Revert "pcre.ffi: Fix pcre for Arch Linux 32bit on 64bit multilib." Wrong fix.

This reverts commit c6e335f570da9a2c44635a53fdc4ad56ee77f3b4.

10 years agoRevert "alien.libraries.finder: Add utiltity word find-first-library to find a shared...
Doug Coleman [Mon, 28 Apr 2014 08:25:27 +0000 (01:25 -0700)]
Revert "alien.libraries.finder: Add utiltity word find-first-library to find a shared library from a list of library stem names." Wrong fix.

This reverts commit 8cd883be5119683291c2ee6d7ce4fad228b78e26.

10 years agopcre.ffi: Fix pcre for Arch Linux 32bit on 64bit multilib.
Doug Coleman [Mon, 28 Apr 2014 07:39:09 +0000 (00:39 -0700)]
pcre.ffi: Fix pcre for Arch Linux 32bit on 64bit multilib.

10 years agoalien.libraries.finder: Add utiltity word find-first-library to find a shared library...
Doug Coleman [Mon, 28 Apr 2014 07:38:39 +0000 (00:38 -0700)]
alien.libraries.finder: Add utiltity word find-first-library to find a shared library from a list of library stem names.

10 years agomason.test: Check the user-init-errors so we get a fixable error.
Doug Coleman [Mon, 28 Apr 2014 07:25:54 +0000 (00:25 -0700)]
mason.test: Check the user-init-errors so we get a fixable error.

10 years agosorting.insertion: faster due to fewer nths.
John Benediktsson [Mon, 28 Apr 2014 05:41:37 +0000 (22:41 -0700)]
sorting.insertion: faster due to fewer nths.

10 years agosorting.insertion: skip the zero'th element.
John Benediktsson [Mon, 28 Apr 2014 00:13:26 +0000 (17:13 -0700)]
sorting.insertion: skip the zero'th element.

10 years agoyaml: some formatting/cleanup.
John Benediktsson [Sun, 27 Apr 2014 22:41:24 +0000 (15:41 -0700)]
yaml: some formatting/cleanup.

10 years agoRevert "Temporary patch for dlists equality testing"
John Benediktsson [Sun, 27 Apr 2014 22:24:17 +0000 (15:24 -0700)]
Revert "Temporary patch for dlists equality testing"

This reverts commit dbc6c37a37423a1672825b667bf5ca4844d5fc88.

10 years agoRevert "Temporary patch for assoc-map on linked-assoc"
John Benediktsson [Sun, 27 Apr 2014 22:24:12 +0000 (15:24 -0700)]
Revert "Temporary patch for assoc-map on linked-assoc"

This reverts commit b54bffd748815ecbc5ffac11a14e59f73a5a3978.

10 years agoYAML: expose libyaml's errors
Jon Harper [Fri, 18 Apr 2014 14:32:14 +0000 (16:32 +0200)]
YAML: expose libyaml's errors

10 years agoYAML: handle recursive data and anchors' identity
Jon Harper [Sat, 5 Apr 2014 13:51:30 +0000 (15:51 +0200)]
YAML: handle recursive data and anchors' identity

10 years agoYAML: cleanup, don't prettyprint the linked-assoc
Jon Harper [Sat, 5 Apr 2014 13:49:09 +0000 (15:49 +0200)]
YAML: cleanup, don't prettyprint the linked-assoc

It's not useful because it's not homoiconic because of recursivity

10 years agoYAML: simple error when constructing undefined anchors
Jon Harper [Sat, 5 Apr 2014 09:20:13 +0000 (11:20 +0200)]
YAML: simple error when constructing undefined anchors

10 years agoYAML: cleanup, remove unreachable code
Jon Harper [Sat, 5 Apr 2014 13:29:03 +0000 (15:29 +0200)]
YAML: cleanup, remove unreachable code

10 years agoTemporary patch for assoc-map on linked-assoc
Jon Harper [Sat, 5 Apr 2014 13:09:54 +0000 (15:09 +0200)]
Temporary patch for assoc-map on linked-assoc

Until https://github.com/slavapestov/factor/issues/1028 is resolved

10 years agoTemporary patch for dlists equality testing
Jon Harper [Fri, 4 Apr 2014 21:17:08 +0000 (23:17 +0200)]
Temporary patch for dlists equality testing

Until https://github.com/slavapestov/factor/issues/1027 is resolved

10 years agoYAML: correctly emit f as "!!bool false"
Jon Harper [Fri, 4 Apr 2014 19:10:32 +0000 (21:10 +0200)]
YAML: correctly emit f as "!!bool false"

10 years agoYAML: docs
Jon Harper [Sat, 29 Mar 2014 20:48:17 +0000 (21:48 +0100)]
YAML: docs

10 years agoYAML: support !!set, !!omap and !!pair
Jon Harper [Tue, 25 Mar 2014 17:51:37 +0000 (18:51 +0100)]
YAML: support !!set, !!omap and !!pair

10 years agoYAML: workaround deep-copy structs
Jon Harper [Mon, 17 Mar 2014 20:39:49 +0000 (21:39 +0100)]
YAML: workaround deep-copy structs

10 years agoYAML: Add tests for anchors in yaml>
Jon Harper [Mon, 17 Mar 2014 20:39:14 +0000 (21:39 +0100)]
YAML: Add tests for anchors in yaml>

10 years agoYAML: parse anchors
Jon Harper [Sun, 16 Mar 2014 15:06:27 +0000 (16:06 +0100)]
YAML: parse anchors

10 years agoYAML: cleanup USING:
Jon Harper [Sun, 9 Mar 2014 20:14:45 +0000 (21:14 +0100)]
YAML: cleanup USING:

10 years agoYAML: convert some factor types to/from yaml types
Jon Harper [Sat, 1 Mar 2014 14:42:43 +0000 (15:42 +0100)]
YAML: convert some factor types to/from yaml types

10 years agoYAML: add some tests from pyyaml test suite.
Jon Harper [Sun, 16 Feb 2014 23:24:56 +0000 (00:24 +0100)]
YAML: add some tests from pyyaml test suite.

10 years agoYAML: declare function parameters as bools
Jon Harper [Sat, 8 Mar 2014 12:59:00 +0000 (13:59 +0100)]
YAML: declare function parameters as bools

10 years agoYAML: add a debug word to check sizes of structs
Jon Harper [Sat, 8 Mar 2014 12:12:20 +0000 (13:12 +0100)]
YAML: add a debug word to check sizes of structs

10 years agoYAML: add a debug vocab
Jon Harper [Fri, 28 Feb 2014 22:42:20 +0000 (23:42 +0100)]
YAML: add a debug vocab

10 years agoYAML: fix parsing when key is f
Jon Harper [Sat, 1 Mar 2014 18:15:57 +0000 (19:15 +0100)]
YAML: fix parsing when key is f

10 years agoYAML: use factor's c-string in more places
Jon Harper [Fri, 28 Feb 2014 22:41:38 +0000 (23:41 +0100)]
YAML: use factor's c-string in more places

10 years agoYAML: don't test types on complex key test
Jon Harper [Sat, 1 Mar 2014 14:46:33 +0000 (15:46 +0100)]
YAML: don't test types on complex key test

10 years agoYAML: ffi, fix default tags
Jon Harper [Sat, 8 Mar 2014 20:03:51 +0000 (21:03 +0100)]
YAML: ffi, fix default tags

10 years agoYAML: ffi typo cleanup
Jon Harper [Sat, 8 Mar 2014 12:12:57 +0000 (13:12 +0100)]
YAML: ffi typo cleanup

10 years agoYAML: cleanup, tags are defined in the ffi
Jon Harper [Tue, 25 Feb 2014 22:33:59 +0000 (23:33 +0100)]
YAML: cleanup, tags are defined in the ffi

10 years agoYAML: indent/docs
Jon Harper [Thu, 20 Feb 2014 23:19:03 +0000 (00:19 +0100)]
YAML: indent/docs

10 years agoYAML: add yaml-docs> and >yaml-docs
Jon Harper [Sun, 16 Feb 2014 23:24:35 +0000 (00:24 +0100)]
YAML: add yaml-docs> and >yaml-docs

10 years agoYAML: support non-scalar keys
Jon Harper [Sat, 15 Feb 2014 17:28:15 +0000 (18:28 +0100)]
YAML: support non-scalar keys

10 years agoyaml: load lib for windows and macosx
Jon Harper [Sat, 8 Feb 2014 15:15:11 +0000 (16:15 +0100)]
yaml: load lib for windows and macosx

10 years agoYAML: add simple tests for >yaml and >yaml
Jon Harper [Sun, 2 Feb 2014 12:24:21 +0000 (13:24 +0100)]
YAML: add simple tests for >yaml and >yaml