Commit graph

222 commits

Author SHA1 Message Date
69b199fecd Found and fixed a bug I did not previously know about in println. 2026-03-18 12:22:12 +00:00
54a99b6796 Working on the member? bug. No fix, but some improvements in debug message format.
The bug is actually either in `cond` or in `cdr`, but I'm finding it extremely hard
to trace.
2026-03-18 11:53:48 +00:00
de50a30be2 Getting closer to tracking down the member bug, but cannot use debugger on laptop screen. 2026-03-16 15:26:12 +00:00
d42ece5711 Tactical commit while working on the bignum bug, AGAIN. 2026-03-14 21:20:23 +00:00
7f34601523 Well, that was easy! Stack limit now working. 2026-03-14 16:58:55 +00:00
d1ce893633 This is broken, but the stack limit feature works. Some debugging needed. 2026-03-13 23:42:57 +00:00
2536e76617 Added 'depth' counter to stack frames. The idea is two-fold:
1. You can limit runaway recursion by binding a symbol *max_stack_depth* in the environment
2. You can limit the number of backtrace frames printed.

However, neither of these have been implemented yet.
2026-03-02 11:10:29 +00:00
72a8bc09e0 Very minor fixes/ 2026-03-01 20:37:16 +00:00
3a1f64d7ff Well, I'm back to the same failed unit tests as the develop branch
and I *feel* that the intern code is better. But it's not without
problems and I don't think I can release at this. But it may be
ready to merge back.
2026-03-01 20:04:21 +00:00
bcb227a5f9 Still not working, but I have increasing confidence I'm on the right track. 2026-02-28 18:09:48 +00:00
a1c377bc7c Established intern bug is in getting, not setting; improved exceptions. 2026-02-28 15:15:42 +00:00
54f6f023c6 More debugging output. Getting desperate! 2026-02-28 12:24:59 +00:00
72548097cf Rewriting intern. This is badly broken, but I think on the road to better. 2026-02-28 11:21:11 +00:00
1900bca706 Very, very nearly ready for 0.0.6. Too tired to press the burron tonight. 2026-02-27 02:43:21 +00:00
b720211b7b Made the string returned by c_type null-character terminated. Fixes #6.
This is probably the wrong fix; probably I should have fixed read_string
so that it did not create null-character terminated strings, but it will
do for now. Probably will revisit.
2026-02-26 21:14:39 +00:00
af21e506ef Whoops! Had the wrong debug tag on debug calls in equal.c 2026-02-25 22:16:14 +00:00
Simon Brooke
ffceda5edc Greatly improved performance of equal for string like things. 2026-02-25 22:10:37 +00:00
Simon Brooke
90e862cc59 let segfault bug "fixed". *But* I suspect there's memory leaking here. 2026-02-25 20:13:57 +00:00
Simon Brooke
3665326c55 Made eq and equal vararg functions, and appended ? to their names as predicates. 2026-02-25 15:24:02 +00:00
Simon Brooke
8c63272214 Fixed runaway recursion in cond. However, let is still segfaulting, and member
does not work correctly.
2026-02-25 11:17:40 +00:00
d34d891211 Fixed subtraction regression; added new subtraction unit test. 2026-02-24 09:08:41 +00:00
62ebaf9819 Added logical operators and, not and or. Closes #3 2026-02-24 01:45:51 +00:00
70376c6529 Careful debugging of the memory leak problem. At this stage,
stack frames for interpreted (but not primitive) functions appear not to be being
reclaimed, and the oblist doesn't seem to be being fully reclaimed.
2026-02-20 19:39:19 +00:00
8629e33f92 Added a flag, simplify to the arg list of make_ratio, so that we can
create ratios which would otherwise somplify to integers, in order to
make ratio arithmetic easier.
2026-02-15 23:47:28 +00:00
169afc9eb4 add_ratio_ratio fixed. 2026-02-15 17:38:54 +00:00
d7e0220674 Arithmetic equality fixed. 2026-02-15 13:30:27 +00:00
b97401bfde Work on the equality of numbers. The good news: two additional unit tests pass.
The bad news: I'm getting segfaults.
2026-02-15 00:50:30 +00:00
08a7c4153c Reformatted code; made paths in generated documentation relative. 2026-02-14 15:32:59 +00:00
222368bf64 Stage one clean up of test files. Some unit tests are still creating temporary files in
the project root directory, which is still to be fixed; and *I think* known-failing
tests which I don't intend to fix immediately should be marked in some way.
2026-02-14 14:04:41 +00:00
5e6363e6ae Fixed the horrendous 'unbound symbol nil' bug. Also work on documentation and
unit tests.
2026-02-14 11:40:52 +00:00
3659103dd7 Another small fix. Previous fix resulted in 4 more tests failing (now 11);
this fix does not change that, and the regressions must be resolved.
2026-02-13 13:07:43 +00:00
f6d7fcea1e Woohoo! Huge decrease in cells not cleaned up, with fixing one stupid bug. 2026-02-13 12:50:02 +00:00
004ff6737c feature-2: allocating cells with count = 1; 7 unit tests (all bignums) fail. 2026-02-12 10:17:11 +00:00
351ca5bd17 Work on reducing allocation leaks in read_number(). This is now improved, but not yet satisfactory. 2026-02-04 22:57:10 +00:00
e489d02069 Mainly unit tests. 39/45 currently pass; the failures are all in bignum arithmetic and in deallocation. 2026-02-03 21:47:25 +00:00
e41ae1aa8b OK, big win: the oblist is now a hashmap, and it works. I have clear ideas now
about how to implement namespaces. There are probably regressions in this, but
progress nevertheless!
2026-02-03 17:20:55 +00:00
7b2deae88c Second pass on fixing up documentation. Still some links not fixed. 2025-07-06 11:13:01 +01:00
34ef8cd4c1 Merge branch 'develop' of ssh://git.journeyman.cc:4022/simon/post-scarcity into develop 2025-07-05 14:10:40 +01:00
36696254f2 Work on the bignum problem, ongoing. 2025-07-05 13:58:18 +01:00
fa99dd6990 Mainly, work on investigating the bignum arithmetic problem(s). 2025-07-05 09:52:03 +01:00
7c84cb433a Changed from using bit-shifts to using arithmetic operators. More tests fail, but... 2025-03-16 09:38:00 +00:00
bef9be4914 Merge branch 'master' into develop 2025-03-14 10:27:30 +00:00
4e76fad655 Revert to 60-bit bignum chunks; better make test rigging
Still failing the three-chunk bignum unit tests
2025-03-14 10:24:38 +00:00
e9f49d06a6 Added code::blocks project experimentally; also, added macro for bits 2025-03-13 18:26:38 +00:00
ce1c72973d Defensive commit before experimenting with code::blocks 2025-03-13 12:47:54 +00:00
cbcced70b2
Just poking around and trying to remember where the problems are. 2023-04-08 11:17:18 +01:00
ea0d9a2629
Fixed two coredump issues 2021-09-17 09:57:38 +01:00
1823e0679d
Merge remote-tracking branch 'origin/master' 2021-09-12 18:56:01 +01:00
2ef0824967
Upversioned to 0.0.6-SNAPSHOT 2021-09-12 18:55:15 +01:00
86961577a6
Mostly more documentation 2021-09-12 18:43:07 +01:00