Commit Graph

14135 Commits (9af298fd49494dbbf20412f318cd929c53260157)

Author SHA1 Message Date
Doug Coleman 211d69561a escape-strings: Add a way to find the shortest lua-string escape.
Also add a way to escape a string as either 'foo "foo" or [[foo]] depending on which delimiters will do the job.

Add a couple helper words to assocs.extras
2018-06-30 00:39:39 -05:00
Doug Coleman 05c72e8690 factor: trim some long using lists. 2018-06-23 11:43:00 -07:00
Doug Coleman 06e85cc606 http.server: Actually use the port remapping instead of throwing it away.
For a port 8080 remapped to port 80, the ``or`` in this line looks like ``8080 80 or`` which doesn't get the remapped port.

Fixes #692 and #1992.
2018-06-23 11:41:41 -07:00
Doug Coleman 2ca1b32580 help.lint.checks: remove debug to fix deploy 23 2018-06-20 06:49:25 -05:00
Doug Coleman 88e58f9da8 factor: fix a few issues with new patch. 2018-06-19 23:39:33 -05:00
Doug Coleman 9f213f96f6 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...
2018-06-19 22:52:58 -05:00
Doug Coleman 317ceee23c 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.
2018-06-15 18:09:21 -05:00
John Benediktsson b854217796 tools.scaffold: quick fix for scaffold-vocab bug.
root-cache was getting added to with ``f`` and then subsequent check fails.
2018-06-15 15:51:45 -07:00
Doug Coleman a33128a4b3 io.directories.search: link-info better than file-info because file-info can crash if the link is bad. 2018-06-13 22:31:39 -05:00
John Benediktsson e19bb995fa system-info.macosx: new code name Mojave. 2018-06-04 11:38:51 -07:00
Doug Coleman aa87e69d25 Revert "VM: removing the unused callstack-bounds primitive"
This reverts commit c55a6ef873.

This primitive is useful for fixing the macOS pthread bug and the javascriptcore library.
2018-06-03 22:12:28 -05:00
Cat Stevens 358eb29357 math.functions docs: add logn to "powers and logarithms" article
logn function was omitted from the subsections in "powers and logarithms"
2018-06-03 13:42:18 -07:00
John Benediktsson 0d7233f2da heaps: simplify by using data vector directly. 2018-05-08 15:11:36 -07:00
John Benediktsson 9b2eac2942 math.functions: one line logn 2018-03-22 15:19:14 -07:00
Cat Stevens 4c96c9343c basis/math: add logn to math.functions (fix #1981) 2018-03-22 15:11:45 -07:00
John Benediktsson 60fddddc0d ui.gadgets.sliders: prevent negative elevator-length. 2018-03-22 10:01:14 -07:00
Doug Coleman dc52e28f2f windows.surface-dial: Add surface-dial COM interface. 2018-03-17 18:39:12 -05:00
Doug Coleman 123c5133f0 windows.com.wrapper: Fix up docs example so it runs. 2018-03-17 18:15:30 -05:00
Doug Coleman 1d1f827f9b windows: Add some more win32 calls. 2018-03-17 11:19:02 -05:00
Doug Coleman de43042ecf editors.visual-studio-code: Fix command-line args url. 2018-03-16 18:22:57 -05:00
Doug Coleman 63a21cbdd1 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.
2018-03-16 18:22:23 -05:00
Doug Coleman f164f47e41 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).
2018-03-16 18:13:17 -05:00
Doug Coleman 653af68a8e Revert "use tilde paths instead of home append-path."
This reverts commit 8af27125ec.
2018-03-15 08:45:12 -05:00
Doug Coleman c1f38d6864 Revert "fix a couple more tilde paths."
This reverts commit b139a896ef.
2018-03-15 08:42:46 -05:00
John Benediktsson 1685c4537c tools.scaffold: adding scaffold for error classes. 2018-03-14 20:27:17 -07:00
John Benediktsson c4f9ae8071 tools.hexdump: fix tests for slightly changed output. 2018-03-14 15:52:40 -07:00
John Benediktsson 5acacf109b unicode.collation: minor cleanup. 2018-03-14 15:46:10 -07:00
John Benediktsson 880ce3d4b5 tools.hexdump: smaller binary sizes without formatting. 2018-03-14 13:34:41 -07:00
John Benediktsson ee83e0f0d3 tools.hexdump: don't require stream-length
for better stdin compatibility.
2018-03-14 13:29:47 -07:00
John Benediktsson f83449b688 Revert "io.backend.unix: fix handle-length on stdin."
This reverts commit b54da0f22b.
2018-03-14 13:29:47 -07:00
John Benediktsson 3f64af43e1 tools.hexdump: much faster hexdump. 2018-03-14 11:22:47 -07:00
John Benediktsson 4e872db628 tools.hexdump: adding deploy file. 2018-03-13 14:17:21 -07:00
John Benediktsson 70749aa736 tools.hexdump: support stdin hexdump. 2018-03-13 13:53:47 -07:00
John Benediktsson b54da0f22b io.backend.unix: fix handle-length on stdin. 2018-03-13 13:53:26 -07:00
John Benediktsson 5c69396fb3 tools.cocoa: fix use of each-method-in-class. 2018-03-13 13:28:35 -07:00
John Benediktsson d259d7ccec cocoa: cleanup ?-> syntax and implementation. 2018-03-13 13:21:21 -07:00
John Benediktsson 5e18e609b3 cocoa: change ?-> to always cache stubs in syntax word. 2018-03-13 11:57:40 -07:00
John Benediktsson 1bffdff33a cocoa.touchbar: another experiment for the 10.11 build machine.
NSButton.buttonWithTitle:target:action: is 10.12 and later.
2018-03-13 11:29:16 -07:00
John Benediktsson ade70ab813 ui.backend.cocoa.views: prepareOpenGL can use ?-> syntax. 2018-03-13 11:09:55 -07:00
John Benediktsson a4f6d43645 Revert "cocoa.touchbar: quick hack to experiment with 1t 0.11 build problem"
This reverts commit 9fbddec50e.
2018-03-13 11:06:43 -07:00
John Benediktsson 4883242292 ui.backend.cocoa.views: cleanup some method signatures. 2018-03-13 11:05:18 -07:00
John Benediktsson 268dfecb0b cocoa.messages: fix for ".cxx_destruct" selector name. 2018-03-13 10:38:33 -07:00
John Benediktsson 365584a644 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.
2018-03-13 10:17:33 -07:00
John Benediktsson 9fbddec50e cocoa.touchbar: quick hack to experiment with 10.11 build problem 2018-03-12 09:38:05 -07:00
John Benediktsson 551144b8a2 grouping: change chunking to throw bounds-errors in nth.
instead of the more confusing slice-error.
2018-03-05 16:57:52 -08:00
Alexander Iljin e749734b01 ui-docs: add help for resize-window 2018-03-05 16:45:35 -08:00
John Benediktsson cb71664787 checksums.metrohash: don't need uint8_t-array. 2018-03-05 16:29:10 -08:00
John Benediktsson 6ca7703831 ui.backend.windows: fix resize-window to use "adjusted" dimensions. 2018-03-05 14:57:50 -08:00
John Benediktsson 368a99b0e1 specialized-arrays: slightly faster nth-unsafe. 2018-03-04 20:48:10 -08:00
Alexander Iljin 1386b556af windows.kernel32: add the FILE_* constants for GetVolumeInformation 2018-03-04 21:27:28 +01:00