about summary refs log tree commit diff stats
path: root/070text.mu
Commit message (Collapse)AuthorAgeFilesLines
* 2576 - distinguish allocated addresses from othersKartik K. Agaram2016-01-191-228/+228
| | | | | | | | | | | | | | | | This is the one major refinement on the C programming model I'm planning to introduce in mu. Instead of Rust's menagerie of pointer types and static checking, I want to introduce just one new type, and use it to perform ref-counting at runtime. So far all we're doing is updating new's interface. The actual ref-counting implementation is next. One implication: I might sometimes need duplicate implementations for a recipe with allocated vs vanilla addresses of the same type. So far it seems I can get away with just always passing in allocated addresses; the situations when you want to pass an unallocated address to a recipe should be few and far between.
* 2573 - check product type of 'new'Kartik K. Agaram2016-01-191-2/+2
| | | | | | | | | | | I realize that my current doesn't allow nesting a:b:c linear type syntax inside a dilated property. So you can't currently say: (recipe address:number) Need to fix that at some point. Non-trivial since linear syntax is oblivious to dilated syntax. I should probably make the dilated syntax more fundamental and introduce it at an earlier layer.
* 2559 - stop using 'next-ingredient' explicitlyKartik K. Agaram2016-01-121-12/+9
| | | | | I still need it in some situations because I have no way to set a non-zero default for an optional ingredient. Open question..
* 2606 - handle cycles inside stashKartik K. Agaram2015-11-291-1/+9
| | | | | | | | | The idea is that to-text-line should truncate blindly past some threshold, even if to-text isn't smart enough to avoid infinite loops. Maybe I should define a 'truncating buffer' which stops once it fills up. That would be an easy way to eliminate all infinite loops in to-text-line.
* 2483 - to-text can now handle listsKartik K. Agaram2015-11-271-0/+28
| | | | | 'append' also implicitly calls 'to-text' unless there's a better variant.
* 2477Kartik K. Agaram2015-11-271-5/+4
|
* 2476Kartik K. Agaram2015-11-271-10/+10
|
* 2474 - overload 'copy' and 'equal' for textKartik K. Agaram2015-11-221-15/+13
| | | | 2473 was the final bugfix holding this back.
* 2467 - rename 'string' to 'text' everywhereKartik K. Agaram2015-11-211-0/+1280
Not entirely happy with this. Maybe we'll find a better name. But at least it's an improvement. One part I *am* happy with is renaming string-replace to replace, string-append to append, etc. Overdue, now that we have static dispatch.