Cyanide - Improve an algorithm performance step by step
Improve an algorithm performance step by step đ 2024-10-12 â 14 min Technology Rust Recently, I've been working on a new approximate nearest neighbor search algorithm called RaBitQ. The author has already provided a C++ implementation that runs quite fast. I tried to rewrite it in Rust (yet ano...
Hasnain says:
"Conclusion
SIMD is awesome when it's used properly
IO is also important, especially for the large datasets
The current performance is the same as the C++ version for dataset GIST. While I use more SIMD, the C++ version uses const generics."
Israelâs military says 4 soldiers were killed in a Hezbollah drone attack
Israelâs military says four soldiers were killed in a Hezbollah drone attack on an army base Sunday evening.
Hasnain says:
No words for this, especially since this para is the understatement of the year. I do not recommend watching the videos and pictures coming out of this (will not describe here but may do so in the comments.)
âMeanwhile, explosions hit early Monday outside Al-Aqsa Martyrs Hospital in Deir al-Balah, killing three people and injuring about 50 others, the hospital said. Tents caught fire, and residents of the Central Gaza community carried the injured into the hospital.â
Posted on 2024-10-14T01:36:15+0000
Netanyahu mulls plan to empty northern Gaza of civilians and cut off aid to those left inside
Israeli Prime Minister Benjamin Netanyahu is examining a plan to seal off humanitarian aid to northern Gaza in an attempt to starve out Hamas militants.
Hasnain says:
I prefer the phrasing an anti-zionist I follow on twitter used instead of the quote at the bottom because this is just ridiculous media complicity.
â"German Chancellor Adolph Hitler is examining a plan to seal off humanitarian aid to the Warsaw Ghetto in an attempt to starve out socialist & communist militants, a plan that could trap hundreds of thousands of Jews without food or water.â
This is what the piece says:
âIsraeli Prime Minister Benjamin Netanyahu is examining a plan to seal off humanitarian aid to northern Gaza in an attempt to starve out Hamas militants, a plan that, if implemented, could trap without food or water hundreds of thousands of Palestinians unwilling or unable to leave their homes.â
Posted on 2024-10-13T20:13:02+0000
'No Propaganda on Earth Can Hide the Wound That Is Palestine: Arundhati Roy's PEN Pinter Prize Acceptance Speech
'I refuse to play the condemnation game. Let me make myself clear. I do not tell oppressed people how to resist their oppression or who their allies should be.'
Hasnain says:
Always speaking truth to power. Her words are always so powerful. I do have to note that PEN refused to link to her speech when it announced the award on its social media.
So hard to pick one quote from here. Read the whole thing.
âSince October 7th 2023, apart from the tens of thousands of people it has killed, Israel has displaced the majority of Gazaâs population, many times over. It has bombed hospitals. It has deliberately targeted and killed doctors, aid workers and journalists. A whole population is being starved â their history is sought to be erased. All this is supported both morally and materially by the wealthiest, most powerful governments in the world. And their media. (Here I include my country, India, which supplies Israel with weapons, as well as thousands of workers.) There is no daylight between these countries and Israel. In the last year alone, the US has spent 17.9 billion dollars in military aid to Israel. So, let us once and for all dispense with the lie about the US being a mediator, a restraining influence, or as Alexandria Ocasio-Cortez (considered to be on the extreme Left of mainstream US politics) put it, âworking tirelessly for a ceasefireâ. A party to the genocide cannot be a mediator. Not all the power and money, not all the weapons and propaganda on earth can any longer hide the wound that is Palestine. The wound through which the whole world, including Israel, bleeds.â
Posted on 2024-10-13T03:38:45+0000
How Statsig streams 1 trillion events a day
A behind-the-scenes look at all the operations in place to ensure that Statsig can safely and seamlessly process 1 trillion events every day.
Hasnain says:
Interesting stuff. This bit in particular was an idea I hadnât heard of before.
âEven when running in a degraded mode, it is able to continuously and reliably ingest data. Because of this, our data ingestion layer (written in Rust) has been designed to have as few responsibilities as possible. Its sole job is to get data into some semi-persistent storage as quickly as possible, with several cascading storage options in the case of failures or outages.
Even in the event of an auth service outage, it will still record requests, but with a flag to authorize the request async in the processing layer.â
How Hard Should Your Employer Work To Retain You?
Recently we learned that Google spent $2.7 billion to re-hire a single AI researcher who had left to start his own company. As Charlie Brown would say: âGood grief.â đ This is an (incredibly!) extrâŚ
Hasnain says:
Great read as always
âWhile writing this piece, a friend told me a story about when he became an engineering manager a decade ago, and soon noticed that his two women engineers were the lowest paid and the lowest leveled people on the team, which didnât seem to correlate with their actual skills or experience. He asked his own manager what was up with this, and the response he received was: âWell yeah, neither of them has ever been a flight risk.â
This kind of attitude is, to put it politely, a fucking cancer on our industry.â
Posted on 2024-10-12T03:35:30+0000
Prioritize Through Purpose
Prioritization conflicts are exactly the situations when Product Managers must step away from traditionally accepted management tools and frameworks and look deeper into Purpose. In 2005 when I wenâŚ
Hasnain says:
Long and rambles at times but thereâs useful advice here - and I certainly needed some on prioritization.
âBeing purposeful is also the secret to agility. Purpose can help move faster and in times of crisis, rally the team together. It helps avoid analysis paralysis and avoid the delays inherent in waiting for numbers to emerge before taking a decision. When employees are in a quandary due to a fork in the road, purpose can guide them to choose which way to move without escalating up the hierarchy or awaiting further direction from their hierarchy. In situations where it really matters, we tend to become data driven when we should be doing the opposite, pause and then reflect on why the business or product exists.â
Posted on 2024-10-09T05:26:11+0000
Don't let dicts spoil your code
I restricted the use of dicts in my code to make it easier to follow and maintain. Here's my explanation of the benefits and advice on what you can use instead. Bonus point: what to do with all the legacy code when there's no time to eradicate all the dicts.
Hasnain says:
âKeep an eye on your dicts. Donât let them take control of your application. As with every piece of technical debt, the further you postpone introducing proper data structures, the more complex the transition becomes.â
Posted on 2024-10-09T05:22:43+0000
The Failure of Liberal Zionism | David Klion
Israel has behaved exactly as its harshest critics predicted.
Hasnain says:
âA year after October 7, no one seriously believes there will be peace between Israel and the Palestinians in our lifetime. The bombed and starved children of Gaza will never forget what theyâve been subjected to, nor the worldâs general indifference; while itâs not on the same scale, their counterparts in Israel will never forget the national trauma of the attacks. The âtwo-state solutionâ that liberal Zionists have verbally supported for years as the only possible just outcome is an obvious fantasy. Other, far more disturbing outcomes seem likelier; at present, it is hard to see what consequences Israel will face from continuing to kill and displace Palestinians on all fronts while seizing and occupying more and more of their land. If there is one lesson to be taken from the past dismal year, itâs this: the liberal Zionist interpretation of the conflict has no predictive value, no analytical weight, and no moral rigor. It is a failed dream of the previous century, and it is unlikely to survive this one.â
Posted on 2024-10-09T05:16:56+0000
Report: In one year, more than 100,000 deaths in Gazaâaided by over $17.9 billion from the US
Brown Universityâs Costs of War Project calculated âthe money thatâs spent on war, and the toll on human livesâ after a year of war in Gaza. The numbers are staggering.
Hasnain says:
âThe Costs of War Project researchers estimate the cost to US taxpayers at over $17.9 billion, and the likely number of people killed at well over 100,000âwhich, even then, is a âvery conservative, minimum amount of death.â As researchers begin to calculate the costs, the human and monetary toll is starting to become clearer.â
Posted on 2024-10-09T02:32:31+0000