Live data from Hacker News

Ask HN: What did you find out or explore today?

news.ycombinator.com

51–60 of 446 posts

Re: Ask HN: What did you find out or explore today?

#51

I had a great euphoric epiphany feeling today. Doesn't come along too often, will celebrate with a nice glass of wine :) Am doing data engineering for some big data (yeah, big enough) and thinking about efficiency of data enrichment. There's this classic trilemma with data enrichment where you can have good write efficiency, good read efficiency and/or good storage cost, pick two. E.g. you have a 1TB table and you wa…

You mean you discovered parallel arrays?

Re: Ask HN: What did you find out or explore today?

#52
post #27

That lodash-es doesn’t ESM lodash/fp, which means there is no straightforward way of using it with Vite after version 5. God help me. I don’t even want to use it, I just want to get legacy code building on a modern version of Vite without rewriting a couple thousand lines of code. Aaaargh

> lodash-es doesn’t ESM lodash/fp Most of my career has been JS and TS and I have no idea what this means.

I'm guessing you're only a few years into your web career, so I'll provide some background. lodash is a popular library that fills in many blanks that pre-2015 JavaScript had. It still provides value in modern JavaScript, but it's no longer as important as it used to be.

JavaScript is actually based on a standard called ECMAScript. ActionScript shares this standard, as an example. In 2015, we got ECMAScript 5, which modernized JavaScript in many ways. With that came many changes such as ECMAScript moving to a yearly update cadence, in response to the large amount of effort involved in implementing ES5, which came with a ton of changes.

One of those changes was ES modules, or ESM, which provided an official way for working with modules. The import/export syntax you're used to is a part of that spec. Before this, we had competing non-standard specifications for module loading, such as CommonJS.

ES5 reduced the need for tools such as lodash, and so it's less common in newer projects. It also is old enough to have been around before ESM was adopted, and is a large project, and so like many projects it either had to completely rewrite everything, or use transformation tools such as babel. If not, the user was responsible for using babel/etc to transform the code. Now, in modern stacks, because this is unnecessary, native support for CommonJS is being phased out, leading to OP's conundrum.

Now we have TypeScript, and the horrors of JavaScript 10+ years ago are a fading memory.

Re: Ask HN: What did you find out or explore today?

#53

I've read the adverserial attack paper, and I'm currently implementing a captcha based on images that have masks on them so that any LLM agent with a visual model will classify it wrong. The idea is to use something like a slider that shows different images combined with a memory task, like "find out the pair of images" and then offer maybe a text input field where the user has to write 1,2,3 or something similar wit…

crazy to think that soon not being able to successfully complete the captcha will be a signal that the user is human

Re: Ask HN: What did you find out or explore today?

#54
Was reading about version control history and found out Git went from first commit to self-hosting in like a week. Linus was just mad about the BitKeeper licensing thing and hammered it out. Not some grand architecture - just "screw this, I'll do it myself." And somehow that became... everything. Wild.

Re: Ask HN: What did you find out or explore today?

#55
post #27

That lodash-es doesn’t ESM lodash/fp, which means there is no straightforward way of using it with Vite after version 5. God help me. I don’t even want to use it, I just want to get legacy code building on a modern version of Vite without rewriting a couple thousand lines of code. Aaaargh

> lodash-es doesn’t ESM lodash/fp Most of my career has been JS and TS and I have no idea what this means.

It’s not just you, nobody uses ESM as a verb, I think they mean:

The package doesn’t export lodash/fp in the ESM version.

Re: Ask HN: What did you find out or explore today?

#56
I went on a tour of a miso factory today and learned about how it's made!

What surprised me the most was that shiro (white) miso and aka (red) miso are both the same mix of soybeans, salt, and rice malt but fermented for different periods of time. As the miso ferments for longer, its color becomes darker while its flavor becomes milder and more complex. Beyond 3 years of fermentation, you get diminishing returns as its flavor becomes too acidic.

After the tour, we got to sample some of the naturally fermented 3 years old miso, and it was easily the best I've ever had. Most miso you can buy in a grocery store is created through forced fermentation over a few months, so if you ever get a chance to try naturally aged miso I would highly recommend!

Re: Ask HN: What did you find out or explore today?

#58

I had a great euphoric epiphany feeling today. Doesn't come along too often, will celebrate with a nice glass of wine :) Am doing data engineering for some big data (yeah, big enough) and thinking about efficiency of data enrichment. There's this classic trilemma with data enrichment where you can have good write efficiency, good read efficiency and/or good storage cost, pick two. E.g. you have a 1TB table and you wa…

You mean you discovered parallel arrays?

specifically I've discovered how to 'trick' mainstream cloud storage and mainstream query engines using mainstream table formats how to read parallel arrays that are stored outside the table without using a classic join and treat them as new columns or schema evolution. It'll work on spark, bigquery etc.

Re: Ask HN: What did you find out or explore today?

#59
post #50

That the FOSS bazaar broke off into megachurches while still maintaining a healthy small scale and independent bazaar [0]. That FOSS sustainability is much more complicated than just "throw money at it". That there's "metal paste" [1]. That the zodiac killer's messages have been cracked for five years now (I didn't know they were cracked to begin with) and that it was a shift and substitution cypher [2]. The telltale…

Whoa. Via Grok:

Solved Zodiac Killer ciphers:

• Z408 (July 1969): Solved in days by Donald & Bettye Harden.

Message (with misspellings): “I like killing people because it is so much fun it is more fun than killing wild game in the forrest because man is the most dangeroue anamal of all to kill something gives me the most thrilling experence it is even better than getting your rocks off with a girl the best part of it is thae when I die I will be reborn in paradice and all the I have killed will become my slaves I will not give you my name because you will try to sloi down or atop my collectiog of slaves for my afterlife ebeorietemethhpiti”

• Z340 (November 1969): Solved in 2020 (after 51 years) by David Oranchak, Jarl Van Eycke, and Sam Blake; FBI confirmed.

Message (with misspellings): “I hope you are having lots of fun in trying to catch me that wasn’t me on the TV show which bringo up a point about me I am not afraid of the gas chamber becaase it will send me to paradlce all the sooher because e now have enough slaves to worv for me where every one else has nothing when they reach paradice so they are afraid of death I am not afraid because i vnow that my new life is life will be an easy one in paradice death”

Re: Ask HN: What did you find out or explore today?

#60

I found out my crimson-bellied conure is laying an egg today! She's nesting in some towels now, chirping away while she works on laying it. Having an egg is relatively hard on parrots. I've given her lots of food and warmth to prepare. She is comically hungry -- she's usually not such a big eater, but she's happy today to be scarfing down her apple slices, fruit pellets, and safflower seeds. She usually sleeps at the…

> I've wondered if it is some innate need to nourish herself with calcium, or if it's stress relief :)

methinks: Calcium is required to make the egg shell. Calcium supplements would help, just in case "Life finds a way".

Post reply on HN