Commit graph

148 commits

Author SHA1 Message Date
Simon Brooke 8522e50f42
Really shouldn't have the same VERSION in 'develop' as in 'master'! 2021-07-19 09:53:08 +01:00
Simon Brooke e0f6e0a42a
Added information on command line flags
because picking this up again after five years is HARD!
2021-07-19 09:49:30 +01:00
Simon Brooke baf8d6669d OK, it is BETTER, but not FIXED.
(expt 2 63) goes weirdly wrong - returns T.

Internal representation is correct, so fault is in print.
2019-02-15 18:49:52 +00:00
Simon Brooke 71354d0f86 Woohoo! Actual goddamned progress! Multiply might be working!
Print definitely isn't!
2019-02-15 14:19:41 +00:00
Simon Brooke 27411689c9 Removed the print_use_colours feature.
More nuisance than help at this stage; removed.
2019-02-07 15:42:01 +00:00
Simon Brooke af814d8f03 #time: Fixed
Major (unexpected) problem was collision between the name of my header file and that of the system header file!
2019-02-07 15:32:06 +00:00
Simon Brooke 897d5d2670 Map in function position 2019-02-07 13:57:37 +00:00
Simon Brooke 3043829745 #17: Fixed 2019-02-07 13:40:34 +00:00
Simon Brooke f36436a9e1 #8: Done
I'm now of the opinion that this is done at the wrong level in the stack and needs to be redone later; but it works for now.

There's a regression in `open`, but I can't see why.
2019-02-07 09:22:44 +00:00
Simon Brooke 0687b0baeb #8: Buggy, but a lot of it works. 2019-02-06 11:17:31 +00:00
Simon Brooke b6958bbf65 #8: compiles, but most tests fail. 2019-02-05 13:46:46 +00:00
Simon Brooke e7ef82d23f #8: keywords as functions on associations working 2019-02-05 11:02:04 +00:00
Simon Brooke 2bebee6002 #8: Bare bones 2019-02-05 10:27:16 +00:00
Simon Brooke 23e4f0befa A bit of work on time, but it doesn't actually work yet. 2019-02-05 09:59:05 +00:00
Simon Brooke 8cab28f6c8 Proper fix for the junk characters bug. 2019-01-31 22:49:25 +00:00
Simon Brooke 83accb2be4 #13: Fixed 2019-01-31 22:39:32 +00:00
Simon Brooke 0fea9580fa Investigating the junk character problem. 2019-01-31 14:17:29 +00:00
Simon Brooke bd4d655362 Metadata for file streams 2019-01-31 13:24:06 +00:00
Simon Brooke 86319fd1c3 That seems to fix it! 2019-01-30 01:26:41 +00:00
Simon Brooke eb49ca4e2d Improvements to URL metadata collection
Still not perfect - some corruption of data.
2019-01-30 00:32:55 +00:00
Simon Brooke f9bcac10e7 Fixed, working. 2019-01-29 22:36:20 +00:00
Simon Brooke eb394d153f Setting up medatata works...
And the `inspect` function correctly shows it. However, the `metadata` function segfaults.
2019-01-29 18:31:30 +00:00
Simon Brooke a640c9dff9 It works! 2019-01-28 18:46:24 +00:00
Simon Brooke b15c0e8f89 Tactical commit 2019-01-28 15:02:46 +00:00
Simon Brooke 8334e2bf1f Still segfaults on read from URL. 2019-01-28 10:32:34 +00:00
Simon Brooke 3470f27585 Can now read files from the filesystem. 2019-01-27 18:54:23 +00:00
Simon Brooke d9acb277bf Tests now pass
at least, all the ones that did before!
2019-01-27 17:51:28 +00:00
Simon Brooke 0e11adea1c Compiles, most tests break 2019-01-27 17:22:13 +00:00
Simon Brooke b8f241c2c5 Progress, not working 2019-01-27 12:23:51 +00:00
Simon Brooke a355a28ffa Tactical commit whilst converting to URL_FILE 2019-01-24 19:36:00 +00:00
Simon Brooke f8c20ab3b1 Still broken, but I believe we're moving in the right direction. 2019-01-24 10:12:08 +00:00
Simon Brooke bf72ae379d Getting closer. WARNING: GC disabled in this commit. 2019-01-22 09:48:26 +00:00
Simon Brooke 3fd322af6f Major progress, multiply now almost works
There's a premature free() somewhere, and I'm not sure why.

Print depends on divide, which is easy, but also on mod and floor (of rationals) which isn't.
2019-01-21 16:14:25 +00:00
Simon Brooke 64fc43e9fc OK, my idea that long multiplication is like long addition is wrong.
It's still broken, but it's broken because of fundamental misunderstanding which tinkering won't solve.
2019-01-20 23:34:46 +00:00
Simon Brooke 22fa7314d6 Mostly fixing and standardising documentation. 2019-01-20 20:37:44 +00:00
Simon Brooke 0f8bc990f2 Much investigation of bignum problems
bignum multiply is still not working, but as bignum read and bignum divide depend on it, it's the problem to hit first.
2019-01-19 16:28:15 +00:00
Simon Brooke 46a4132823 Made it easier to run individual unit tests 2019-01-18 20:55:03 +00:00
Simon Brooke c209abb4f9 Added unit tests to establish that bignum addition and print work
the bug must be in multiplication.
2019-01-18 13:39:12 +00:00
Simon Brooke 7f93b04b72 Various refactorings around bignum arithmetic 2019-01-17 17:04:14 +00:00
Simon Brooke d624c671cd Major refactoring, all tests still pass
Bignum issues not yet folly resolved.
2019-01-05 11:42:17 +00:00
Simon Brooke 396e214b5f Increased maximum memory allocation 2019-01-04 11:24:05 +00:00
Simon Brooke 67443e1d46 OK, adding bignums works; multiplying bignums does not work.
There's no evidence of a bug in reading/printing, because the only way I can currently get a number big enough to trigger the supposed bug is by multiplying, which doesn't work.
2019-01-04 11:04:55 +00:00
Simon Brooke 67802a07b8 Now successfully reading/printing 2 cell bignums
Something is wrong with n-cell bignums, but let's make haste slowly.
2019-01-04 10:40:15 +00:00
Simon Brooke d9d789fdd0 Now creating the correct internal bignum representation
add_integers returns an integer which by inspection of the internal representation is correct, but the print representation is not correct.
2019-01-03 11:21:08 +00:00
Simon Brooke 4295b6e57f This isn't working, but it's VERY promising. 2019-01-01 15:04:44 +00:00
Simon Brooke 6d2cf313cb Very small fix to formatting integers. 2018-12-31 16:24:38 +00:00
Simon Brooke a02d286ad5 Spotted a bug in car of a stream, and fixed it. 2018-12-31 16:18:39 +00:00
Simon Brooke e5f40032e9 Now safely detecting (but not dealing with) integer overflow.
Also printing and reading integers with comma separators.
2018-12-31 16:15:14 +00:00
Simon Brooke 72ab4af20e Seem to have fixed the 'oblist getting lost' problem. 2018-12-31 14:43:47 +00:00
Simon Brooke e7dffcad2c Not really making progress. 2018-12-30 19:07:07 +00:00