]> gitweb.factorcode.org Git - factor.git/log
factor.git
9 months agoio.sockets.secure.unix: maybe fix shutdown() maybe-fix-ssl-shutdown
Doug Coleman [Sun, 30 Jul 2023 02:45:52 +0000 (21:45 -0500)]
io.sockets.secure.unix: maybe fix shutdown()

https://www.openssl.org/docs/man3.1/man3/SSL_shutdown.html

it can return 0, 1, or -1.
0  - shutdown started, need to SSL_read and check shutdown again
1  - second phase of shutdown, we are done
-1 - error

fixes #2806

9 months agoproject-euler.508: [space] not [tab]
John Benediktsson [Sun, 30 Jul 2023 01:33:12 +0000 (18:33 -0700)]
project-euler.508: [space] not [tab]

9 months agoproject-euler.508: fix using
John Benediktsson [Sun, 30 Jul 2023 01:13:42 +0000 (18:13 -0700)]
project-euler.508: fix using

9 months agoAdded solution to Project Euler problem 508
RibozymeR [Sat, 29 Jul 2023 21:57:11 +0000 (23:57 +0200)]
Added solution to Project Euler problem 508

9 months agoChanged a spelling
RibozymeR [Sat, 29 Jul 2023 21:30:57 +0000 (23:30 +0200)]
Changed a spelling

9 months agoAdded a solution to Project Euler problem 463 to vocabulary `project-euler`
Cecilia Knäbchen [Sat, 29 Jul 2023 21:21:20 +0000 (23:21 +0200)]
Added a solution to Project Euler problem 463 to vocabulary `project-euler`

9 months agoraylib.demo: allow diagonal movement
Doug Coleman [Sat, 29 Jul 2023 21:04:46 +0000 (16:04 -0500)]
raylib.demo: allow diagonal movement

9 months agoraylib: SetCameraMode was removed, update api
Doug Coleman [Sat, 29 Jul 2023 20:53:39 +0000 (15:53 -0500)]
raylib: SetCameraMode was removed, update api

9 months agobuild-from-source.windows: build raygui.dll
Doug Coleman [Sat, 29 Jul 2023 20:39:06 +0000 (15:39 -0500)]
build-from-source.windows: build raygui.dll

9 months agoCONTRIBUTING: fix run-together bullet points
Josh Holland [Wed, 12 Jul 2023 18:14:14 +0000 (19:14 +0100)]
CONTRIBUTING: fix run-together bullet points

9 months agowindows.dragdrop-listener-docs: fix documentation and add $code samples
Alexander Ilin [Mon, 24 Jul 2023 22:16:56 +0000 (00:16 +0200)]
windows.dragdrop-listener-docs: fix documentation and add $code samples

9 months agocombinators.extras: Fix Incorrect Stack Effects
Capital-EX [Mon, 24 Jul 2023 03:16:27 +0000 (23:16 -0400)]
combinators.extras: Fix Incorrect Stack Effects

The stack effect for `4quad@`, `3quad@`, `2quad@`, and `3tri@` were incorrect.

9 months agoio.backend.unix.multiplexors.kqueue: change remove-output-callbacks
John Benediktsson [Sat, 22 Jul 2023 23:29:04 +0000 (16:29 -0700)]
io.backend.unix.multiplexors.kqueue: change remove-output-callbacks

I think it should call-next-method before doing kevent

9 months agoio.backend.unix: Try again when we get ENOBUFS
Doug Coleman [Sat, 22 Jul 2023 16:32:57 +0000 (11:32 -0500)]
io.backend.unix: Try again when we get ENOBUFS

My understanding is the tcp buffers can fill up and we get notified
with ENOBUFS. After some time they should be free again.

This makes the parallel-map read more reliable

related to #2771

9 months agorefactor: remove duplicate word
Rudi Grinberg [Sat, 22 Jul 2023 13:11:45 +0000 (15:11 +0200)]
refactor: remove duplicate word

[no-key] already exists in hashtables.factor

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
9 months ago.gitattributes: more eol=lf
John Benediktsson [Fri, 21 Jul 2023 17:08:06 +0000 (10:08 -0700)]
.gitattributes: more eol=lf

9 months agoio.ports: make sure read/write is to a pinned alien
John Benediktsson [Thu, 20 Jul 2023 19:07:55 +0000 (12:07 -0700)]
io.ports: make sure read/write is to a pinned alien

9 months agoFix some English spelling: outputted -> output
Alexander Ilin [Mon, 17 Jul 2023 16:23:50 +0000 (18:23 +0200)]
Fix some English spelling: outputted -> output

Same for "inputted".

9 months agojson.prettyprint: need to fix this
John Benediktsson [Wed, 19 Jul 2023 21:12:25 +0000 (14:12 -0700)]
json.prettyprint: need to fix this

9 months agojson: use linked-assocs for order preservation
John Benediktsson [Wed, 19 Jul 2023 16:13:53 +0000 (09:13 -0700)]
json: use linked-assocs for order preservation

9 months agolinked-assocs: fix new-assoc for linked-assocs
John Benediktsson [Wed, 19 Jul 2023 16:13:33 +0000 (09:13 -0700)]
linked-assocs: fix new-assoc for linked-assocs

9 months agoeditors.zed: support opening to file:line
John Benediktsson [Thu, 13 Jul 2023 23:04:36 +0000 (16:04 -0700)]
editors.zed: support opening to file:line

9 months agotoml: reorganize words a bit to remove DEFER:
John Benediktsson [Thu, 13 Jul 2023 21:05:27 +0000 (14:05 -0700)]
toml: reorganize words a bit to remove DEFER:

9 months agobootstrap.image.primitives: remove unused set-extra-props
John Benediktsson [Thu, 13 Jul 2023 21:02:16 +0000 (14:02 -0700)]
bootstrap.image.primitives: remove unused set-extra-props

9 months agolistener: adding ranges to interactive-vocabs
John Benediktsson [Thu, 13 Jul 2023 21:01:25 +0000 (14:01 -0700)]
listener: adding ranges to interactive-vocabs

9 months agographviz.render.windows: rename program-files-directories.
John Benediktsson [Thu, 13 Jul 2023 03:54:34 +0000 (20:54 -0700)]
graphviz.render.windows: rename program-files-directories.

9 months agoparser: fix test and docs
Doug Coleman [Thu, 13 Jul 2023 00:50:29 +0000 (19:50 -0500)]
parser: fix test and docs

9 months agoio.standard-paths: Add application-directories word
Doug Coleman [Tue, 9 Aug 2022 04:29:26 +0000 (23:29 -0500)]
io.standard-paths: Add application-directories word

9 months agoparser: fix using for tests
Doug Coleman [Sun, 9 Jul 2023 15:08:21 +0000 (10:08 -0500)]
parser: fix using for tests

9 months agoparser: fix location word
Doug Coleman [Sun, 9 Jul 2023 14:16:04 +0000 (09:16 -0500)]
parser: fix location word

9 months agodiscord: drop "discriminator" feature
Doug Coleman [Thu, 29 Jun 2023 23:52:58 +0000 (18:52 -0500)]
discord: drop "discriminator" feature

9 months agohttp.client: add a ?download-update-to and file-too-old? for updating cached files
Doug Coleman [Thu, 29 Jun 2023 23:44:50 +0000 (18:44 -0500)]
http.client: add a ?download-update-to and file-too-old? for updating cached files

9 months agotools.directory-to-file: use canonicalize-path
Doug Coleman [Thu, 29 Jun 2023 23:43:31 +0000 (18:43 -0500)]
tools.directory-to-file: use canonicalize-path

9 months agocalendar: use ago instead of `now swap time-`
Doug Coleman [Fri, 16 Jun 2023 16:37:37 +0000 (12:37 -0400)]
calendar: use ago instead of `now swap time-`

9 months agofeature(linux): pipe2 bindings
Rudi Grinberg [Sat, 8 Jul 2023 15:29:11 +0000 (17:29 +0200)]
feature(linux): pipe2 bindings

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
10 months agoUse https rather than git protocol in download instructions
Konrad Hinsen [Mon, 3 Jul 2023 15:35:33 +0000 (15:35 +0000)]
Use https rather than git protocol in download instructions

Only project members can clone via the git protocol.

10 months agofeature: canonical s-expressions
Rudi Grinberg [Sun, 2 Jul 2023 15:59:18 +0000 (17:59 +0200)]
feature: canonical s-expressions

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
10 months agobuild.sh: use shellcode in vscode to fix some warnings
Doug Coleman [Wed, 21 Jun 2023 23:27:00 +0000 (18:27 -0500)]
build.sh: use shellcode in vscode to fix some warnings

real changes:

- curl -4 to bypass ipv6
- remove clang version check
- better test_program_installed test_programs_installed

10 months agoRemove: nullptr word
TryAngle [Tue, 20 Jun 2023 03:43:50 +0000 (05:43 +0200)]
Remove: nullptr word

10 months agoAdd: glfw3 bindings & Init: vulkan bindings
Sebastian Strobl [Tue, 20 Jun 2023 03:31:40 +0000 (05:31 +0200)]
Add: glfw3 bindings & Init: vulkan bindings

10 months agotools.deploy: bump gpu.demos.bunny
John Benediktsson [Sun, 11 Jun 2023 17:24:58 +0000 (10:24 -0700)]
tools.deploy: bump gpu.demos.bunny

10 months agotools.deploy: bump bunny
John Benediktsson [Sun, 11 Jun 2023 00:51:55 +0000 (17:51 -0700)]
tools.deploy: bump bunny

10 months agopeg: some cleanup and make words internal
John Benediktsson [Tue, 6 Jun 2023 17:35:01 +0000 (10:35 -0700)]
peg: some cleanup and make words internal

10 months agobackoff: Add an exponential backoff combinator
Doug Coleman [Fri, 26 May 2023 03:34:26 +0000 (22:34 -0500)]
backoff: Add an exponential backoff combinator

10 months agodiscord.chatgpt-bot: use new openai model order
Doug Coleman [Fri, 26 May 2023 00:11:13 +0000 (19:11 -0500)]
discord.chatgpt-bot: use new openai model order

10 months agoopenai: take the model as last parameter
Doug Coleman [Fri, 26 May 2023 00:07:21 +0000 (19:07 -0500)]
openai: take the model as last parameter

10 months agopeg.debugger: removing unused error
John Benediktsson [Tue, 6 Jun 2023 02:56:19 +0000 (19:56 -0700)]
peg.debugger: removing unused error

10 months agopeg: need to compile at top level to prevent races on parallel-map
John Benediktsson [Tue, 6 Jun 2023 02:43:26 +0000 (19:43 -0700)]
peg: need to compile at top level to prevent races on parallel-map

10 months agosystem-info.macosx: adding macOS Sonoma
Doug Coleman [Mon, 5 Jun 2023 19:21:20 +0000 (14:21 -0500)]
system-info.macosx: adding macOS Sonoma

11 months agoRevert "http.parsers: switch back to full PEG:"
John Benediktsson [Sat, 3 Jun 2023 04:43:21 +0000 (21:43 -0700)]
Revert "http.parsers: switch back to full PEG:"

This reverts commit ba0c923ae286ff46e6a02e9f9adf80f24b729c0e.

11 months agohttp.parsers: switch back to full PEG:
John Benediktsson [Sat, 3 Jun 2023 04:13:52 +0000 (21:13 -0700)]
http.parsers: switch back to full PEG:

11 months agotools.deploy: bump test 5 deploy reflection
John Benediktsson [Sat, 3 Jun 2023 04:13:32 +0000 (21:13 -0700)]
tools.deploy: bump test 5 deploy reflection

11 months agopeg: adding docs for PARTIAL-PEG: and PEG:
John Benediktsson [Fri, 2 Jun 2023 19:09:32 +0000 (12:09 -0700)]
peg: adding docs for PARTIAL-PEG: and PEG:

11 months agopeg: make a version that doesn't assert input was fully consumed
John Benediktsson [Fri, 2 Jun 2023 18:57:43 +0000 (11:57 -0700)]
peg: make a version that doesn't assert input was fully consumed

11 months agopeg: use memoize-quot instead of private words
John Benediktsson [Thu, 1 Jun 2023 17:48:33 +0000 (10:48 -0700)]
peg: use memoize-quot instead of private words

11 months agocore/basis/extra: some [ dup ] dip => dupd cleanup
John Benediktsson [Thu, 1 Jun 2023 17:38:20 +0000 (10:38 -0700)]
core/basis/extra: some [ dup ] dip => dupd cleanup

11 months agolint: add more forms
John Benediktsson [Thu, 1 Jun 2023 17:33:15 +0000 (10:33 -0700)]
lint: add more forms

11 months agogap-buffer: pick pick is 2over
John Benediktsson [Thu, 1 Jun 2023 17:33:06 +0000 (10:33 -0700)]
gap-buffer: pick pick is 2over

11 months agotools.deploy: bump bunny
John Benediktsson [Thu, 1 Jun 2023 17:32:41 +0000 (10:32 -0700)]
tools.deploy: bump bunny

11 months agotools.deploy: bump bunny
John Benediktsson [Thu, 1 Jun 2023 15:48:10 +0000 (08:48 -0700)]
tools.deploy: bump bunny

11 months agotoml: fixed issue with reload compile
John Benediktsson [Thu, 1 Jun 2023 03:48:26 +0000 (20:48 -0700)]
toml: fixed issue with reload compile

11 months agopeg: use memoize to simplify PEG: and allow it to reset properly
John Benediktsson [Thu, 1 Jun 2023 03:47:16 +0000 (20:47 -0700)]
peg: use memoize to simplify PEG: and allow it to reset properly

11 months agosequences: making head-to-index and index-to-tail private
John Benediktsson [Wed, 31 May 2023 22:12:44 +0000 (15:12 -0700)]
sequences: making head-to-index and index-to-tail private

11 months agoio.files: simplify set-file-lines, set-file-contents.
John Benediktsson [Wed, 31 May 2023 21:22:43 +0000 (14:22 -0700)]
io.files: simplify set-file-lines, set-file-contents.

11 months agoassocs.extras: adding assoc-interleave
John Benediktsson [Wed, 31 May 2023 20:34:27 +0000 (13:34 -0700)]
assocs.extras: adding assoc-interleave

11 months agojson.prettyprint: fix print-json rename
John Benediktsson [Wed, 31 May 2023 19:15:44 +0000 (12:15 -0700)]
json.prettyprint: fix print-json rename

11 months agojson: adding some JSON Lines support
John Benediktsson [Wed, 31 May 2023 19:02:16 +0000 (12:02 -0700)]
json: adding some JSON Lines support

11 months agotoml: add a bunch of 1.0.0 tests
John Benediktsson [Wed, 31 May 2023 18:43:31 +0000 (11:43 -0700)]
toml: add a bunch of 1.0.0 tests

11 months agopeg: move check-parse-result from peg.ebnf
John Benediktsson [Wed, 31 May 2023 18:28:12 +0000 (11:28 -0700)]
peg: move check-parse-result from peg.ebnf

11 months agoini-file: re-add escaping but wrap tokens containing quotes.
John Benediktsson [Wed, 24 May 2023 04:08:53 +0000 (21:08 -0700)]
ini-file: re-add escaping but wrap tokens containing quotes.

11 months agobuild-from-source.windows: build grpc dlls/exe
Doug Coleman [Wed, 31 May 2023 06:40:28 +0000 (01:40 -0500)]
build-from-source.windows: build grpc dlls/exe

11 months agoodbc: better cleanup of resources, rename - to _ in C constants
Doug Coleman [Wed, 31 May 2023 01:57:39 +0000 (20:57 -0500)]
odbc: better cleanup of resources, rename - to _ in C constants

- change order of odbc-query
- add odbc-queries (snowflake wants you to set the warehouse before
running your query but only lets you do one query per statement,
which means you can't use odbc-query because it wastes your one query)
- handle NULL results
- pass in a length ref to SQLGetData or else Snowflake odbc driver fails

11 months agomisc/vim: Prevent CHAR: ; from ending : definitions
Giftpflanze [Wed, 31 May 2023 01:18:51 +0000 (03:18 +0200)]
misc/vim: Prevent CHAR: ; from ending : definitions

11 months agomisc/vim: Fix brace coloring for maybe classes in tuple declarations
Giftpflanze [Wed, 31 May 2023 01:08:54 +0000 (03:08 +0200)]
misc/vim: Fix brace coloring for maybe classes in tuple declarations

11 months agocombinators.extras: Add 3quad, 3tri*, 3tri@, {2,3,4}quad{*,@}
Giftpflanze [Tue, 30 May 2023 01:27:06 +0000 (03:27 +0200)]
combinators.extras: Add 3quad, 3tri*, 3tri@, {2,3,4}quad{*,@}

11 months agobuild-from-source.windows: update dll versions
Doug Coleman [Sun, 28 May 2023 04:01:16 +0000 (23:01 -0500)]
build-from-source.windows: update dll versions

11 months agobuild-from-source: don't use temp directory because windows deletes
Doug Coleman [Sun, 28 May 2023 04:00:01 +0000 (23:00 -0500)]
build-from-source: don't use temp directory because windows deletes
files

11 months agoassocs.extras: Fix filter/reject-keys/values stack effects
Giftpflanze [Fri, 26 May 2023 21:58:09 +0000 (23:58 +0200)]
assocs.extras: Fix filter/reject-keys/values stack effects

11 months agomisc/vim: Add ((
Giftpflanze [Fri, 26 May 2023 11:39:53 +0000 (13:39 +0200)]
misc/vim: Add ((

11 months agobuild-from-source.windows: add duckdb build
Doug Coleman [Tue, 23 May 2023 03:26:54 +0000 (22:26 -0500)]
build-from-source.windows: add duckdb build

11 months agonpm: fix word rename
Doug Coleman [Tue, 23 May 2023 01:38:18 +0000 (20:38 -0500)]
npm: fix word rename

11 months agoini-file: fix bad test
Doug Coleman [Tue, 23 May 2023 01:38:09 +0000 (20:38 -0500)]
ini-file: fix bad test

11 months agoduckdb.ffi: add an ffi binding to duckdb
Doug Coleman [Tue, 23 May 2023 00:31:18 +0000 (19:31 -0500)]
duckdb.ffi: add an ffi binding to duckdb

11 months agogithub: add some api calls, use map for getting ALL the data
Doug Coleman [Tue, 23 May 2023 00:12:07 +0000 (19:12 -0500)]
github: add some api calls, use map for getting ALL the data

11 months agogit: add some code to add remotes as git@github.com: or https://github.com
Doug Coleman [Tue, 23 May 2023 00:11:46 +0000 (19:11 -0500)]
git: add some code to add remotes as git@github.com: or https://github.com

11 months agoini-file: don't escape quotes in section names
Doug Coleman [Tue, 23 May 2023 00:10:38 +0000 (19:10 -0500)]
ini-file: don't escape quotes in section names

.git/config is a good test for this

11 months agomisc/vim: Fix ALIEN: highlighting
Giftpflanze [Mon, 22 May 2023 22:53:28 +0000 (00:53 +0200)]
misc/vim: Fix ALIEN: highlighting

Fixes #2744

11 months agomisc/vim: Add get[, set[, slots[, set-slots[
Giftpflanze [Mon, 22 May 2023 22:50:47 +0000 (00:50 +0200)]
misc/vim: Add get[, set[, slots[, set-slots[

Fixes #2736

11 months agomisc/vim: Add EBNF: and EDITOR:
Giftpflanze [Mon, 22 May 2023 22:48:44 +0000 (00:48 +0200)]
misc/vim: Add EBNF: and EDITOR:

Add syntax highlighting for EBNF: and EDITOR:
Fix indenting for EDITOR:

Fixes #2737

11 months agofixups: Add json vocabs
Giftpflanze [Sun, 21 May 2023 21:14:07 +0000 (23:14 +0200)]
fixups: Add json vocabs

11 months agoio.files.windows: drain/refill need destructors
John Benediktsson [Sun, 21 May 2023 02:06:32 +0000 (19:06 -0700)]
io.files.windows: drain/refill need destructors

11 months agodiscord: don't stop if we get a reconnect message.
Doug Coleman [Sat, 20 May 2023 00:18:18 +0000 (19:18 -0500)]
discord: don't stop if we get a reconnect message.

use g. etc for printing to global context

11 months agoio.sockets.unix: fix using
John Benediktsson [Fri, 19 May 2023 23:01:18 +0000 (16:01 -0700)]
io.sockets.unix: fix using

11 months agoio.sockets.secure.openssl: fix drain to check for empty buffer
John Benediktsson [Fri, 19 May 2023 22:58:43 +0000 (15:58 -0700)]
io.sockets.secure.openssl: fix drain to check for empty buffer

11 months agoio.sockets.secure.windows: make ssl-sockets all non-blocking
John Benediktsson [Fri, 19 May 2023 22:15:28 +0000 (15:15 -0700)]
io.sockets.secure.windows: make ssl-sockets all non-blocking

11 months agoio.files.windows: implement non-blocking (wait-to-read/write)
John Benediktsson [Fri, 19 May 2023 22:12:18 +0000 (15:12 -0700)]
io.files.windows: implement non-blocking (wait-to-read/write)

11 months agoio.sockets.secure.openssl: simplify error handling of do-ssl-read/write
John Benediktsson [Fri, 19 May 2023 22:11:55 +0000 (15:11 -0700)]
io.sockets.secure.openssl: simplify error handling of do-ssl-read/write

11 months agoio.ports: move the wait-for-port here.
John Benediktsson [Fri, 19 May 2023 22:11:08 +0000 (15:11 -0700)]
io.ports: move the wait-for-port here.

11 months agoio.files.windows: improve error messages for set-file-pointer
John Benediktsson [Fri, 19 May 2023 20:15:04 +0000 (13:15 -0700)]
io.files.windows: improve error messages for set-file-pointer

11 months agoio.files.windows: open-append doesn't need to be a hook
John Benediktsson [Fri, 19 May 2023 19:18:34 +0000 (12:18 -0700)]
io.files.windows: open-append doesn't need to be a hook