Recent submissions

Comment · 3 years ago
>The rust code was running circles around their Swift ones even when we tried to keep implementations the same.

I've done Advent of Code a few years -- even Javascript implementations, if using a good (optimal) algorithm, are highly performant, so I'm suspicious of the claim. In most AoC problems, if your code is observably different between languages, it's the fault of the algorithm, regardless of language. But perhaps you are referring to well-profiled differences, even if there are no observable differences.

That said, in projects other than AoC I've compared Swift to C++ and it's hard to deny that a low-level language is faster than Swift, but Swift itself is certainly fast compared to most dynamically typed or interpreted languages like Python, JS, Ruby, etc. which are vastly slower than anything in Swift.

Comment · 3 years ago
> What Rust does is flip this. The default is the safe path. So instead of risking forgetting smart pointers and thread safe containers, the compiler keeps you honest.

For what it’s worth, the same is true of Swift. But since much of the original Rust team was also involved with Swift language development, I guess it’s not too much of a surprise. The “unsafe” api requires some deliberate effort to use, no accidents are possible there. It’s all very verbose through a very narrow window of opportunity if you do anything unsafe.

Comment · 3 years ago
Apple has pushed OS updates to help the Asahi team, though they did not publicize this, of course.
Comment · 3 years ago
I used an iPhone 4s from 2011 until end of 2018. Probably most remarkably, I never put a case or any kind of screen protector on it. The thing was still practically scratch free when I stopped using it. It’s still sitting in a drawer next to me.
Comment · 4 years ago
> the article doesn't state Heroku by name

Heroku is mentioned in the first sentence.

Comment · 4 years ago
> Whatsapp is the de-facto communication tool in India and LatAm from experience

And much of Europe.

Comment · 4 years ago
As do many other countries. You really cannot live without it in much of the world.
Comment · 4 years ago
Rich Hickey talks about this, calling it "hammock-driven development."

https://www.youtube.com/watch?v=f84n5oFoZBc

Aaron Sorkin has also touched on this:

> Most of the time, me writing looks—to the untrained eye—like someone watching ESPN. The truth is if you did a pie chart of the writing process, most of the time is spent thinking. When you’re loaded up and ready to go—when you’ve got that intention and obstacle for the first scene that’s all you need. For me at least, getting started is 90% of the battle. The difference between page zero and page two is all the difference in the world.

Comment · 4 years ago
Comment · 4 years ago
They are typically referred to as Porter Duff blend modes, so I assume that these algorithms were invented mainly by those guys. (by Thomas Porter and Tom Duff)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton