about summary refs log tree commit diff stats
path: root/mu.arc.t
Commit message (Collapse)AuthorAgeFilesLines
* 569 - ah, the right way to do generic functionsKartik K. Agaram2015-01-141-0/+2
| | | | | | | | | | Each clause creates its own default-space for local variables. Now we can justify prepending bodies on every 'function' form. Later we can optimize away the duplicate default-spaces. Another cost: we can't mindlessly use 'next-input' anymore. Pity.
* 564Kartik K. Agaram2015-01-141-679/+679
|
* 542Kartik K. Agaram2015-01-121-0/+52
| | | | Tests for terminating when there's just helpers left.
* 529 - 'sleep' can now wait for a routine to completeKartik K. Agaram2015-01-101-0/+26
|
* 528Kartik K. Agaram2015-01-101-3/+4
|
* 525 - 'fork' now returns a routine idKartik K. Agaram2015-01-101-0/+30
|
* 524Kartik K. Agaram2015-01-101-14/+14
|
* 522 - another arg for 'fork'Kartik K. Agaram2015-01-101-5/+23
| | | | Fork syntax is now: fork <function> [global space] [max cycle limit] args*
* 519 - ooh, use metadata to disambiguate argsKartik K. Agaram2015-01-101-5/+5
|
* 515 - support time limits for threadsKartik K. Agaram2015-01-101-0/+124
| | | | | Disquieting that I can't make each of these five tests fail in isolation. We have to fix them all at once.
* 514Kartik K. Agaram2015-01-091-16/+18
|
* 512 - update html renderingKartik K. Agaram2015-01-091-191/+227
|
* 511 - make 'sleep' clearerKartik K. Agaram2015-01-081-13/+13
|
* 510Kartik K. Agaram2015-01-081-2/+2
|
* 509Kartik K. Agaram2015-01-081-23/+23
|
* 506 - continue 505Kartik K. Agaram2015-01-061-21/+27
| | | | Still no reason uncovered to avoid non-pointers.
* 505 - simplify tagged-valueKartik K. Agaram2015-01-051-37/+26
| | | | | | | I could swear there was an issue earlier where tagged-values had to contain pointers for some core function. But I can't find it anymore. Ok, assume we can store primitives in it and pointers only for aggregates (and-records and arrays).
* 500Kartik K. Agaram2015-01-021-1/+1
|
* 497 - strengthen the concept of 'space'Kartik K. Agaram2015-01-021-83/+83
| | | | | | | | | | | | | | | | | | | | 'default-scope' is now 'default-space' 'closure-generator' is now 'next-space-generator' The connection to high-level syntax for closures is now tenuous, so we'll call the 'outer scope' the 'next space'. So, let's try to create a few sentences with all these related ideas: Names map to addresses offset from a default-space when it's provided. Spaces can be strung together. The zeroth variable points to the next space, the one that is accessed when a variable has /space:1. To map a name to an address in the next space, you need to know what function generated that space. A corollary is that the space passed in to a function should always be generated by a single function. Spaces can be used to construct lexical scopes and objects.
* 475 - support symbol literals, just as a convenienceKartik K. Agaram2014-12-311-0/+8
|
* 468 - slice test time by 65%Kartik K. Agaram2014-12-301-5/+5
| | | | | We achieve this by separating out the freezing of system software, which we needed to do anyway to address the duplication in 'init-fn'.
* 467 - 'convert-names' now supports space metadataKartik K. Agaram2014-12-301-0/+32
| | | | | | | | | To inform it about space metadata you have to tag environments with the function that generated them. Every function can only ever be called with environments generated by a single function. As an assembly-like language, mu requires closures to be called with an explicit environment, but it warns when the environment might not be what the function expects.
* 464 - reply broken in channel 'write'Kartik K. Agaram2014-12-301-0/+4
| | | | | | | | | | How did this work until now? The reply was being treated as a label, and if 'write' returned nothing it would still work fine because the output is already present, and a missing 'reply' leaves oargs as-is. Should we do something to catch this? Perhaps we should track args modified and check that there are oargs for them. But that seems quite heavyweight.. Maybe we should clear oargs when missing a 'reply'?
* 463 - mu now has closuresKartik K. Agaram2014-12-301-0/+29
|
* 461 - create room for an index '0' in scopesKartik K. Agaram2014-12-291-20/+29
| | | | This wasn't working until I fixed 459.
* 457 - finally, redirection worksKartik K. Agaram2014-12-281-8/+30
| | | | | No need for a separate channels array; just pass channels in globals. The global space is a superset of unix's fd array.
* 456 - routines can now have routine globalsKartik K. Agaram2014-12-281-3/+20
| | | | But we don't do nonsense like copy all state from the parent routine.
* 453Kartik K. Agaram2014-12-281-29/+29
|
* 451 - start of support for per-routine globalsKartik K. Agaram2014-12-271-0/+23
|
* 448Kartik K. Agaram2014-12-261-10/+10
|
* 447 - function invocations can share localsKartik K. Agaram2014-12-261-0/+27
| | | | | This is the first step to creating closures. That requires specifying the lexical scope 'frame' to read a variable from.
* 446Kartik K. Agaram2014-12-251-2/+18
| | | | | | | | Clear up that ancient todo. We don't particularly care about what abstraction we write tests at, as long as we do so at *some* layer and document the intent. That lets us move tests up or down in the future when we know more/have better taste.
* 445Kartik K. Agaram2014-12-251-0/+2
|
* 444 - bring back dispatch based on operand/result typesKartik K. Agaram2014-12-241-2/+94
| | | | | | | | | | | Was dropped in commit 149. But we need it for more convenient overloading, especially now that the right way to build tagged-values is unclear. The original concern was that type/otype would make code harder to 'assemble' down to native. But we should be able to insert CALL instructions to the right clause inside a function's code. So keep it around in the toolbox.
* 442 - string 'split'Kartik K. Agaram2014-12-191-0/+86
|
* 441 - string 'find-next' for charactersKartik K. Agaram2014-12-191-0/+88
|
* 439Kartik K. Agaram2014-12-171-8/+8
|
* 438 - unbelievable typoKartik K. Agaram2014-12-171-0/+6
|
* 436 - types* table can now contain integer-array:3, etc.Kartik K. Agaram2014-12-171-32/+39
| | | | | | | | | | | | | Biggest change was to the interface to the 'sizeof' helper. Where it used to accept either a type symbol or a cons operand, it now always accepts an operand, though the value of the operand can be _. In the process the implementation is radically simpler. Also reorg'd unit tests a little, putting those for 'deref' before 'sizeof'. Finally, I'm giving in and enabling the printing of test names as they're run. We still need this all the time in our surgery.
* 435 - starting to allow type definitionsKartik K. Agaram2014-12-171-0/+10
|
* 434Kartik K. Agaram2014-12-171-2/+2
|
* 433Kartik K. Agaram2014-12-171-8/+8
|
* 431 - rename 'record' (struct) to 'and-record'Kartik K. Agaram2014-12-171-14/+14
| | | | Now we can call unions 'or-record'.
* 430 - cache common functions for testsKartik K. Agaram2014-12-151-0/+2
| | | | Tests now take 21s instead of 76s, reclaiming recent losses and more.
* 427 - ..and we're back. All mu.arc.t tests passing.Kartik K. Agaram2014-12-141-126/+136
|
* 424 - layer 20 passingKartik K. Agaram2014-12-141-650/+666
| | | | Seemingly large diff but most changes are peephole.
* 422Kartik K. Agaram2014-12-141-6/+7
| | | | Further cleanup of convert-names tests.
* 421Kartik K. Agaram2014-12-141-0/+4
|
* 420 - no unnecessary structure in testsKartik K. Agaram2014-12-141-84/+83
| | | | It makes them harder to appreciate.
* 419 - layer 11 now passingKartik K. Agaram2014-12-141-30/+46
|