]> gitweb.factorcode.org Git - factor.git/log
factor.git
6 years agowindows.screens: Add word to get dpi on Windows. windows-high-dpi
Doug Coleman [Wed, 14 Mar 2018 18:02:42 +0000 (13:02 -0500)]
windows.screens: Add word to get dpi on Windows.

6 years agocpu-x86: Properly ignore unused parameters.
Doug Coleman [Wed, 14 Mar 2018 18:01:21 +0000 (13:01 -0500)]
cpu-x86: Properly ignore unused parameters.

6 years agoNmakefile: Use the manifest file.
Doug Coleman [Wed, 14 Mar 2018 02:48:53 +0000 (21:48 -0500)]
Nmakefile: Use the manifest file.

Use the :: feature because there is a race condition if ``link`` and
``mt`` are used in a single rule (on my machine).

This unfortunately causes ``mt`` to run if ``nmake`` is invoked twice in
a row, but I don't see a way around it right now.

6 years agowindows.shcore: Stub all the functions in shcore.dll
Doug Coleman [Wed, 14 Mar 2018 02:48:08 +0000 (21:48 -0500)]
windows.shcore: Stub all the functions in shcore.dll

6 years agofjsc: line endings.
Doug Coleman [Tue, 13 Mar 2018 19:50:23 +0000 (14:50 -0500)]
fjsc: line endings.

6 years agoMerge branch 'master' of factorcode.org:/git/factor
Doug Coleman [Tue, 13 Mar 2018 19:49:26 +0000 (14:49 -0500)]
Merge branch 'master' of factorcode.org:/git/factor

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 agowindows; add functions to determine DPI scaling
Benjamin Pollack [Sun, 8 Jan 2017 01:52:01 +0000 (20:52 -0500)]
windows; add functions to determine DPI scaling

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.

6 years agoio.files.trash.unix: use xdg vocab.
John Benediktsson [Tue, 27 Feb 2018 01:16:43 +0000 (17:16 -0800)]
io.files.trash.unix: use xdg vocab.

6 years agoio.encodings.8-bit: simplify by not implementing encode-string.
John Benediktsson [Mon, 26 Feb 2018 23:19:53 +0000 (15:19 -0800)]
io.encodings.8-bit: simplify by not implementing encode-string.

6 years agoio.encodings.japanese: not used.
John Benediktsson [Mon, 26 Feb 2018 23:02:44 +0000 (15:02 -0800)]
io.encodings.japanese: not used.

6 years agoRevert "io.encodings.8-bit: adding CP874."
John Benediktsson [Mon, 26 Feb 2018 20:30:11 +0000 (12:30 -0800)]
Revert "io.encodings.8-bit: adding CP874."

This reverts commit 9cccb4de9531715d813805112f942f29cf9c2466.

6 years agotools.deploy: bump image sizes.
John Benediktsson [Mon, 26 Feb 2018 20:13:35 +0000 (12:13 -0800)]
tools.deploy: bump image sizes.

6 years agoio.encodings.8-bit: adding CP874.
John Benediktsson [Mon, 26 Feb 2018 19:45:11 +0000 (11:45 -0800)]
io.encodings.8-bit: adding CP874.

6 years agominesweeper: ignore space keypress for hint cheat.
John Benediktsson [Mon, 26 Feb 2018 19:32:04 +0000 (11:32 -0800)]
minesweeper: ignore space keypress for hint cheat.

6 years agodbf: beginning to parse dBase database files.
John Benediktsson [Mon, 26 Feb 2018 18:32:53 +0000 (10:32 -0800)]
dbf: beginning to parse dBase database files.

6 years agoio.encodings.8-bit: more encodings, and reduce hierarchy.
John Benediktsson [Mon, 26 Feb 2018 18:21:35 +0000 (10:21 -0800)]
io.encodings.8-bit: more encodings, and reduce hierarchy.

6 years agoio.encodings.iana: need IN: form for tests.
John Benediktsson [Mon, 26 Feb 2018 04:25:37 +0000 (20:25 -0800)]
io.encodings.iana: need IN: form for tests.

6 years agomore test IN: cleanup.
John Benediktsson [Sun, 25 Feb 2018 23:44:16 +0000 (15:44 -0800)]
more test IN: cleanup.

6 years agovocabs.refresh: slight cleanup.
John Benediktsson [Sun, 25 Feb 2018 22:12:54 +0000 (14:12 -0800)]
vocabs.refresh: slight cleanup.

6 years agovocabs.refresh: changing ``changed-vocabs`` to a hash-set.
John Benediktsson [Sun, 25 Feb 2018 20:00:07 +0000 (12:00 -0800)]
vocabs.refresh: changing ``changed-vocabs`` to a hash-set.

6 years agoclasses.error: adding a summary.txt.
John Benediktsson [Sun, 25 Feb 2018 19:38:58 +0000 (11:38 -0800)]
classes.error: adding a summary.txt.

6 years agohelp.vocabs: continue using convert-prefixes in $vocabs.
John Benediktsson [Sun, 25 Feb 2018 02:11:26 +0000 (18:11 -0800)]
help.vocabs: continue using convert-prefixes in $vocabs.

6 years agotools.scaffold: revert previous commit.
John Benediktsson [Sun, 25 Feb 2018 02:01:55 +0000 (18:01 -0800)]
tools.scaffold: revert previous commit.

6 years agotools.scaffold: include vocab-root in error message.
John Benediktsson [Sun, 25 Feb 2018 00:07:24 +0000 (16:07 -0800)]
tools.scaffold: include vocab-root in error message.

6 years agotools.scaffold: make sure vocab does not exist.
John Benediktsson [Sat, 24 Feb 2018 23:49:32 +0000 (15:49 -0800)]
tools.scaffold: make sure vocab does not exist.

6 years agohelp.html: cleanup using list.
John Benediktsson [Sat, 24 Feb 2018 23:44:44 +0000 (15:44 -0800)]
help.html: cleanup using list.