]> gitweb.factorcode.org Git - factor.git/log
factor.git
2 months agowebapps.planet: css for hr
John Benediktsson [Mon, 12 Feb 2024 22:40:09 +0000 (14:40 -0800)]
webapps.planet: css for hr

2 months agosequence.extras: fix docs spacing for arg-where
John Benediktsson [Mon, 12 Feb 2024 22:23:11 +0000 (14:23 -0800)]
sequence.extras: fix docs spacing for arg-where

2 months agomath.parser: require hex-string>bytes to have even digits
John Benediktsson [Mon, 12 Feb 2024 18:42:08 +0000 (10:42 -0800)]
math.parser: require hex-string>bytes to have even digits

2 months agomath.affine-transforms: fix help-lint on win32
John Benediktsson [Mon, 12 Feb 2024 18:20:25 +0000 (10:20 -0800)]
math.affine-transforms: fix help-lint on win32

2 months agovm: remove format.cpp
John Benediktsson [Mon, 12 Feb 2024 18:15:24 +0000 (10:15 -0800)]
vm: remove format.cpp

2 months agomath.parser: fix edge case for float>dec
John Benediktsson [Mon, 12 Feb 2024 16:35:20 +0000 (08:35 -0800)]
math.parser: fix edge case for float>dec

0x1.5c17bbc13570bp-3 should print as 0.16996714290024104
but instead prints as 1.6996714290024104e-1

2 months agotoml: fix for integer float representation
John Benediktsson [Mon, 12 Feb 2024 03:26:30 +0000 (19:26 -0800)]
toml: fix for integer float representation

2 months agomisc: update vim syntax
John Benediktsson [Mon, 12 Feb 2024 02:52:28 +0000 (18:52 -0800)]
misc: update vim syntax

2 months agoio: rename some private words
John Benediktsson [Mon, 12 Feb 2024 02:52:17 +0000 (18:52 -0800)]
io: rename some private words

2 months agomath.parser: rename some private words
John Benediktsson [Mon, 12 Feb 2024 02:50:26 +0000 (18:50 -0800)]
math.parser: rename some private words

2 months agoNmakefile: remove format.obj
John Benediktsson [Mon, 12 Feb 2024 01:41:54 +0000 (17:41 -0800)]
Nmakefile: remove format.obj

2 months agosequences.parser: remove duplicate using
John Benediktsson [Mon, 12 Feb 2024 01:36:28 +0000 (17:36 -0800)]
sequences.parser: remove duplicate using

2 months agomath.parser: tweak dragonbox by not using case/cond
John Benediktsson [Mon, 12 Feb 2024 00:46:43 +0000 (16:46 -0800)]
math.parser: tweak dragonbox by not using case/cond

Some kind of interaction between locals (perhaps shadowing other words)
and using case/cond causes this error in bootstrap:

    Cannot apply ‘case’ to a run-time computed value

2 months agomath.parser: Add Dragonbox float representation algorithm 2943/head
Giftpflanze [Sun, 11 Feb 2024 12:42:33 +0000 (13:42 +0100)]
math.parser: Add Dragonbox float representation algorithm

* Remove fmtlib
* Simplify `format-float`, rename to `format-float*`
* Change format:
  - no trailing zeroes in exponential format
  - no plus in exponents
  - no exponential format if the decimal representation of the significand
    has 17 digits or less

2 months agocompiler.tests.codegen: make a note about platform differences
John Benediktsson [Thu, 8 Feb 2024 02:33:06 +0000 (18:33 -0800)]
compiler.tests.codegen: make a note about platform differences

2 months agomath.affine-transforms: slight different on windows
John Benediktsson [Thu, 8 Feb 2024 02:32:58 +0000 (18:32 -0800)]
math.affine-transforms: slight different on windows

2 months agocompiler.tests.codegen: fix two more tests
John Benediktsson [Thu, 8 Feb 2024 01:26:39 +0000 (17:26 -0800)]
compiler.tests.codegen: fix two more tests

2 months agomath.parser: add a few more tests for number>string
John Benediktsson [Thu, 8 Feb 2024 01:25:14 +0000 (17:25 -0800)]
math.parser: add a few more tests for number>string

2 months agocompiler.tests.codegen: fix fcos test
John Benediktsson [Thu, 8 Feb 2024 00:23:29 +0000 (16:23 -0800)]
compiler.tests.codegen: fix fcos test

2 months agobuild.sh: fix rm checksums.txt files
John Benediktsson [Wed, 7 Feb 2024 22:29:08 +0000 (14:29 -0800)]
build.sh: fix rm checksums.txt files

2 months agoRevert "compiler.tests: update float constant"
John Benediktsson [Wed, 7 Feb 2024 22:07:01 +0000 (14:07 -0800)]
Revert "compiler.tests: update float constant"

This reverts commit 9b122262ebc43f13cb5468acedc31758f2473d19.

2 months agocompiler.tests: update float constant
John Benediktsson [Wed, 7 Feb 2024 22:00:47 +0000 (14:00 -0800)]
compiler.tests: update float constant

2 months agomath: fix help-lint
John Benediktsson [Wed, 7 Feb 2024 21:10:05 +0000 (13:10 -0800)]
math: fix help-lint

2 months agomath.statistics: fix help-lint
John Benediktsson [Wed, 7 Feb 2024 19:36:13 +0000 (11:36 -0800)]
math.statistics: fix help-lint

2 months agoNMakefile: adding format.obj
John Benediktsson [Wed, 7 Feb 2024 19:03:30 +0000 (11:03 -0800)]
NMakefile: adding format.obj

2 months agovm: forgot format.cpp
John Benediktsson [Wed, 7 Feb 2024 18:51:06 +0000 (10:51 -0800)]
vm: forgot format.cpp

2 months agovm: use the ``fmt`` library to fix shortest decimal representation issue.
John Benediktsson [Wed, 7 Feb 2024 18:47:15 +0000 (10:47 -0800)]
vm: use the ``fmt`` library to fix shortest decimal representation issue.

Before:

    IN: scratchpad 0x1.1ffffffffffffp7 .
    144.0

    IN: scratchpad 0x1.2p7 .
    144.0

    IN: scratchpad 0x1.2000000000001p7 .
    144.0

After:

    IN: scratchpad 0x1.1ffffffffffffp7 .
    143.99999999999997

    IN: scratchpad 0x1.2p7 .
    144.0

    IN: scratchpad 0x1.2000000000001p7 .
    144.00000000000003

Perhaps we should implement the Dragonbox algorithm ourselves at some point.

2 months agomath.functions: change { float integer } ^ to use fpow
John Benediktsson [Wed, 7 Feb 2024 05:14:30 +0000 (21:14 -0800)]
math.functions: change { float integer } ^ to use fpow

2 months agoAdded LIKE" for creating 'WHERE column LIKE' queries
Dave Carlton [Fri, 31 Mar 2023 11:27:58 +0000 (06:27 -0500)]
Added LIKE" for creating 'WHERE column LIKE' queries

(cherry picked from commit 0ea3d948ff5fe4bf60f03a14854e02a06267fe23)
(cherry picked from commit a6f6ddfb724c1ec02c6d6c807fd8ae3c4f61bbf4)

2 months agoxmode.catalog: adding qdoc and sparql
John Benediktsson [Mon, 5 Feb 2024 19:11:17 +0000 (11:11 -0800)]
xmode.catalog: adding qdoc and sparql

2 months agomacho: update mach-o/loader.h
John Benediktsson [Sun, 4 Feb 2024 21:08:33 +0000 (13:08 -0800)]
macho: update mach-o/loader.h

2 months agobasis/extra: use some vocab: paths
John Benediktsson [Sun, 4 Feb 2024 19:54:27 +0000 (11:54 -0800)]
basis/extra: use some vocab: paths

2 months agovm: min-macos-version 11.0
John Benediktsson [Sun, 4 Feb 2024 19:16:27 +0000 (11:16 -0800)]
vm: min-macos-version 11.0

2 months agoRevert "alien.libraries.finder.macosx: use shared cache on big sur"
John Benediktsson [Sun, 4 Feb 2024 19:16:15 +0000 (11:16 -0800)]
Revert "alien.libraries.finder.macosx: use shared cache on big sur"

This reverts commit 57c65966cc9e8b41d2a959b6ac3c2d38048747fb.

2 months agoalien.libraries.finder.macosx: use shared cache on big sur
John Benediktsson [Sun, 4 Feb 2024 19:08:23 +0000 (11:08 -0800)]
alien.libraries.finder.macosx: use shared cache on big sur

2 months agoextra: use try-process instead of "run-process drop"
John Benediktsson [Sat, 3 Feb 2024 19:14:45 +0000 (11:14 -0800)]
extra: use try-process instead of "run-process drop"

2 months agozoneinfo: update to tzdata-2024a
John Benediktsson [Sat, 3 Feb 2024 19:06:54 +0000 (11:06 -0800)]
zoneinfo: update to tzdata-2024a

2 months agocrontab: simplify
John Benediktsson [Thu, 1 Feb 2024 04:50:22 +0000 (20:50 -0800)]
crontab: simplify

2 months agobuild-from-source: don't build zstd 1.5.5-kernel tag
Doug Coleman [Thu, 1 Feb 2024 03:29:21 +0000 (21:29 -0600)]
build-from-source: don't build zstd 1.5.5-kernel tag

2 months agocodebase-analyzer: split up c header/src words
Doug Coleman [Fri, 26 Jan 2024 02:11:19 +0000 (20:11 -0600)]
codebase-analyzer: split up c header/src words

2 months agocore/basis/extra: update some stack effects
John Benediktsson [Wed, 31 Jan 2024 23:39:37 +0000 (15:39 -0800)]
core/basis/extra: update some stack effects

2 months agoextra: minor combinator cleanup
John Benediktsson [Wed, 31 Jan 2024 22:26:12 +0000 (14:26 -0800)]
extra: minor combinator cleanup

2 months agogenerators: reduce overhead for take/take-all/yield-from operations.
John Benediktsson [Wed, 31 Jan 2024 21:41:46 +0000 (13:41 -0800)]
generators: reduce overhead for take/take-all/yield-from operations.

2 months agocrontab: minor tweaks
John Benediktsson [Wed, 31 Jan 2024 18:10:49 +0000 (10:10 -0800)]
crontab: minor tweaks

2 months agomath: some docs tweaks for gcd and mod-inv
John Benediktsson [Wed, 31 Jan 2024 00:47:38 +0000 (16:47 -0800)]
math: some docs tweaks for gcd and mod-inv

2 months agomath: fix docs for gcd
John Benediktsson [Wed, 31 Jan 2024 00:35:42 +0000 (16:35 -0800)]
math: fix docs for gcd

2 months agoui.commands: adding update-command-map
John Benediktsson [Tue, 30 Jan 2024 19:24:01 +0000 (11:24 -0800)]
ui.commands: adding update-command-map

3 months agolibclang: add word to get an array from an array of ptrs
Doug Coleman [Tue, 23 Jan 2024 19:12:19 +0000 (13:12 -0600)]
libclang: add word to get an array from an array of ptrs

3 months agotools.dns.public: cloudflare has more dns servers
Doug Coleman [Tue, 23 Jan 2024 18:32:14 +0000 (12:32 -0600)]
tools.dns.public: cloudflare has more dns servers

3 months agoNo tabs
nomennescio [Mon, 22 Jan 2024 13:15:04 +0000 (14:15 +0100)]
No tabs

3 months agoAdd version information
nomennescio [Mon, 22 Jan 2024 13:09:54 +0000 (14:09 +0100)]
Add version information

Contains non-ASCII character 0xA9(©) in Codepage 0x04E4 (1252)

3 months agoInitialize sampler_thread field in constructor too
nomennescio [Mon, 22 Jan 2024 10:31:56 +0000 (11:31 +0100)]
Initialize sampler_thread field in constructor too

This now initializes all Windows specific fields

3 months agoFix most compiler warnings on Windows
nomennescio [Fri, 19 Jan 2024 16:51:43 +0000 (17:51 +0100)]
Fix most compiler warnings on Windows

3 months agocontainers: experimental container syntax
John Benediktsson [Sun, 21 Jan 2024 20:39:32 +0000 (12:39 -0800)]
containers: experimental container syntax

3 months agoio.random: fix typo
John Benediktsson [Sat, 20 Jan 2024 18:43:24 +0000 (10:43 -0800)]
io.random: fix typo

3 months agoReformat output to align MD5 hashes for easier comparison
nomennescio [Fri, 19 Jan 2024 16:51:43 +0000 (17:51 +0100)]
Reformat output to align MD5 hashes for easier comparison

3 months agoio.random: fix using
Doug Coleman [Fri, 19 Jan 2024 15:37:37 +0000 (09:37 -0600)]
io.random: fix using

3 months agoRemove implicit dependency on gcc for preprocessing, which is not needed.
nomennescio [Fri, 19 Jan 2024 13:53:32 +0000 (14:53 +0100)]
Remove implicit dependency on gcc for preprocessing, which is not needed.

This fixes the build on Cygwin and any other platform that uses crosscompilation.

3 months agoflamegraph: fix typo
John Benediktsson [Wed, 17 Jan 2024 22:55:10 +0000 (14:55 -0800)]
flamegraph: fix typo

3 months agoflamegraph: adding a flamegraph tool
John Benediktsson [Wed, 17 Jan 2024 22:53:04 +0000 (14:53 -0800)]
flamegraph: adding a flamegraph tool

3 months agofactor.entitlements: add JIT entitlement for aarch64
John Benediktsson [Tue, 16 Jan 2024 20:08:19 +0000 (12:08 -0800)]
factor.entitlements: add JIT entitlement for aarch64

3 months agoio.random: adding random-file-line(s)
John Benediktsson [Tue, 16 Jan 2024 19:09:26 +0000 (11:09 -0800)]
io.random: adding random-file-line(s)

3 months agofurnace.actions: Fix PUT, PATCH
Michael Raitza [Tue, 16 Jan 2024 17:22:08 +0000 (18:22 +0100)]
furnace.actions: Fix PUT, PATCH

3 months agohtml, http: Documentation fixes
Michael Raitza [Tue, 16 Jan 2024 17:16:34 +0000 (18:16 +0100)]
html, http: Documentation fixes

link is not a singleton but a tuple.

http.server.responses provides many more responses than is obvious to
the uninvolved.

3 months agofurnace: Implement DELETE request
Michael Raitza [Tue, 16 Jan 2024 17:16:25 +0000 (18:16 +0100)]
furnace: Implement DELETE request

3 months agohttp.server.redirection: Refactor <custom-redirect>
Michael Raitza [Tue, 16 Jan 2024 17:16:15 +0000 (18:16 +0100)]
http.server.redirection: Refactor <custom-redirect>

Avoid duplication and make use of canned HTTP responses.

3 months agohttp.server: Implement DELETE, PATCH; handle unknown methods
Michael Raitza [Tue, 16 Jan 2024 17:16:02 +0000 (18:16 +0100)]
http.server: Implement DELETE, PATCH; handle unknown methods

Handle DELETE and PATCH.  Be lenient and hand URL query parameters to
the user with a DELETE.  There is debate about whether DELETE should
handle query parameters.  Additionally, some implementations even reject
DELETE requests with a body.  So, leave all these additional
"protections" for a later implementation (e.g. in furnace).

Treat unknown methods like requests without parameters.

3 months agocompression.run-length: moved to extra to correct dependency hierarchy
olus2000 [Mon, 15 Jan 2024 19:18:31 +0000 (20:18 +0100)]
compression.run-length: moved to extra to correct dependency hierarchy

3 months agosequences.parser: lint docs
olus2000 [Mon, 15 Jan 2024 11:38:22 +0000 (12:38 +0100)]
sequences.parser: lint docs

3 months agosequences.parser: Add docs to some words in the vocab
olus2000 [Mon, 15 Jan 2024 09:52:32 +0000 (10:52 +0100)]
sequences.parser: Add docs to some words in the vocab

3 months agosequences.parser: lint changes from previous commits
olus2000 [Sun, 14 Jan 2024 10:11:39 +0000 (11:11 +0100)]
sequences.parser: lint changes from previous commits

3 months agosequences.parser: tests for current, next, consume
olus2000 [Sun, 14 Jan 2024 10:08:14 +0000 (11:08 +0100)]
sequences.parser: tests for current, next, consume

3 months agosequences.parser: rename and redefine `next`
olus2000 [Sat, 13 Jan 2024 09:38:39 +0000 (10:38 +0100)]
sequences.parser: rename and redefine `next`

Change the word `next` to advance the parser and *then* return the
element. Rename the old behavior of `next` to `consume`.

3 months agosequences: improve docs for subseq-index.
John Benediktsson [Sun, 14 Jan 2024 22:34:55 +0000 (14:34 -0800)]
sequences: improve docs for subseq-index.

3 months agosequences.parser: simplify duplicate defition.
John Benediktsson [Fri, 12 Jan 2024 16:44:12 +0000 (08:44 -0800)]
sequences.parser: simplify duplicate defition.

currently, keep possibly poor "next" naming, since it was used in a few
more places than "get+increment". both are kinda bad names i guess.

3 months agoupdate copyright
John Benediktsson [Thu, 11 Jan 2024 23:47:39 +0000 (15:47 -0800)]
update copyright

3 months agolibclang: fix error with iterating tokens, fix token cleanup, simpler
Doug Coleman [Thu, 11 Jan 2024 22:21:02 +0000 (16:21 -0600)]
libclang: fix error with iterating tokens, fix token cleanup, simpler

3 months agolibclang: write-c-defs from libclang-state directly (no global)
Doug Coleman [Thu, 11 Jan 2024 19:13:13 +0000 (13:13 -0600)]
libclang: write-c-defs from libclang-state directly (no global)

3 months agolibclang: fix counters, trying to track out-of-order c defines
Doug Coleman [Thu, 11 Jan 2024 19:09:33 +0000 (13:09 -0600)]
libclang: fix counters, trying to track out-of-order c defines

3 months agolibclang.ffi: way more enums/structs
Doug Coleman [Thu, 11 Jan 2024 17:20:20 +0000 (11:20 -0600)]
libclang.ffi: way more enums/structs

chatgpt translated from header to ENUM:

3 months agolibclang.ffi: find the latest llvm- dir on unix
Doug Coleman [Thu, 11 Jan 2024 17:19:58 +0000 (11:19 -0600)]
libclang.ffi: find the latest llvm- dir on unix

3 months agolibclang.ffi: less chatgpt hallucination
Doug Coleman [Thu, 11 Jan 2024 16:15:03 +0000 (10:15 -0600)]
libclang.ffi: less chatgpt hallucination

3 months agolibclang: use a single global
Doug Coleman [Thu, 11 Jan 2024 14:56:11 +0000 (08:56 -0600)]
libclang: use a single global

3 months agocombinators.extras: make a with-variable for global, and with-output-global-variable
Doug Coleman [Thu, 11 Jan 2024 14:54:57 +0000 (08:54 -0600)]
combinators.extras: make a with-variable for global, and with-output-global-variable

3 months agolibclang: fix ordering of anonymous unions/structs
Doug Coleman [Wed, 10 Jan 2024 19:54:00 +0000 (13:54 -0600)]
libclang: fix ordering of anonymous unions/structs

3 months agocodebase-analyzer: add some more file types
Doug Coleman [Wed, 10 Jan 2024 19:18:32 +0000 (13:18 -0600)]
codebase-analyzer: add some more file types

3 months agosequences.extras: use 0reduce for max-subarray-sum and make it row-polymorphic
Doug Coleman [Mon, 8 Jan 2024 21:02:52 +0000 (15:02 -0600)]
sequences.extras: use 0reduce for max-subarray-sum and make it row-polymorphic

otherwise the compiled word errors since stack effect is ( x x x -- x x )

3 months agocodebase-analyzer: fix handling of rust toml with workspaces
Doug Coleman [Sun, 7 Jan 2024 04:02:41 +0000 (22:02 -0600)]
codebase-analyzer: fix handling of rust toml with workspaces

3 months agolibclang: taking a better approach after this commit
Doug Coleman [Thu, 4 Jan 2024 19:24:49 +0000 (13:24 -0600)]
libclang: taking a better approach after this commit

3 months agolibclang: fixing anonymous unions inside structs
Doug Coleman [Thu, 28 Dec 2023 03:41:39 +0000 (21:41 -0600)]
libclang: fixing anonymous unions inside structs

3 months agolibclang: redo without malloced
Doug Coleman [Wed, 27 Dec 2023 18:58:19 +0000 (12:58 -0600)]
libclang: redo without malloced

3 months agohacker-news: using
Doug Coleman [Mon, 25 Dec 2023 03:46:01 +0000 (21:46 -0600)]
hacker-news: using

3 months agovocabs: oops fix valid-vocab-name?
John Benediktsson [Tue, 9 Jan 2024 17:56:38 +0000 (09:56 -0800)]
vocabs: oops fix valid-vocab-name?

3 months agovocabs: use valid-vocab-name? to filter disk vocabs
John Benediktsson [Tue, 9 Jan 2024 17:17:18 +0000 (09:17 -0800)]
vocabs: use valid-vocab-name? to filter disk vocabs

3 months agomath.functions: fix divisor? to work with mixed numbers
John Benediktsson [Sun, 7 Jan 2024 01:52:36 +0000 (17:52 -0800)]
math.functions: fix divisor? to work with mixed numbers

3 months agotoml: fix issue with sub-tables being defined first
John Benediktsson [Sun, 7 Jan 2024 01:46:48 +0000 (17:46 -0800)]
toml: fix issue with sub-tables being defined first

3 months agopeg.ebnf: also remove ebnf-parser word-prop
John Benediktsson [Sat, 6 Jan 2024 04:46:13 +0000 (20:46 -0800)]
peg.ebnf: also remove ebnf-parser word-prop

3 months agopeg.ebnf: reset ebnf words properly
John Benediktsson [Sat, 6 Jan 2024 04:36:06 +0000 (20:36 -0800)]
peg.ebnf: reset ebnf words properly

3 months agoio.files.temp: allow default-cache-directory to work on macports builders
John Benediktsson [Sat, 6 Jan 2024 03:58:44 +0000 (19:58 -0800)]
io.files.temp: allow default-cache-directory to work on macports builders

3 months agovm: reset context only when needed
John Benediktsson [Fri, 5 Jan 2024 21:55:38 +0000 (13:55 -0800)]
vm: reset context only when needed