HNHacker News
TopNewBestAskShowJobs

hiyer

1,395 karma · joined January 6, 2016

submissionscomments
hiyer··on Sonic: A fast JSON serializing and deserializing library
From the documentation it seems to me that they're mostly concerned about resource utilization when processing APIs, and not dealing with files. 635KB may be representative of a large API payload in their environment.
hiyer··on Ask HN: Any good list of Black Friday offers of softwares for devs?
Pragmatic Bookshelf [1] has a 40% discount on ebooks with discount code turkeysale2021.

1. https://pragprog.com/

hiyer··on How the U.S. hid an airstrike that killed dozens of civilians in Syria
Pakistan was willing to protect him too (that's where he was found at the end) but the US didn't invade them. Why is that? Because Pakistan has nukes?
hiyer··on Ask HN: Looking for a book on algorithms and data structures
Sedgewick's Algorithms [1] is pretty good. I found it way more approachable than CLRS. There's also a free course on Coursera[2] from him.

1. https://www.amazon.com/Algorithms-4th-Robert-Sedgewick/dp/03...

2. https://www.coursera.org/learn/algorithms-part1#syllabus

hiyer··on Ask HN: What‘s the best all-in-one coding/gaming/travel Notebook?
+1 for this. I have last year's edition - it's fast and cool enough for the games I play (though admittedly I don't play too many graphics-heavy ones) and lightweight (1.6Kg) enough to lug around wherever you want.
hiyer··on Snowflake’s response to Databricks’ TPC-DS post
I'm aware that Databricks is a PaaS service, but what Databricks runs under the hood is Spark (with a few proprietary extensions). So your jobs/queries do require some tuning just like with OS Spark.

Spark has had SQL engines (SparkSQL/Hive on Spark) for a long time. Photon is just a new, faster one. Photon tasks also run on Spark executors only, so it's not independent of Spark[1]. Also, while it's proprietary now, I wouldn't be surprised if Databricks open-sources it in the future, like they did with Delta Lake.

1. https://databricks.com/blog/2021/06/17/announcing-photon-pub...

hiyer··on Snowflake’s response to Databricks’ TPC-DS post
> I'd hope so if they're selling a product based on FOSS code, there has to be a value add to justify it

They have some proprietary features like DBIO [1]. They also have some cloud-specific features like storage autoscaling [2] that would not be available in OSS Spark. Even Delta Lake [3] used to be proprietary, but I suspect the rise of open-source frameworks like Iceberg led them to open-source it.

Shameless plug - when working at a since-shutdown competitor to Databricks, I'd come up with storage autoscaling long before them [4], so it's not unlikely that they were "inspired" by us :-) .

1. https://docs.databricks.com/spark/latest/spark-sql/dbio-comm...

2. https://databricks.com/blog/2017/12/01/transparent-autoscali...

3. https://delta.io/

4. https://www.qubole.com/blog/auto-scaling-in-qubole-with-aws-...

hiyer··on Snowflake’s response to Databricks’ TPC-DS post
Performance is only one part of the story. The major advantage Snowflake (and to some extent Presto/Trino) brings to the table is it's pretty much plug and play. Spark OTOH usually requires a lot of tweaking to work reliably for your workloads.
hiyer··on Efficient Distance Querying in MySQL
A few years back I was working at a real estate firm where you could search for available rentals by location. The houses were saved with their latitude and longitude values. Their original search implementation used to fetch all the records from the database and then filter them based on some parameters - IIRC translate back from the lat-long to some location and check if it fell within the area. The number of rows was not too high - 10k or so, so this used to run in single-digit seconds.

At that time MySQL had neither spatial indices nor a native haversine method. I switched out the search method to translate the area name to a lat-long on the frontend (based on google maps) and then use a haversine in the query to retrieve results. It was still a couple of orders of magnitude faster than the previous solution, and more accurate to boot.

hiyer··on Backblaze IPO
Congratulations! Been using them for backup for years (still on the free tier though :-P) and I'm a happy customer.
hiyer··on Mysorean Rockets
But IIUC what you want to who under Tipu's rule invented (or revived) this rocket. You're probably right in thinking it wasn't Tipu himself who did this, since he was a king and not a scientist. But i suspect the real inventor's name is lost to history.
hiyer··on Mysorean Rockets
According to this book[1] war rockets were used in India at least as early as the 14th century, and mughal emperor Akbar used metal-headed ones in the 16th. So it would seem neither rockets nor metal ones were invented by Tipu. However it doesn't answer your question of who did invent the war rocket :-)

1. The Mughal Empire at War: Babur, Akbar and the Indian Military Revolution, 1500-1605 (Asian States and Empires) https://www.amazon.in/dp/B01EX69NJ0/ref=cm_sw_r_apan_glt_DMX...

Edit: added the link

hiyer··on Culture shock
What you get in any country will depend on the local tastes. You will get hundreds of varieties of namkeens and sweets in India that you won't get in the US.

You get several types of ready to eat breads in India too, but they're more "localized". For example, from Britannia, apart from the usual milk, white, brown, whole wheat, multigrain, etc, you also have Kulcha, missi bread, pav, fruit bun, etc. In the US you would probably see rye bread, sourdough, etc.

Having said that, where I really envy US and Europe is the variety of cheeses. You get most of them in India too these days but they're prohibitively expensive.

hiyer··on Bash functions are better than I thought
> Bash can't handle structured data well. Python (being general purpose programming language) can't handle calling external programs well because it's not the "focus" of the language.

Perl and Ruby do both very well. Or at least they do the latter in a simpler way than Python, and they're no worse than it for the former.

hiyer··on Async Ruby
Oh, sorry I missed that. Hopefully it will show up in Rails 7 then.
hiyer··on Async Ruby
From reading the article it seems to me that you could just wrap any Rails method (say a DB read) in an Async block to make it run asynchronously.
hiyer··on Open-Source Contributors Worth Sponsoring
I would like to nominate Kovid Goyal, the author of Calibre[1] and Kitty[2], to this list. I don't know if he accepts sponsorship (and/or donations) - I've not seen anything of that sort on his websites - but I'll be eternally grateful for the wonderful stuff he's created!

1. https://calibre-ebook.com/

2. https://sw.kovidgoyal.net/kitty/

Edit: formatting

hiyer··on Exa: An alternative to Ls
Thanks for the "less -F" tip! I didn't know we could do that, and I'll definitely find it useful.
hiyer··on An analysis of 7,020,950 NFT transactions on the Ethereum blockchain
Yes, they do. Some of my friends have purchased NFTs from no-namers for a few hundred dollars. I have no clue how good/bad they are as investments - I got the impression these guys were buying it just to get into the game.
hiyer··on Internet Object – A JSON alternative data serialization format
60% savings won't really count for much when the traffic is compressed, which is the case for most of JSON's uses. For real savings I think you'd have to go with a binary format like protobuf or thrift.

Edit: 50 -> 60

hiyer··on India Counting Down to 1B Doses
NYT may be reliable in general but it's far from being so when it comes to reporting on India. Especially when the government in power doesn't agree with NYT's "liberal" philosophy.
hiyer··on India Counting Down to 1B Doses
> The budget is enough to cover the majority

Majority, yes, but not all.

> Like the Supreme Court observed, the decision to exclude those under 45 was arbitrary and irrational.

I don't disagree there.

> Again, SII was sitting on 50 million doses in January. Why did the government not procure them? Why did the government resort to piece-meal purchase orders?

Actually the govt did commit to buy 60 million, as the link I shared mentioned. As to why it did not buy outright, I'd guess it's because it didn't need them when only FLWs were being inoculated. Maybe the storage and transportation infrastructure was also not in place, but I'm just speculating here.

Edit: another reason (which I just read in an article) to order piecemeal, was apparently to keep options for other vaccines open as and when they became available. At the time there were quite a few possibilities - Pfizer, Moderna and Novavax IIRC. In hindsight this was suboptimal as Pfizer and Moderna had committed their supply elsewhere and Novavax was not completed in time.

> The US on the contrary ordered 300 million vaccines at once

Did they also pay in advance for all 300 million?

> SII did not get 3000 crore advance for the government till end of April.

SII asked for that amount only in the beginning of April[1], so that's not that much of a delay.

1. https://www.hindustantimes.com/india-news/outstretched-sii-c...

hiyer··on India Counting Down to 1B Doses
> Some rich states tried to procure vaccines on their own.

My point was that the states themselves asked to be allowed to procure the vaccines, so blaming the Union for asking them to "compete" is incorrect. As your link to the Liberalized policy states, 50% of the supply was being purchased by the Union, presumably to supply to the "poor" states.

> How does that preclude the Union from extending vaccine coverage to all?

You're right - it doesn't. However I think the (only) Rs. 35000 crore budget should have made it clear that the government was not planning to inoculate everyone for free. Some, like me, got lucky; but I know plenty of people who had to pay for their vaccines.

> And then placed an order for a grand total of 11 million doses

From Jan 16-Feb 28, India was inoculating only frontline workers and healthcare staff. For these AFAICT, the Union ordered 11 million vaccines in Jan[1], as you mentioned, and 14.5 million in Feb[2].

India started inoculating senior citizens and people with co-morbidities from March 1, and in March the Union had ordered 120 million vaccines[3].

The Union claimed, in May, that they were purchasing the entire supply of both SII and Bharat Biologicals, so if there was any shortage it was due to the lack of manufacturing and not lack of purchase. I'm not blaming the manufacturers of course - obviously they took time to scale, and they (especially SII) have done well now.

1. https://www.indiatoday.in/coronavirus-outbreak/story/india-o...

2. https://www.business-standard.com/article/current-affairs/go...

3. https://www.hindustantimes.com/india-news/120mn-doses-ordere...

Edit: added some more information on vaccine orders

hiyer··on India Counting Down to 1B Doses
> Serum Institute was appealing for financial help to boost production capacity. But the government completely neglected that,

This is not true - the govt gave Rs. 3000 crore (the asked-for amount) in aid to SII.

> They jumped at it with all hands and today account for 90% of all doses administered.

True, but it's likely that the government's commitment to buy 100s of millions of vaccines played no small part in giving them the confidence to scale up the way they did.

> India is like top 3 in the world in pharma manufacturing

True, but SII is the big daddy of vaccines. Even before Covid, they were making 60% of the entire world's supply of vaccines.

> Many companies were ready and willing to switch to vaccine manufacturing but were tied up in bureaucracy with no support from the government.

SII had the capability and capacity, and committed to deliver the quantity as well. They had started manufacturing Covishield in the millions as early as November 2020 or so. Bharat (Covaxin) had a fully developed vaccine. Under the circumstances, why would the government (or any other buyer) risk spreading itself thin over many different suppliers instead of going with those which already had a product in hand?

hiyer··on India Counting Down to 1B Doses
> The dear leader refused to fund free vaccines for people under 40.

My wife and I are under 40 and we got the vaccine for free at a government health centre.

> Instead, states were pitted against each other to procure doses

Initially all vaccine supply was routed through the centre. Then some states like Delhi and Maharashtra asked to be allowed to procure vaccines on their own. This was in the early days when the vaccine supply was less. When they didn't get any interest from sellers they again asked the centre to procure it for them [1][2]. By then SII (Covishield) in particular had scaled up sufficiently to be able to supply enough vaccines.

1. https://www.newindianexpress.com/cities/delhi/2021/may/27/ke...

2. https://www.thehindu.com/news/cities/mumbai/uddhav-thackeray...

hiyer··on India Counting Down to 1B Doses
We have Arab after Crore, but it's not commonly used. We just say 1000 crore or 1 lakh crore, etc.
hiyer··on Brave Search replaces Google as default search engine in the Brave browser
True. If you search for any Python documentation the first links on Google are almost always geeksforgeeks, w3schools, etc instead of the official Python docs.
hiyer··on Why the ‘Big Short’ Guys Think Bitcoin Is a Bubble
I assume you live in the US, which may be quite primitive in this department. In India, and also many parts of Africa, all you need to transfer money from one account to another is to know their phone number. And the transfer is instantaneous.
hiyer··on I write code 100 hours/week, here's why I probably won't stop
If you love coding and - as it appears from the post - are working on your personal projects, this seems like a reasonable schedule. I definitely wouldn't want to work that much for an employer - I've done that when I was around your age and younger, and it's pointless.

In the long run, you might want to set aside 3-4 hrs/week on some real physical activity though - walking is fine but you need upper body strength too.

In any case, once you have a partner and/or kids in your life, you'll find you won't be able to spend this much time on coding, so enjoy it while it lasts!

hiyer··on I write code 100 hours/week, here's why I probably won't stop
I doubt he's really running - probably walking at a reasonably brisk pace.
← PreviousPage 12 of 17Next →