]> gitweb.factorcode.org Git - factor.git/log
factor.git
5 years agocore: Add the shuffler words but without primitives.
Doug Coleman [Wed, 20 Jun 2018 00:15:05 +0000 (19:15 -0500)]
core: Add the shuffler words but without primitives.

The nipd branch slowed bootstrap by a minute, this patch does not.

sorry about changing the fjsc line endings...

5 years agoxkcd: Everybody stand back. I know regular expressions.
Doug Coleman [Sun, 17 Jun 2018 00:26:47 +0000 (19:26 -0500)]
xkcd: Everybody stand back. I know regular expressions.

5 years agotools.scaffold: delete from root cache but allow vocab to exist already.
Doug Coleman [Fri, 15 Jun 2018 23:09:21 +0000 (18:09 -0500)]
tools.scaffold: delete from root cache but allow vocab to exist already.

If tools.scaffold fails, it is nice to rerun it to finish scaffolding anything it failed on and have it give you links to the files.

5 years agotools.scaffold: quick fix for scaffold-vocab bug.
John Benediktsson [Fri, 15 Jun 2018 22:51:02 +0000 (15:51 -0700)]
tools.scaffold: quick fix for scaffold-vocab bug.

root-cache was getting added to with ``f`` and then subsequent check fails.

5 years agos3: Fix get-object to allow signing. Add sorted-bucket to sort by time.
Doug Coleman [Fri, 15 Jun 2018 00:43:18 +0000 (19:43 -0500)]
s3: Fix get-object to allow signing. Add sorted-bucket to sort by time.

5 years agoio.directories.search: link-info better than file-info because file-info can crash...
Doug Coleman [Thu, 14 Jun 2018 03:31:39 +0000 (22:31 -0500)]
io.directories.search: link-info better than file-info because file-info can crash if the link is bad.

5 years agofinish up fixes to help.lint.coverage
Cat Stevens [Wed, 30 May 2018 23:19:41 +0000 (19:19 -0400)]
finish up fixes to help.lint.coverage

5 years agosystem-info.macosx: new code name Mojave.
John Benediktsson [Mon, 4 Jun 2018 18:38:51 +0000 (11:38 -0700)]
system-info.macosx: new code name Mojave.

5 years agoRevert "VM: removing the unused callstack-bounds primitive"
Doug Coleman [Mon, 4 Jun 2018 02:38:53 +0000 (21:38 -0500)]
Revert "VM: removing the unused callstack-bounds primitive"

This reverts commit c55a6ef87324d1a22fa0f5e935d9575005e15bd4.

This primitive is useful for fixing the macOS pthread bug and the javascriptcore library.

5 years agoassocs: kv-with word.
Doug Coleman [Mon, 4 Jun 2018 02:33:44 +0000 (21:33 -0500)]
assocs: kv-with word.

5 years agohtml.parser.analyzer: find-classes-named word.
Doug Coleman [Mon, 4 Jun 2018 02:33:23 +0000 (21:33 -0500)]
html.parser.analyzer: find-classes-named word.

5 years agomath.functions docs: add logn to "powers and logarithms" article
Cat Stevens [Fri, 1 Jun 2018 19:30:30 +0000 (15:30 -0400)]
math.functions docs: add logn to "powers and logarithms" article

logn function was omitted from the subsections in "powers and logarithms"

5 years agoheaps: simplify by using data vector directly.
John Benediktsson [Tue, 8 May 2018 22:11:36 +0000 (15:11 -0700)]
heaps: simplify by using data vector directly.

5 years agogame.input.demos.key-caps: more fun with button texts.
John Benediktsson [Fri, 4 May 2018 02:52:16 +0000 (19:52 -0700)]
game.input.demos.key-caps: more fun with button texts.

5 years agovm/mach_signal.cpp: didn't need mach_msg_return_t.
John Benediktsson [Fri, 4 May 2018 02:17:33 +0000 (19:17 -0700)]
vm/mach_signal.cpp: didn't need mach_msg_return_t.

6 years agodecimals: fix stack effect for decimal>float.
John Benediktsson [Thu, 19 Apr 2018 22:23:04 +0000 (15:23 -0700)]
decimals: fix stack effect for decimal>float.

6 years agomath.functions: one line logn
John Benediktsson [Thu, 22 Mar 2018 22:19:14 +0000 (15:19 -0700)]
math.functions: one line logn

6 years agobasis/math: add logn to math.functions (fix #1981)
Cat Stevens [Thu, 22 Mar 2018 21:13:47 +0000 (17:13 -0400)]
basis/math: add logn to math.functions (fix #1981)

6 years agopong: use different colors.
John Benediktsson [Thu, 22 Mar 2018 20:18:51 +0000 (13:18 -0700)]
pong: use different colors.

6 years agovm: fix COMPILE-TIME to use __DATE__ and __TIME__
John Benediktsson [Thu, 22 Mar 2018 17:41:34 +0000 (10:41 -0700)]
vm: fix COMPILE-TIME to use __DATE__ and __TIME__

Those are "time the preprocessor is run", not "date and time of the last
modification of the current source file" like __TIMESTAMP__.

6 years agominesweeper: adding games tag.
John Benediktsson [Thu, 22 Mar 2018 17:10:36 +0000 (10:10 -0700)]
minesweeper: adding games tag.

6 years agopong: adding demos tag.
John Benediktsson [Thu, 22 Mar 2018 17:10:26 +0000 (10:10 -0700)]
pong: adding demos tag.

6 years agoflatland: moving back to unmaintained.
John Benediktsson [Thu, 22 Mar 2018 17:01:54 +0000 (10:01 -0700)]
flatland: moving back to unmaintained.

has some confusing bugs with "above?" and "below?".

needs to be cleaned up and tested better.

6 years agopong: fix some bugs, cleanup, little fancier.
John Benediktsson [Thu, 22 Mar 2018 17:01:28 +0000 (10:01 -0700)]
pong: fix some bugs, cleanup, little fancier.

6 years agoui.gadgets.sliders: prevent negative elevator-length.
John Benediktsson [Thu, 22 Mar 2018 17:01:14 +0000 (10:01 -0700)]
ui.gadgets.sliders: prevent negative elevator-length.

6 years agowindows.surface-dial: Add surface-dial COM interface.
Doug Coleman [Sat, 17 Mar 2018 23:34:23 +0000 (18:34 -0500)]
windows.surface-dial: Add surface-dial COM interface.

6 years agowindows.com.wrapper: Fix up docs example so it runs.
Doug Coleman [Sat, 17 Mar 2018 23:15:30 +0000 (18:15 -0500)]
windows.com.wrapper: Fix up docs example so it runs.

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.