Better HN
topnewbestaskshowjobs
Log inSign up

MikeDelta

1,226 karma · joined Jan 29, 2021 (5y ago) · 382 submissions

Submissions

comment 3y ago · link · parent

We had to parse thousands of multi GB zipped jsons for financial data. I don't have any code but it involved (in C++) boost gzip to unpack chunks into 100MB blocks and the simdjson iterate_many function to parse the block into a stream. The json files were not line-delimited but every row had a newline (json: [\n{...},\n{...}\n....\n] ), so we had to clean the commas in order for simdjson to process it as if it were newline-delimited.

Whatever remained at the end of the buffer (few hundred bytes of incomplete json) we would copy just before the boost-unzip block so that there was a continuation of json data. We also reused the parser and string buffer for performance.

Also try to parse the json fields in the right order for fastest performance, if possible.

62.

Newly discovered chemicals are so deadly to fungi, are named after Keanu Reeves(cnn.com ↗)

3 points · by MikeDelta · 3y ago · 2 comments

comment 3y ago · link · parent

Articles need to be aimed properly at the audience. Is it beginners or experts?

It ir is not for beginners, then why start explaining Big O notation and SAT with some pseudocode?

In my opinion, the article should explain what sat stands for because it is aimed at relative beginners.

On a note: my take on the community here is that in general nobidy here wants to be spoon-fed or be insulted if they ask what an abbreviation stands for. What they want is properly written articles so that they can investigate further, and a discussion with the community.

There are so many specialists reading HN and I am amazed at the level of knowledge and experience in the replies sometimes. They don't talk with snobbery about that users should read text books and not bother because they are not part of the select inner circle. Instead, they help out and educate.

That is what makes HN great.

comment 3y ago · link · parent

And remove all the annoying ads and news from the browser frontpage?

comment 3y ago · link · parent

Definitely, I have no doubts we will be alive.

I was hinting a bit to the lyrics of the song 'In the year 2525'.

https://en.wikipedia.org/wiki/In_the_Year_2525

comment 3y ago · link · parent

Today indeed, but let's see what we can do in the year 2525 (if human is still alive).

comment 3y ago · link · parent

Not at all, if it were investors who want a return on the profits. However, many (all?) projects are financed with (expensive) debt, so poor countries end up with debts they cannot repay and 'vanity' projects they could do without. Some analysts worry that countries end up in a debt trap.

I would love it if this is turns out a healthy project for the benefit of all, but I remain skeptical.

comment 3y ago · link · parent

It is not clear who will be paying for this, assistance to build as in expensive loans and building companies to be paid by said loans? There are pleny of high-profile projects like this that end up abandoned and the owner/operator in extreme debt.

comment 3y ago · link · parent

> If manufacturers were truly making chicken stock “just like your grandma did,” it would be highly perishable, incredibly expensive, and shelf-unstable.

I wonder why grandma's chicken stock would not be shelf-stable using old or modern food-preservation techniques.

comment 3y ago · link · parent

Dreams have this tendency to disappear from memory even as one is thinking about them in the morning. Keywords written quickly in a dream journal at night can amazingly trigger entire scenes back into memory.

71.

Sushi terrorism prank videos in Japan are hurting its conveyor belt restaurants(cnn.com ↗)

3 points · by MikeDelta · 3y ago · discuss

comment 3y ago · link · parent

It's definitely on HN, found the quote on the following page: https://news.ycombinator.com/item?id=12001925

Not sure what the actual source is.

comment 3y ago · link · parent

> Charge per byte

of unzipped data

comment 3y ago · link · parent

See also https://news.ycombinator.com/item?id=34158033 with a bit of dialogue with someone from the company about what they are doing (not about this latest event).

comment 3y ago · link · parent

Motivation and passion are very much underestimated in performance. I hope you manage to rekindle your passion somewhere else and run at 10x the speed again!

comment 3y ago · link · parent

Or serverless

comment 3y ago · link · parent

Then they can bring back the talking paperclip, but this time actually useful.

78.

Microplastics are finding their way into fruit and vegetables as they grow(bbc.com ↗)

158 points · by MikeDelta · 3y ago · 130 comments

comment 3y ago · link · parent

I read somewhere that the tolerance on the lego pieces has to be very small so that all the pieces fit well enough (not too loose, not to tight).

comment 3y ago · link · parent

Funny how it triggers all sorts of puns in the replies: "This might get me suspended from the site butt I cannot resist."

comment 3y ago · link · parent

Everyone in the whole world is separated by a limited number. The notion that everyone is separated by six degrees [0] is apparently considered an urban myth, but social networks seemed to have an average of six jumps to reach everyone else (see link). Curious how it holds up nowadays.

[0] https://en.wikipedia.org/wiki/Six_degrees_of_separation

comment 3y ago · link · parent

It is really bizarre but for reliable (traditional) recipes I nowadays go back to my paper recipe books, because online everyone has their own take to the extent that you have to start averaging recipes and still don't know for sure if it's right.

(Yes, there are many variations to traditional recipes and there often is not one official recipe, but I see that as something else from the many different recipes found online for the same thing)

comment 3y ago · link · parent

How is that different from a glass house or normal agriculture? A normal piece of farmland or glass house captures all sunlight falling on its surface for the produce that grows on the same surface, ratio 1:1. If you were to use sunlight falling on the vertical farm with 5 floors, it would have to divide the sunlight over more surface, ratio 1:5, so there is less sunlight per surface.

comment 3y ago · link · parent

They should, but I think parent means that companies should also be stopped from doing things before they damage the environment for generations... because all the fines in the world cannot fix that anymore.

comment 3y ago · link · parent

Is this company subject to environmental regulation regarding emission of 'pollutants' in the atmosphere?

comment 3y ago · link · parent

Cool nick, does it refer to a character or the animal itself?

comment 3y ago · link · parent

We often forget that there are quite a few prop shops out there with just a few people, making a living for many years.

Not sure where to find a link to the statistics, but you hear it when talking to the community.

comment 3y ago · link · parent

I am really curious to hear how these small investors/traders, as market takers, create arbitrage opportunities for you.
12345
13