]> gitweb.factorcode.org Git - factor.git/log
factor.git
3 years agomisc/vim: fix <PRIVATE blocks.
John Benediktsson [Wed, 10 Mar 2021 23:42:18 +0000 (15:42 -0800)]
misc/vim: fix <PRIVATE blocks.

3 years agomisc/vim: some cleanup and add more stuff.
John Benediktsson [Wed, 10 Mar 2021 23:30:46 +0000 (15:30 -0800)]
misc/vim: some cleanup and add more stuff.

3 years agomason.test: remove unused "word-vocabulary".
John Benediktsson [Tue, 9 Mar 2021 23:01:59 +0000 (15:01 -0800)]
mason.test: remove unused "word-vocabulary".

3 years agotoml: fix inline table parsing.
John Benediktsson [Tue, 9 Mar 2021 20:13:04 +0000 (12:13 -0800)]
toml: fix inline table parsing.

3 years agounix.signals: tweak dispatch-signal-hooks.
John Benediktsson [Mon, 8 Mar 2021 23:46:24 +0000 (15:46 -0800)]
unix.signals: tweak dispatch-signal-hooks.

3 years agolinux-input-events: move to basis and rename linux.input-events.
John Benediktsson [Mon, 8 Mar 2021 23:21:11 +0000 (15:21 -0800)]
linux-input-events: move to basis and rename linux.input-events.

3 years agounix.signals: use remove-eq! on signal handlers.
John Benediktsson [Mon, 8 Mar 2021 23:17:37 +0000 (15:17 -0800)]
unix.signals: use remove-eq! on signal handlers.

3 years agoWindoows: Add some more bindings.
Doug Coleman [Sun, 7 Mar 2021 19:02:45 +0000 (13:02 -0600)]
Windoows: Add some more bindings.

3 years agowindows: Add some win32 snapshot apis.
Doug Coleman [Sat, 6 Mar 2021 22:52:58 +0000 (16:52 -0600)]
windows: Add some win32 snapshot apis.

3 years agohttp.client.debugger: Print the whole message.
Doug Coleman [Fri, 5 Mar 2021 22:29:53 +0000 (16:29 -0600)]
http.client.debugger: Print the whole message.

3 years agolinux.input-events: rename to linux-input-events to fix builder
Doug Coleman [Fri, 5 Mar 2021 15:23:13 +0000 (09:23 -0600)]
linux.input-events: rename to linux-input-events to fix builder

3 years agolinux.input-events: Remove blank line from platforms.txt.
Doug Coleman [Fri, 5 Mar 2021 06:39:01 +0000 (00:39 -0600)]
linux.input-events: Remove blank line from platforms.txt.

If this fixes the build we should fix the parser...

3 years agoio.files.info: fix docs.
John Benediktsson [Fri, 5 Mar 2021 04:59:47 +0000 (20:59 -0800)]
io.files.info: fix docs.

3 years agoio.files.info: support some funny uses of directory?...
John Benediktsson [Fri, 5 Mar 2021 04:58:34 +0000 (20:58 -0800)]
io.files.info: support some funny uses of directory?...

e.g., T{ directory-entry } directory?

3 years agoio.files.info: allow paths to be passed to directory?.
John Benediktsson [Fri, 5 Mar 2021 04:39:02 +0000 (20:39 -0800)]
io.files.info: allow paths to be passed to directory?.

3 years agoio.sockets: Use a larger dh file to make openssl happy.
Doug Coleman [Fri, 5 Mar 2021 02:45:02 +0000 (20:45 -0600)]
io.sockets: Use a larger dh file to make openssl happy.

Fixes errors like:
error:1408518A:SSL routines:ssl3_ctx_ctrl:dh key too small

3 years agourls.encoding: speed up decode on unicode.
John Benediktsson [Fri, 5 Mar 2021 02:18:41 +0000 (18:18 -0800)]
urls.encoding: speed up decode on unicode.

3 years agourls.encoding: make unicode fix to decode-uri also.
John Benediktsson [Fri, 5 Mar 2021 01:34:42 +0000 (17:34 -0800)]
urls.encoding: make unicode fix to decode-uri also.

3 years agourls: more correct fix for unicode, but maybe slower than it could be.
John Benediktsson [Thu, 4 Mar 2021 23:24:33 +0000 (15:24 -0800)]
urls: more correct fix for unicode, but maybe slower than it could be.

3 years agopunycode: fix the tests (got the direction wrong).
John Benediktsson [Thu, 4 Mar 2021 23:11:48 +0000 (15:11 -0800)]
punycode: fix the tests (got the direction wrong).

3 years agopunycode: remove test.
John Benediktsson [Thu, 4 Mar 2021 23:08:46 +0000 (15:08 -0800)]
punycode: remove test.

3 years agopunycode: remove IRL in favor of >idna and idna> generics.
John Benediktsson [Thu, 4 Mar 2021 23:07:53 +0000 (15:07 -0800)]
punycode: remove IRL in favor of >idna and idna> generics.

3 years agourls: another unicode test.
John Benediktsson [Thu, 4 Mar 2021 23:07:38 +0000 (15:07 -0800)]
urls: another unicode test.

3 years agourls: fix for unicode url parsing.
John Benediktsson [Thu, 4 Mar 2021 22:56:15 +0000 (14:56 -0800)]
urls: fix for unicode url parsing.

3 years agourls.encoding: change escape-uri-char? to be simpler looking.
John Benediktsson [Thu, 4 Mar 2021 22:43:42 +0000 (14:43 -0800)]
urls.encoding: change escape-uri-char? to be simpler looking.

3 years agourls: fix for paths that contain slashes.
John Benediktsson [Thu, 4 Mar 2021 22:32:21 +0000 (14:32 -0800)]
urls: fix for paths that contain slashes.

3 years agoRevert "linux.input-events: simplify input-events-assoc."
John Benediktsson [Thu, 4 Mar 2021 20:38:17 +0000 (12:38 -0800)]
Revert "linux.input-events: simplify input-events-assoc."

This reverts commit 34691cee629e523868931c0f3b75f759c8131b9f.

3 years agolinux.input-events: simplify input-events-assoc.
John Benediktsson [Thu, 4 Mar 2021 20:33:01 +0000 (12:33 -0800)]
linux.input-events: simplify input-events-assoc.

3 years agoalien.enums: change enum constructor to not be inline.
John Benediktsson [Thu, 4 Mar 2021 20:30:00 +0000 (12:30 -0800)]
alien.enums: change enum constructor to not be inline.

3 years agoui.theme.base16: initialize base16-theme-name differently.
John Benediktsson [Thu, 4 Mar 2021 19:32:06 +0000 (11:32 -0800)]
ui.theme.base16: initialize base16-theme-name differently.

3 years agoRemoves unnecessary uses from base16 themes
inivekin [Thu, 4 Mar 2021 12:20:18 +0000 (20:20 +0800)]
Removes unnecessary uses from base16 themes

3 years agoAdds base16 themes
inivekin [Thu, 4 Mar 2021 12:09:06 +0000 (20:09 +0800)]
Adds base16 themes

3 years agourls: fix the scheme case-insensitive test.
John Benediktsson [Thu, 4 Mar 2021 19:20:10 +0000 (11:20 -0800)]
urls: fix the scheme case-insensitive test.

3 years agourls: allow empty query and fragments in parse.
John Benediktsson [Thu, 4 Mar 2021 19:02:35 +0000 (11:02 -0800)]
urls: allow empty query and fragments in parse.

3 years agoio.directories: removing with-qualified-directory-{files,entries}.
John Benediktsson [Thu, 4 Mar 2021 18:50:44 +0000 (10:50 -0800)]
io.directories: removing with-qualified-directory-{files,entries}.

3 years agoRevert "Support declaring intervals as well as classes for the optimizing compiler"
John Benediktsson [Thu, 4 Mar 2021 00:05:10 +0000 (16:05 -0800)]
Revert "Support declaring intervals as well as classes for the optimizing compiler"

This reverts commit a1b6f4672be184ee9ff9a06ce2819f0f5a459bba.

3 years agoRevert "compiler.tree: formatting."
John Benediktsson [Thu, 4 Mar 2021 00:04:57 +0000 (16:04 -0800)]
Revert "compiler.tree: formatting."

This reverts commit ceb89cc87e231d92569b70f4ce235a8ee4558205.

3 years agocompiler.tree: formatting.
John Benediktsson [Wed, 3 Mar 2021 05:01:05 +0000 (21:01 -0800)]
compiler.tree: formatting.

3 years agoSupport declaring intervals as well as classes for the optimizing compiler
timor [Thu, 15 Aug 2019 09:40:26 +0000 (11:40 +0200)]
Support declaring intervals as well as classes for the optimizing compiler

A `{ class } declare` call will now also refine the value info if the `class`
word has a valid interval in the "declared-interval" property.

This allows certain optimizations during value propagation passes in the
frontend compiler.

For easier usage, a new vocabulary `math.intervals.predicates` is supplied.

Union and intersection classes are also considered when determining the interval.

The compiler makes use of this in `compile.tree.propagation.info` in
`class-interval`.

This also ensures that whenever the frontend determines that a value has a class
with interval declaration, the interval slot of the value-info is initialized
correctly.

3 years agomath: fix some help-lint warnings.
John Benediktsson [Tue, 2 Mar 2021 20:54:49 +0000 (12:54 -0800)]
math: fix some help-lint warnings.

3 years agoio.pathnames: shorter absolute-path.
John Benediktsson [Tue, 2 Mar 2021 20:47:10 +0000 (12:47 -0800)]
io.pathnames: shorter absolute-path.

3 years agomath.parser: fix tests for 0.0 0.0 / platform dependent result.
John Benediktsson [Tue, 2 Mar 2021 19:20:34 +0000 (11:20 -0800)]
math.parser: fix tests for 0.0 0.0 / platform dependent result.

3 years agoui.gadgets: Specialize default behavior on object instead of gadget
timor [Sat, 21 Nov 2020 20:02:48 +0000 (21:02 +0100)]
ui.gadgets: Specialize default behavior on object instead of gadget

This allows implementing mixins which then can specify default behavior for
layouting and grafting for their instances.

Specifically concerns these generics:
- `model-changed`
- `layout*`
- `graft*`
- `ungraft*`

3 years agologging: fix tests that need io.directories.
John Benediktsson [Tue, 2 Mar 2021 18:50:29 +0000 (10:50 -0800)]
logging: fix tests that need io.directories.

3 years agoio.directories: change qualified-directory-{files,entries} to be relative.
John Benediktsson [Tue, 2 Mar 2021 18:49:59 +0000 (10:49 -0800)]
io.directories: change qualified-directory-{files,entries} to be relative.

3 years agoprettyprint: print signed nan payload.
John Benediktsson [Tue, 2 Mar 2021 18:34:05 +0000 (10:34 -0800)]
prettyprint: print signed nan payload.

3 years agogit: Reduce duplication and add better tests.
Doug Coleman [Fri, 5 Feb 2021 23:52:23 +0000 (17:52 -0600)]
git: Reduce duplication and add better tests.

3 years agocpu.arm.assembler.opcodes: Add link to pdf
Doug Coleman [Sun, 28 Feb 2021 05:19:58 +0000 (23:19 -0600)]
cpu.arm.assembler.opcodes: Add link to pdf

3 years agourls.encoding: Add some javascript encoding words.
Doug Coleman [Sun, 28 Feb 2021 05:27:18 +0000 (23:27 -0600)]
urls.encoding: Add some javascript encoding words.

3 years agoio.directories: delete directory-tree-files.
John Benediktsson [Fri, 26 Feb 2021 00:45:03 +0000 (18:45 -0600)]
io.directories: delete directory-tree-files.

recursive-directory-files is strictly superior.

3 years agoio.directories: merge io.directories.search and io.directories.hierarchy.
John Benediktsson [Fri, 26 Feb 2021 00:24:17 +0000 (18:24 -0600)]
io.directories: merge io.directories.search and io.directories.hierarchy.

3 years agosplitting.monotonic-docs: fix a copy-paste error
Alexander Iljin [Sat, 28 Nov 2020 15:10:47 +0000 (16:10 +0100)]
splitting.monotonic-docs: fix a copy-paste error

3 years agosyntax-docs: add the \u{xx} syntax description to a help article
Alexander Iljin [Sun, 22 Nov 2020 21:55:25 +0000 (22:55 +0100)]
syntax-docs: add the \u{xx} syntax description to a help article

3 years agopeg.ebnf-docs: add help for EBNF-PARSER:
Alexander Iljin [Sun, 22 Nov 2020 21:52:46 +0000 (22:52 +0100)]
peg.ebnf-docs: add help for EBNF-PARSER:

3 years agopeg.parsers-docs: fix some typos
Alexander Iljin [Sun, 22 Nov 2020 21:53:24 +0000 (22:53 +0100)]
peg.parsers-docs: fix some typos

3 years agototp[-docs]: add 2020 to the copyright years
Alexander Iljin [Wed, 29 Jul 2020 19:56:55 +0000 (21:56 +0200)]
totp[-docs]: add 2020 to the copyright years

3 years agographs: add closure-as, base closure on that
timor [Tue, 15 Dec 2020 14:05:41 +0000 (15:05 +0100)]
graphs: add closure-as, base closure on that

Motivation: `V{ } closure-as` returns elements in reverse post-order.

3 years agoui.gadgets.line-support: fix pref-dim* circularity.
John Benediktsson [Fri, 26 Feb 2021 00:19:02 +0000 (18:19 -0600)]
ui.gadgets.line-support: fix pref-dim* circularity.

3 years agoui.gadgets.editors: make editors pref-dim respect min/max rows/cols.
John Benediktsson [Thu, 25 Feb 2021 23:51:22 +0000 (17:51 -0600)]
ui.gadgets.editors: make editors pref-dim respect min/max rows/cols.

3 years agomath.parser: some fixes by @jonenst.
John Benediktsson [Thu, 25 Feb 2021 23:32:59 +0000 (17:32 -0600)]
math.parser: some fixes by @jonenst.

3 years agoui.gadgets: don't need double USE:.
John Benediktsson [Thu, 25 Feb 2021 23:32:47 +0000 (17:32 -0600)]
ui.gadgets: don't need double USE:.

3 years agomath.parser: force sign for nans
Jon Harper [Sun, 17 Jul 2016 18:17:01 +0000 (20:17 +0200)]
math.parser: force sign for nans

3 years agofix math.parser's ?neg for nans
Jon Harper [Sun, 17 Jul 2016 18:13:36 +0000 (20:13 +0200)]
fix math.parser's ?neg for nans

3 years agomath.parser, print NaN signs
Jon Harper [Sun, 17 Jul 2016 17:56:51 +0000 (19:56 +0200)]
math.parser, print NaN signs

3 years agoprettyprinter, print defaults NaNs as "[-]0/0."
Jon Harper [Sun, 17 Jul 2016 17:46:58 +0000 (19:46 +0200)]
prettyprinter, print defaults NaNs as "[-]0/0."

3 years agoprettyprinter, print the sign bit of NaNs
Jon Harper [Mon, 15 Jun 2015 22:08:10 +0000 (00:08 +0200)]
prettyprinter, print the sign bit of NaNs

3 years agomath.parser: allow '1+1/3.' for symmetry with '1/3.'
Jon Harper [Mon, 15 Jun 2015 13:26:24 +0000 (15:26 +0200)]
math.parser: allow '1+1/3.' for symmetry with '1/3.'

3 years agosyntax-docs: remove outdated '-5/-6' example
Jon Harper [Mon, 15 Jun 2015 13:08:52 +0000 (15:08 +0200)]
syntax-docs: remove outdated '-5/-6' example

3 years agoshell.nix: wrap $binary in quotes in case $root has spaces.
John Benediktsson [Tue, 23 Feb 2021 16:59:01 +0000 (08:59 -0800)]
shell.nix: wrap $binary in quotes in case $root has spaces.

3 years agoshell.nix: make wrapFactor helper idempotent
timor [Sat, 21 Nov 2020 16:48:36 +0000 (17:48 +0100)]
shell.nix: make wrapFactor helper idempotent

Detects if it was already wrapped, so it re-wraps correctly now.

3 years agoshell.nix: use correct opengl dependencies, fix runtime lib path
timor [Sat, 21 Nov 2020 16:48:07 +0000 (17:48 +0100)]
shell.nix: use correct opengl dependencies, fix runtime lib path

3 years agoshell.nix: Add more runtime dependencies for nixos wrapper
timor [Sat, 21 Nov 2020 11:20:07 +0000 (12:20 +0100)]
shell.nix: Add more runtime dependencies for nixos wrapper

Required for vocabs:
- ogg
- ogg.vorbis
- compression.zlib.ffi

3 years agolinux.input-events: Add support for /dev/input/event* devices.
Doug Coleman [Mon, 22 Feb 2021 07:40:21 +0000 (01:40 -0600)]
linux.input-events: Add support for /dev/input/event* devices.

Pretty complete but needs integration into the game.input framework
and some examples of force feedback.

! To read a mouse:
get-input-events-mice first second <linux-controller> read-controller-loop

! To read a keyboard:
get-input-events-keyboards first second <linux-controller> read-controller-loop

! Show all devices
all-controller-stats ...

! linux util to do similar stuff
evtest /dev/input/event256

3 years agotools.completion: Allow more autocomplete candidates.
Doug Coleman [Mon, 22 Feb 2021 07:38:25 +0000 (01:38 -0600)]
tools.completion: Allow more autocomplete candidates.

I made a vocabulary ``linux.input-events`` and before this patch it
would not suggest this completion for ``USE: input``.

3 years agobuild.sh: getconf LONG_BIT finds word size without C/C++.
Doug Coleman [Mon, 21 Dec 2020 05:07:21 +0000 (23:07 -0600)]
build.sh: getconf LONG_BIT finds word size without C/C++.

3 years agosequences: Add 2any? combinator
timor [Thu, 18 Feb 2021 11:50:33 +0000 (12:50 +0100)]
sequences: Add 2any? combinator

3 years agocalendar: less mutability, more traditional.
John Benediktsson [Fri, 12 Feb 2021 21:20:11 +0000 (13:20 -0800)]
calendar: less mutability, more traditional.

3 years agoREADME: Add instructions for M1 macs and talk about the arm64 port.
Doug Coleman [Sat, 6 Feb 2021 17:50:35 +0000 (11:50 -0600)]
README: Add instructions for M1 macs and talk about the arm64 port.

3 years agocalendar: Clone by default and add tests.
Doug Coleman [Thu, 11 Feb 2021 15:01:24 +0000 (09:01 -0600)]
calendar: Clone by default and add tests.

Reported in gitter.

3 years agoVM: fix comments for inline_cache_jit
timor [Tue, 9 Feb 2021 21:13:58 +0000 (22:13 +0100)]
VM: fix comments for inline_cache_jit

3 years agogame.input.demos.joysticks: Add to demos and wrap buttons.
Doug Coleman [Sat, 6 Feb 2021 02:31:58 +0000 (20:31 -0600)]
game.input.demos.joysticks: Add to demos and wrap buttons.

On joysticks with 128 buttons the UI was extending across several
monitors. Instead we make a grid of buttons 32 wide which people
without joysticks with more than 32 buttons will never see.

3 years agogit: Fix parsing of gpgsig and clean up code.
Doug Coleman [Fri, 5 Feb 2021 00:29:23 +0000 (18:29 -0600)]
git: Fix parsing of gpgsig and clean up code.

They don't tell you that gpgsigs exist, take up many lines, and that you
need to keep reading while lines begin with a space.

"resource:" [ git-log ] with-directory
[ gpgsig>> ] filter

3 years agowindows.powrprof: Add platforms file
Doug Coleman [Tue, 2 Feb 2021 14:45:52 +0000 (08:45 -0600)]
windows.powrprof: Add platforms file

3 years agoio.sockets: Fix docs
Doug Coleman [Mon, 1 Feb 2021 23:15:02 +0000 (17:15 -0600)]
io.sockets: Fix docs

3 years agosystem-info.linux: Add username
Doug Coleman [Mon, 1 Feb 2021 14:06:23 +0000 (08:06 -0600)]
system-info.linux: Add username

3 years agowindows.powrprof: Add more functions to get power settings.
Doug Coleman [Sun, 31 Jan 2021 17:13:27 +0000 (11:13 -0600)]
windows.powrprof: Add more functions to get power settings.

3 years agowindows.winsock: Add more constants.
Doug Coleman [Sun, 31 Jan 2021 16:30:42 +0000 (10:30 -0600)]
windows.winsock: Add more constants.

3 years agobroadcast-server: use a string for cpu
Doug Coleman [Sun, 31 Jan 2021 16:30:17 +0000 (10:30 -0600)]
broadcast-server: use a string for cpu

3 years agobroadcast-server: Add cpu
Doug Coleman [Sun, 31 Jan 2021 05:36:23 +0000 (23:36 -0600)]
broadcast-server: Add cpu

3 years agowindows: Add cpu-mhz on Windows
Doug Coleman [Sun, 31 Jan 2021 04:35:06 +0000 (22:35 -0600)]
windows: Add cpu-mhz on Windows

3 years agobroadcast-server: more infos
Doug Coleman [Sun, 31 Jan 2021 03:26:20 +0000 (21:26 -0600)]
broadcast-server: more infos

3 years agosystem-info.macosx: Implement username
Doug Coleman [Sun, 31 Jan 2021 03:25:55 +0000 (21:25 -0600)]
system-info.macosx: Implement username

3 years agobroadcast-server: Add a cross-platform network discovery udp broadcast
Doug Coleman [Sun, 31 Jan 2021 00:37:01 +0000 (18:37 -0600)]
broadcast-server: Add a cross-platform network discovery udp broadcast
client/server.

3 years agosystem-info: Add a cross-platform username hook.
Doug Coleman [Sun, 31 Jan 2021 00:36:27 +0000 (18:36 -0600)]
system-info: Add a cross-platform username hook.

3 years agoio.sockets: Better docs for how to do a broadcast udp send.
Doug Coleman [Sun, 31 Jan 2021 00:35:42 +0000 (18:35 -0600)]
io.sockets: Better docs for how to do a broadcast udp send.

3 years agoui: Trim using lists.
Doug Coleman [Sat, 30 Jan 2021 19:54:39 +0000 (13:54 -0600)]
ui: Trim using lists.

3 years agowindows: Add some code to put something in the tray.
Doug Coleman [Sat, 30 Jan 2021 19:54:18 +0000 (13:54 -0600)]
windows: Add some code to put something in the tray.

3 years agoui.backend.windows: ToUnicode can return 0 and it's not an error that
Doug Coleman [Sat, 30 Jan 2021 19:52:40 +0000 (13:52 -0600)]
ui.backend.windows: ToUnicode can return 0 and it's not an error that
should crash Factor.

You can trigger this by spamming alt-shift-k in the Windows ui with a
korean keyboard selected.

3 years agoMerge branch 'master' of https://github.com/factor/factor
Doug Coleman [Sat, 30 Jan 2021 19:30:38 +0000 (13:30 -0600)]
Merge branch 'master' of https://github.com/factor/factor

3 years agofactor: More using list cleanup
Doug Coleman [Sat, 30 Jan 2021 19:17:50 +0000 (13:17 -0600)]
factor: More using list cleanup