Open eerimoq opened 3 years ago
Exception backtrace, but how?
Zig is known to brag about its backtraces: https://ziglang.org/#Stack-traces-on-all-targets . Given that it's another dead-in-the-water language, makes sense to steal as much as possible from it.
Will have a look eventually, thanks.
Don't forget about the usual glibc backtracing support - https://www.gnu.org/software/libc/manual/html_node/Backtraces.html . I for example used it in early days of micropython hacking, when I wasn't familiar with the codebase. The whole point of Zig bragging is that they implemented something like that even for baremetal targets (supposedly, in lightweight manner, though definition of "lightweight" varies for different people).
Just to remember what is left to do. The list is by no means complete.
General
[begin:end:step]
. Should make a copy, right? It's an error to use[]
instead ofslice()
on lists in a loop.Memory
Postponed