Better HN
topnewbestaskshowjobs
Log inSign up

senfiaj

725 karma · joined Sep 18, 2023 (3y ago) · 371 submissions

Submissions

comment 2d ago · link · parent

Isn't Sv39 RISC-V thing?

comment 4d ago · link · parent

Yes, it's more complicated. In the era of LLMs it seems to be less important. But when I was coding by hand, the language difference was more significant.

comment 4d ago · link · parent

creative

comment 4d ago · link · parent

As I see AI just hasn't the same motivations and desires as humans, it's trained to be just compliant and obedient. Creativity is a subjective term. It's something novel that causes positive emotions. AI hasn't these emotions and desires to experience them.

comment 5d ago · link · parent

Some ancient languages have massive usage for historical reasons, but it doesn't mean we should use them for new projects. COBOL is still heavily used in US finance system, it doesn't mean it's a good choice for a greenfield financial system or enterprise application. PHP's situation is better than COBOL, but it's not the best especially for complex enterprise systems. I myself work on such system using PHP and I know what I'm talking about. Type safety kinda sucks, we heavily rely on PHPDoc annotations for complex types, still, in many places no guarantee that the returned thing will not be null, or the returned array is a normal array or a sparse array, or that array contains only integers, etc. It's really annoying. Arrays suck badly, why on earth I need some hybrid of a hash map and an array? And this is why it has so many issues. And why should this be true "0.1" == ".1" when 2 different strings are compared?

comment 1w ago · link · parent

Yeah, something that was true some month ago can already be false now. But still, the article makes good points. "Programming" has turned into a production line work. The industry is even more hectic, fast paced, more disengaging, less creative and less rewarding

comment 1w ago · link · parent

No, it's not even selection sort, it's inefficient insertion sort with unintuitive logic.

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

comment 1w ago · link · parent

Looks like suboptimal insertion sort.

After the first nested loop run A[1] will have the largest value.

After the second nested loop run A[1] will always be swapped with A[2] (unless they are equal, logically doesn't change anything). A[2] now contains the largest value.

After the k-th (k >= 2) nested loop run, if you pay attention, the k-th element will be inserted into the first k-1 sorted elements. When j >= i, it can no longer do anything, since A[k] will contain the largest value.

After the k-th (k >= 2) nested loop run the first k elements will be sorted relative to each other. The first nested loop is special by bringing the largest element to A[1], the consecutive ones are just inserting A[k] into the sorted first k - 1 elements from the beginning of the array.

comment 2w ago · link · parent

PHP is somewhat romanticized. It’s a bit like saying that using COBOL is right choice just because half of the U.S. banking system runs on it. When you look at PHP, the syntax leaves much to be desired. There are hardly any proper data structures, an array is just an awkward hybrid of a hash table and an array. I’ve often run into issues when working with them. Type definitions only exist for primitive fields and parameters, for everything else (deep data structures, such as array of some class instances), you have to rely on doc comments. Languages like Dart, Kotlin, and even TypeScript (with strict type checking options) are much more pleasant to work with when the code is complex and types are important. That being said, PHP has some architectural advantage, such as one thread running per request, which makes PHP sites significantly more robust by default, so it might be more tolerant to some types of bad code (for example, code that might cause hanging or excessive use of memory).

Here is my opinion about PHP: https://waspdev.com/articles/2025-06-12/my-honest-opinion-ab...

comment 2w ago · link · parent

On Ubuntu WebGPU and Vulkan was disabled, after enabling, it ran well.

comment 2w ago · link · parent

Just enabled a couple of flags (#enable-vulkan, #default-angle-vulkan), now it's good.

comment 2w ago · link · parent

For me performance is poor, it's unplayable. To run the game, I had to turn on Chrome's enable-unsafe-webgpu setting.

comment 3w ago · link · parent

Who still uses Postman? In my experience it became insanely slow and bloated. Switched to Bruno. IMO, Postman is like uTorrent, everybody heard about it and many install because of inertia.

comment 4w ago · link · parent

I guess the tendency is the problems shifting to higher levels, while for lower level or common problems things are getting more robust and better.

comment 4w ago · link · parent

I agree, people are too nostalgic about old UIs. But I think modern UIs also invent square wheels, such as invisible scrollbars, too large margins, etc. For example, Windows 7 had the best UI (maybe needed a handful of small additions for year 2026, such as ability to scroll without focus). Later versions of Windows significantly degraded user experience. Windows 11 has somewhat improved look, but it's too bloated and inefficient (that famous desktop context menu opening in 2-3 seconds, jeez).

comment 4w ago · link · parent

Architecture is still important for large systems. And there are tons of legacy systems with spaghetti code.

17.

The AI Software Crisis: software developers have been promoted into incompetence [video](youtube.com ↗)

1 points · by senfiaj · 1mo ago · discuss

comment 1mo ago · link · parent

AI is starting to successfully decompile binaries, unless the binary isn't purposefully obfuscated, I guess it's almost "open source".

19.

AI isn't just a tool and it might be dangerous(waspdev.com ↗)

1 points · by senfiaj · 1mo ago · discuss

comment 1mo ago · link · parent

I've no experience living in Asian countries but asian cultures seem to be workaholic / ambitious and obedient. At least in South Korea many children's childhoods are ruined by insane educational pressure, lack of recovery time and sleep. In Korean culture, a child's success is directly linked to the family's social status. And I can only imagine the level of suffering among those children, let alone neurodivergent ones.

Japan seems to have a similar problem, although a less extreme version.

comment 1mo ago · link · parent

>> I never had an issue with ADHD growing up in Asia. Nobody friggin cares. It's only western people making a huge deal outta nothing.

Interesting, I thought that Asian countries are the most hostile countries towards neurodivergent people.

22.

SmileyOS a whole OS for kids, written from scratch(smileytech.mk ↗)

3 points · by senfiaj · 1mo ago · discuss

comment 1mo ago · link · parent

I think since LLMs make code generation cheaper, we are left with more complicated, often more socially demanding tasks. Programming is becoming even less "leave me alone and let me write code" (on average). This can lead to burnout for many people, but this exploitative capitalism doesn't care.

comment 2mo ago · link · parent

Yes, that was my point. Amputations are quite uncommon, they usually lead to death (blood loss / infection, starvation, vulnerability to predators, etc) For relatively intelligent species they are even more avoidable. Regeneration would add very little benefit from natural selection point of view. Most body parts are durable enough for survival and reproduction.

comment 2mo ago · link · parent

Exactly, limbs are quite large portion of the body, that's why many think salamanders would have no problems with regenerating all other smaller body parts. And that's not the case.

comment 2mo ago · link · parent

Regeneration is unlikely to warrant eternal life. In the wild, most animals die before even showing serious signs of aging. Even if regeneration increased lifespan, poorly adapted individuals would still die.

comment 2mo ago · link · parent

Most of the body doesn't regenerate because there was not enough evolutionary pressure. Even with regeneration you could still easily die from some severe injury, blood loss or disease. While salamander regeneration is impressive, it has its limitations. For example, no known adult salamander can regenerate an entirely removed eye. Also if you chop a salamander, it will not regenerate like a Planarian worm, it will just die. And a fun fact, Axolotls can regrow a limb yet cannot regenerate an adult eye lens.

Also, although the article is mostly true, there are some inaccuracies:

>> Neurons and cardiac muscle cells don't reproduce after childhood

There is some evidence showing a slow cell turnover in cardiac muscle, estimated around ~1% per year in young adults, falling toward ~0.5% in older people. Most neurons don't regenerate, but there an evidence that some parts of the adult brain (such as hippocampus) still produce new neurons, although the number is very low.

Liver regeneration is not perfect either: https://www.youtube.com/watch?v=rOv7Sr3X-eo .

12345
13