HNHacker News
TopNewBestAskShowJobs

dsff3f3f3f

133 karma · joined December 4, 2023

submissionscomments
dsff3f3f3f··on Many hard LeetCode problems are easy constraint problems
Their hiring process seems absolutely absurd.
dsff3f3f3f··on We all dodged a bullet
There needs to be a massive push from the larger important packages to eliminate these idiotic transitive dependencies. Core infrastructure shouldn't rely on trivial packages maintained by a single random person from who knows where that can push updates without review. It's absolutely insane.
dsff3f3f3f··on We all dodged a bullet
> These kinds of dependencies are everywhere and nobody would even think that they could be harmful.

Tons of people think these kind of micro dependencies are harmful and many of them have been saying it for years.

dsff3f3f3f··on NPM debug and chalk packages compromised
You're right. I only looked at the source for debug and ansi-styles. After looking at chalk it's insanity to add that as a dependency as well.
dsff3f3f3f··on NPM debug and chalk packages compromised
I wouldn't use debug or ansi-styles. They're not even remotely close to being worth adding a dependency. Obviously none of them are trustworthy now though.
dsff3f3f3f··on 10 Years of Betting on Rust
You're correct and the HTTP framework looks like Axum.
dsff3f3f3f··on Hk, a new Git hook manager
> Why mention Rust at all?

I like knowing what language a tool is written in. If it's written in Python or JavaScript and it isn't something that's absolutely essential I can just immediately move on. It also lets me know if it's something I'd be willing to contribute to. It's odd that the authors mentioning the language is so triggering for you.

dsff3f3f3f··on What's happening inside the NIH and NSF
> They'd have just invented another issue.

I largely agree but I doubt other issues would be such massive free wins for Republicans. The Republican base has become rabid over DEI and trans issues and it has been really obvious for a while now that it was going to be a massive problem for Democrats. Sadly these issues have become more divisive than even gun control.

dsff3f3f3f··on I miss Vim
I did the same and don't regret it. My Helix config is 4 lines and it does 95% of what I want. The performance of a ton of neovim plugins is also atrocious and I always hated that everything was a hodgepodge mix of C, vimscript and Lua.
dsff3f3f3f··on Using Rust in non-Rust servers to improve performance
Not the other poster but I moved from Go to Rust and the main packages I use for web services are axum, askama, serde and sqlx. Tokio and the futures crate are fleshed out enough now that I rarely run into async issues.
dsff3f3f3f··on Ladybird web browser funded by GitHub co-founder, promises 'no code' from rivals
Seems like the project quickly shut the annoying troublemakers down. The few people on Mastodon that are upset about this don't matter and they'll quickly move on to being upset about some other trivial matter.
dsff3f3f3f··on Mako – fast, production-grade web bundler based on Rust
> None of those tools you quoted are production ready based on my investigation

This is very true and almost all of them are taking far longer to develop than they initially thought. swc/turbopack is being pushed by Vercel and it has been a huge ongoing disaster.

dsff3f3f3f··on What I mean when I say that machine learning in Elixir is production-ready
The reality is that it's not nearly as good as the loud proponents would have you believe. Performance isn't great unless you're comparing it to really naive applications written in extremely slow dynamically typed languages like Ruby or Python and OTP and real supervisor trees are not trivial to use correctly. Almost all of the Elixir systems I've seen have serious problems in their supervisor trees.

I've also repeatedly seen this idea from relative newbies that you can replace things like Redis with a simple Erlang key/value store, possibly using ETS, and the result is always much, much worse in terms of both performance and reliability. A lot of the older Erlang/Elixir proponents will tell you to just use Redis.

Most of the popular statically typed languages also have decent abstractions for concurrency and parallelism now while having far better runtimes, far better performance in almost all cases, far more libraries and much larger communities. Erlang/Elixir will never be more than a small niche.

dsff3f3f3f··on The One Billion Row Challenge in Go: from 1m45s to 4s in nine solutions
Go is perfectly capable of all of the additional optimizations that are in the fastest Java implementation that is linked in the article.
dsff3f3f3f··on The One Billion Row Challenge in Go: from 1m45s to 4s in nine solutions
The fast Java version is using all the same optimizations as this Go version and then some. It's significantly more complicated.
dsff3f3f3f··on The One Billion Row Challenge in Go: from 1m45s to 4s in nine solutions
Not that I know of. I just looked at the code and the commit history but a more in depth article would certainly be interesting.
dsff3f3f3f··on The One Billion Row Challenge in Go: from 1m45s to 4s in nine solutions
The Java version does additional optimizations that his Go version doesn't do and he mentions that at the end of the post. The Java version is really optimized and is an interesting read.
dsff3f3f3f··on Go is not an easy language (2021)
Generic iterators are included in go 1.22 behind an experimental feature flag and will most likely be in 1.23 by default. Once that's done you will probably see some support functions like map and filter in the standard library. Russ Cox already has a proposal for an experimental package xiter that includes Map/Filter/Reduce/Zip etc.
dsff3f3f3f··on Gokrazy – Go Appliances
I've seen fairly naive Go servers that do 10,000+ RPS that issue database requests on every request that consistently use less than 50MB of RAM without issue. Several of them barely ever break 30MB of RAM.
dsff3f3f3f··on To revive Portland, officials seek to ban public drug use
Most crimes committed by adults should carry much harsher penalties across the board. There's far too much sympathy for the criminals and not nearly enough for the victims and communities that have to tolerate their nonsense.
dsff3f3f3f··on Gobs of data (2011)
Most of the Reddit/HN/Twitter crowd that are parroting the "Go ignores decades of language theory" line are just parroting something that originated in an incredibly toxic part of the Scala community. The vast majority of them don't actually understand the tradeoffs and implementation complexity that are associated with the specific subset of language features they desire. The debate about a particular feature is often not even concluded in languages that include said feature. For example the Swift team still has serious disagreements about generics and their respective implementation.

I've seen Pike have conversations about language design with SPJ, Hejlsberg, Lattner, Stroustrup, Odersky and other highly respective PL designers and they would never make such a shallow and trite comment.