Alex Shinn
6c49071833
Factor out (srfi 160 mini) for f8/f16 base.
...
Closes #961 .
Import this instead of the full vector libs for (srfi 231).
Also fix install of full vector libs for (srfi 160).
2024-05-25 22:15:10 +09:00
Alex Shinn
afda4ab979
Fix array-any.
...
Closes #963 .
2024-05-25 22:06:23 +09:00
Alex Shinn
89dd02d55e
Fix interval iteration for empty intervals.
...
Closes #959 .
2024-05-24 22:29:44 +09:00
Alex Shinn
0ce4614457
Add array-packed? tests on empty arrays.
...
Issue #959 .
2024-05-24 19:42:00 +09:00
Alex Shinn
09a5c431a2
array-tile widths can exceed the axis width
...
Closes #958 .
2024-05-24 19:35:33 +09:00
Alex Shinn
33a59952a8
Implement and use array-freeze!
...
Fixes #960 .
2024-05-24 19:20:14 +09:00
Alex Shinn
f60298b707
Initial half and quarter precision uniform vectors.
...
Quarter precision is 1.5.2 format.
Used to implement f16-storage-class and f8-storage-class.
Can be disabled at compile time.
2024-05-24 19:04:44 +09:00
Alex Shinn
e4568bd419
Use #\null as the default for char-storage-class
2024-05-23 21:37:12 +09:00
Alex Shinn
ef4e450af7
Fix element initialization for char arrays.
...
Closes #957 .
2024-05-23 10:47:36 +09:00
Alex Shinn
4677cfb85b
fix vector*->array
2024-05-23 10:38:16 +09:00
Alex Shinn
37dda638c3
Implement array-block.
2024-05-22 23:15:43 +09:00
Alex Shinn
65589e3e26
Fix default coeffs for the degenerate dimension case.
2024-05-22 22:02:27 +09:00
Alex Shinn
47f7ab01cf
Show source for failed expected value.
2024-05-16 23:27:57 +09:00
Alex Shinn
7ac3cfebe1
Update to new make-specialized-array signature.
2024-05-14 21:46:25 +09:00
Alex Shinn
2e09a082c8
Fix SRFI 231 tests.
2024-05-13 22:10:49 +09:00
Alex Shinn
6ae3a43ee7
Adding memoize-file-loader test.
2024-05-13 22:06:19 +09:00
Alex Shinn
f25329b5aa
Adding initial text type.
2024-03-19 23:03:21 +09:00
Alex Shinn
c4611cc33f
Add some extended utf8 IO utilities.
2024-03-18 22:47:40 +09:00
Vasilij Schneidermann
0fd351e0b5
Fix read-bytevector logic
2024-03-18 03:15:39 +01:00
Vasilij Schneidermann
c837c7110f
Correct let to let*
2024-03-18 02:48:48 +01:00
Vasilij Schneidermann
1b1e8b311b
Correct read-bytevector logic for small reads
2024-03-18 02:06:27 +01:00
Vasilij Schneidermann
d0e6dc7556
Avoid needless allocation in read-bytevector!
...
This change switches the implementation strategy to basing
read-bytevector on top of read-bytevector! rather than the other way
around.
2024-03-18 01:13:57 +01:00
Alex Shinn
b303bf3611
Allow for a chunked regexp API by exposing low-level tools.
2024-03-17 22:21:23 +09:00
Alex Shinn
5b27b01f91
Fix line wrapping in chibi test
2024-03-17 10:39:27 +09:00
Alex Shinn
19c7d4fec2
user/group-information should return #f for unknown users
2024-02-23 15:16:22 +09:00
Ekaitz Zarraga
967b888d8c
Reduce iterations in concatenate!
...
This commit should reduce the amount of iterations in concatenate to N
where N is the sum of the lengths of the input lists.
The previous implementation iterated from the beginning in each
concatenation because of `last-pair`.
This implementation is significantly faster in this extreme case:
(concatenate! `(,(iota 50000) ,@(map list (iota 500))))
>> Previous implementation:
real 0m0.671s
user 0m0.658s
sys 0m0.013s
>> This implementation:
real 0m0.175s
user 0m0.174s
sys 0m0.001s
The tests is done using `time`, which is not reliable at all, but using
`(trace last-pair)` shows accurately what happens with the iterations.
2024-01-09 17:18:41 +01:00
Alex Shinn
a67e75926d
Merge pull request #943 from ekaitz-zarraga/master
...
Add srfi-64
2024-01-09 11:14:49 +09:00
Ekaitz Zarraga
70989e0cef
srfi: 1: add tests for append! (and concatenate!)
2024-01-09 01:04:34 +01:00
Ekaitz Zarraga
7bf376b7fb
Fix: concatenate! work with empty lists
2024-01-08 22:56:07 +01:00
Ekaitz Zarraga
43bfac5884
Add srfi-64
2024-01-07 20:58:46 +01:00
Daphne Preston-Kendal
a277a5dffc
(chibi test): Put newlines after test results etc in verbose mode
2023-11-06 20:59:10 +01:00
Yota Toyama
f41a61f748
Fix windows import
2023-10-13 17:21:11 +11:00
Yota Toyama
77dc8c3524
Refactor
2023-10-13 17:19:36 +11:00
Yota Toyama
70e5aa14a3
Unwind before exit
2023-10-13 16:37:43 +11:00
Yota Toyama
4a4a1553f5
Fix
2023-09-27 19:13:57 +10:00
Yota Toyama
0e009d6045
Fix bug
2023-09-27 19:11:41 +10:00
Bradley Lucier
e390668961
SRFI 231: Declare char-storage-class, fix interval-projections
2023-08-27 23:22:14 -04:00
Alex Shinn
67fdb283b6
fix init value for make-specialized-array
2023-06-20 22:19:19 +09:00
Alex Shinn
44f8c91931
Fix zero-dimensional array indexing.
2023-06-20 22:16:18 +09:00
Alex Shinn
b06c4cca9d
Merge branch 'master' of github.com:ashinn/chibi-scheme
2023-06-04 06:06:47 +09:00
Alex Shinn
4b5e885f31
Fix coeffs in trivial dimensions to work with BLAS.
2023-06-04 06:05:29 +09:00
Bradley Lucier
7420ba9315
SRFI 231: Add index-* tests
...
lib/srfi/231/base.scm:
1. Add argument checks for index-first, index-last, index-rotate, and index-swap.
lib/srfi/231/test.sld:
1. 1,$s/179/231/g (in vim notation)
2. Add tests for index-first, index-last, index-rotate, and index-swap.
3. Remove trailing spaces.
2023-05-30 13:08:25 -04:00
Bradley Lucier
732078cde4
Fix SRFI 231 install
...
Makefile:
When installing chibi, make installation directory and install files for SRFI 231.
When uninstalling chibi, remove installation directory and files for SRFI 231.
lib/srfi/231/transforms.scm:
Move definition of vector-iota from here to ...
lib/srfi/231/base.scm:
Here.
lib/srfi/231/base.sld:
Export vector-iota to use in both base.scm and transforms.scm.
2023-05-28 17:48:32 -04:00
Bradley Lucier
27ea774e2e
Add index-swap, fix assert in array-append
2023-05-23 15:09:25 -04:00
Alex Shinn
06f0cc0225
Add iset-rank/select.
2023-05-23 22:03:19 +09:00
Alex Shinn
d6c58a7e11
Fix array-append signature.
2023-05-20 16:31:23 +09:00
Alex Shinn
870e484b50
provide initial raw-script-file definition in meta-7.scm
...
Closes #916
2023-05-09 06:50:03 +09:00
Lassi Kortela
be22930896
Fix broken import in (srfi 193)
...
Fixes #914
2023-05-04 18:35:59 +03:00
Lassi Kortela
561fc1bae0
Drop (chibi sxml) dependency on let-optionals
...
let-optionals can be provided by the (chibi optional) library or by
SRFI 227. Either dependency is non-trivial and makes it tricky to
incorporate (chibi sxml) into outside projects. Since (chibi sxml)
only makes trivial use of let-optionals, expand the macro by hand.
2023-04-21 16:42:03 +03:00
Alex Shinn
1ba5df1fdf
Adding missing length<=? ( closes #909 ).
2023-04-02 22:48:51 +09:00