]> gitweb.factorcode.org Git - factor.git/log
factor.git
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

3 years agoxkcd: fix urls
Ales Huzik [Sat, 30 Jan 2021 14:18:28 +0000 (01:18 +1100)]
xkcd: fix urls

3 years agohash-sets: Fix stack effect.
Doug Coleman [Fri, 29 Jan 2021 23:52:39 +0000 (17:52 -0600)]
hash-sets: Fix stack effect.

3 years agofactor: Trimming ``USING:`` lists.
Doug Coleman [Fri, 29 Jan 2021 04:53:51 +0000 (22:53 -0600)]
factor: Trimming ``USING:`` lists.

3 years agofactor: trim using lists
Doug Coleman [Thu, 28 Jan 2021 14:59:37 +0000 (08:59 -0600)]
factor: trim using lists

Searched for ``fry``, delete the imports, reload with auto-use, replace the imports

3 years agococoa.statusbar: Add some words to make a systemStatusBar on macOS
Doug Coleman [Thu, 28 Jan 2021 14:34:22 +0000 (08:34 -0600)]
cocoa.statusbar: Add some words to make a systemStatusBar on macOS

3 years agococoa: Add more cocoa/objc methods. lookup-method -> lookup-objc-method
Doug Coleman [Thu, 28 Jan 2021 14:21:46 +0000 (08:21 -0600)]
cocoa: Add more cocoa/objc methods. lookup-method -> lookup-objc-method

3 years agoAdd a missing fry (#2425)
Justin Hill [Wed, 27 Jan 2021 14:51:48 +0000 (06:51 -0800)]
Add a missing fry (#2425)

3 years agoopenssl: use .35 version on macos for now, should work on > 10.11.
John Benediktsson [Thu, 14 Jan 2021 18:42:53 +0000 (10:42 -0800)]
openssl: use .35 version on macos for now, should work on > 10.11.

3 years agoRevert "openssl.libcrypto: use non-versioned dylib on mac."
John Benediktsson [Thu, 14 Jan 2021 17:42:02 +0000 (09:42 -0800)]
Revert "openssl.libcrypto: use non-versioned dylib on mac."

This reverts commit 1a57283c089e0bb6b0dea67dab82d08003c1b425.

3 years agoopenssl.libcrypto: use non-versioned dylib on mac.
John Benediktsson [Thu, 14 Jan 2021 17:40:36 +0000 (09:40 -0800)]
openssl.libcrypto: use non-versioned dylib on mac.

3 years agoredis: Change tests with-redis word because it confused me.
Doug Coleman [Tue, 12 Jan 2021 02:06:52 +0000 (20:06 -0600)]
redis: Change tests with-redis word because it confused me.

3 years agoRevert "io.pathnames: fix separator when appending paths in windows"
John Benediktsson [Mon, 11 Jan 2021 21:27:20 +0000 (13:27 -0800)]
Revert "io.pathnames: fix separator when appending paths in windows"

This reverts commit 35f82c90f3b22457b42143143bc08d5298462ca6.

3 years agoRevert "io.pathnames: add missing linux branch in test"
John Benediktsson [Mon, 11 Jan 2021 21:27:03 +0000 (13:27 -0800)]
Revert "io.pathnames: add missing linux branch in test"

This reverts commit 9fc694e429c72ee12911be6940974a6c9f3728cf.

3 years agopeg.expr: fix parse error with numbers in parens.
John Benediktsson [Fri, 8 Jan 2021 17:55:59 +0000 (09:55 -0800)]
peg.expr: fix parse error with numbers in parens.

3 years agoAdded UTExportedTypeDeclarations to Info.plist
Dave Carlton [Wed, 30 Dec 2020 18:58:01 +0000 (12:58 -0600)]
Added UTExportedTypeDeclarations to Info.plist

    Permit system to identify file extension .factor as text

3 years agoUpdate Raylib from 2.5 -> 3.5
Arnaut Daniel [Thu, 31 Dec 2020 00:16:47 +0000 (19:16 -0500)]
Update Raylib from 2.5 -> 3.5

3 years agopeg.javascript: fix docs.
John Benediktsson [Mon, 28 Dec 2020 16:15:11 +0000 (08:15 -0800)]
peg.javascript: fix docs.

3 years agobenchmark.javascript: removing for now.
John Benediktsson [Mon, 28 Dec 2020 16:14:17 +0000 (08:14 -0800)]
benchmark.javascript: removing for now.

Since it doesn't parse the full example javascript, it's not that useful.

3 years agoreservoir-sampling: Sample k elements from an unknown number of elements with equal...
Doug Coleman [Sun, 27 Dec 2020 14:41:06 +0000 (08:41 -0600)]
reservoir-sampling: Sample k elements from an unknown number of elements with equal probability.

3 years agohttp.parsers: Allow a lot more characters in the cookie key.
Doug Coleman [Sun, 27 Dec 2020 02:17:11 +0000 (20:17 -0600)]
http.parsers: Allow a lot more characters in the cookie key.

The spec says one thing, but in practice we just disallow ; , and whitespace.

Add more unit tests.

3 years agoescape-strings: sha delimiters for fun
Doug Coleman [Sun, 27 Dec 2020 02:11:58 +0000 (20:11 -0600)]
escape-strings: sha delimiters for fun