HNHacker News
TopNewBestAskShowJobs

furstenheim

263 karma · joined August 1, 2019

https://github.com/furstenheim

https://twitter.com/furstenheim

submissionscomments
furstenheim··on Creating SVGs with AI
The tasks that AI cannot do are vanishingly few. Yet, they are still incapable of generating a decent SVG. But there's a workaround
furstenheim··on We shouldn't have needed lockfiles
> But if you want an existence proof: Maven. The Java library ecosystem has been going strong for 20 years, and during that time not once have we needed a lockfile. And we are pulling hundreds of libraries just to log two lines of text, so it is actively used at scale.

Maven and Java is simply broken when dealing with transitive dependencies.

I've been hit so many times with running time exception "MethodNotFound" cause two libraries have the same transitive dependency and one version gets picked over the other one.

furstenheim··on Show HN: I made an online Unicode Cuneiform digital clock
Sumertime! Great naming choice!!
furstenheim··on Don't Bother with Vibe Coding
It ends up with AIs chatting between them over the phone in like 1 year top
furstenheim··on Show HN: Nue – Apps lighter than a React button
Not the discussion, but SPAs are fundamentally safer against XSS, in the sense that data and code have different paths.
furstenheim··on Hidden Messages in Emojis and Hacking the US Treasury
100%.

Btw, even using psql directly allows binding parameters https://www.postgresql.org/docs/current/app-psql.html

furstenheim··on How Much Are LLMs Boosting Real-World Programmer Productivity?
I find it useful to find esoteric APIs, like reflection, which normally has 100 methods and hard to find the right one
furstenheim··on Postgres Just Cracked the Top Fastest Databases for Analytics
ACID is good and it has an implementation cost (vacuum for example). When doing analytics you do not care for ACID
furstenheim··on An Ode to TypeScript Enums
Lack of LSP support looks really bad in the article proposed solution :/.

But const enum seems to have several pitfalls. https://www.typescriptlang.org/docs/handbook/enums.html

furstenheim··on Time Warp: Delayed-choice quantum erasure
It "can" be done. Some photons leaving the earth a thousand years ago. Bouncing off a mirror in some distant planet and allowing us to see two thousand years into the past
furstenheim··on Frequent social media use tied to higher levels of irritability
Yeah, I want a phone like that. There's definitely a market
furstenheim··on My Favorite Algorithm: Linear Time Median Finding (2018)
Floyd Ryvest also does the job . A bit more efficient IIRC.

However I never managed to understand how it works.

https://en.m.wikipedia.org/wiki/Floyd%E2%80%93Rivest_algorit...

furstenheim··on Don’t try to sanitize input, escape output (2020)
Wasn't there this case of a security issue coming from abusing different parsers, in different places? Server, client, or different browsers
furstenheim··on Don’t try to sanitize input, escape output (2020)
There's another one that works 100% of the time.

Do client server rendering. Send HTML, then query backend for content. Something like p.textContent = ... It's safe.

It's pretty much the same as what a prepared statement does in SQL, send data and code in different channels

furstenheim··on Bun is much faster than Node.js 22 at decoding Base64 but both rely on same lib
Curious, does that affect the complexity of string concatenation? As far as I remember V8 "uses" ropes, so string concatenation was constant time. Not O(n) like java. Which saves a lot of headaches
furstenheim··on Here comes the Muybridge camera moment but for text
100%, maybe intelligence is not as mysterious and extraordinary as we thought
furstenheim··on CEOs could easily be replaced with AI, experts argue
that could be replaced with an AI...
furstenheim··on Fear makes you a worse programmer (2014)
Take a look at hexagon pattern from Spotify. Once you start testing the user contract of your services against real databases (testcontainners is a good option), then you can change all the internals and be sure that the externals will work.

https://engineering.atspotify.com/2018/01/testing-of-microse...

furstenheim··on Xzbot: Notes, honeypot, and exploit demo for the xz backdoor
I actually wondered how many packages they harassed until they got access to one such
furstenheim··on Disney unveils the HoloTile floor
So annoying, it detects where I'm connecting from and redirects changing the language
furstenheim··on The costs of microservices (2020)
This node got it just right. You only get this issue for big stateful libraries, like frameworks
furstenheim··on Proteomic Analysis of Vlad III the Impaler's Documents
> has been exponentially increasing since the beginning of the new millennium

A part of me suffers everytime someone uses that expression

furstenheim··on People going 'monk mode' to limit social media use
What works best for me. Leaving phone at home when I meet people. It's not always possible, obviously, but if I know the address, I might take a db phone for emergencies. Or even, just a paper with the phone number.
furstenheim··on Young people are flocking to astrology
I blatantly lie. Then when they tell me what I should like, tell them it was a lie and say a different one, also fake.
furstenheim··on How to make cheese at home
And not vegetation either
furstenheim··on ChatGPT is now a brilliant tool for winding up telemarketers and scammers
The future is a bit dire, an army of chatgpt scammers talking to an army of chatgpt antyscammers.
furstenheim··on FF4J – Feature Flags for Java
Unless you have a legal requirement starting on January the 1st 00:00
furstenheim··on I quiz ChatGPT about math
I tried with something that was not so obviously in the training set, the response is terrible

What's the measure of the set of real numbers whose square is between 1 and 4.

The set of real numbers whose square is between 1 and 4 is known as the square root of the interval [1, 4]. It is represented by the notation √[1, 4].

To find the measure of this set, we can take the square root of each endpoint of the interval and then subtract the smaller value from the larger value. In this case, the measure of the set is √4 - √1 = 2 - 1 = 1.

Alternatively, we can rewrite the set as the union of two intervals: the set of real numbers whose square is between 1 and 2, and the set of real numbers whose square is between 2 and 4. The measure of the first interval is √2 - √1 = 1, and the measure of the second interval is √4 - √2 = 1. Therefore, the measure of the set of real numbers whose square is between 1 and 4 is 1 + 1 = 2.

It's important to note that the set of real numbers whose square is between 1 and 4 is not the same as the set of real numbers between 1 and 4. The set of real numbers whose square is between 1 and 4 consists only of the positive real numbers 1 and 2, while the set of real numbers between 1 and 4 includes all real numbers between 1 and 4, including negative numbers

furstenheim··on I/O is no longer the bottleneck
It would be nice to see this benchmark in Node.js with streams
furstenheim··on Ask HN: What made you finally grok Git?
Treat commits as immutable data. Don't try to amend, squash or rebase.

Having one commit merges is overrated

Page 1 of 5Next →