about summary refs log tree commit diff stats
path: root/apps
Commit message (Collapse)AuthorAgeFilesLines
* 7121Kartik Agaram2020-10-261-5/+11
| | | | | | | Starting to polish 'line-count' demo: filename line-count = filename open lines len
* 7120 - tile: array of lines from fileKartik Agaram2020-10-265-2/+86
| | | | Requires a quick hacky change to Mu compiler.
* 7119 - tile: new primitive to slurp file contentsKartik Agaram2020-10-262-1/+41
| | | | | Stack display is messed up when file contents contain newlines. Ignoring that for now.
* 7118Kartik Agaram2020-10-261-3/+5
|
* 7117Kartik Agaram2020-10-261-2/+4
|
* 7116 - tile: regression in typing in stringsKartik Agaram2020-10-262-55/+46
| | | | We really need to clean up the Mu compiler's logic around function outputs.
* 7115Kartik Agaram2020-10-262-6/+6
|
* 7113Kartik Agaram2020-10-261-2/+12
|
* 7112 - tile: arrays of non-integersKartik Agaram2020-10-264-73/+125
|
* 7111Kartik Agaram2020-10-261-36/+41
|
* 7110Kartik Agaram2020-10-261-0/+54
| | | | | | | | | | Some more helpers that I want to avoid using, but they help me gain confidence in the current implementation of file handles. Manual test: "x" open dup read swap read Assumes there's a file called `x` in the current directory that contains at least two (short!) lines.
* 7109Kartik Agaram2020-10-252-1/+1
| | | | | | | | | | | | | | | | | | | Turns out I've been including some unnecessary files when building apps/mu! Treeshaken stats before: LoC 26258 => 9717 LoC including common libraries: 29736 => 12719 binary size: 406K => 79K After: LoC 26258 => 9717 LoC including common libraries: 28322 => 12370 binary size: 406K => 77K So our treeshaking isn't perfect. No surprise there.. The treeshaken build also starts to fail without the one-liner change to mu.subx, which looks like a bug in the treeshaker.
* 7108 - tile: read from file handleKartik Agaram2020-10-251-0/+36
|
* 7107 - tile: file handlesKartik Agaram2020-10-254-1/+65
|
* 7106 - tile: arrays of intsKartik Agaram2020-10-255-25/+145
|
* 7105 - tile: define-function works with stringsKartik Agaram2020-10-253-22/+37
|
* 7104 - tile: word-rename works with stringsKartik Agaram2020-10-252-4/+32
|
* 7103 - tile: first primitive for stringsKartik Agaram2020-10-254-1/+58
|
* 7102Kartik Agaram2020-10-251-3/+13
|
* 7101 - tile: remove quotes when evaluating stringsKartik Agaram2020-10-2516-7/+4
| | | | This found several bugs due to me not checking for null strings.
* 7100 - tile: render string literalsKartik Agaram2020-10-255-10/+71
|
* 7099Kartik Agaram2020-10-253-7/+6
|
* 7098 - tile: string valuesKartik Agaram2020-10-255-15/+38
| | | | Strings can contain spaces.
* .Kartik Agaram2020-10-241-11/+8
|
* tile: process space in middle of wordKartik Agaram2020-10-243-1/+28
|
* tile: process space at start of wordKartik Agaram2020-10-244-9/+148
| | | | | | This was very difficult to debug. We still need to process space in the middle of a word.
* tile: adjust spacing between commandline and stackKartik Agaram2020-10-231-1/+1
|
* 7087 - defining functions now seems to be workingKartik Agaram2020-10-203-23/+36
|
* 7086Kartik Agaram2020-10-202-22/+68
| | | | | Expanding words now seems to be working. I was forgetting to update 'prev' pointers in a few places.
* 7085Kartik Agaram2020-10-201-28/+28
|
* 7084Kartik Agaram2020-10-201-2/+7
| | | | | | | | | Cursor now updating right. Still a couple of bugs: ctrl-e doesn't know about multiple lines function calls don't expand right in multi-line sandboxes (but at least I'm now getting to see them in action!)
* 7083Kartik Agaram2020-10-202-2/+43
| | | | | Defining functions mostly working. But we still need to fix the cursor afterwards.
* 7082Kartik Agaram2020-10-201-8/+9
|
* 7081Kartik Agaram2020-10-202-8/+37
| | | | | Defining new functions seems to be working. _However_, we aren't yet detecting duplicates. `x x *` leads to a declaration of `x x f`.
* 7080Kartik Agaram2020-10-204-6/+79
| | | | | Constructing new functions with ctrl-d is now working right. But the call seems exactly flipped.
* 7079Kartik Agaram2020-10-194-1/+96
|
* 7078Kartik Agaram2020-10-191-1/+39
|
* 7077 - tile: render function listKartik Agaram2020-10-192-12/+53
|
* 7066 - tile: some more primitives for testingKartik Agaram2020-10-193-0/+93
| | | | | Lesson learned: functions store args in _reverse_ order. Since evaluation is very frequent, it's worth optimizing for it.
* 7065Kartik Agaram2020-10-191-4/+5
|
* 7064Kartik Agaram2020-10-191-16/+25
|
* 7063 - tile: scaffolding for defining functionsKartik Agaram2020-10-183-6/+121
|
* 7062Kartik Agaram2020-10-181-1/+1
|
* 7061Kartik Agaram2020-10-182-4/+4
|
* 7060 - tile: renaming variables now worksKartik Agaram2020-10-181-9/+10
|
* 7059Kartik Agaram2020-10-183-21/+139
| | | | | Cursor now in the right place after rename. But stack still doesn't show the value of a name.
* 7058Kartik Agaram2020-10-183-23/+97
| | | | | Snapshot; things seem to be working besides ctrl-r, but we aren't yet rendering only the final line.
* 7057 - tile: back to namesKartik Agaram2020-10-181-5/+44
| | | | We can now create new bindings for names while evaluating lines.
* 7056 - orange-pinkKartik Agaram2020-10-181-3/+8
|
* 7055Kartik Agaram2020-10-181-4/+8
|