3 ms·
I suppose it's not strange to see WASM come up -- last weekend I was considering doing something even weirder: writing a WASM to Thumb2 AoT compiler so I could
by jsolson 8y ago
I suppose it's not strange to see WASM come up -- last weekend I was considering doing something even weirder: writing a WASM to Thumb2 AoT compiler so I could leverage Go's built-in WASM support.
This project seems more immediately useful :)
- kodablah 8y agoYeah, just wait until you see multiple megabytes of WASM instructions for tiny progs or the realize the team does not care about non-web targets. You're much better off leveraging Rust's WASM support for resource limited, non-web WASM targets.
- jsolson 8y agoIn my case I was less interested in the WASM part of it than I was in something targeting a "no OS" environment. That said, for my target (those little Pine64 RTL8710 Cortex M3 MCU) you're almost certainly right. On the other hand it's a hobby project, and I like writing Go while I find writing Rust to be a bit of a chore. Also, it's a hobby project, so distractions like re-targeting WASM to the ARMv7-M are half of the fun :)
- monocasa 8y agohttps://github.com/alexcrichton/wasm-gc https://github.com/alexcrichton/wasm-gc
- aykevl 8y agoThat's pretty cool! If you want something now, I've also written and abandoned this: https://github.com/aykevl/tinygo-gccgo https://github.com/aykevl/tinygo-gccgo It actually worked fairly well, but the code was way too bloated to be useful.
- jsolson 8y agoHonestly for what I'm doing what you have here is a pretty reasonable start. I'm comfortable writing (and calling into) C where the Go bits aren't in place yet, and I'm a lot more familiar with LLVM's internals than with GCC's if I need to debug something. We'll see what I get up to after brunch. One request: if you're open to PRs (I can't promise I'll send any, but I'm trying to get into a habit of contributing to OSS with my hobby hackery), can you add a LICENSE file (context: the OSS patching policy I'm bound by is very friendly for projects on Github under most licenses -- https://opensource.google.com/docs/patching/ https://opensource.google.com/docs/patching/ -- it's more problematic when the license for the code is undefined)?
- aykevl 8y agoI'm certainly open to PRs :) Good catch on the LICENSE file, I totally forgot about it. I've added it now.