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

3 years agocalendar: Add more predicates.
Doug Coleman [Sun, 27 Dec 2020 02:11:23 +0000 (20:11 -0600)]
calendar: Add more predicates.

3 years agostrings.parser: adding line continuations.
John Benediktsson [Thu, 24 Dec 2020 21:43:48 +0000 (13:43 -0800)]
strings.parser: adding line continuations.

3 years agopeg.javascript: fix tests.
John Benediktsson [Thu, 24 Dec 2020 21:00:05 +0000 (13:00 -0800)]
peg.javascript: fix tests.

3 years agopeg.javascript: support more features
John Benediktsson [Thu, 24 Dec 2020 20:51:47 +0000 (12:51 -0800)]
peg.javascript: support more features

hex ints
oct ints
floats exponent syntax
string oct escapes
string line continuations
~ operator

3 years agopeg.javascript: simplify to one file.
John Benediktsson [Thu, 24 Dec 2020 17:24:26 +0000 (09:24 -0800)]
peg.javascript: simplify to one file.

Then maybe modifying for new javascript syntax.

3 years agobenchmark.javascript: update jquery to 3.5.1 to avoid noisy XSS warnings.
John Benediktsson [Thu, 24 Dec 2020 17:01:35 +0000 (09:01 -0800)]
benchmark.javascript: update jquery to 3.5.1 to avoid noisy XSS warnings.

See #2403:

> Versions of jQuery (prior to 3.5) have a fairly recent XSS
> vulnerability:
> https://www.infoq.com/news/2020/04/jquery-35-xss-vulnerability-fix/

> It looks like the file is not used in any way that would expose the
> XSS bug, but for what it's worth it gets flagged as sketchy by some
> kinds of vulnerability scans my current project uses. Maybe other users
> will get that noise too?

3 years agosemantic-versioning: Better comparison code.
Doug Coleman [Mon, 21 Dec 2020 16:32:15 +0000 (10:32 -0600)]
semantic-versioning: Better comparison code.

3 years agosemver: Add more semver code to parse ranges. Need to merge with semantic-versioning...
Doug Coleman [Mon, 21 Dec 2020 16:30:12 +0000 (10:30 -0600)]
semver: Add more semver code to parse ranges. Need to merge with semantic-versioning soon.

3 years agoitunes: Add a way to query top podcasts from itunes.
Doug Coleman [Mon, 21 Dec 2020 02:15:16 +0000 (20:15 -0600)]
itunes: Add a way to query top podcasts from itunes.

3 years agosequences.extras: Add find-pred
Doug Coleman [Mon, 21 Dec 2020 15:14:26 +0000 (09:14 -0600)]
sequences.extras: Add find-pred

3 years agopeg.ebnf: Fix bug with ~ ignore and labels and add *~ +~
Doug Coleman [Mon, 21 Dec 2020 15:13:18 +0000 (09:13 -0600)]
peg.ebnf: Fix bug with ~ ignore and labels and add *~ +~

~ was only implemented for literals, this patch adds more support for ~

3 years agostrings: embed sequence-hashcode algorithm in rehash-string.
John Benediktsson [Fri, 18 Dec 2020 15:23:19 +0000 (07:23 -0800)]
strings: embed sequence-hashcode algorithm in rehash-string.

This allows us to experiment with changing sequence-hashcode.  For some
reason there is an issue with changing the hashcode algorithm for
strings when bootstrapping, the current rehash approach in stage1
doesn't rehash strings, but even when we do that, its still not quite
working right yet.

3 years agoRevert "time.unix: faster set-system-time."
John Benediktsson [Fri, 18 Dec 2020 15:16:35 +0000 (07:16 -0800)]
Revert "time.unix: faster set-system-time."

This reverts commit 467c284db5de06f4e89f482b203752aa38b799bc.

3 years agoclasses.tuple: shoot, meant this to be in .private.
John Benediktsson [Fri, 18 Dec 2020 06:25:25 +0000 (22:25 -0800)]
classes.tuple: shoot, meant this to be in .private.

3 years agoclasses.tuple: need to defer tuple-layout.
John Benediktsson [Fri, 18 Dec 2020 06:22:22 +0000 (22:22 -0800)]
classes.tuple: need to defer tuple-layout.

3 years agobootstrap: cleanup using.
John Benediktsson [Fri, 18 Dec 2020 06:21:40 +0000 (22:21 -0800)]
bootstrap: cleanup using.

3 years agoclasses.union: make sure tuple-class has tuple-layout.
John Benediktsson [Fri, 18 Dec 2020 06:19:58 +0000 (22:19 -0800)]
classes.union: make sure tuple-class has tuple-layout.

When tuples are being redefined it's possible for the layout to be f.

3 years agotime.unix: faster set-system-time.
John Benediktsson [Fri, 18 Dec 2020 06:16:47 +0000 (22:16 -0800)]
time.unix: faster set-system-time.

3 years agobootstrap: this is more fragile than I would like.
John Benediktsson [Fri, 18 Dec 2020 06:15:50 +0000 (22:15 -0800)]
bootstrap: this is more fragile than I would like.

3 years agoimages.processing.rotation: disable on linux temporarily.
John Benediktsson [Fri, 18 Dec 2020 02:59:41 +0000 (18:59 -0800)]
images.processing.rotation: disable on linux temporarily.

3 years agosorting.extras: adding compare-with.
John Benediktsson [Thu, 17 Dec 2020 22:29:46 +0000 (14:29 -0800)]
sorting.extras: adding compare-with.

This compares a sequence of quotations, returning early if any quotation
produces +lt+ or +gt+, but continuing to the next if it returns +eq+.

3 years agocalendar.format: fix timestamp>ymdhms (bad merge).
John Benediktsson [Thu, 17 Dec 2020 04:51:28 +0000 (20:51 -0800)]
calendar.format: fix timestamp>ymdhms (bad merge).

3 years agocalendar: really fix test.
John Benediktsson [Thu, 17 Dec 2020 04:42:48 +0000 (20:42 -0800)]
calendar: really fix test.

3 years agocalendar: fix quarter, add tests.
John Benediktsson [Thu, 17 Dec 2020 04:41:40 +0000 (20:41 -0800)]
calendar: fix quarter, add tests.

3 years agowords: removing unused "constructor-word".
John Benediktsson [Thu, 17 Dec 2020 03:51:58 +0000 (19:51 -0800)]
words: removing unused "constructor-word".

3 years agohelp.syntax: add / and " syntax lookups.
John Benediktsson [Thu, 17 Dec 2020 01:32:58 +0000 (17:32 -0800)]
help.syntax: add / and " syntax lookups.

3 years agodescriptive: fix reset-word on descriptive words.
John Benediktsson [Thu, 17 Dec 2020 00:52:08 +0000 (16:52 -0800)]
descriptive: fix reset-word on descriptive words.

3 years agocalendar: remove unnecessary test.
John Benediktsson [Thu, 17 Dec 2020 00:31:41 +0000 (16:31 -0800)]
calendar: remove unnecessary test.

3 years agolocals.definition: fix reset-word for M::, MACRO::, MEMO::.
John Benediktsson [Thu, 17 Dec 2020 00:28:00 +0000 (16:28 -0800)]
locals.definition: fix reset-word for M::, MACRO::, MEMO::.

call-next-method on an intersection isn't what we want here.

3 years agovocabs.parser: fix with-words to be properly restartable.
John Benediktsson [Thu, 17 Dec 2020 00:03:55 +0000 (16:03 -0800)]
vocabs.parser: fix with-words to be properly restartable.

We want with-words to unuse-words when a restart is provided but
not restarted, but if restarted, we need to use-words again and
then unuse-words.

3 years agocalendar: change >gmt, >local-time to clone.
John Benediktsson [Wed, 16 Dec 2020 22:50:11 +0000 (14:50 -0800)]
calendar: change >gmt, >local-time to clone.

Adding convert-gmt and convert-local-time if you don't want to clone.

3 years agohelp.syntax: $examples with all strings should be turned to code.
John Benediktsson [Wed, 16 Dec 2020 18:42:13 +0000 (10:42 -0800)]
help.syntax: $examples with all strings should be turned to code.

3 years agogrouping.extras: slightly slower but easier to maintain.
John Benediktsson [Wed, 16 Dec 2020 18:11:59 +0000 (10:11 -0800)]
grouping.extras: slightly slower but easier to maintain.

3 years agogrouping.extras: much faster group-map.
John Benediktsson [Wed, 16 Dec 2020 17:46:41 +0000 (09:46 -0800)]
grouping.extras: much faster group-map.

3 years agogrouping.extras: better {clump,group}-map.
John Benediktsson [Wed, 16 Dec 2020 17:22:41 +0000 (09:22 -0800)]
grouping.extras: better {clump,group}-map.

Specifically, clump-map is faster and both clump-map and group-map are
improved to call non-inlined sequences.

3 years agogrouping.extras: adding ngroup-map and some utility words.
John Benediktsson [Wed, 16 Dec 2020 15:41:07 +0000 (07:41 -0800)]
grouping.extras: adding ngroup-map and some utility words.

pad-group extends a sequence to make sure the last group if full.
short-group slices a sequence to make sure groups all same size.

3 years agocalendar: use clone >gmt in a few places.
John Benediktsson [Wed, 16 Dec 2020 03:58:58 +0000 (19:58 -0800)]
calendar: use clone >gmt in a few places.

3 years agohelp.syntax: more blocks.
John Benediktsson [Wed, 16 Dec 2020 03:12:16 +0000 (19:12 -0800)]
help.syntax: more blocks.

3 years agovocabs.parser: use finally instead of ``[ ] cleanup``.
John Benediktsson [Wed, 16 Dec 2020 02:59:37 +0000 (18:59 -0800)]
vocabs.parser: use finally instead of ``[ ] cleanup``.

3 years agohelp.syntax: prevent unnecessary ambiguous-use-errors.
John Benediktsson [Wed, 16 Dec 2020 01:50:54 +0000 (17:50 -0800)]
help.syntax: prevent unnecessary ambiguous-use-errors.

Look for valid help words in syntax and help.markup and then search
generally if the token looks like syntax.

3 years agoRevert "help.syntax: prevent unnecessary ambiguous-use-errors."
John Benediktsson [Wed, 16 Dec 2020 01:43:12 +0000 (17:43 -0800)]
Revert "help.syntax: prevent unnecessary ambiguous-use-errors."

This reverts commit b14f6853c2e4691a2b6aa0e52f31918d47efde77.

3 years agohelp.syntax: prevent unnecessary ambiguous-use-errors.
John Benediktsson [Wed, 16 Dec 2020 01:42:23 +0000 (17:42 -0800)]
help.syntax: prevent unnecessary ambiguous-use-errors.

Look for valid help words in syntax and help.markup.

3 years agosets: rename combine/refine to union-all/intersect-all
Benjamin Pollack [Tue, 15 Dec 2020 21:01:49 +0000 (16:01 -0500)]
sets: rename combine/refine to union-all/intersect-all

Closes #2385

3 years agofunctors: use with-words instead of more fragile qualified-vocabs pop*.
John Benediktsson [Wed, 16 Dec 2020 01:23:30 +0000 (17:23 -0800)]
functors: use with-words instead of more fragile qualified-vocabs pop*.

3 years agolocals.parser: use with-words again.
John Benediktsson [Tue, 15 Dec 2020 21:23:27 +0000 (13:23 -0800)]
locals.parser: use with-words again.

3 years agovocabs.parser: fix with-words.
John Benediktsson [Tue, 15 Dec 2020 21:22:06 +0000 (13:22 -0800)]
vocabs.parser: fix with-words.

Got the cleanup quots backwards, need to be cleanup-always.

3 years agoctags.etags: fix ARTICLE: docs.
John Benediktsson [Tue, 15 Dec 2020 19:13:55 +0000 (11:13 -0800)]
ctags.etags: fix ARTICLE: docs.

3 years agomath.matrices.elimination: fix $snippet to $link in docs.
John Benediktsson [Tue, 15 Dec 2020 19:10:55 +0000 (11:10 -0800)]
math.matrices.elimination: fix $snippet to $link in docs.

3 years agocalendar.holidays.us: cleanup using.
John Benediktsson [Tue, 15 Dec 2020 18:42:46 +0000 (10:42 -0800)]
calendar.holidays.us: cleanup using.

3 years agohelp.syntax: short circuit earlier when search returns f.
John Benediktsson [Tue, 15 Dec 2020 17:19:35 +0000 (09:19 -0800)]
help.syntax: short circuit earlier when search returns f.

3 years agosets: add docs about sequence ordering with members.
John Benediktsson [Tue, 15 Dec 2020 17:14:54 +0000 (09:14 -0800)]
sets: add docs about sequence ordering with members.

3 years agohelp.syntax: allow help.markup to be parsed as a literal.
John Benediktsson [Tue, 15 Dec 2020 17:13:18 +0000 (09:13 -0800)]
help.syntax: allow help.markup to be parsed as a literal.

3 years agoroman: try easy-help on article.
John Benediktsson [Tue, 15 Dec 2020 16:54:06 +0000 (08:54 -0800)]
roman: try easy-help on article.

3 years agohelp.syntax: simplify code-lines.
John Benediktsson [Tue, 15 Dec 2020 16:33:24 +0000 (08:33 -0800)]
help.syntax: simplify code-lines.

3 years agohelp.syntax: some fixes for $examples blocks with text.
John Benediktsson [Tue, 15 Dec 2020 15:29:45 +0000 (07:29 -0800)]
help.syntax: some fixes for $examples blocks with text.

3 years agoregexp: fixing the name collision for ^.
John Benediktsson [Tue, 15 Dec 2020 15:26:08 +0000 (07:26 -0800)]
regexp: fixing the name collision for ^.

3 years agohelp.syntax: some fixes for newlines and spaces in blocks.
John Benediktsson [Tue, 15 Dec 2020 06:15:12 +0000 (22:15 -0800)]
help.syntax: some fixes for newlines and spaces in blocks.

3 years agohelp.syntax: start to make ARTICLE: work.
John Benediktsson [Tue, 15 Dec 2020 06:07:28 +0000 (22:07 -0800)]
help.syntax: start to make ARTICLE: work.

3 years agoroman: Trying out easy-help
Doug Coleman [Tue, 15 Dec 2020 05:50:49 +0000 (23:50 -0600)]
roman: Trying out easy-help

3 years agohelp.syntax: when using multiline strings, need to unescape.
John Benediktsson [Tue, 15 Dec 2020 05:45:08 +0000 (21:45 -0800)]
help.syntax: when using multiline strings, need to unescape.

This might be temporary if we decide on raw string vs. escaped string
syntax for multiline.

3 years agoRevert "help.markup: make headings titlecase."
John Benediktsson [Tue, 15 Dec 2020 05:05:30 +0000 (21:05 -0800)]
Revert "help.markup: make headings titlecase."

This reverts commit 6749edd22078fd37e881807e17fc44bb1f05db9a.

3 years agohelp.syntax: fix intermediate double spaces.
John Benediktsson [Tue, 15 Dec 2020 04:59:41 +0000 (20:59 -0800)]
help.syntax: fix intermediate double spaces.

3 years agohelp.syntax: require string examples to be multi-line.
John Benediktsson [Tue, 15 Dec 2020 04:50:55 +0000 (20:50 -0800)]
help.syntax: require string examples to be multi-line.

3 years agohelp.syntax: can't treat $code as text.
John Benediktsson [Tue, 15 Dec 2020 04:47:51 +0000 (20:47 -0800)]
help.syntax: can't treat $code as text.

3 years agohelp.syntax: simplify $example.
John Benediktsson [Tue, 15 Dec 2020 04:38:15 +0000 (20:38 -0800)]
help.syntax: simplify $example.

3 years agohelp.syntax: make sure $example is an array.
John Benediktsson [Tue, 15 Dec 2020 04:33:59 +0000 (20:33 -0800)]
help.syntax: make sure $example is an array.

3 years agohelp.syntax: more tests.
John Benediktsson [Tue, 15 Dec 2020 04:24:28 +0000 (20:24 -0800)]
help.syntax: more tests.

3 years agohelp.syntax: don't double spaces in backwards compatibility.
John Benediktsson [Tue, 15 Dec 2020 04:11:35 +0000 (20:11 -0800)]
help.syntax: don't double spaces in backwards compatibility.