Daphne Preston-Kendal
e97a2debe1
Friendlier error message for misuse of standard macros
2021-12-30 00:12:18 +01:00
Alex Shinn
6615a74609
undoing unintended commit
2021-12-29 14:27:49 +09:00
Alex Shinn
b769a318ef
use unsigned char* in sexp_update_string_index_lookup (fixes issue #804 )
2021-12-29 11:55:58 +09:00
Alex Shinn
ab29a2b973
skip common prefix/suffix in diff
2021-12-28 16:07:43 +09:00
Alex Shinn
9cd9ec1cda
fix mapn error message
2021-12-28 15:19:10 +09:00
Alex Shinn
f6e8e71c41
Merge branch 'master' of github.com:ashinn/chibi-scheme
2021-12-25 10:56:10 +09:00
Alex Shinn
58e9715c2b
handle non-positive numbers in numeric/si (fixes issue #801 )
2021-12-25 10:55:58 +09:00
Alex Shinn
f812bbc96b
Merge pull request #797 from dpk/reference-barrier
...
Fix SRFI 124 imports for reference-barrier
2021-12-15 07:01:43 +09:00
Daphne Preston-Kendal
f9f384c45b
Fix SRFI 124 imports for reference-barrier
2021-12-14 15:45:12 +01:00
Alex Shinn
50188a6668
Merge pull request #796 from dpk/reference-barrier
...
Add reference-barrier to (srfi 124)
2021-12-14 21:36:53 +09:00
Daphne Preston-Kendal
2d8ce631c7
Add reference-barrier to (srfi 124)
2021-12-14 13:04:21 +01:00
Marc Nieper-Wißkirchen
232dc6ef20
Fix SRFI 227 exports
2021-12-11 14:27:20 +01:00
Alex Shinn
9a17254536
guard against opcodes
2021-12-03 08:33:28 +09:00
Alex Shinn
9a48a110b8
add bounds check
2021-12-02 22:07:57 +09:00
Alex Shinn
0da288d053
implement (srfi 229)
2021-12-02 22:03:58 +09:00
Alex Shinn
71cc9b0d3c
add make-procedure to (chibi ast)
2021-12-02 22:02:03 +09:00
Alex Shinn
6e636594a5
simplify opt-lambda def; copy list tail for rest arguments
2021-11-25 22:01:59 +09:00
Alex Shinn
f29af14e2e
Merge branch 'master' of github.com:ashinn/chibi-scheme
2021-11-25 00:16:56 +09:00
Alex Shinn
1eee928e67
allow non-optional bindings in let-optionals[*]
2021-11-25 00:14:15 +09:00
Daphne Preston-Kendal
427629a43e
Add support for SRFI 227
2021-11-24 10:24:21 +01:00
Arthur A. Gleckler
9b6099ca87
Support more MIME types for common file types.
...
In `servlet-respond', the server defaults to Content-Type "text/html;
charset=UTF-8" for extensions that don't appear in
`mime-type-from-extension'. This meant that CSS files, JavaScript
files, and various types of image files were getting the wrong
Content-Type, which was fine when they were served directly, but
caused clients to close the connection when they were loaded over
HTTP/1.1, which can deliver back-to-back resources on the same
connection.
Sort the types in the `mime-type-from-extension' list now that it is
longer. It's still not long enough for the order to be material for
performance.
2021-11-18 22:09:47 -08:00
Arthur A. Gleckler
153b4d894a
Fix typo in comment.
2021-11-18 18:06:40 -08:00
Alex Shinn
4dde693435
http servers should ignore SIGPIPE by default
2021-11-19 10:49:04 +09:00
Alex Shinn
182048ed9a
adjust for rounding up converting from fixnum to double in exact-integer-sqrt ( fixes #786 )
2021-11-08 09:27:50 +09:00
Jeronimo Pellegrini
ce97808201
Add missing constants to SRFI-144
...
The following constants were missing from Chibi's SRFI-144
implementation:
fl-1/e
fl-e-pi/4
fl-1/log-2
fl-log-3
fl-log-pi
fl-1/log-10
fl-2pi
fl-pi-squared
fl-degree
fl-gamma-1/2
fl-gamma-1/3
fl-gamma-2/3
2021-09-29 00:57:31 -03:00
Alex Shinn
9e523b6832
Merge pull request #764 from jgesswein/fix-test-runner-indentation
...
Fix indentation of test runner output
2021-09-06 14:11:54 +09:00
Jürgen Geßwein
e2c8619a21
Implement review comments
...
Add comment to procedure indent-string to indicate need for a reset for
a second report.
Correct import of (chibi optional).
2021-09-05 13:15:00 +02:00
Alex Shinn
1881116804
enforce order of let-optionals* val/rest binding in non-chibi impl (issue 778)
2021-09-02 12:58:41 +09:00
Alex Shinn
6be3784db0
nitpick (issue #778 )
2021-08-30 17:27:33 +09:00
Alex Shinn
08d2847767
explicitly state that it is an error if the default values mutate the let-optionals list (issue #778 )
2021-08-30 16:15:57 +09:00
Alex Shinn
22e89b168a
fix array-tile
2021-08-19 19:22:29 +09:00
Alex Shinn
57e4652ea6
Assert same domains in array-for-each, as per the spec and implicitly
...
depended on by the implementation.
2021-08-16 20:28:03 +09:00
Alex Shinn
a14f2d179a
rename bare let in case expansion (issue #772 )
2021-08-14 00:03:01 +09:00
Alex Shinn
6cafda8916
Decouple syntax-case from the Chibi core.
...
This restores third-party (ab)users of the Chibi macro system such
as in https://gist.github.com/baguette/2632464 , while allowing us
to break those uses in more interesting ways.
It also keeps the core slightly smaller (both in C and Scheme)
and speeds up the macro expansion process.
2021-08-10 23:19:35 +09:00
Lassi Kortela
3a5f884144
Simplify snprintf usage
...
snprintf(buf, sizeof(buf), ...) is the canonical idiom.
2021-08-07 23:17:38 +03:00
Jürgen Geßwein
e0497b3084
Implement review comments
...
Add some newlines and a comment to improve readability.
Use local string port instead of parameterizing current-output-port.
Pass symbol 'BEGIN to tell test reporter that evaluation of a test
starts. Adapt documentation of current-test-reporter accordingly.
Use define-opt instead of case-lambda.
2021-08-07 21:14:11 +02:00
Marc Nieper-Wißkirchen
1f9b4796d6
Parse syntax-rules more strictly
...
See issue #767 .
2021-08-03 17:05:37 +02:00
Alex Shinn
18d0adf13b
signal error on improper lists passed to map/for-each
2021-07-28 17:00:40 +09:00
Alex Shinn
9710962cd2
don't assume map works on improper lists in cpp-define
2021-07-28 10:35:05 +09:00
Jürgen Geßwein
b23db00aed
Fix indentation of test runner output
...
Fix standard test runner so that its output is properly indented and
lines are properly terminated.
Refactor standard test runner so that it is possible to plug in another
runner with different output.
2021-07-25 13:21:34 +02:00
Alex Shinn
5b8e196e0f
parse-seq should check for ignored value in fast paths as well (issue #757 )
2021-07-19 21:49:39 +09:00
Roger Crew
3337049811
shorter factor (issue #751 cont.)
2021-06-30 00:29:54 -07:00
Roger Crew
2759aaa306
add factor-alist and export it (chibi math prime)
...
a more useful version of factor
2021-06-29 23:48:12 -07:00
Roger Crew
680aede9ae
totient and aliquot rewrite + corrected tests for n=1 (issue #751 cont.)
2021-06-29 23:48:12 -07:00
Roger Crew
b89bd9f889
faster factor, (factor 1) = () (issue #751 cont.)
...
no need to go up to sqrt(n), Instead track i^2 and quit when that gets
larger than the (remaining) n (i.e., not the original n)
2021-06-29 23:48:12 -07:00
Roger Crew
41aa1a918e
miller-rabin-composite? rewrite (issue #751 )
...
modular-root-of-one? is replaced with the correct witness tester
2021-06-29 23:48:09 -07:00
Roger Crew
7d39108e72
factor-twos cps version using first-bit-set
...
first-bit-set is way faster than looping
2021-06-29 23:43:53 -07:00
Alex Shinn
73da0a88d4
scan for appropriate 2nd element to take the mean with when calling vector-find-median on an even length vector (issue #754 )
2021-06-29 21:09:41 +09:00
Alex Shinn
f3bccf1f7b
removing unintended export
2021-06-28 17:31:14 +09:00
Alex Shinn
378b56a0c3
adding opt-lambda* and define-opt*
2021-06-28 17:27:22 +09:00