]> gitweb.factorcode.org Git - factor.git/log
factor.git
6 years agowindows: Add some more win32 calls.
Doug Coleman [Sat, 17 Mar 2018 02:17:47 +0000 (21:17 -0500)]
windows: Add some more win32 calls.

6 years agoeditors.visual-studio-code: Fix command-line args url.
Doug Coleman [Fri, 16 Mar 2018 23:22:57 +0000 (18:22 -0500)]
editors.visual-studio-code: Fix command-line args url.

6 years agoio.launcher.windows: Actually support +new-group+ and +new-session+.
Doug Coleman [Fri, 16 Mar 2018 23:22:23 +0000 (18:22 -0500)]
io.launcher.windows: Actually support +new-group+ and +new-session+.

DETACHED_PROCESS doesn't do what we want. Also, the check for
`windows?`` in a Windows vocabulary is quite suspect.

6 years agoeditors: Launch editors as child processes. Hopefully this is ok on
Doug Coleman [Fri, 16 Mar 2018 23:13:17 +0000 (18:13 -0500)]
editors: Launch editors as child processes. Hopefully this is ok on
other platforms.

On Windows, VSCode gets launched as a child process, which kills the
editor when Factor exits. This is not what we want. Add an overridable
option to launch editors as child processes, which should get repated
when Factor quits.

The confusion comes from ``run-detached`` which itself just
waits until the child process returns (as opposed to "detaching" a child
process from the parent process, which is called +new-group+ or
+new-session+ instead).

6 years agosystem: flush so we get the same behavior on windows and unix.
Doug Coleman [Thu, 15 Mar 2018 22:26:51 +0000 (17:26 -0500)]
system: flush so we get the same behavior on windows and unix.

Related to #1918.

6 years agoNmakefile: Let cl decide how many threads to use.
Doug Coleman [Sat, 16 Sep 2017 00:40:26 +0000 (19:40 -0500)]
Nmakefile: Let cl decide how many threads to use.

6 years agoNmakefile: Parallel!
Doug Coleman [Sat, 16 Sep 2017 00:07:29 +0000 (19:07 -0500)]
Nmakefile: Parallel!

6 years agoRevert "use tilde paths instead of home append-path."
Doug Coleman [Thu, 15 Mar 2018 13:45:12 +0000 (08:45 -0500)]
Revert "use tilde paths instead of home append-path."

This reverts commit 8af27125ec0c0966867da7490db53a1cf071de7a.

6 years agoRevert "help.pdf: use tilde paths."
Doug Coleman [Thu, 15 Mar 2018 13:43:13 +0000 (08:43 -0500)]
Revert "help.pdf: use tilde paths."

This reverts commit 9276c26f4c3fe2ace111393282ad7b885e065181.

6 years agoRevert "fix a couple more tilde paths."
Doug Coleman [Thu, 15 Mar 2018 13:42:46 +0000 (08:42 -0500)]
Revert "fix a couple more tilde paths."

This reverts commit b139a896ef7de4e9ca25794c3631186be9c8c888.

6 years agoRevert "mason.build: Can't resolve path ~/builds/factor, not sure how this ever"
Doug Coleman [Thu, 15 Mar 2018 13:41:06 +0000 (08:41 -0500)]
Revert "mason.build: Can't resolve path ~/builds/factor, not sure how this ever"

This reverts commit 0e88bd305eebaaae370d48362caa6ace3bee6984.

6 years agotools.scaffold: adding scaffold for error classes.
John Benediktsson [Thu, 15 Mar 2018 03:27:17 +0000 (20:27 -0700)]
tools.scaffold: adding scaffold for error classes.

6 years agotools.hexdump: fix tests for slightly changed output.
John Benediktsson [Wed, 14 Mar 2018 22:52:40 +0000 (15:52 -0700)]
tools.hexdump: fix tests for slightly changed output.

6 years agounicode.collation: minor cleanup.
John Benediktsson [Wed, 14 Mar 2018 22:45:01 +0000 (15:45 -0700)]
unicode.collation: minor cleanup.

6 years agogame-of-life: simpler wraparound logic in count-neighbors.
John Benediktsson [Wed, 14 Mar 2018 22:44:30 +0000 (15:44 -0700)]
game-of-life: simpler wraparound logic in count-neighbors.

6 years agomason.build: Can't resolve path ~/builds/factor, not sure how this ever
Doug Coleman [Wed, 14 Mar 2018 21:17:09 +0000 (16:17 -0500)]
mason.build: Can't resolve path ~/builds/factor, not sure how this ever
works...

Can't use normalize-path because git.exe doesn't recognize the Windows unicode
path prefix.

6 years agotools.hexdump: smaller binary sizes without formatting.
John Benediktsson [Wed, 14 Mar 2018 20:34:41 +0000 (13:34 -0700)]
tools.hexdump: smaller binary sizes without formatting.

6 years agotools.hexdump: don't require stream-length
John Benediktsson [Wed, 14 Mar 2018 20:28:00 +0000 (13:28 -0700)]
tools.hexdump: don't require stream-length

for better stdin compatibility.

6 years agoRevert "io.backend.unix: fix handle-length on stdin."
John Benediktsson [Wed, 14 Mar 2018 20:26:31 +0000 (13:26 -0700)]
Revert "io.backend.unix: fix handle-length on stdin."

This reverts commit b54da0f22bfe020897cf3e3572f17deb588f0f95.

6 years agomason.release: Sign the .dmg on macOS.
Doug Coleman [Wed, 14 Mar 2018 19:07:30 +0000 (14:07 -0500)]
mason.release: Sign the .dmg on macOS.

Fixes #1896.

6 years agotools.hexdump: much faster hexdump.
John Benediktsson [Wed, 14 Mar 2018 18:22:47 +0000 (11:22 -0700)]
tools.hexdump: much faster hexdump.

6 years agotools.hexdump: adding deploy file.
John Benediktsson [Tue, 13 Mar 2018 21:17:21 +0000 (14:17 -0700)]
tools.hexdump: adding deploy file.

6 years agotools.hexdump: support stdin hexdump.
John Benediktsson [Tue, 13 Mar 2018 20:53:47 +0000 (13:53 -0700)]
tools.hexdump: support stdin hexdump.

6 years agoio.backend.unix: fix handle-length on stdin.
John Benediktsson [Tue, 13 Mar 2018 20:53:26 +0000 (13:53 -0700)]
io.backend.unix: fix handle-length on stdin.

6 years agotools.cocoa: fix use of each-method-in-class.
John Benediktsson [Tue, 13 Mar 2018 20:28:35 +0000 (13:28 -0700)]
tools.cocoa: fix use of each-method-in-class.

6 years agococoa: cleanup ?-> syntax and implementation.
John Benediktsson [Tue, 13 Mar 2018 20:21:21 +0000 (13:21 -0700)]
cocoa: cleanup ?-> syntax and implementation.

6 years agococoa: change ?-> to always cache stubs in syntax word.
John Benediktsson [Tue, 13 Mar 2018 18:57:40 +0000 (11:57 -0700)]
cocoa: change ?-> to always cache stubs in syntax word.

6 years agococoa.touchbar: another experiment for the 10.11 build machine.
John Benediktsson [Tue, 13 Mar 2018 18:29:16 +0000 (11:29 -0700)]
cocoa.touchbar: another experiment for the 10.11 build machine.

NSButton.buttonWithTitle:target:action: is 10.12 and later.

6 years agoui.backend.cocoa.views: prepareOpenGL can use ?-> syntax.
John Benediktsson [Tue, 13 Mar 2018 18:09:55 +0000 (11:09 -0700)]
ui.backend.cocoa.views: prepareOpenGL can use ?-> syntax.

6 years agoRevert "cocoa.touchbar: quick hack to experiment with 1t 0.11 build problem"
John Benediktsson [Tue, 13 Mar 2018 18:06:43 +0000 (11:06 -0700)]
Revert "cocoa.touchbar: quick hack to experiment with 1t 0.11 build problem"

This reverts commit 9fbddec50e80d27376de8cb616a02d49c8556a8d.

6 years agoui.backend.cocoa.views: cleanup some method signatures.
John Benediktsson [Tue, 13 Mar 2018 18:05:18 +0000 (11:05 -0700)]
ui.backend.cocoa.views: cleanup some method signatures.

6 years agococoa.messages: fix for ".cxx_destruct" selector name.
John Benediktsson [Tue, 13 Mar 2018 17:38:33 +0000 (10:38 -0700)]
cocoa.messages: fix for ".cxx_destruct" selector name.

6 years agococoa.messages: bind classname.methodname selectors also.
John Benediktsson [Tue, 13 Mar 2018 17:17:33 +0000 (10:17 -0700)]
cocoa.messages: bind classname.methodname selectors also.

We currently have a problem which is all selectors are assumed to have
the same method effect.  The problem is we can have method collisions,
for example:

NSObject.load is { void { id SEL } }
NSBundle.load is { char { id SEL } }

So, this inferred wrong:

IN: scratchpad [ NSBundle -> mainBundle -> load ] infer .
( -- )

But now we can do this instead:

IN: scratchpad [ NSBundle -> NSBundle.mainBundle -> NSBundle.load ] infer .
( -- x )

It doesn't really fix the original problem, but its a way to workaround
it and added ``method-collisions`` to report on the conflicts.

6 years agococoa.touchbar: quick hack to experiment with 10.11 build problem
John Benediktsson [Mon, 12 Mar 2018 16:38:05 +0000 (09:38 -0700)]
cocoa.touchbar: quick hack to experiment with 10.11 build problem

6 years agogame-of-life: little bit more.
John Benediktsson [Mon, 12 Mar 2018 15:47:31 +0000 (08:47 -0700)]
game-of-life: little bit more.

6 years agogame-of-life: cleanup play/stop and some count-neighbors.
John Benediktsson [Mon, 12 Mar 2018 15:43:05 +0000 (08:43 -0700)]
game-of-life: cleanup play/stop and some count-neighbors.

6 years agogame-of-life: use row directly in next-step.
John Benediktsson [Mon, 12 Mar 2018 00:05:47 +0000 (17:05 -0700)]
game-of-life: use row directly in next-step.

6 years agogame-of-life: cleanup using.
John Benediktsson [Sun, 11 Mar 2018 18:59:13 +0000 (11:59 -0700)]
game-of-life: cleanup using.

6 years agogame-of-life: even faster by factoring out the neighbor rows.
John Benediktsson [Sun, 11 Mar 2018 18:48:35 +0000 (11:48 -0700)]
game-of-life: even faster by factoring out the neighbor rows.

6 years agogame-of-life: more ugly faster code.
John Benediktsson [Sun, 11 Mar 2018 18:31:20 +0000 (11:31 -0700)]
game-of-life: more ugly faster code.

6 years agobuild.cmd: fix cmd script syntax
Alexander Iljin [Sun, 11 Mar 2018 10:46:24 +0000 (11:46 +0100)]
build.cmd: fix cmd script syntax

6 years agoNmakefile, build.cmd: Set the build information in Nmakefile.
Doug Coleman [Sun, 11 Mar 2018 06:13:22 +0000 (00:13 -0600)]
Nmakefile, build.cmd: Set the build information in Nmakefile.

If there is no .git directory, assume we are on master branch.

Fixes #1970.

6 years agogame-of-life: more speed in count-neighbors.
John Benediktsson [Sat, 10 Mar 2018 00:58:11 +0000 (16:58 -0800)]
game-of-life: more speed in count-neighbors.

6 years agogame-of-life: count-neighbors needs circular wraparound logic back.
John Benediktsson [Sat, 10 Mar 2018 00:53:05 +0000 (16:53 -0800)]
game-of-life: count-neighbors needs circular wraparound logic back.

6 years agogame-of-life: flip scroll direction.
John Benediktsson [Sat, 10 Mar 2018 00:32:08 +0000 (16:32 -0800)]
game-of-life: flip scroll direction.

6 years agogame-of-life: faster com-random.
John Benediktsson [Fri, 9 Mar 2018 23:53:29 +0000 (15:53 -0800)]
game-of-life: faster com-random.

6 years agogame-of-life: fix inevitable bug in faster code.
John Benediktsson [Fri, 9 Mar 2018 23:29:22 +0000 (15:29 -0800)]
game-of-life: fix inevitable bug in faster code.

6 years agogame-of-life: ugly code that makes next-step faster.
John Benediktsson [Fri, 9 Mar 2018 23:04:23 +0000 (15:04 -0800)]
game-of-life: ugly code that makes next-step faster.

6 years agogame-of-life: small updates.
John Benediktsson [Fri, 9 Mar 2018 22:32:30 +0000 (14:32 -0800)]
game-of-life: small updates.

6 years agogame-of-life: implement scrolling and resizable windows.
John Benediktsson [Fri, 9 Mar 2018 22:24:50 +0000 (14:24 -0800)]
game-of-life: implement scrolling and resizable windows.

6 years agogame-of-life: experimental Conway's Game of Life.
John Benediktsson [Fri, 9 Mar 2018 20:13:07 +0000 (12:13 -0800)]
game-of-life: experimental Conway's Game of Life.

6 years agocrontab: adding first version of crontab parser.
John Benediktsson [Fri, 9 Mar 2018 20:08:49 +0000 (12:08 -0800)]
crontab: adding first version of crontab parser.

6 years agominesweeper: fix stack effect in adjacent-flags.
John Benediktsson [Wed, 7 Mar 2018 00:02:20 +0000 (16:02 -0800)]
minesweeper: fix stack effect in adjacent-flags.

6 years agominesweeper: reduce duplicated code in count-neighbors.
John Benediktsson [Wed, 7 Mar 2018 00:01:33 +0000 (16:01 -0800)]
minesweeper: reduce duplicated code in count-neighbors.

6 years agominesweeper: reduce duplicated code for click/mark/open cells.
John Benediktsson [Tue, 6 Mar 2018 23:50:47 +0000 (15:50 -0800)]
minesweeper: reduce duplicated code for click/mark/open cells.

6 years agogrouping: change chunking to throw bounds-errors in nth.
John Benediktsson [Tue, 6 Mar 2018 00:57:52 +0000 (16:57 -0800)]
grouping: change chunking to throw bounds-errors in nth.

instead of the more confusing slice-error.

6 years agoui-docs: add help for resize-window
Alexander Iljin [Tue, 6 Mar 2018 00:11:00 +0000 (01:11 +0100)]
ui-docs: add help for resize-window

6 years agochecksums.metrohash: don't need uint8_t-array.
John Benediktsson [Tue, 6 Mar 2018 00:29:10 +0000 (16:29 -0800)]
checksums.metrohash: don't need uint8_t-array.

6 years agoui.backend.windows: fix resize-window to use "adjusted" dimensions.
John Benediktsson [Mon, 5 Mar 2018 22:57:50 +0000 (14:57 -0800)]
ui.backend.windows: fix resize-window to use "adjusted" dimensions.

6 years agominesweeper: re-use click-cells-around.
John Benediktsson [Mon, 5 Mar 2018 17:05:20 +0000 (09:05 -0800)]
minesweeper: re-use click-cells-around.

6 years agominesweeper: adding docs for middle-click.
John Benediktsson [Mon, 5 Mar 2018 16:57:42 +0000 (08:57 -0800)]
minesweeper: adding docs for middle-click.

6 years agominesweeper: add classic middle-click functionality
Philip Dexter [Mon, 5 Mar 2018 16:30:27 +0000 (17:30 +0100)]
minesweeper: add classic middle-click functionality

6 years agospecialized-arrays: slightly faster nth-unsafe.
John Benediktsson [Mon, 5 Mar 2018 04:48:10 +0000 (20:48 -0800)]
specialized-arrays: slightly faster nth-unsafe.

6 years agochecksums.multi: making these checked $examples.
John Benediktsson [Mon, 5 Mar 2018 01:49:52 +0000 (17:49 -0800)]
checksums.multi: making these checked $examples.

6 years agochecksums.multi: fix $slot help-lint error.
John Benediktsson [Mon, 5 Mar 2018 01:47:01 +0000 (17:47 -0800)]
checksums.multi: fix $slot help-lint error.

6 years agochecksums.multi: use resource: to make sure test works.
John Benediktsson [Sun, 4 Mar 2018 23:28:18 +0000 (15:28 -0800)]
checksums.multi: use resource: to make sure test works.

6 years agochecksums.multi: new vocab
Alexander Iljin [Sun, 25 Feb 2018 01:32:54 +0000 (02:32 +0100)]
checksums.multi: new vocab

6 years agowindows.kernel32: add the FILE_* constants for GetVolumeInformation 1965/head
Alexander Iljin [Sun, 4 Mar 2018 15:18:07 +0000 (16:18 +0100)]
windows.kernel32: add the FILE_* constants for GetVolumeInformation

6 years agodb.types-docs: mention the +primary-key+ in the appropriate help section
Alexander Iljin [Sun, 25 Feb 2018 10:43:24 +0000 (11:43 +0100)]
db.types-docs: mention the +primary-key+ in the appropriate help section

6 years agodb.sqlite: support the +primary-key+ modifier
Alexander Iljin [Sun, 25 Feb 2018 10:42:21 +0000 (11:42 +0100)]
db.sqlite: support the +primary-key+ modifier

6 years agomultiline-docs: amend the help for /*
Alexander Iljin [Tue, 23 Jan 2018 12:51:48 +0000 (13:51 +0100)]
multiline-docs: amend the help for /*

6 years agogobject-introspection: cleanup using.
John Benediktsson [Sun, 4 Mar 2018 00:14:48 +0000 (16:14 -0800)]
gobject-introspection: cleanup using.

6 years agogobject-introspection: using xdg vocab.
John Benediktsson [Sun, 4 Mar 2018 00:13:23 +0000 (16:13 -0800)]
gobject-introspection: using xdg vocab.

6 years agochecksums.metrohash: fix using in tests.
John Benediktsson [Sun, 4 Mar 2018 00:11:33 +0000 (16:11 -0800)]
checksums.metrohash: fix using in tests.

6 years agochecksums.metrohash: adding a first version of MetroHash algorithm.
John Benediktsson [Sat, 3 Mar 2018 22:17:45 +0000 (14:17 -0800)]
checksums.metrohash: adding a first version of MetroHash algorithm.

6 years agoio.encodings.8-bit: adding KZ-1048 and KOI8-U.
John Benediktsson [Sat, 3 Mar 2018 00:09:21 +0000 (16:09 -0800)]
io.encodings.8-bit: adding KZ-1048 and KOI8-U.

6 years agoio.encodings.8-bit: adding cp424.
John Benediktsson [Thu, 1 Mar 2018 18:48:08 +0000 (10:48 -0800)]
io.encodings.8-bit: adding cp424.

6 years agominesweeper: adding deploy file.
John Benediktsson [Thu, 1 Mar 2018 18:45:32 +0000 (10:45 -0800)]
minesweeper: adding deploy file.

right now it includes too much stuff so the file sizes are a little big.

6 years agoio.encodings.detect: fix tests.
John Benediktsson [Wed, 28 Feb 2018 23:10:43 +0000 (15:10 -0800)]
io.encodings.detect: fix tests.

6 years agoquoted-printable: whoops tests needs latin2, not latin1.
John Benediktsson [Wed, 28 Feb 2018 19:08:45 +0000 (11:08 -0800)]
quoted-printable: whoops tests needs latin2, not latin1.

6 years agoio.encodings.8-bit: reimplement M\ 8-bit encode-string.
John Benediktsson [Wed, 28 Feb 2018 18:35:33 +0000 (10:35 -0800)]
io.encodings.8-bit: reimplement M\ 8-bit encode-string.

6 years agoio.encodings.latin1: re-implement M\ latin1 encode-string.
John Benediktsson [Wed, 28 Feb 2018 18:35:23 +0000 (10:35 -0800)]
io.encodings.latin1: re-implement M\ latin1 encode-string.

6 years agoio.encodings.8-bit: save 37% memory space by "compressing" codetable.
John Benediktsson [Wed, 28 Feb 2018 18:22:13 +0000 (10:22 -0800)]
io.encodings.8-bit: save 37% memory space by "compressing" codetable.

Instead of a biassoc with from/to hashtables, we make a from array that
is 256 length, using indexing instead of hashing since we know 8-bit
characters are [0,255] and the to hashtable.

6 years agodbf: use substitute instead of replace in parse-numeric.
John Benediktsson [Wed, 28 Feb 2018 17:56:12 +0000 (09:56 -0800)]
dbf: use substitute instead of replace in parse-numeric.

6 years agoio.encodings.8-bit: remove latin1 help for now.
John Benediktsson [Wed, 28 Feb 2018 17:56:04 +0000 (09:56 -0800)]
io.encodings.8-bit: remove latin1 help for now.

6 years agoalien.strings: remove latin1 dependency.
John Benediktsson [Wed, 28 Feb 2018 16:58:30 +0000 (08:58 -0800)]
alien.strings: remove latin1 dependency.

6 years agoRevert "tools.deploy: bump image sizes."
John Benediktsson [Wed, 28 Feb 2018 16:55:46 +0000 (08:55 -0800)]
Revert "tools.deploy: bump image sizes."

This reverts commit 980b42676030c349f28368c7cea7c5ed3ae740ff.

6 years agoio.encodings: use new latin1 instead of 8-bit encoding from file.
John Benediktsson [Wed, 28 Feb 2018 16:55:15 +0000 (08:55 -0800)]
io.encodings: use new latin1 instead of 8-bit encoding from file.

6 years agoio.encodings.latin1: adding a memory efficient latin1 encoding.
John Benediktsson [Wed, 28 Feb 2018 16:54:50 +0000 (08:54 -0800)]
io.encodings.latin1: adding a memory efficient latin1 encoding.

6 years agoio.encodings.euc: make encoding table read-only.
John Benediktsson [Wed, 28 Feb 2018 16:52:15 +0000 (08:52 -0800)]
io.encodings.euc: make encoding table read-only.

6 years agotools.test: improved docs
Björn Lindqvist [Sun, 25 Feb 2018 21:22:52 +0000 (22:22 +0100)]
tools.test: improved docs

6 years agomachine-learning.data-sets: renaming slots in the data-set tuple
Björn Lindqvist [Sun, 25 Feb 2018 14:24:53 +0000 (15:24 +0100)]
machine-learning.data-sets: renaming slots in the data-set tuple

"features" is a better name for the slot than "data"

6 years agomath.affine-transforms: some docs for the vocab
Björn Lindqvist [Sun, 25 Feb 2018 14:11:59 +0000 (15:11 +0100)]
math.affine-transforms: some docs for the vocab

6 years agotools.scaffold.windows: handle rename of touch.
John Benediktsson [Tue, 27 Feb 2018 04:45:14 +0000 (20:45 -0800)]
tools.scaffold.windows: handle rename of touch.

6 years agoproject-euler.060: solution for #60.
John Benediktsson [Tue, 27 Feb 2018 04:43:35 +0000 (20:43 -0800)]
project-euler.060: solution for #60.

6 years agocleanup a few resource paths.
John Benediktsson [Tue, 27 Feb 2018 01:38:07 +0000 (17:38 -0800)]
cleanup a few resource paths.

6 years agofix a couple more tilde paths.
John Benediktsson [Tue, 27 Feb 2018 01:33:36 +0000 (17:33 -0800)]
fix a couple more tilde paths.

6 years agohelp.pdf: use tilde paths.
John Benediktsson [Tue, 27 Feb 2018 01:29:10 +0000 (17:29 -0800)]
help.pdf: use tilde paths.

6 years agotools.scaffold: rename ``touch.`` to ``scaffold-file``.
John Benediktsson [Tue, 27 Feb 2018 01:21:27 +0000 (17:21 -0800)]
tools.scaffold: rename ``touch.`` to ``scaffold-file``.

6 years agouse tilde paths instead of home append-path.
John Benediktsson [Tue, 27 Feb 2018 01:17:15 +0000 (17:17 -0800)]
use tilde paths instead of home append-path.