summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-09-04Add test for aplwc-repl file-which-does-not-exist.peter
I know the tests should also check that an appropriate error message is produced, but that will have to wait. FossilOrigin-Name: 843c392e7c4213c3e4edf592ef5b3a14e05c3c8c6dda7b16d1097568345168c1
2026-09-04Add test for usage messagepeter
FossilOrigin-Name: 86c94785db487ae79d762047fc8076011787aadf3236403bbeb78cb87be65d1a
2026-09-04Simplify the alloc callback functionpeter
FossilOrigin-Name: a08c14408099c9287646e3fcac0df8dfa04d23cd08273f6b17abe7bff79e0942
2026-09-04Use the same memory-failure mechanism for mallocspeter
FossilOrigin-Name: fc4f944f1ef599321fac8aa6af72bbe55fb438b4f43800ba37dcfdfa2e6b4c4e
2026-09-04Make the memfail.sh script work without seqpeter
FossilOrigin-Name: acf55b125d707a4b1cd6f0abce66b286c1b814db407390821d4a3cf013186222
2026-09-04Add a test which runs all the scripts in tests/scripts/good to meaure how ↵peter
many memory allocations they perform, and then rerun them with a mode that causes the memory allocator to fail after N allocations. The scripts are run for all values of N from 0 to the number of allocations they need to succeed. FossilOrigin-Name: ed1953c203d3493d9c1adbcb9256d7d380bc1fdcfc7856f03f9d801291f478cd
2026-09-04Add a simple testpeter
FossilOrigin-Name: 4626c78a315712407e5c9366f852a478c7f00de748c409b6c3a3205b6ff3a3b8
2026-09-04Full code coverage of util.cpeter
FossilOrigin-Name: e185dda94b5b8fb5d688ff0581a03f2698f8b1ed784b97683235ec3e48c467e7
2026-09-03In aplwc-repl, allocate a bit more (next power of 2) than requested.peter
FossilOrigin-Name: 50c75ed6184d943f18022d48371cf4137b3e973136906fb39d21b52449dd743d
2026-09-03Don't dynamically allocate external reference counted pointers, just use ↵peter
what the user puts on the stack. FossilOrigin-Name: 270cf0d72050bea15fc40a1e2811ba642e3ef26cbe1fa6231c5aa6f1872ccb34
2026-09-03Compute chunk->next based on chunk->size, and add some debug checkspeter
FossilOrigin-Name: d0b062b28f5486e63437cfefde99508c64b25d1bf6fecdc0af8c49a80a76ed80
2026-09-02Support commentspeter
FossilOrigin-Name: 6d017126fbc93e45a53af2857cce78133b4714cd1a41d7bc0114c1bbaae2ec07
2026-09-02[13ed99ff5b] Give the sources a license: GPLv3+peter
FossilOrigin-Name: 877496d6f607bc4b7cd35f2b763b2633f73804c5860542d59432c1974318d72c
2026-09-01Oopspeter
FossilOrigin-Name: 7dfaeeb44547ee10a4b746ad462397a52716a702f66edfe755dfe67289b53723
2026-09-01[2f361290c8] The memory manager now knows how to reclaim unreferenced memory.peter
FossilOrigin-Name: 6bd5d1bb47db13116499d9399573fefc28fb6548ace9297c358c730f10a1a0b0
2026-09-01Put all the code which visits pointers in memory.c behind a macro, so it can ↵memory-managerpeter
easily be reused. FossilOrigin-Name: 1e911fa0ea41797f445fff6f25df36b6c0f07063b5c6e9936cb243294a2d8a0c
2026-09-01Implement "compaction", which moves all non-free chunks towards the ↵peter
beginning of the allocated space, and combines all the free space at the end. FossilOrigin-Name: c757f65164e1aebf38bc3e9ea8abe4b9f98b183cec7cfbeed0175f65c72f7ca5
2026-09-01First step at garbage collectionpeter
We now visit all objects and change the tag of those which are unreachable, to CHUNK_TAG_FREE. Next step will be to implement compaction to combine all free chunks at the end of the memory space. FossilOrigin-Name: f8641c857b5d430f45d7c1f36fb00866659a5ea78f36ee0535c9166060ea0e19
2026-09-01Update memory-manager branchpeter
FossilOrigin-Name: b6d07c6950d35369ce7d47069f35bb5b97b9f0b28853903aedc54b5be9fc918d
2026-08-31A bit of work on testing/code coveragepeter
FossilOrigin-Name: 50618f8fdb318b9c799e140f1ef644541382e348db8737a3e7c68af2836f7e83
2026-08-31Merge memory manager changes into trunkpeter
FossilOrigin-Name: af583e3ba70b2d10efdead8e03a42fe5c1b94d6b387522833606c138b527a653
2026-08-31A little bit of testingpeter
FossilOrigin-Name: 70deba994bb488d4aa5df36577d1e184d6651a3edeff042e9666f54589cdc6f9
2026-08-31Fix problems in release buildspeter
FossilOrigin-Name: 98227d25674f373968f51df0dcdccf3cf14d646a13e56a9229103d1aeb3ad73d
2026-08-31Bump the number of required malloc's for the testspeter
FossilOrigin-Name: a2d12252a66efb821c717a1b77ae164de940d52a1cc182de06e2fe5ea1df5772
2026-08-31Remove some unneeded references to struct aplwc * in various structures.peter
FossilOrigin-Name: 3b4b7806320d604b0df3654896cfe5d885f116d893ae15cfb3422d6d2de7193c
2026-08-31The objects returned to the user are now integer-based references,peter
not actual pointers. This means the aplwc internals can update those pointers without the user noticing. FossilOrigin-Name: 654c7d0ec85da295a7fb6ed381500410686b280f342fa81a30481f5e9a20c58a
2026-08-30Still a lot to be done, but I'm going to bed.peter
Two remaining big issues: * aplwc (the parameter passed "everywhere") - should it move or not? * values returned from the public API should not move. FossilOrigin-Name: 31ab3154b8f3d5ac167218496e9e204324bf0ac9d36b7bada8fe2a6c8f93d51c
2026-08-30Remove a lot of functions for manually freeing memory (they were not ↵peter
implemented) FossilOrigin-Name: 693765728e62a74a0ab15d657f7d1dd83702a9371fb042dafe6250f84a252959
2026-08-30Let the memory allocation code set the last_error to APLWC_OUT_OF_MEMORY, ↵peter
instead of the callers FossilOrigin-Name: 46c74e207a84e861636dbfebc4ba8bb9e7b17401dfd2c4fb9bdeae0fa98fd530
2026-08-30Remove the struct memory structpeter
FossilOrigin-Name: 38568a34f631b2a4eef72542e2988a9fe081f85d3248194c2ff995a9eed6bd5d
2026-08-30Remove APLWC_MIN_MEM constant, and APLWC_MEM environment variablepeter
FossilOrigin-Name: affcf2ab9c573820c77778abfb4769fad8a30ce457411b02a9528470994c7a6b
2026-08-30Start work on the memory manager. It is becomming a burden that it doesn't ↵peter
know how to request more memory, or how to collect garbage. FossilOrigin-Name: 1eb8eb8b8d8fd58a29bbeafa1ebb9f3618a31a5dcb45b860d2a5be6305775583
2026-08-30Merge branch getting-started into trunk. It turns out there is no need to ↵peter
have the branch. FossilOrigin-Name: 028cf019fc0daacf38ddceb28afd3dafb305887a5421995fc57d09daa295a34b
2026-08-30Small tweaks to get the current set of tests to passgetting-startedpeter
FossilOrigin-Name: 840e78468372f506a665fb06ddedd1e51266d465bf250273858e6e2f8976717e
2026-08-29Commit work in progress changes.peter
FossilOrigin-Name: ebe13a745f4816a4239d9dfe937bc9daf97ffc466e8bbdc412b05c3c891118fd
2026-08-29Commit unsaved work.peter
FossilOrigin-Name: 46adf8e389516e01f11696af5cf48d7dbee8764a480e20957a251538ace8cf3a
2026-08-25Add a reference to the original string, in a token_list. Otherwise the ↵peter
offsets make no sense. FossilOrigin-Name: 22c37facb5cb33fac6f473425f5552491da19ae280edcfd8e93f157870f9746e
2026-08-25Start working on modules, including a built-in "boot" modulepeter
FossilOrigin-Name: 4829dbeb2071fe0be41ded66a61ba2e156119a47def8a23415b8227a00d53ce7
2026-08-22Start work on a way to test #! scriptspeter
FossilOrigin-Name: 0637c5749d38b540e2a174b5248bf704098fd4ead61aa1d6e84d4495430c7149
2026-08-22Small set of changes to make the tests pass - meaning the scanner ↵peter
understands the code, not much else FossilOrigin-Name: d21c4a18581a61da466c0fbfdf73881bec55ea01091ef67abda1d10e17f8d358
2026-08-21Start work on testing the evaluatorpeter
FossilOrigin-Name: 530cc9567bc825fd8a7eb21f2ca12dbf7ecbecae3ed02638537dc4a8dca9ae1a
2026-08-21Add one more test case for numberspeter
FossilOrigin-Name: 3938ebbf4d9fe9091cb85db0717932da7b2cfbeb088c9113598a2c9df450d7c0
2026-08-21More work on the scanner: numberspeter
FossilOrigin-Name: b19f7075ec69fcf519de1ed8c33e417f48e74a2d2452f5c59b93bf9101cb2d7e
2026-08-21More work on the scanner and tests for itpeter
FossilOrigin-Name: 037c88ce86e1ba3a399c03a27d4c7252b52c2f500bc13f449e19e497b0607880
2026-08-21Start working on the scanner.peter
For now, all that is implemented is some functionality which imports UTF-8 into the memory managed by aplwc, after checking that the data is in fact valid UTF-8. FossilOrigin-Name: c861e88777d8180cb7b37c11fc7016a900f9d5821a7e3c8e8aab54118d2fca94
2026-08-20Get full coverage of aplwc-repl.peter
This required wrapping malloc so that it can fail under our control. FossilOrigin-Name: a27ccb5f02994393a518419bae15fd26ff0016c734d96350ae2137a1d3c0937c
2026-08-20Move aplwc-repl into its own directory, and likewise for the aplwc librarypeter
FossilOrigin-Name: 7e6b710fae494fadfe06bed16ae10bdda0f377067cb9411ed2b8bfc682d2fcbc
2026-08-20Include aplwc-repl in the coverage runpeter
FossilOrigin-Name: 4f7329faad5e4dadb6a8cbea007164da2f95af298399b2d1a2899eb478cd030a
2026-08-20Remove the error message bit from aplwc_errstr, as nothing uses it at the momentpeter
FossilOrigin-Name: 1c723000ee22c5f15c282eb808a3aa8c30cf2e315dbf3c544999519d18cef202
2026-08-20Test the aplwc_errstr and aplwc_errstr_rc functionspeter
FossilOrigin-Name: c72c226a392ac25e688b131070bdfb2902b2a697766ecdfc0865b356cd3c2b2a