]> gitweb.factorcode.org Git - factor.git/log
factor.git
3 years agoshell.nix: supply `wrapFactor` helper to make standalone factor binary
timor [Wed, 20 May 2020 15:04:01 +0000 (17:04 +0200)]
shell.nix: supply `wrapFactor` helper to make standalone factor binary

This adds the shell function `wrapFactor`.  This function is intended to wrap
the result of calling `build.sh` in the shell environment so it can be executed
outside of the nix shell.

Example:

```
$ nix-shell
[nix-shell] $ ./build.sh bootstrap
...build factor vm and image...
[nix-shell] $ wrapFactor .
exit
$ ./factor
```

`wrapFactor` takes the path to the factor root dir as argument, and expects the
binary `factor` and the image file `factor.image` there and uses Nixpkgs'
`makeWrapper` to wrap the `factor` executable in-place with the correct
`LD_LIBRARY_PATH`.  Afterwards, the factor executable can be called outside of
the nix-shell environment.

3 years agohelp.html: better navbar on iPhone.
John Benediktsson [Fri, 22 May 2020 17:03:39 +0000 (10:03 -0700)]
help.html: better navbar on iPhone.

3 years agoui.backend.cocoa.views: fix jittery resize.
John Benediktsson [Fri, 22 May 2020 15:23:20 +0000 (08:23 -0700)]
ui.backend.cocoa.views: fix jittery resize.

This could still be improved since this current approach pauses Factor
execution when the window is being resized, and it could instead
maybe detect inLiveResize or something and be smoother.

3 years agohelp.lint.coverage: change $values to $inputs and $outputs.
John Benediktsson [Fri, 22 May 2020 15:06:36 +0000 (08:06 -0700)]
help.lint.coverage: change $values to $inputs and $outputs.

3 years agohelp: splitting $values into $inputs and $outputs.
John Benediktsson [Fri, 22 May 2020 02:47:28 +0000 (19:47 -0700)]
help: splitting $values into $inputs and $outputs.

This is an automatic conversion, so we can keep writing docs the way we
have been.

3 years agohelp.html: copy image resources to output directory.
John Benediktsson [Fri, 22 May 2020 02:17:56 +0000 (19:17 -0700)]
help.html: copy image resources to output directory.

This helps avoid needing so many different static responders in
webapps.help, and makes the documentation more self-contained.

3 years agoui.tools.error-list: changing icons from tiff to png.
John Benediktsson [Fri, 22 May 2020 00:31:41 +0000 (17:31 -0700)]
ui.tools.error-list: changing icons from tiff to png.

3 years agowebapps.help: whoops.
John Benediktsson [Fri, 22 May 2020 00:25:03 +0000 (17:25 -0700)]
webapps.help: whoops.

3 years agohelp.html: support ui/tools/error-list/icons also.
John Benediktsson [Fri, 22 May 2020 00:23:47 +0000 (17:23 -0700)]
help.html: support ui/tools/error-list/icons also.

3 years agohtml.streams: move icon src mapping to help.html.
John Benediktsson [Fri, 22 May 2020 00:19:36 +0000 (17:19 -0700)]
html.streams: move icon src mapping to help.html.

3 years agosyntax: allow anonymous MAIN:.
John Benediktsson [Thu, 21 May 2020 21:19:43 +0000 (14:19 -0700)]
syntax: allow anonymous MAIN:.

3 years agowebbrowser: adding MAIN.
John Benediktsson [Thu, 21 May 2020 03:26:02 +0000 (20:26 -0700)]
webbrowser: adding MAIN.

3 years agometar: add a main.
John Benediktsson [Thu, 21 May 2020 02:47:47 +0000 (19:47 -0700)]
metar: add a main.

3 years agowebsites.factorcode: update macos screenshot.
John Benediktsson [Wed, 20 May 2020 18:11:57 +0000 (11:11 -0700)]
websites.factorcode: update macos screenshot.

3 years agodefinitions.icons: lighter open-vocab/unopen-vocab.
John Benediktsson [Wed, 20 May 2020 17:46:34 +0000 (10:46 -0700)]
definitions.icons: lighter open-vocab/unopen-vocab.

3 years agodefinitions.icons: prefer more isometric vocab icons.
John Benediktsson [Wed, 20 May 2020 16:33:54 +0000 (09:33 -0700)]
definitions.icons: prefer more isometric vocab icons.

3 years agodefinitions.icons: fix unopen-vocab.png.
John Benediktsson [Wed, 20 May 2020 04:46:46 +0000 (21:46 -0700)]
definitions.icons: fix unopen-vocab.png.

3 years agodefinitions.icons: fix some 1x images.
John Benediktsson [Wed, 20 May 2020 04:45:26 +0000 (21:45 -0700)]
definitions.icons: fix some 1x images.

3 years agohelp.html: use @2x images.
John Benediktsson [Wed, 20 May 2020 03:53:08 +0000 (20:53 -0700)]
help.html: use @2x images.

3 years agoui.images: fix for gl-scale-factor not being set.
John Benediktsson [Wed, 20 May 2020 02:10:51 +0000 (19:10 -0700)]
ui.images: fix for gl-scale-factor not being set.

3 years agoui.images: load 1x or 2x graphics.
John Benediktsson [Wed, 20 May 2020 02:00:25 +0000 (19:00 -0700)]
ui.images: load 1x or 2x graphics.

3 years agocompiler.tree.propagation.slots: remove unused word
timor [Tue, 19 May 2020 15:53:33 +0000 (17:53 +0200)]
compiler.tree.propagation.slots: remove unused word

The last use of `length-accessor?` has been removed in
8e227bc874e356f1e292ab18d1bad1d48966746a, which obsoleted the `length` slot.

3 years agoui.theme: fix help-path-border-color to match toolbar-background.
John Benediktsson [Tue, 19 May 2020 17:15:50 +0000 (10:15 -0700)]
ui.theme: fix help-path-border-color to match toolbar-background.

3 years agoRevert "ui.pens.image: allow float math."
John Benediktsson [Tue, 19 May 2020 17:00:05 +0000 (10:00 -0700)]
Revert "ui.pens.image: allow float math."

This reverts commit 2d71fd9e221a7482226eb528c37b24c75df31b8a.

3 years agoui: update more icons, including ui.tools.error-list.
John Benediktsson [Tue, 19 May 2020 16:46:43 +0000 (09:46 -0700)]
ui: update more icons, including ui.tools.error-list.

3 years agodefinitions.icons: minor tweak.
John Benediktsson [Tue, 19 May 2020 15:25:49 +0000 (08:25 -0700)]
definitions.icons: minor tweak.

3 years agodefinitions.icons: minor tweaks.
John Benediktsson [Tue, 19 May 2020 15:08:12 +0000 (08:08 -0700)]
definitions.icons: minor tweaks.

3 years agounix.signals: bump time on tests.
John Benediktsson [Tue, 19 May 2020 14:49:56 +0000 (07:49 -0700)]
unix.signals: bump time on tests.

3 years agotools.profiler.sampling: bump runtime.
John Benediktsson [Tue, 19 May 2020 14:46:25 +0000 (07:46 -0700)]
tools.profiler.sampling: bump runtime.

3 years agoRevert "ui.baseline-alignment: allow floats in alignment."
John Benediktsson [Tue, 19 May 2020 14:41:06 +0000 (07:41 -0700)]
Revert "ui.baseline-alignment: allow floats in alignment."

This reverts commit c37e9551ad7121049bd7b46960c075dce0c9b8f1.

3 years agoui.theme.images: minor scroll arrow fixes.
John Benediktsson [Tue, 19 May 2020 04:20:10 +0000 (21:20 -0700)]
ui.theme.images: minor scroll arrow fixes.

3 years agoui.theme.images: minor cleanup.
John Benediktsson [Tue, 19 May 2020 04:09:37 +0000 (21:09 -0700)]
ui.theme.images: minor cleanup.

3 years agoui.pens.image: allow float math.
John Benediktsson [Tue, 19 May 2020 03:57:03 +0000 (20:57 -0700)]
ui.pens.image: allow float math.

3 years agoui.gadgets.icons: draw icon on top of selected background.
John Benediktsson [Tue, 19 May 2020 03:56:25 +0000 (20:56 -0700)]
ui.gadgets.icons: draw icon on top of selected background.

3 years agoui.baseline-alignment: allow floats in alignment.
John Benediktsson [Tue, 19 May 2020 03:53:14 +0000 (20:53 -0700)]
ui.baseline-alignment: allow floats in alignment.

3 years agohelp.html: set the sizes of 2x definition icons.
John Benediktsson [Tue, 19 May 2020 03:46:27 +0000 (20:46 -0700)]
help.html: set the sizes of 2x definition icons.

3 years agoui.images: load all UI images as 2x for retina displays.
John Benediktsson [Tue, 19 May 2020 03:45:58 +0000 (20:45 -0700)]
ui.images: load all UI images as 2x for retina displays.

3 years agoui.gadgets.labels: only ceiling the height for now.
John Benediktsson [Mon, 18 May 2020 15:06:08 +0000 (08:06 -0700)]
ui.gadgets.labels: only ceiling the height for now.

This might align to every other pixel on a 2x display but it fixes some
rendering artifacts with borders on subpixel boundaries.

3 years agoRevert "ui.gadgets.labels: make labels integer larger than text."
John Benediktsson [Mon, 18 May 2020 15:02:06 +0000 (08:02 -0700)]
Revert "ui.gadgets.labels: make labels integer larger than text."

This reverts commit 0b294c5d50207cbbbd27b4acda9b89304e761153.

3 years agoui.gadgets.tracks: don't convert dims to floats in track-pref-dims-2.
John Benediktsson [Mon, 18 May 2020 03:47:22 +0000 (20:47 -0700)]
ui.gadgets.tracks: don't convert dims to floats in track-pref-dims-2.

3 years agoui.gadgets.borders: don't convert border-loc to fixnum.
John Benediktsson [Mon, 18 May 2020 03:45:49 +0000 (20:45 -0700)]
ui.gadgets.borders: don't convert border-loc to fixnum.

3 years agoui.gadgets.labels: make labels integer larger than text.
John Benediktsson [Mon, 18 May 2020 03:44:21 +0000 (20:44 -0700)]
ui.gadgets.labels: make labels integer larger than text.

3 years agobuild.sh: make_boot_image can just use -run=bootstrap.image.
John Benediktsson [Mon, 18 May 2020 02:55:59 +0000 (19:55 -0700)]
build.sh: make_boot_image can just use -run=bootstrap.image.

3 years agobootstrap.image: allow making other images in main.
John Benediktsson [Mon, 18 May 2020 02:53:18 +0000 (19:53 -0700)]
bootstrap.image: allow making other images in main.

3 years agobuild.sh: Add self-bootstrap option.
Doug Coleman [Sat, 16 May 2020 19:49:57 +0000 (14:49 -0500)]
build.sh: Add self-bootstrap option.

3 years agobuild.sh: Only pull into current branch so we don't end up merging
Doug Coleman [Sat, 16 May 2020 19:45:33 +0000 (14:45 -0500)]
build.sh: Only pull into current branch so we don't end up merging

3 years agologic.examples.money: use lnth and leach.
John Benediktsson [Sat, 16 May 2020 18:26:16 +0000 (11:26 -0700)]
logic.examples.money: use lnth and leach.

3 years agoui.gadgets.labels: allow sub-pixel baseline and cap-height.
John Benediktsson [Sat, 16 May 2020 18:18:11 +0000 (11:18 -0700)]
ui.gadgets.labels: allow sub-pixel baseline and cap-height.

3 years agobasis/extra: replace "/ >integer" with "/i" in a few places.
John Benediktsson [Sat, 16 May 2020 18:17:42 +0000 (11:17 -0700)]
basis/extra: replace "/ >integer" with "/i" in a few places.

3 years agoui.gadgets.packs: change pack-layout not to round.
John Benediktsson [Sat, 16 May 2020 18:10:18 +0000 (11:10 -0700)]
ui.gadgets.packs: change pack-layout not to round.

3 years agobrainfuck: inline (?) because it's not a language command.
John Benediktsson [Sat, 16 May 2020 17:13:10 +0000 (10:13 -0700)]
brainfuck: inline (?) because it's not a language command.

3 years agoui.gadgets: formatting.
John Benediktsson [Sat, 16 May 2020 17:07:35 +0000 (10:07 -0700)]
ui.gadgets: formatting.

3 years agoui.baseline-alignment: better stack effects.
John Benediktsson [Sat, 16 May 2020 17:05:11 +0000 (10:05 -0700)]
ui.baseline-alignment: better stack effects.

3 years agocore-text: change metrics>dim not to ceiling.
John Benediktsson [Sat, 16 May 2020 16:58:42 +0000 (09:58 -0700)]
core-text: change metrics>dim not to ceiling.

3 years agoio.standard-paths: fix standard-login-paths for fish shell
Sergii Fesenko [Sat, 16 May 2020 13:52:09 +0000 (16:52 +0300)]
io.standard-paths: fix standard-login-paths for fish shell

Fish shell automatically split variables whose name ends in "PATH" into lists,
and uses space as separator for output
Colons force fish to use standard $PATH representation

3 years agourls: adding redacted-url to mask the password of a URL.
John Benediktsson [Fri, 15 May 2020 19:11:29 +0000 (12:11 -0700)]
urls: adding redacted-url to mask the password of a URL.

This is particularly useful for logging to avoid accidentally printing
passwords in web server logs.

3 years agoAdded imenu tags to factor-mode for Emacs
Silvio Mayolo [Thu, 14 May 2020 00:20:34 +0000 (20:20 -0400)]
Added imenu tags to factor-mode for Emacs

3 years agosodium.ffi: add the scrypt functions
Alexander Iljin [Sun, 10 May 2020 23:00:43 +0000 (01:00 +0200)]
sodium.ffi: add the scrypt functions

3 years agosodium: update copyright years in the header
Alexander Iljin [Mon, 27 Apr 2020 16:22:44 +0000 (18:22 +0200)]
sodium: update copyright years in the header

3 years agosodium: add sodium-bin>base64
Alexander Iljin [Mon, 27 Apr 2020 22:40:45 +0000 (00:40 +0200)]
sodium: add sodium-bin>base64

3 years agosodium: add sodium-base64>bin
Alexander Iljin [Mon, 27 Apr 2020 16:20:22 +0000 (18:20 +0200)]
sodium: add sodium-base64>bin

4 years agomath.bitwise: some docs cleanup.
John Benediktsson [Sat, 2 May 2020 14:43:39 +0000 (07:43 -0700)]
math.bitwise: some docs cleanup.

4 years agomath.bitwise: Add some more docs to find bits form >signed.
Doug Coleman [Mon, 27 Apr 2020 04:49:17 +0000 (23:49 -0500)]
math.bitwise: Add some more docs to find bits form >signed.

4 years agomath.bitwise: Add an in-order bitfield word called bitfield*.
Doug Coleman [Sat, 2 May 2020 03:48:48 +0000 (22:48 -0500)]
math.bitwise: Add an in-order bitfield word called bitfield*.

4 years agotensors: updated with the latest tensors vocab.
John Benediktsson [Tue, 28 Apr 2020 03:15:33 +0000 (20:15 -0700)]
tensors: updated with the latest tensors vocab.

rebased and merged #2283

4 years agovisionect: change http-backend to use CRLF.
John Benediktsson [Thu, 23 Apr 2020 18:23:58 +0000 (11:23 -0700)]
visionect: change http-backend to use CRLF.

4 years agovisionect: handle non-post-data in visionect-post.
John Benediktsson [Wed, 22 Apr 2020 04:18:42 +0000 (21:18 -0700)]
visionect: handle non-post-data in visionect-post.

4 years agovisionect: fix get-tclv and set-tclv.
John Benediktsson [Tue, 21 Apr 2020 19:33:55 +0000 (12:33 -0700)]
visionect: fix get-tclv and set-tclv.

4 years agovisionect: get http-backend working properly.
John Benediktsson [Tue, 21 Apr 2020 19:25:17 +0000 (12:25 -0700)]
visionect: get http-backend working properly.

4 years agoadded srv parsing
Steve Ayerhart [Tue, 21 Apr 2020 17:52:51 +0000 (12:52 -0500)]
added srv parsing

4 years agoincorrect SRV enum
Steve Ayerhart [Tue, 21 Apr 2020 17:51:13 +0000 (12:51 -0500)]
incorrect SRV enum

4 years agobootstrap.image.upload: remove os hook from scp-name.
John Benediktsson [Tue, 21 Apr 2020 14:05:19 +0000 (07:05 -0700)]
bootstrap.image.upload: remove os hook from scp-name.

4 years agobootstrap.image.upload: scp is included with windows git now.
Doug Coleman [Tue, 21 Apr 2020 06:15:19 +0000 (01:15 -0500)]
bootstrap.image.upload: scp is included with windows git now.

pscp is not necessary anymore and in fact is a more effort to set up.

4 years agovisionect: new vocab for Visionect Server Management API.
John Benediktsson [Mon, 20 Apr 2020 21:57:53 +0000 (14:57 -0700)]
visionect: new vocab for Visionect Server Management API.

4 years agomath.bitwise: Fix shift "right" to shift "left" for bitfield.
Doug Coleman [Sun, 19 Apr 2020 00:46:29 +0000 (19:46 -0500)]
math.bitwise: Fix shift "right" to shift "left" for bitfield.

This word was really hard to understand so I reworked the docs and added another example.

4 years agoio.files.trash: use normalize-path.
John Benediktsson [Sat, 18 Apr 2020 16:58:40 +0000 (09:58 -0700)]
io.files.trash: use normalize-path.

4 years agoio.files.trash: add tags.txt for now.
John Benediktsson [Sat, 18 Apr 2020 16:48:22 +0000 (09:48 -0700)]
io.files.trash: add tags.txt for now.

4 years agowebsites.concatenative: rename cgi to gitweb.
John Benediktsson [Sat, 18 Apr 2020 05:11:05 +0000 (22:11 -0700)]
websites.concatenative: rename cgi to gitweb.

4 years agoio.files.trash.windows: convert input path to absolute in send-to-trash
Alexander Iljin [Mon, 30 Jul 2018 07:21:25 +0000 (09:21 +0200)]
io.files.trash.windows: convert input path to absolute in send-to-trash

The input path must be absolute, but normalize-path can't be used, because
that returns UNC path, and SHFileOperation fails on any path prefixed with
"\\?", see https://docs.microsoft.com/en-us/windows/win32/api/shellapi/ns-shellapi-shfileopstructa
Use absolute-path instead. The mixture of slashes and backslashes in the
path is tolerated, at least on Windows 10.

Add a simple unit-test.

4 years agoio.files.trash.windows: fix SHFILEOPSTRUCTW struct
Alexander Iljin [Wed, 15 Apr 2020 21:28:06 +0000 (23:28 +0200)]
io.files.trash.windows: fix SHFILEOPSTRUCTW struct

Fix the incorrect field alignment. SHFileOperationW crashed with a memory
protection error while trying to dereference only part of the string
pointer.

4 years agoui.gadgets.charts: delete some obsolete implementation comments
Alexander Iljin [Mon, 13 Apr 2020 22:16:49 +0000 (00:16 +0200)]
ui.gadgets.charts: delete some obsolete implementation comments

4 years agoimages.viewer-docs: remove some extra spaces
Alexander Iljin [Mon, 13 Apr 2020 22:15:58 +0000 (00:15 +0200)]
images.viewer-docs: remove some extra spaces

4 years agocompiler.tree.propagation.constraints: fix a harmless typo
Alexander Iljin [Sun, 9 Feb 2020 14:49:19 +0000 (15:49 +0100)]
compiler.tree.propagation.constraints: fix a harmless typo

4 years agoalien.data-docs: fix wording and punctuation in cast-array help
Alexander Iljin [Sun, 2 Jun 2019 16:38:05 +0000 (18:38 +0200)]
alien.data-docs: fix wording and punctuation in cast-array help

4 years agoui.gestures-docs: add code example to file-drop gesture documentation
Alexander Iljin [Sun, 21 Apr 2019 20:31:43 +0000 (22:31 +0200)]
ui.gestures-docs: add code example to file-drop gesture documentation

4 years agoio.timeouts-docs: fix an example formatting
Alexander Iljin [Wed, 15 May 2019 10:24:20 +0000 (12:24 +0200)]
io.timeouts-docs: fix an example formatting

The help system highlights only the last line as the code "output", so in
this case it displayed only half of the text that way.

4 years agovm: Allow larger 32bit code heaps.
Doug Coleman [Mon, 13 Apr 2020 22:50:58 +0000 (15:50 -0700)]
vm: Allow larger 32bit code heaps.

Code heap is artificially restricted on 32bit because PPC only had relative
jump instructions of a certain width and we punted on implementing
larger jumps.

4 years agomason.child: change windows code-heap from 200 to 100.
John Benediktsson [Mon, 13 Apr 2020 20:36:10 +0000 (13:36 -0700)]
mason.child: change windows code-heap from 200 to 100.

4 years agodrive-strings: really move this time.
John Benediktsson [Mon, 13 Apr 2020 19:53:13 +0000 (12:53 -0700)]
drive-strings: really move this time.

4 years agodrive-strings: move to windows.drive-strings.
John Benediktsson [Mon, 13 Apr 2020 19:43:25 +0000 (12:43 -0700)]
drive-strings: move to windows.drive-strings.

4 years agosodium.secure-memory: fix a stack effect and add documentation
Alexander Iljin [Mon, 13 Apr 2020 19:05:40 +0000 (21:05 +0200)]
sodium.secure-memory: fix a stack effect and add documentation

4 years agoliterals-docs: fix a copy-paste error
Alexander Iljin [Mon, 13 Apr 2020 18:21:17 +0000 (20:21 +0200)]
literals-docs: fix a copy-paste error

4 years agodrive-strings: add a demo vocab for GetLogicalDriveStrings to extra
Alexander Iljin [Fri, 9 Aug 2019 06:20:00 +0000 (08:20 +0200)]
drive-strings: add a demo vocab for GetLogicalDriveStrings to extra

4 years agowindows.kernel32: add GetLogicalDriveStrings
Alexander Iljin [Fri, 9 Aug 2019 06:16:39 +0000 (08:16 +0200)]
windows.kernel32: add GetLogicalDriveStrings

4 years agowindows.version: new vocab
Alexander Iljin [Sat, 12 Oct 2019 11:44:11 +0000 (13:44 +0200)]
windows.version: new vocab

4 years agoalien.data-docs: fix a typo
Alexander Iljin [Fri, 29 Mar 2019 23:54:38 +0000 (00:54 +0100)]
alien.data-docs: fix a typo

4 years agoio.files.windows: rename a stack effect to make it more readable
Alexander Iljin [Mon, 10 Dec 2018 15:03:13 +0000 (16:03 +0100)]
io.files.windows: rename a stack effect to make it more readable

4 years agosodium: fix help-lint warnings.
John Benediktsson [Mon, 13 Apr 2020 18:16:18 +0000 (11:16 -0700)]
sodium: fix help-lint warnings.

4 years agosodium.secure-memory: fix return type of secure-memory=.
John Benediktsson [Mon, 13 Apr 2020 18:13:20 +0000 (11:13 -0700)]
sodium.secure-memory: fix return type of secure-memory=.

4 years agomirrors: make failures check error type.
John Benediktsson [Mon, 13 Apr 2020 17:53:22 +0000 (10:53 -0700)]
mirrors: make failures check error type.