David Peter

Results 1367 comments of David Peter

> This looks interesting, what do you think of how to get outputs working per-line of the doc? I'm pretty sure implementing it with a for loop basically feeding lines...

Look: I built a first prototype here: #550 (try it online here: https://numbat.dev/editor.html)

To be honest, I'm not convinced. Can you show me some real-world examples? By the way, the example above with the travel costs could also be written with a custom...

I realize that this could be slightly more ergonomic, but you can do similar things in Numbat. For example: ```rs struct Item { what: String, amount: Money } fn fund(what,...

New preview version is here: https://numbat.dev/editor.html (thanks @Goju-Ryu)

> It seems like, in the industry, the way to make that work is to generate a second vector the sizes of the instructions that link to spans. I don't...

Or... maybe not so easy after all. Wouldn't that require stack traces as well? ``` fn f(x) = 1 / x # 100 lines later f(0) ``` The division by...

Thank you very much for reporting this. Running this in debug mode on the command line shows a failing debug-assertion: ``` >>> unit test = sqrt(kg) unit test: Mass^(1/2) =...

Thank you for the feedback. I think it should be possible to do this today, *in principle*. The `numbat` crate is a library that can be embedded into applications. There...