Live data from Hacker News

The JavaScript Oxidation Compiler

oxc.rs

91–100 of 147 posts

Re: The JavaScript Oxidation Compiler

#91
post #89
post #85

Earlier quoted context omitted.

I don't think so. If someone runs a tool without args, the tool should do equivalent of "tool --help" It is bad ux.

I expect a file formatter to format the files when I call it. Anything else would be surprising to me.

a new user should not expected to know whether to use "--info", "--help", or "-info" or "/info"

A power user can just pass the right params. Besides, it is not that hard to support "--yolo" parameter for that use case

Re: The JavaScript Oxidation Compiler

#92

Earlier quoted context omitted.

People shaving off the last milliseconds or microseconds in their tooling aren't the same people shipping slow code to browsers. Say thanks to POs, PMs, stakeholders, etc.

Sometimes they are the same person. It just take someone to have poor empathy towards your users to ship slow software that you don't use.

I've never met a single person obsessed with performance who goes half the way. You either have a performance junkie or a slob who will be fine with 20 minutes compile times.

Re: The JavaScript Oxidation Compiler

#93
post #5

Earlier quoted context omitted.

they are going to use vite plus for monetization

The vite plus idea is that you'll pay for visual tools. What's odd to me is it makes their paid product kind of a bet against their open product. If their open platform were as powerful as it should be, it would be easy to use it to recreate the kinds of experiences they propose to sell. The paradox gains another layer when you consider that their whole mission is to build tools for the JavaScript ecosystem, yet by m…

I don't see the idea is visual tools, I never even heard somebody to talk about it like that. The plan is to target enterprise customers with advanced features. I feel like you should just go and watch some interviews or something where talk about their plan, Evan You was recently on a few podcasts mentioning their plans.

Also, the paradox is not really even there. JS ecosystem largely gave up on JS tools long time ago already. Pretty much all major build tools are migrating to native or already migrated, at least partially. This has been going on for last 4 years or something.

But the key to all of this is that most of these tools are still supporting JS plugins. Rolldown/Vite is compatible with Rollup JS plugins and OXLint has ESLint compatible API (it's in preview atm). So it's not really even a bet at all.

Re: The JavaScript Oxidation Compiler

#94

Earlier quoted context omitted.

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 prog…

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

Ah, yeah. Easy mistake

Re: The JavaScript Oxidation Compiler

#95

Earlier quoted context omitted.

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 prog…

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.

In popularity or actually take over control of the language?

Re: The JavaScript Oxidation Compiler

#96
post #91
post #89

Earlier quoted context omitted.

I expect a file formatter to format the files when I call it. Anything else would be surprising to me.

a new user should not expected to know whether to use "--info", "--help", or "-info" or "/info" A power user can just pass the right params. Besides, it is not that hard to support "--yolo" parameter for that use case

Would you enjoy writing `rm --yolo file` instead of `rm file` every time?

Re: The JavaScript Oxidation Compiler

#97
post #96
post #91

Earlier quoted context omitted.

a new user should not expected to know whether to use "--info", "--help", or "-info" or "/info" A power user can just pass the right params. Besides, it is not that hard to support "--yolo" parameter for that use case

Would you enjoy writing `rm --yolo file` instead of `rm file` every time?

Not taking a position but the design of rm strengthens the position that recursive by default without flags isn’t ok. rm makes you confirm when you want changes to recurse dirs.

Re: The JavaScript Oxidation Compiler

#98
post #62

I thought oxfmt would just be a faster drop-in replacement for "biome format"... It wasn't. Let this be a warning: running oxfmt without any arguments recursively scans directory tree from the current directory for all *.js and *.ts files and silently reformats them. Thanks to that, I got a few of my Allman-formatted JavaScript files I care about messed up with no option to format them back from K&R style.

You couldn't waterboard this outta me

Re: The JavaScript Oxidation Compiler

#99

Earlier quoted context omitted.

[dead]

I said nothing about the rs prefix. But making oxide ferrous, Fe203 or whatever your whole shtick tells me nothing about your package and the pwn space is so so so very crowded at this point it just makes for a bad naming scheme.

And what do you name your packages

Re: The JavaScript Oxidation Compiler

#100

Earlier quoted context omitted.

We had many languages that are faster that are not c/c++. Compare Go (esbuild) to webpack (JS), its over 100x faster easily. For a dev time matters, but is relative, waiting 50sec for a webpack build compared to 50ms with a Go toolchain is life changing. But for a dev waiting 50ms or 20ms does not matter. At all. So the conclusion is javascript devs like hype, and flooded Rust and built tooling for JS in Rust. They c…

> But for a dev waiting 50ms or 20ms does not matter. At all. It absolutely does: https://mail.python.org/pipermail/python-dev/2018-May/153296... https://news.ycombinator.com/item?id=16978932 .

To win benchmark games it does, in a world where people keep shipping Electron crap, not really.
Post reply on HN