HNHacker News
TopNewBestAskShowJobs

delifue

413 karma · joined August 16, 2024

submissionscomments
delifue··on RCE Vulnerability in React and Next.js
All mistakes can be blamed to "carelessness". This doesn't change the fact that some designs are more error-prone and more unsafe.
delifue··on Several core problems with Rust
The biggest value of Rust is to avoid heisenbug https://en.wikipedia.org/wiki/Heisenbug

Memory safety and thread safety are causes of heisenbugs. However there are other causes. Rust don't catch all heisenbug. But not being perfect doesn't mean it's useless (perfect solution fallacy).

The article has some valid points but is full of ragebait exaggeration.

delifue··on Nano Banana Pro
Maybe the AI feeling is illusion because you already know it's AI-generated, just confirmation bias. Like wine tastes better after knowing it's expensive. In real world AI-generated images have passed Turing test. Only by double blind test do you can be really sure.
delifue··on Open-source Zig book
A nitpick about website: the top progress bar is kind of distracting (high-constrast color with animation). It's also unnecessary because there is already scrollbar on the right side.
delifue··on A Fork in the Road: Deciding Kafka's Diskless Future
The "diskless" is actually replacing disk with S3
delifue··on Feed the bots
Why not just use github pages for static blogs? It's free. No need to worry about extra bandwidth and other costs caused by crawlers.
delifue··on Exploring PostgreSQL 18's new UUIDv7 support
I disagree with this

> While UUIDv7 still contains random data, relying on the primary key for security is considered a flawed approach

The correct way is 1. generate ID on server side, not client side 2. always validate data access permission of all IDs sent from client

Predictable ID is only unsafe if you don't validate data access permission of IDs sent from client. Also, UUIDv7 is much less predictable than auto-increment ID.

But I do agree that having create time in public-facing ID can leak analytical information.

delifue··on Exploring PostgreSQL 18's new UUIDv7 support
With proper data permission check, having predictable ID is totally fine. And UUIDv7's random part is large enough so that it's much harder to predict than auto increment id.

If your security relies on attacker don't know your ID (you don't do proper data permission check), your security is flawed.

delifue··on From Rust to reality: The hidden journey of fetch_max
When reading I expected it to mention that each thread maintain thread local max and periodically sync to a global atomic can improve performance
delifue··on How to make things slower so they go faster
Can you explain what's the same underlying principle between Jevons paradox and Braess paradox?
delifue··on Structured (Synchronous) Concurrency
I think they Y axis (async/sync) should be auto-scheduling/manual-scheduling.
delifue··on Left to Right Programming
A nitpick: select doesn't declare fields for where. select declare fields for having. it's the schema that declares fields that can be used in where.
delifue··on Zig Error Patterns
In my opinion Zig is elegant except for one thing: cannot attach data to error.

https://github.com/ziglang/zig/issues/2647

You have to workaround by things like passing into a pointer to error object.

delifue··on Typed languages are better suited for vibecoding
In my experience Gemini can one-shot go apps. Determining it requires sound eval instead of anecdotes.
delifue··on Vibe code is legacy code
An interesting point is that if you ask AI to security audit a codebase it can find the vulnerabilities. But the AI "forget security" when writing new features. This is probably caused by training data and RL.
delifue··on Do variable names matter for AI code completion? (2025)
Did you add the type annotation of it in code?
delifue··on URL-Driven State in HTMX
Yes the simple solution is obviously not perfect in edge cases. It's a tradeoff between simplicity and edge-case-perfectness.

In my opinion the higher priority task is to optimize the query in backend so that it can refresh quickly. If loading is quick enough then that edge case will be less likely to happen.

delifue··on Pony: An actor-model, capabilities-secure, high-performance programming language
The difference between Pony and Rust is that Pony allows easy reference cycle.

One of the innovative point of Pony is the iso reference. iso reference means that an object graph is accessible from only that iso reference. It avoids sharing mutable data.

delifue··on Losing language features: some stories about disjoint unions
Go with sum type: Borgo

https://github.com/borgo-lang/borgo

delifue··on Gaslight-driven development
> for example, we used tx.update for both inserting and updating entities, but LLMs kept writing tx.create instead. Guess what: we now have tx.create, too.

If a function can both insert and update, it should be called "put". Using "update" is misleading.

delifue··on Assumptions
> First is to assume that almost everything is an assumption. Second is to insert enough flexibility into the work so that only minimal parts of it are lost if your assumptions are wrong.

That's why rigid language like Rust is suitable for mature domains (like rewriting an existing app in Rust) where most things are known, instead of new and quickly iterating things (many unknown unknown). https://loglog.games/blog/leaving-rust-gamedev/

delifue··on C++: Maps on Chains
The correct way of storing disjoint intervals is to key by min endpoint of each interval and use ordered querying
delifue··on Huawei's Pangu Pro MoE model is likely derived from Qwen model
Update: the paper contains fake citation. The paper is likely LLM-generated. The original repo was deleted by HonestAGI.

https://github.com/HonestyAGI/LLM-Fingerprint/issues/3

Sorry for submitting without carefully checking.

delifue··on Injection Rejection (2006)
This is a common example of not fixing from root cause and try to fix from "outside valiation" that has bad side effects.

The correct way of fixing SQL injection is to use prepared statement and parameters.

Other examples: Windows allows software to do bad things, having no proper permission control (to maintain compatibility). Antimalwares scan applications by matching patterns of virus code, but has many false positives and false negatives. This causes many troubles (kill innocent software, scanning cost performance, etc.) because it does not fix from root case (proper permission management).

delifue··on That XOR Trick (2020)
Its main benefit is to avoid having extra data structure (like hash map) to find the missing or duplicate, using O(n) time and O(1) space.
delifue··on Asynchronous Error Handling Is Hard
Go keeps on not adding syntax sugar for if err != nil. https://go.dev/blog/error-syntax

But often the problem of language can be partially solved by IDE. IDE can already generate if err != nil branches. Goland can fold if err != nil branches. https://github.com/golang/vscode-go/issues/2311

delifue··on There are no new ideas in AI, only new datasets
The hardware(GPU)'s architectural limitations may slow research more than PyTorch. The hardware lottery https://hardwarelottery.github.io/
delifue··on Andrej Karpathy – Software 2.0
"Software 2.0" reminds me of "web 3.0".
delifue··on The Next Abstraction
Vibe coding is easy. Vibe debugging is hard.
delifue··on Persuasion methods for engineering managers
The fifth point is the same as in 'Ask for no, don’t ask for yes'

https://www.mooreds.com/wordpress/archives/3518

https://news.ycombinator.com/item?id=43144611

← PreviousPage 2 of 3Next →