Commit Graph

32 Commits

Author SHA1 Message Date
Kartik Agaram 01ce563dfe 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
Kartik Agaram dd66068298 4261 - start using literals for 'true' and 'false'
They uncovered one bug: in edit/003-shortcuts.mu
  <scroll-down> was returning 0 for an address in one place where I
  thought it was returning 0 for a boolean.

Now we've eliminated this bad interaction between tangling and punning
literals.
2018-06-17 00:29:22 -07:00
Kartik K. Agaram 4a48bedcd1 4134 - 'input' = 'ingredient' 2017-12-03 23:25:40 -08:00
Kartik K. Agaram d6ae00788a 3828 - make buffers shape-shifting (generic) 2017-04-18 10:47:35 -07:00
Kartik K. Agaram 294b2ab359 3705 - switch to tested file-system primitives 2016-12-11 16:18:18 -08:00
Kartik K. Agaram d5c86dfd87 3704
Bugfix: writing to a new file in a non-empty fake file system.

The one time I try to get a little clever, it bites me in the ass.
That'll teach me..
2016-12-11 15:31:04 -08:00
Kartik K. Agaram eb2b6cd21e 3693 2016-11-25 22:30:36 -08:00
Kartik K. Agaram f116818c7c 3656
Periodic cleanup to replace 'reply' with 'return' everywhere in the
repo.

I use 'reply' for students to help reinforce the metaphor of function
calls as being like messages through a pipe. But that causes 'reply' to
get into my muscle memory when writing Mu code for myself, and I worry
that that makes Mu seem unnecessarily alien to anybody reading on
Github.

Perhaps I should just give it up? I'll try using 'return' with my next
student.
2016-11-10 10:24:14 -08:00
Kartik K. Agaram ef69c56c82 3608 - concurrent writes to fake file system 2016-10-29 17:06:48 -07:00
Kartik K. Agaram 0606f4ace4 3574
Shorter branches above longer ones.
2016-10-23 21:15:43 -07:00
Kartik K. Agaram b1f0fa4dc9 3573 - client socket tests
This is just the same as tests for a fake file-system.
2016-10-23 20:55:47 -07:00
Kartik K. Agaram f03c9c0549 3507 2016-10-16 11:11:54 -07:00
Kartik K. Agaram 0893d65e27 3504 2016-10-15 23:55:21 -07:00
Kartik K. Agaram a0331a9b0e 3390 2016-09-17 13:00:39 -07:00
Kartik K. Agaram 760f683f27 3389 2016-09-17 12:55:10 -07:00
Kartik K. Agaram 80df524b56 3388 2016-09-17 10:32:57 -07:00
Kartik K. Agaram 7a84094adb 3385 2016-09-17 10:28:25 -07:00
Kartik K. Agaram 08f4628e8b 3379
Can't use type abbreviations inside 'memory-should-contain'.
2016-09-17 00:31:55 -07:00
Kartik K. Agaram 59e47aca14 3341
Process type abbreviations in function headers.

Still a couple of places where doing this causes strange errors. We'll
track those down next.
2016-09-12 10:00:43 -07:00
Kartik K. Agaram e2b367dc25 3338
Process type abbreviations in container definitions.
2016-09-12 00:47:44 -07:00
Kartik K. Agaram ea19d0dc2c 3337 - first use of type abbreviations: text
In the process I've uncover a couple of situations we don't support type
abbreviations yet. They're next.
2016-09-12 00:38:36 -07:00
Kartik K. Agaram 0230a6cc0b 3256
Bugfix in filesystem creation. I'm sure there are other fake-filesystem
bugs.
2016-08-26 11:27:13 -07:00
Kartik K. Agaram 6641b24768 3254 2016-08-26 10:45:42 -07:00
Kartik K. Agaram 2d3d88d955 3253 - writing to fake files in scenarios
High time I committed the part that works.
2016-08-25 14:00:06 -07:00
Kartik K. Agaram aefe0592e8 3243 2016-08-22 08:35:35 -07:00
Kartik K. Agaram 10bbca643f 3238
Clean up primitive for reading from file. Never return EOF character.
Stop using null character to indicate EOF as well. Instead, always use a
second product to indicate EOF, and require calls to use it.
2016-08-21 08:13:44 -07:00
Kartik K. Agaram ff16e04f57 3237
More checks for unsafe filesystem primitives. Most important, make sure
the product of any $close-file instruction is never ignored, and that
it's the same variable as the ingredient. (No way to indicate that in Mu
code yet, but then Mu code should always be safe and not require such
checks.)
2016-08-21 08:12:13 -07:00
Kartik K. Agaram ebea4c3f4a 3231 - reading from fake files in scenarios 2016-08-20 18:29:09 -07:00
Kartik K. Agaram bc98ddb2b6 3229 - fake file systems using 'assume-filesystem'
Built with Stephen Malina.
2016-08-20 17:51:58 -07:00
Kartik K. Agaram a621ef95f4 3225 - testable interface for writing files
For example usage of file operations, see filesystem.mu.

Is it ugly that we don't actually write to disk unless we wait for the
writing routine to exit? Maybe there's a nice way to wrap it. At any
rate, all buffering is explicit, which seems a win compared to *nix.
2016-08-18 21:09:27 -07:00
Kartik K. Agaram 47219d0b2b 3224 2016-08-18 20:46:10 -07:00
Kartik K. Agaram da925d0697 3203 - testable interface for reading a file
This commit was written by Stephen Malina. Thanks also to Stephen for
running into the bug of commit 3202.
2016-08-16 17:13:26 -07:00