4 ms·
Yes, “take this clever code written by a smart human and convert it for WASM” is certainly less impressive than “write clever code from scratch” (and reassuring
by thorum 2y ago
Yes, “take this clever code written by a smart human and convert it for WASM” is certainly less impressive than “write clever code from scratch” (and reassuring if you’re worried about losing your job to this thing).
That said, translating good code to another language or environment is extremely useful. There’s a lot of low hanging fruit where there’s, for example, an existing high quality library is written for Python or C# or something, and an LLM can automatically convert it to optimized Rust / TypeScript / your language of choice.
- th0ma5 2y agoPorting well written code if you know the target language well is pretty fun and fast in my experience. Often when there are library, API, or language feature differences, these are better considered outside of most work it would take to fully describe the entire context to a model is what has happened in my experience, however.
- HanClinto 2y agoKeep in mind, two of the functions were translated, and the third was created from scratch. Quoting from the FAQ on the Gist [1]: Q: "It only does conversion ARM NEON --> WASM SIMD, or it can invent new WASM SIMD code from scratch?" A: "It can do both. For qX_0 I asked it to convert, and for qX_K I asked it to invent new code." * [1]: https://gist.github.com/ngxson/307140d24d80748bd683b396ba13be07#it-only-does-conversion-arm-neon----wasm-simd-or-it-can-invent-new-wasm-simd-code-from-scratch https://gist.github.com/ngxson/307140d24d80748bd683b396ba13b...