HNHacker News
TopNewBestAskShowJobs

ahmedalsudani

1,603 karma · joined June 17, 2017

ahmed.al-sudani.com

hn@ahmed.al-sudani.com

Opinions obviously do not represent my employer.

submissionscomments
ahmedalsudani··on Carbon offsetting is just another form of greenwashing
The growth in developing economies is factored into the models, and they're both emitting way lower than we do in the US and Canada per capita.

In India's case it's silly to make a comparison.

ahmedalsudani··on OCaml Programming: Correct and Efficient and Beautiful
Rust is a different language with a different audience.

If a functional language is presented today that does not automatically curry calls, I have no interest.

Just because the tool does not work for you does not mean there's a defect in the design.

ahmedalsudani··on OCaml Programming: Correct and Efficient and Beautiful
The ML languages started appearing in the 70s. Rust is a very modern language.

Where do you think rust got (more than) half of its type inspiration from?

Either way no one has to use any language. Personally OCaml is not my cup of tea--Haskell is. But it is a great tool and it's solving hard problems.

ahmedalsudani··on I Rented an Electric Car for 4 Days and Spent More Time Charging Than Sleeping
Another perspective in the form of a video: https://youtu.be/1Vm_ASm2zfs

Spoiler: this person had a very different experience. They spent 2h20m charging going from Illinois to Florida (at least I'm pretty sure it was Florida)

ahmedalsudani··on Lucid recalls all of its 2022 Air EVs
Making cars is very hard--cut them some slack.

This is not a great time to buy any efficient car. Things were easing until gas prices jumped up ... and the recent lockdowns in China probably haven't helped.

It's a good idea to wait for a more opportune time if you can.

ahmedalsudani··on The great junk transfer is coming
Getting acquainted with Swedish death cleaning is not a terrible idea. Less really is more.

https://youtu.be/yv6fBOZlMgE

ahmedalsudani··on Tesla FSD Beta almost causes a head-on collision [video]
Not advocating for anyone to beta test. Just pointing out the draw.
ahmedalsudani··on Tesla FSD Beta almost causes a head-on collision [video]
My guess is it's about trying the latest and greatest new technology.

It's exciting in the same setting up new software is.

ahmedalsudani··on How to professionally say
It's no longer possible to comment on https://news.ycombinator.com/item?id=30914209, but I want you to know that is the funniest thing I have read on this website and is possibly my favourite. Logged in today specifically to re-read it.

Reserving opinion on how much I agree with the sentiment :)

ahmedalsudani··on Criticizing Hare language approach for generic data structures
"Features" was probably the wrong word for me to use. What I was referring to is interface + customizability.

The STL map allows you to:

- specify the key/value types

- specify the equality predicate

- specify which hash function to use

- iterate over values

along with a host of other things that most users don't initially need but they might need in the future.

You could implement something that has feature parity in C++ or ideally find a battle-tested library that does.

Using C, however, you'd have to sacrifice type safety and possibly readability. Yes it can be done, and yes it can be done correctly. But it's tricky and difficult to ramp up on for the new developer. This is the one that you should be careful about adopting.

My philosophy is to use the STL containers because they're familiar and they're more than good enough for 99% of the use cases out there. Developer time has a premium, and this saves developer time.

If you need performance because you're constrained by CPU cycles or if you're running at scale (Google for example), by all means reach for something better.

ahmedalsudani··on Homes in 97% of U.S. cities are overvalued, Moody's says
Replacing income with M3:

https://inflationchart.com/m3-in-home/?time=10%20years&zero=...

Neat website btw. Thank you for sharing.

ahmedalsudani··on Criticizing Hare language approach for generic data structures
Keep in mind that

- those hash maps are optimized for large sets

- they work around several edge cases

- they implement way more features than an in-house implementation

- they need to support many types of hardware

A decent engineer can beat the std collections in a day on performance. But to do that in production over a decade with shifting requirements is a different ball game.

ahmedalsudani··on Criticizing Hare language approach for generic data structures
Easy to write, sure. But every time a developer has to look at it for the first time, they'll need to learn this hashmap's interface.

Do I need to manage memory? Does it manage memory? How do I iterate? How do I add a new key space without thrashing the original implementation and making it twice as complicated?

That's the biggest thing a standard interface gives you. Even if it's less performant and not well-designed, I'll take it.

The C++ containers are actually well-designed and performant so it's a no-brainer if you get to choose.

Almost forgot the type checking you get with C++. That's also a major factor.

ahmedalsudani··on I Just Hit $100k/Yr on GitHub Sponsors (2020)
+1 brilliant idea!

People willing to put money into your product sends a great signal about its quality/usefulness.

This is a great model for generating useful OSS projects.

ahmedalsudani··on The silenced deaths of the Shanghai 2022 lockdown
Ouch! 4 times in a year is crazy!

Glad to hear your infection came with no severe symptoms.

Being able to come in contact without worrying about being the unlucky person who gets hospitalized is something to be thankful for. The vaccines have been a gift.

ahmedalsudani··on The silenced deaths of the Shanghai 2022 lockdown
Yeah it does look like their initial success has set them up for a much bigger shock with Omicron. It's so much more infectious and is actually still rather severe. Most of us here have been vaccinated and/or have some natural immunity from prior waves, which made Omicron seem mild.

China seems to have a perfect storm of a healthcare system already stretched thin, low immunity among the population, and a super infectious strain.

The lockdowns are probably their best option but they also need to ramp up mRNA vaccinations in tandem. Zero COVID is unsustainable.

ahmedalsudani··on The silenced deaths of the Shanghai 2022 lockdown
It helps prevent infection and temper symptoms but it's not as effective as the mRNA vaccines.

Something like 50% vs 90% though that could be old data.

ahmedalsudani··on The silenced deaths of the Shanghai 2022 lockdown
- lower natural immunity rates because zero COVID had been successful

- lower vaccination rates

- vaccine drives prioritized the young and healthy (the idea being they can handle side effects so this seemed like the best way to achieve herd immunity)

- the newer strains are super infectious and would overwhelm the healthcare system

They don't have a good way out now. They should have used the time they got last year to buy MRNA vaccines, but they did not.

The central government has likely given up on zero COVID but are sticking with those policies for now to "flatten the curve" while this wave takes its course.

ahmedalsudani··on Ask HN: Have you created programs for only your personal use?
It's ugly and not user-friendly but I encourage you to play with Twilio! They make everything super easy.
ahmedalsudani··on Ask HN: Have you created programs for only your personal use?
Hah. I did not realize that was an option. Should have been keeping track of downtime :)
ahmedalsudani··on Ask HN: Have you created programs for only your personal use?
Twilio is the PBX and gateway for calls + texts.

I run a server that lets me receive calls wherever I am (SIP or forwarding, as required) and send messages. Like a self-hosted Google Voice but more flexible and with a greater choice of numbers + forwarding destinations.

All my server does is respond to HTTP requests from Twilio and send HTTP requests when I send a message.

Somewhere in the Twilio interface, you can define a SIP endpoint, but I forget where it is. That's enough for placing calls and does not require running a server.

Almost forgot to mention that I receive text notifications via pushover because I am not an Apple developer ... so no app for me.

ahmedalsudani··on Ask HN: Have you created programs for only your personal use?
> Hundreds! Doesn't everyone?

Raising my hand in agreement!

A couple highlights:

- Video syncing library before those became cool (2014). Originally built on top of firebase; now rewriting with my own backend. Very slow going :)

- Twilio server + interface. I'm my own service provider (thanks to Twilio)

ahmedalsudani··on Achievement unlocked: rustc segfault
Wow those look like great tools!

Thank you for sharing. There were GCC segfaults that started appearing on my machine a few months ago, and they magically disappeared after a recent update. Those tools are going to be a massive help next time that happens.

ahmedalsudani··on Auto dealer Napleton fined $10M for illegal fees and discrimination
Thank you OP. Wish I had found you earlier this year before buying a car from them!
ahmedalsudani··on Auto dealer Napleton fined $10M for illegal fees and discrimination
+1 they literally did the exact same thing to me a few months back. I'm still trying to get my money back from them.
ahmedalsudani··on CSS's !important was added because of laws about font size for some text
Some machines are configured by the devil himself.
ahmedalsudani··on Windows needs a change in priorities
You don't think any of those are "not shameful"?

- Google search

- Google maps

- YouTube

- FB Messenger/WhatsApp

- Instagram

- Oculus

- FB Marketplace

ahmedalsudani··on I have formally accepted the CEO job at Cruise once again
Not sure about the resolution, but the sensor is rather large. Resolution isn't nearly as important as being able to see clearly in low light.

Re: dirty windshield. Humans see through those, and we have windshield wipers if visibility is impeded.

I'm still excited about the LIDAR possibilities but vision alone has done a remarkable job.

ahmedalsudani··on Fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid
That was a great read. Thank you for writing it up; I learned quite a few things!

Especially appreciated the OS minutiae and opinionated commentary (... and the doc vs reality observation in Linux's vfork).

The piece lives up to the great title :)

ahmedalsudani··on Fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid
No questions yet as I am yet to read ... but I can already comment and say grade A title.
← PreviousPage 2 of 12Next →