Commit Graph

30 Commits

Author SHA1 Message Date
Kartik Agaram 01ce563dfe 4262 - literal 'null' 2018-06-17 15:57:37 -07:00
Kartik K. Agaram 4a48bedcd1 4134 - 'input' = 'ingredient' 2017-12-03 23:25:40 -08:00
Kartik K. Agaram 7d07cd1de8 3987 2017-09-01 01:50:10 -07:00
Kartik K. Agaram 294b2ab359 3705 - switch to tested file-system primitives 2016-12-11 16:18:18 -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 b07576d26f 3602
Simplify primitive interface to read from a socket: now returns just a
single character.
2016-10-27 11:08:50 -07:00
Kartik K. Agaram 8047005cc5 3601
Now we can just read a single character from the socket, and it isn't
much slower either (maybe 10%).
2016-10-27 10:39:59 -07:00
Kartik K. Agaram 87eb3acae9 3586
Make sure we clear the socket variable after closing it.
2016-10-24 08:51:55 -07:00
Kartik K. Agaram 55800f6558 3585 2016-10-24 08:49:12 -07:00
Kartik K. Agaram 5eb5a8dea6 3581
Fix CI. 3 different memory leaks in the socket internals.

The hard one was recognizing the need for
`receive-from-client-socket-and-close`.
2016-10-24 08:41:55 -07:00
Kartik K. Agaram a65a32aed4 3580 2016-10-24 00:11:40 -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 9da067db49 3572 - new way to write server tests
This time we're opening real sockets so we might run into issues on
machines with firewalls. Macs for example flash up a dialog warning
people about a port being opened, though it shuts down immediately if
the test passes.

On the flip side, the test has greater verisimilitude. You don't really
need fakes except when you want to pin down the environment a test runs
in. The only way this test might be flaky is on a machine that has lots
of sockets open (so the random port opened by the test is in use for
something else). That and the firewall concern above. Hmm.
2016-10-23 20:34:38 -07:00
Kartik K. Agaram 28191d317a 3571 - make 'read-from-socket' non-blocking
Its interface now mirrors that of 'read-event'.
2016-10-23 20:07:30 -07:00
Kartik K. Agaram 300a1d6e80 3564
Change the interface for reading a URL slightly so that we can directly
use the path in `assume-resources`.
2016-10-23 15:34:20 -07:00
Kartik K. Agaram d154c121a7 3562
Fix CI. Revert accidentally-added files.
2016-10-22 19:05:07 -07:00
Kartik K. Agaram 9a81d7460f 3561 2016-10-22 16:56:07 -07:00
Kartik K. Agaram ca6fa79940 3535 2016-10-20 23:06:27 -07:00
Kartik K. Agaram f24eeaab13 3523 - http client now working 2016-10-20 00:24:16 -07:00
Kartik K. Agaram c83f3bca47 3519 - reading lots of data from a socket
In the process I've also altered the API of $read-from-socket to return
a boolean (eof?) rather than the number of bytes read (which is implicit
in the length of the returned array).
2016-10-18 10:39:18 -07:00
Kartik K. Agaram 9c78e58e68 3518
The bugfix of commit 3517 allows us to drop this redundant condition.
2016-10-18 10:32:27 -07:00
Kartik K. Agaram baa85713a2 3511 2016-10-16 13:34:29 -07:00
Kartik K. Agaram 62ae069ef5 3510 2016-10-16 13:02:52 -07:00
Kartik K. Agaram f03c9c0549 3507 2016-10-16 11:11:54 -07:00
Kartik K. Agaram a7c59e3e33 3476 2016-10-07 20:11:47 -07:00
Kartik K. Agaram bc56f30f34 3465
Fix a few names in comments.
2016-10-07 13:37:52 -07:00
Kartik K. Agaram 5c57c75692 3464 2016-10-07 13:30:31 -07:00
Kartik K. Agaram 7955af48cf 3463 2016-10-07 13:20:51 -07:00
Stephen Malina d7e48920f7 3458
Testable network interface and write flow.
2016-10-07 08:09:42 -04:00