Commit Graph

332 Commits

Author SHA1 Message Date
Kartik K. Agaram
e9f916bb0a 448 2014-12-26 22:21:25 -08:00
Kartik K. Agaram
19f02639b5 446
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.
2014-12-25 19:39:39 -08:00
Kartik K. Agaram
9e15e4df4c 444 - bring back dispatch based on operand/result types
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.
2014-12-24 01:00:36 -08:00
Kartik K. Agaram
ef55a41466 443 - simple graphics primitives
http://docs.racket-lang.org/graphics/Mouse_Operations.html

Like with the text mode primitives, we still don't have a story for
writing white-box tests for code using these.
2014-12-23 23:52:37 -08:00
Kartik K. Agaram
4630b4aee8 442 - string 'split' 2014-12-19 22:22:17 -08:00
Kartik K. Agaram
f45ea0cb5c 441 - string 'find-next' for characters 2014-12-19 19:03:35 -08:00
Kartik K. Agaram
4fc54b3d98 440 2014-12-17 23:14:58 -08:00
Kartik K. Agaram
63892e6e03 439 2014-12-17 23:11:51 -08:00
Kartik K. Agaram
420d3d420a 438 - unbelievable typo 2014-12-17 23:09:51 -08:00
Kartik K. Agaram
7c7d7d22a7 437 2014-12-17 17:03:34 -08:00
Kartik K. Agaram
8360714552 436 - types* table can now contain integer-array:3, etc.
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.
2014-12-17 14:08:30 -08:00
Kartik K. Agaram
a0bb6c0420 435 - starting to allow type definitions 2014-12-17 11:01:38 -08:00
Kartik K. Agaram
b93d2cd357 434 2014-12-17 10:52:54 -08:00
Kartik K. Agaram
68daae8c25 433 2014-12-17 10:47:04 -08:00
Kartik K. Agaram
9eedf0348d 432 2014-12-17 10:41:43 -08:00
Kartik K. Agaram
4725111d23 431 - rename 'record' (struct) to 'and-record'
Now we can call unions 'or-record'.
2014-12-17 10:39:58 -08:00
Kartik K. Agaram
faad417b11 430 - cache common functions for tests
Tests now take 21s instead of 76s, reclaiming recent losses and more.
2014-12-15 02:00:18 -08:00
Kartik K. Agaram
6c8f19d2be 427 - ..and we're back. All mu.arc.t tests passing. 2014-12-14 12:41:03 -08:00
Kartik K. Agaram
7b2a710e32 426 2014-12-14 09:50:10 -08:00
Kartik K. Agaram
decedd0b1e 425 2014-12-14 09:49:57 -08:00
Kartik K. Agaram
f558373712 424 - layer 20 passing
Seemingly large diff but most changes are peephole.
2014-12-14 09:48:17 -08:00
Kartik K. Agaram
b87a623b57 423 2014-12-14 08:34:43 -08:00
Kartik K. Agaram
0274f7d8ef 421 2014-12-14 08:14:13 -08:00
Kartik K. Agaram
b613977c76 419 - layer 11 now passing 2014-12-14 08:06:32 -08:00
Kartik K. Agaram
04c7870e59 417 - partially through layer 11 2014-12-14 07:38:14 -08:00
Kartik K. Agaram
431f8bcd3d 415 2014-12-13 23:26:15 -08:00
Kartik K. Agaram
f721fc48f8 412 - tests passing at level 10 2014-12-13 14:00:14 -08:00
Kartik K. Agaram
8aeb317f46 411 - 'tokenize-args' must handle blocks 2014-12-13 02:31:57 -08:00
Kartik K. Agaram
0cda03159d 410 2014-12-13 02:26:53 -08:00
Kartik K. Agaram
287c52140f 409 - new arg representation
Tests only passing at level 9:
  $ arc load.arc 9 mu.arc.t
2014-12-13 02:09:35 -08:00
Kartik K. Agaram
18b92d77c9 406 - mu tests run at level 10
We're now going to start doing surgery on low-level helpers.
2014-12-13 00:49:58 -08:00
Kartik K. Agaram
4f9f75ddcf 405 - permit loading just low levels of codebase
When I'm doing extensive surgery to the internals I want to avoid
loading higher levels; they aren't expected to work. But I don't want to
keep different levels in separate files just for that. And I definitely
don't want to put low-level stuff first. Now I can influence loading in
a cross-cutting manner by creating sections with numbers:

  (section 100
    ...code...)

And disabling them by running:

  $ ./anarki/arc 99 mu.arc.t

Currently we load all mu 'system software' in level 100, so running at
level 99 sidesteps them. Lower levels coming soon.

But most of the time we don't need to worry about levels, and the 'mu'
script lets us forget about them. Just run .mu files with:

  $ ./mu factorial.mu

To run tests:

  $ ./mu test mu.arc.t
2014-12-13 00:40:01 -08:00
Kartik K. Agaram
bd7c17ea21 404 2014-12-12 18:11:10 -08:00
Kartik K. Agaram
0ca35d02df 403 - 'function' is more clear than 'def' 2014-12-12 18:07:30 -08:00
Kartik K. Agaram
5b82e7075e 401 - stop abbreviating ops
We expect users to come across mu from arbitrary bits of code, so try to
make each line as self-contained as possible.
2014-12-12 17:54:31 -08:00
Kartik K. Agaram
18c794eb83 398 - new space for forked routines
Hack: currently restricted to 1000 locations per routine, no way to grow past that.
That suffices to pass our failing test.
2014-12-04 02:57:03 -08:00
Kartik K. Agaram
cf35ee38fc 397 - routines encapsulate allocator state
Still incomplete; one test temporarily disabled.
2014-12-04 02:50:33 -08:00
Kartik K. Agaram
3eb21f0e9d 393 - 'defer' should now support all kinds of exits 2014-12-03 18:19:40 -08:00
Kartik K. Agaram
9ae92a0dbc 392 2014-12-03 18:12:44 -08:00
Kartik K. Agaram
383a2affe4 391 - start fleshing out 'defer' 2014-12-03 18:08:42 -08:00
Kartik K. Agaram
0e7d29acb6 389 2014-11-29 15:48:15 -08:00
Kartik K. Agaram
028ef4a492 384 2014-11-29 01:54:46 -08:00
Kartik K. Agaram
1955c835ad 383 2014-11-29 01:44:06 -08:00
Kartik K. Agaram
d68f8ee550 382 - varargs 'interpolate'
Brilliant, now I didn't need any low-level changes.
2014-11-29 01:38:54 -08:00
Kartik K. Agaram
d18b7cc749 381 2014-11-29 01:05:39 -08:00
Kartik K. Agaram
ba7e56926d 379 2014-11-29 00:57:06 -08:00
Kartik K. Agaram
419d576adc 377 2014-11-28 20:08:24 -08:00
Kartik K. Agaram
dc97016a7f 376 - similarly simplify record helpers 2014-11-28 19:52:50 -08:00
Kartik K. Agaram
fa5777a64e 374 - simplify array helpers 2014-11-28 19:28:21 -08:00
Kartik K. Agaram
b57599f55a 373 2014-11-28 19:03:43 -08:00