HackerTrans
TopNewTrendsCommentsPastAskShowJobs

delifue

no profile record

comments

delifue
·7 months ago·discuss
How does static allocation avoid wasting memory?

Static memory allocation requires hardcoding an upper limit of size of everything. For example, if you limit each string to be at most 256 bytes, then a string with only 10 bytes will waste 246 bytes of memory.

If you limit string length to 32 bytes it will waste fewer memory but when a string longer than 32 bytes comes it cannot handle.
delifue
·7 months ago·discuss
Unfortunately web API doesn't yet allow drawing multi-line text in canvas. To draw multi-line text in canvas you need a layouting library
delifue
·7 months ago·discuss
Many problems in article are specific to old versions of iOS which is only in old versions of iPhone. Most old iPhone users are not potential paying customers. iOS need to be supported but old versions of iOS don't.
delifue
·7 months ago·discuss
I head that Jane Street use OCaml and said similar thing. Although there are few OCaml developers they are overall better so hiring is easier
delifue
·7 months ago·discuss
Key sentence

Because you weren’t suffering from too much work, you were suffering from too little truly important work.
delifue
·7 months ago·discuss
Not being able to store mutable ref in other type reduces expressiveness. The doc already mentions it cannot allow Iterator that doesn't consume container

https://github.com/rue-language/rue/blob/trunk/docs/designs/...

No silver bullet again
delifue
·7 months ago·discuss
Modern large productivity software (including IDE) are often "fragile".

Sometimes some configuration is wrong and it behave wrongly but you don't know which configuration.

Sometimes it relies on another software installed on system and if you installed the incompatible version it malfunctions without telling you incompatibility.

Sometimes the IDE itself has random bugs.

A lot of time is spent workarounding IDE issues
delifue
·7 months ago·discuss
There is nuance distinction between "fundamentally work faster" and "being pushed to work faster".

The first is what to optimize. The second "being pushed to work faster" often produce bad results.

https://x.com/jamonholmgren/status/1994816282781519888

> I’ll add that there’s also a massive habits and culture problem with shipping slop that is very hard to eradicate later.

> It’s like a sports team, losing on purpose so they can get better draft picks for the next year. It rarely works well because that loser mentality infects the whole organization.

> You have to slow down, do it right, and then you can speed up with that foundation in place.
delifue
·7 months ago·discuss
This reminds of me Makimoto’s Wave:

https://semiengineering.com/knowledge_centers/standards-laws...

There is a constant cycle between domain-specific hardware-hardcoded-algorithm design, and programmable flexible design.
delifue
·7 months ago·discuss
I put some article content to Pangram. Pangram says it's AI

https://www.pangram.com/history/282d7e59-ab4b-417c-9862-10d6...

The author's writing style is really similar to AI. AI already somehow passed Turing test. The AI detectors are not that trustworthy (but still useful).
delifue
·7 months ago·discuss
The overuse of emoji make me suspect it's AI. I plugged first paragraph into pangram and result is 100% AI.

https://www.pangram.com/history/30310094-f54b-4e74-8d68-e4c9...
delifue
·7 months ago·discuss
It's probably KPI-driven. Devs are punished by any visible error. So dev hides errors.
delifue
·7 months ago·discuss
It's also possible that OpenAI use many human-generated similar-to-ARC data to train (semi-cheating). OpenAI has enough incentive to fake high score.

Without fully disclosing training data you will never be sure whether good performance comes from memorization or "semi-memorization".
delifue
·7 months ago·discuss
Once a metric becomes optimization target, it ceases to become good metric.
delifue
·7 months ago·discuss
React server component is frontend's attempt of "eating" backend.

On the contrary, HTMX is the attempt of backend "eating" frontend.

HTMX preserves the boundary between client and server so it's more safe in backend, but less safe in frontend (risk of XSS).
delifue
·7 months ago·discuss
Any attempt that blurs boundary between client and server is unsafe.
delifue
·7 months ago·discuss
Egison is a pattern-matching-oriented language https://www.egison.org/
delifue
·7 months ago·discuss
All mistakes can be blamed to "carelessness". This doesn't change the fact that some designs are more error-prone and more unsafe.
delifue
·8 months ago·discuss
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
·8 months ago·discuss
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.