Remix.run Logo
zdw 8 hours ago

This compiles to native binaries, as opposed to deno which is also in rust but is more an interpreter for sandboxed environments?

ameliaquining 7 hours ago | parent | next [-]

Oxc is not a JavaScript runtime environment; it's a collection of build tools for JavaScript. The tools output JavaScript code, not native binaries. You separately need a runtime environment like Deno (or a browser, depending on what kind of code it is) to actually run that code.

jeswin 2 hours ago | parent | prev | next [-]

If you want native binaries from typescript, check my project: https://tsonic.org/

Currently it uses .Net and NativeAOT, but adding support for the Rust backend/ecosystem over the next couple of months. TypeScript for GPU kernels, soon. :)

3836293648 7 hours ago | parent | prev | next [-]

Deno is a native implementation of a standard library, it doesn't have language implementation of its own, it just bundles the one from Safari (javascriptcore).

This is a set of linting tools and a typestripper, a program that removes the type annotations from typescript to make turn it into pure javascript (and turn JSX into document.whateverMakeElement calls). It still doesn't have anything to actually run the program.

ameliaquining 7 hours ago | parent | next [-]

Deno uses V8, which is from Chrome. Bun uses JavaScriptCore.

3836293648 an hour ago | parent [-]

Ah, yeah. Easy mistake

lioeters 5 hours ago | parent | prev [-]

I'm going to call it: a Rust implementation of JavaScript runtime (and TypeScript compiler) will eventually overtake the official TypeScript compiler now being rewritten in Go.

3836293648 an hour ago | parent | next [-]

In popularity or actually take over control of the language?

madeofpalk 5 hours ago | parent | prev [-]

? Most JavaScript runtimes are already C++ and are already very fast. What would rewriting in Rust get us?

lioeters 3 hours ago | parent [-]

Nothing, but it will happen anyway. Maybe improved memory safety and security, at least as a plausible excuse to get funding for it. Perhaps also improved enthusiasm of developers, since they seem to enjoy the newness of Rust over working with an existing C++ codebase. Well there are probably many actual advantages to "rewrite it in Rust". I'm not in support or against it, just making an observation that the cultural trend seems to be moving that way.

nine_k 7 hours ago | parent | prev [-]

No, it it a suite of tools to handle Typescript (and Javascript as its subset). So far it's a parser, a tool to strip Typescript declarations and produce JS (like SWC), a linter, and a set of code transformation tools / interfaces, as much as I can tell.