Florian Loitsch
Florian Loitsch
Indeed. The `print` function is always adding a newline at the end. The core libraries don't have a function that doesn't add a new-line character, but the `host` package (https://pkg.toit.io/package/github.com%2Ftoitlang%2Fpkg-host)...
Actually, I just saw that we have a private function that does a `print` without adding a newline: ``` toit main: write-on-stdout_ "foo" false // The 'false' avoids the newline....
Not sure it is relevant in your case, but fyi: you can create byte-arrays with `#[value]`. The writer is really simple: Conceptually: ``` toit to-write := data.size // As long...
If you send us the programs we can have a look and make them a bit more "toity" and avoid the worst pitfalls. Toit is designed to run well on...
Thanks. I will take a look at them. Could you tell us how you run the benchmarks?
The `-O2` option enables a few more optimizations, but the most important ones are already run with `-O1`. Stripping only reduces the size of the output file. It should not...
Looked a bit more: the `-O2` runs our type inference algorithm. However, that one only really does something when the program has function calls. None of the benchmarks seem to...
Espnow was implemented in https://github.com/toitlang/toit/commit/7722235e7786d63ab8e5d496527c43eb13ee0eaa
@mikkeldamsgaard do you know what is already possible and what would need to happen for audio signals?
@dumblob for the VM and its implementation have a look here: https://github.com/toitlang/toit The toitware reference just links to a test that changes an exception in a `finally` to a `return`....