Re:Wac: Minimal WebAssembly interpreter written in C
by kevingadd on Wednesday April 10, 2019 @01:38PM
(#19626993)
Given the small scope and some of the ideal use cases for this, it would be really great to have some objectives like being 100% asan, msan, ubsan-clean and passing valgrind. People will eventually ship stuff like this in IoT and that'll make it unlikely that security and bug patches will get deployed.
[ Parent
| on HN ]
Re:Wac: Minimal WebAssembly interpreter written in C
by swiley on Wednesday April 10, 2019 @04:23PM
(#19628425)
Writing large C projects without tools like valgrind is crazy! I guess in some situations it can be hard to set up (like kernel programming.) but user space software should always be written with it.
My personal experience is tools like valgrind will immediately shove stupid mistakes back in your face (rather than waiting a few days to realize the change you made is corrupting the heap in a way that eventually causes the program to crash.) and the result is not only better memory management in your project but also better memory management in future projects.
Re:Wac: Minimal WebAssembly interpreter written in C
by daniel_rh on Wednesday April 10, 2019 @03:12PM
(#19627827)
or written in a secure language without undefined behavior and without any "unsafe" code
like Rust or Safe Haskell.
IoT probably should be shipping code that uses static compiler checks as the first line of security defense rather than run-time checks like valgrind and asan.
Re:Wac: Minimal WebAssembly interpreter written in C
by Skunkleton on Wednesday April 10, 2019 @08:02PM
(#19629870)
Embedded programming will always be unsafe to a degree. You can't avoid interacting w/ hardware. Static analysis can only get you so far.
Re:Wac: Minimal WebAssembly interpreter written in C
by BubRoss on Wednesday April 10, 2019 @09:10PM
(#19630241)
Hello World in Haskell would already be too large for many micro controllers.
Re:Wac: Minimal WebAssembly interpreter written in C
by pjmlp on Thursday April 11, 2019 @01:47AM
(#19631488)
OCaml, Oberon, Java, Lisp and Scheme manage just fine.
Re:Wac: Minimal WebAssembly interpreter written in C
by BubRoss on Thursday April 11, 2019 @09:43AM
(#19634396)
The parent didn't mention any of those.