Calvin Rose
efe66f207f
Merge pull request #1678 from tw4452852/push-swmvxuxkrvsx
...
shell: Prevent buggy moving zero column behavior
2025-12-07 08:02:32 -06:00
Calvin Rose
d6803f7a17
Formatting.
2025-12-04 08:48:12 -06:00
Tw
6e883b8972
shell: Prevent buggy moving zero column behavior
...
According to https://unix.stackexchange.com/a/559331 ,
moving zero column is implemented inconsistently between
different terminal emulators.
In order to fix this inconsistency,
we avoid using this escape sequence entirely.
Signed-off-by: Tw <tw19881113@gmail.com >
Change-Id: I73d4252f8472c769f0cf98b6bbdf2b3d6a6a6964
2025-12-04 08:51:15 +08:00
Calvin Rose
c2cbfa4d5d
Merge pull request #1676 from tsujamin/msvc-runtime-stack-check-ffi-crash
...
Disable MSVC runtime stack checks in janet_ffi_win64
2025-12-02 09:10:50 -06:00
Benjamin Roberts
a85689312a
Disable MSVC runtime stack checks in janet_ffi_win64
...
The MSVC /RTCs argument instrument alloca() to prepend stack allocations
with metadata used to check for memory corruption during the function
prologue. This causes stack-based FFI arguments in janet_ffi_win64 to
become mis-aligned, and also for the alloca()-prepended header to be
corrupted leading to a fatal exception.
2025-12-01 15:37:09 -05:00
Calvin Rose
b9bc89a38c
Fix very old typo in janet.h
2025-11-30 14:22:17 -06:00
Calvin Rose
f79e4d6249
Address #1674 - Add cms combinator to peg.
...
It behaves like `cmt`, but flattens the result and can collect
multiple captures if an indexed data structure is returned.
2025-11-30 14:19:51 -06:00
Calvin Rose
238d6c2e13
Remove type constraint on doc for +.
...
This constraint is no longer true in all cases.
2025-11-30 14:19:51 -06:00
Calvin Rose
be2a1ddf96
Add test case for dollar suffix match.
2025-11-30 14:19:51 -06:00
Calvin Rose
d9105299f1
Allow matching tuples and arrays exactly via a dollar suffix.
2025-11-30 14:19:51 -06:00
Calvin Rose
8efeeaec95
Allow matching tuples and arrays exactly via a dollar suffix.
2025-11-30 14:19:51 -06:00
Calvin Rose
b92992c862
Make additions to core library
...
* Add `thaw-keep-keys` variant of `thaw`.
* Add `walk2` to traverse key-value pairs and fibers. Also add
corresponding `postwalk2` and `prewalk2`
* Built-in `repl` function now respects custom repl prompt.
2025-11-30 14:19:51 -06:00
Calvin Rose
996ad64d01
Merge pull request #1673 from sogaiu/remove-stale-item
...
Remove unused def
2025-11-30 10:17:30 -06:00
sogaiu
bd1641b936
Remove unused def
2025-11-29 23:38:07 +09:00
Calvin Rose
a9e6766958
Merge pull request #1672 from pyrmont/bugfix.bundle-script-loading
...
Improve messages on errors when loading the bundle script
2025-11-23 07:28:44 -06:00
Michael Camilleri
ee46315e1d
Improve messages on errors when loading the bundle script
2025-11-21 22:45:36 +09:00
Calvin Rose
7c1db67749
Merge pull request #1668 from sogaiu/tweak-file-write-docstring
...
Update file/write docstring
2025-11-17 05:27:57 -06:00
sogaiu
4fa1a6947c
Update file/write docstring
2025-11-17 18:51:55 +09:00
Calvin Rose
1449ad8b31
Update changelog.
v1.40.1
2025-11-16 17:39:19 -06:00
Calvin Rose
c44592c84d
Prepare for 1.40.1 patch release.
2025-11-16 16:55:28 -06:00
Calvin Rose
37e084969a
Merge pull request #1665 from sogaiu/fix-comment
...
Fix comment about syspath
2025-11-16 08:15:57 -06:00
Calvin Rose
b389f01005
Fix undefined behavior (integer overflow) in hash function.
...
If an intermediate hash value was 0xFFFFFFFF and we tried to add 1 as a
signed addition, this technically triggers undefined behavior.
2025-11-16 08:14:19 -06:00
sogaiu
a886a93d2f
Fix comment about syspath
2025-11-16 15:14:11 +09:00
Calvin Rose
f7d0d065c8
Add sr.ht build for meson reduced builds.
...
This should help better catch configs that break our website emscripten
build.
2025-11-15 09:46:35 -06:00
Calvin Rose
8c2a517cd7
Formatting and fix chroot build.
2025-11-15 09:43:15 -06:00
Calvin Rose
7e0c692d4e
Remove test-install target from sr.ht
v1.40.0
2025-11-15 08:39:47 -06:00
Calvin Rose
732fe0ad03
Try new openbsd.
2025-11-15 08:33:41 -06:00
Calvin Rose
0c8622c803
posix_chroot warning
2025-11-15 08:15:26 -06:00
Calvin Rose
94f2494f8d
MSVC warning
2025-11-15 08:14:28 -06:00
Calvin Rose
0f9ecc2da5
Prepare for 1.40.0 release
2025-11-15 07:31:23 -06:00
Calvin Rose
83f5da3b8f
Merge pull request #1662 from McSinyx/dobytes-err-ctx
...
Include context in dobytes' error string
2025-11-09 09:20:23 -06:00
Calvin Rose
9b9f2a1713
Merge pull request #1660 from pyrmont/bugfix.confirm-bundle-files
...
Clarify error message for missing bundle script during bundle installation
2025-11-09 09:06:06 -06:00
Calvin Rose
8df4d47ede
Merge pull request #1663 from McSinyx/dobytes-err-keep
...
Keep dobytes' error string
2025-11-09 08:40:07 -06:00
Nguyễn Gia Phong
1c372fbf32
Keep dobytes' error string
...
The reason for failure would be more useful
than the most recently evaluated value.
2025-11-05 17:00:04 +09:00
Nguyễn Gia Phong
8ace580498
Include context in dobytes' error string
2025-11-05 16:53:19 +09:00
Michael Camilleri
8241d9cbb4
Revert support for bundles without an info file
2025-10-27 09:32:38 +09:00
Michael Camilleri
6bd02bb5b6
Confirm necessary files during bundle installation
2025-10-26 06:53:27 +09:00
Calvin Rose
2a3308005d
Merge pull request #1659 from ianthehenry/try-macro-hygiene
...
fix (try) macro hygiene
2025-10-25 12:15:12 -05:00
Ian Henry
0c34033b72
add some tests for the (try) macro
2025-10-24 21:56:07 -07:00
Ian Henry
f1ec0cc48b
fix try macro hygiene
...
Allow re-using the same symbol for the fiber and error. This allows you to
write code like (try (print "hi") ([_ _] (print "oh no"))), fixing a regression
introduced in #1605 .
2025-10-24 21:33:15 -07:00
Calvin Rose
98265f0637
Merge pull request #1658 from sogaiu/tweak-has-bin-script
2025-10-17 15:44:50 -05:00
sogaiu
1018cb9cca
Support :has-exe as well
...
This is a companion change to spork's issue
As implemented, :has-been-script didn't quite
mean what was intended. :has-exe should
be an improvement.
To prevent breakage, both :has-bin-script and
:has-exe should be supported for a while in
both spork and janet. Eventually
:has-bin-script can be retired.
2025-10-17 22:36:45 +09:00
Calvin Rose
2204209133
Merge pull request #1656 from jpaquim/build-system-consistency
...
Minor adjustments to Makefile
2025-10-15 07:51:12 -05:00
jpaquim
95abff31d9
Fix file mention in CONTRIBUTING.md
2025-10-11 17:48:23 +01:00
jpaquim
a776466423
Add $(RUN) for valgrind/callgrind, add dedicated callgrind-test target
2025-10-11 17:45:44 +01:00
jpaquim
511c1f4b0a
Refactor with image-only variable
2025-10-11 16:32:24 +01:00
jpaquim
c29195596e
Adapt generated file comments to build type
2025-10-11 16:29:14 +01:00
jpaquim
56027227fb
Add missing phony targets and documentation for install-{jpm,spork}-git
2025-10-11 16:11:05 +01:00
jpaquim
c057e14b20
Fix dependencies and variable names in Makefile
2025-10-11 16:02:02 +01:00
Calvin Rose
db7f741dad
Extend environment variable behavior to NO_COLOR and JANET_PROFILE
...
Env vars set to empty strings should behave the same as unset variables.
2025-10-04 13:12:29 -05:00