3 ms·
Hi, this looks great! Quick question: My company has a few libraries (including a language parser/compiler) currently written in Go, and we have a need for the
by lobster_johnson 9y ago
Hi, this looks great! Quick question:
My company has a few libraries (including a language parser/compiler) currently written in Go, and we have a need for the exact same functionality in the browser and in other places (e.g., Node.js apps). Rather than port everything to JS and have two codebases to maintain, we tried translating with GopherJS, which seemed promising at first. But the emitted code was enormous, and it pulled in parts of the standard library that couldn't be transpiled. (Our code had limited dependencies, but our main problem was the "fmt" package, which, if I remember correctly, is somewhat special and not something you can just omit.) In the end, it was too much work for a small company with our limited resources.
Is Joy intended to serve this purpose?
- matthewmueller 9y agoHi there, I've created an issue for your purpose: https://github.com/matthewmueller/joy/issues/63 https://github.com/matthewmueller/joy/issues/63 I definitely want to take the stdlib slow and not overdo it. If we can't make it work well in JS, we'll probably just leave it out.