Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think the idea that dogfooding is a core reason to stay in js is very reasonable given the nature of the tool.
 help



Dogfooding has perks for sure, but even the TypeScript team determined that it wasn't worth the 10x performance hit dogfooding necessitated.

ESLint's performance hit is even worse (we got >60x improvements when switching to oxlint) and from what I can see the benefits of dogfooding aren't as many as they were for a whole language with a Turing-complete type system.


I think the value of dogfooding depends a lot on how "done" a project is.

Typescript has gotten to the point that it really doesn't need any new features to cover a vast majority of practical use-cases (mostly due to JS itself slowing down a lot and TS-first development becoming very common) so shifting gears toward performance and end-user usability makes a ton of sense for that project.

ESLint might also be near this level of "doneness" but I'm not familiar enough with the project to say for sure.


I guess my advice would be to use oxlint then, OSS doesn't mean 1 blessed program for each use case.

Yes, I do use oxlint now.

I guess I'm suggesting that if eslint is sticking with JS in order to dogfood they may find that their market share dwindles as people more and more find that their lint step is a bottleneck in making fast changes with agents, and dogfooding as a nice theory doesn't keep people from switching.

That's fine as long as that's an intentional choice on their part.


I think it’s weak, to be honest; they could just use another large, complex project to dogfood on instead. Such as React.

That's not what dogfooding means though. Running on projects that aren't their own is jungle-code: It comes from the wild!

I agreed until uv came along for Python, and then I was enlightened. Dogfooding is great on paper, but now I’m never going back.

IMO its reasonable but not the end of the discussion by itself. I think their points about the existing developers being largely JS devs is also reasonable. Moreover I think the existence of oxlint is also a fine reason to not move to rust. OSS allows for different projects to have different approaches and philosophies. Personally, I'd almost never use JS anywhere I didn't absolutely have to, but that's just me.

That's a valid point: eslint devs themselves are currently JS devs and presumably don't want to hop languages just for this. I think it's more that "the linter should be written in the language" is no longer a compelling reason by itself. 5 years ago I'd have said that Python package managers should be written in Python instead of bringing a whole other language in. Now I don't hold that opinion.

If Python is too slow to write a package manager in, why bother writing anything in it? Why not just write your own code in Rust or whatever?

I've written Python for +- 30 years. In that time, there was exactly one time where a project I was writing was compute-bound to the point that I had to rewrite the inner bits in another language. I spun that off into its own open source project.

In every other situation, ever, in that stretch of time writing Python every day of my professional life, it's been fast enough. It's always IO-bound, waiting on a web service to return, or a DB query to finish, or a shell command to output something, etc., whether I've been writing web backends, or data processing pipelines, or security analyzers, or anything else.

At one company, I was hacking on a production product that received about 80,000 requests per second from remote clients. At another, we build a service that could scale up and down quickly to handle traffic burst that swung between 0 requests per second and around 3,000,000. At still another, we were shoving a few hundred TB of data through an ETL system. In each of those cases, it was fast enough as the main thing gluing the other various backend systems together that we had zero interest in rewriting it in something "faster". It simply never came up. It got the job done.

So my summarized answer would be that package management, ironically, is one of the only times I ever noticed Python being slow. Turns out constraint solvers can bog down pretty quickly. uv does lots of clever things that make it ridiculously fast, and things like poetry could use some of those same ideas to be, say, 10x to 20x slower than uv, which would still be really fast. It kinda sucked all the air out of the room, though. Rewriting it in Python would make it slower, and also require installing an installed, working Python version to run the package manager so that it could manage Python installations. Escaping that ouroboros with a single-file executable that can bootstrap the whole thing from scratch is pretty freaking nice, and I don't hear people clamoring to go back to the old ways.


The bits about typing and not needing a certain python version are great reasons that go beyond it being faster.

Another is memory usage, which Python and Ruby have historically struggled with. You might not be compute bound (I have a similar experience with primarily I/O bound) but you're going to need a much bigger box to process the same work with a meaningfully sized app.


Most of the rewrites pull in existing rules which were “dogfed” though. They just don’t eat it themselves.

I’m not sure where your missing comma is supposed to go.

There’s no missing comma. Of the two valid bracketings, only one makes sense, so it’s not that hard to find. Here you go anyway:

> I think ([the idea that {dogfooding is a core reason to stay in js}] is very reasonable given the nature of the tool).


I think that their explanation about dogfooding is reasonable because the tool is used on js.

I don't think this is correct. If you remove either of the two parentheticals the remaining sentence doesn't parse.

I wrote them as brackets to guide grouping, not parentheticals. (They’re not intended to be a standard linguistics format or anything either.)

(And I don’t want to bog down the original comment too much, so I’ll take this opportunity to amend that there are really 3+ valid bracketings, but the most obvious 2 – the one I highlighted and “I think X given Y” – are equivalent in meaning.)


parenthetical commas around "that dogfooding is a core reason to stay in js"



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: