zlacker

[parent] [thread] 2 comments
1. spicyb+(OP)[view] [source] 2026-01-19 23:15:41
One novel part here is every function is required to have tests that run at compile time.

I'm still skeptical of the value add having to teaching a custom language to an LLM instead of using something like lua or python and applying constraints like test requirements onto that.

replies(2): >>sinuhe+0o >>pmontr+3M
2. sinuhe+0o[view] [source] 2026-01-20 02:59:06
>>spicyb+(OP)
Pyret, a teaching language for CS, in the vein of Racket, does require testing by writing functions.

https://pyret.org/docs/latest/testing.html

3. pmontr+3M[view] [source] 2026-01-20 07:22:10
>>spicyb+(OP)
I'm not sure that it's novel but I'm skeptical about the noise to signal ratio for anything that is not an example.

I think that a real world file of source code will be either completely polluted by tests (they are way longer than the actual code they test) or become

  fn process_order {
    ... 
  } 
  shadow process_order {
    assert test_process_order
  }
and the test code will be written in another file, and every function in the test code will have its own shadow function asserting true, to please the compiler.
[go to top]