Readit News logoReadit News

Deleted Comment

embedded3 commented on Tales of the M1 GPU   asahilinux.org/2022/11/ta... · Posted by u/rawrenstein
dagmx · 3 years ago
I have such a love hate relationship with Swift. It genuinely has some great ergonomics and I see it as a sister language to rust.

I just wish it was more cross platform (I know it technically works on Linux and windows…but it’s not a great experience) and that it didn’t have so much churn (though they’ve stopped futzing with the core components as much with Swift 4+).

I also wish it was faster. I did an Advent of Code against some friends. I picked Rust, they picked Swift. The rust code was running circles around their Swift ones even when we tried to keep implementations the same.

Anyway, that’s a rant, but I think to your point, I feel like Swift could have been as big as Rust..or bigger given the easier use, with many of the same guarantees. I just wish the early years were more measured.

embedded3 · 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.

embedded3 commented on Tales of the M1 GPU   asahilinux.org/2022/11/ta... · Posted by u/rawrenstein
dagmx · 3 years ago
In C? No, not unless you write your own scaffolding to do it.

In C++? Maybe, but you’d need to make sure you stay on top of using thread safe structures and smart pointers.

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.

So you’re not spending time chasing oddities because you missed a variable initialisation, or you’re hitting a race condition or some kind of use after free.

While there’s a lot of people who say that this slows you down and a good programmer doesn’t need it, my experience is even the best programmers forget and (at least for me), I spend more time trying to reason about C++ code than rust, because I can trust my rust code more.

Put another way, Rust helps with reducing how much of the codebase I need to consider at any given time to just the most local scope. I work in many heavy graphics C and C++ libraries , and have never had that level of comfort or mental locality.

embedded3 · 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.

embedded3 commented on Tales of the M1 GPU   asahilinux.org/2022/11/ta... · Posted by u/rawrenstein
gjsman-1000 · 3 years ago
> Who is Asahi Lina? Is that an actual person?

Man... if I was a conspiracy theorist who believed Apple was genuinely evil, what if Asahi Lina is an Apple employee? ;)

embedded3 · 3 years ago
Apple has pushed OS updates to help the Asahi team, though they did not publicize this, of course.
stoeckley commented on AirDrop is now limited to 10 minutes   twitter.com/tibor/status/... · Posted by u/doener
skrowl · 3 years ago
Do you personally know anyone who has been using the same iPhone for 8 years? I find that claim dubious.
stoeckley · 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.
stoeckley commented on Life after Heroku: What's a dev to do?   reaktor.com/blog/how-to-d... · Posted by u/s4i
michaelbuckbee · 3 years ago
No discussion of Heroku and the free tier should happen without the context of the massive cryptomining scheme that was directly targeting their free tier:

https://www.bleepingcomputer.com/news/security/massive-crypt...

Note, oddly the article doesn't state Heroku by name, but the network diagrams all do.

stoeckley · 3 years ago
> the article doesn't state Heroku by name

Heroku is mentioned in the first sentence.

stoeckley commented on Meta Earning Results Q3 2022 [pdf]   s21.q4cdn.com/399680738/f... · Posted by u/mfiguiere
spaceman_2020 · 3 years ago
I'm also surprised that they haven't focused more on giving businesses tools to communicate and sell to customers better through WhatsApp and Instagram. Whatsapp is the de-facto communication tool in India and LatAm from experience. Instagram is the de-facto discovery and social tool in India.

Yet from a business' perspective, the experience is really poor. Most have to rely on third party tools to sell and chat with customers.

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

And much of Europe.

stoeckley commented on WhatsApp goes down for users globally   theguardian.com/technolog... · Posted by u/tomalpha
sergiomattei · 3 years ago
Latin America runs on WhatsApp
stoeckley · 3 years ago
As do many other countries. You really cannot live without it in much of the world.

u/embedded3

KarmaCake day829June 11, 2018View Original