Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
senfiaj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
211.
▲
by
senfiaj
10mo ago
This might offend some people but even Linus Torvalds thinks that the ABI compatibility is not good enough in Linux distros, and this is one of the main reasons Linux is not popular on the desktop. https://www.youtube.com/wa
212.
▲
by
senfiaj
10mo ago
IMHO this also makes custom tags no longer very useful beyond custom HTML components (JS is also required for that). The standard tags provide good semantics, SEO and accessibility out of the box.
213.
▲
by
senfiaj
10mo ago
Yes, I know about them. But I don't think they are very useful outside custom HTML components (JS required). I'd rather use the standard semantic elements as much as possible since they provide good SEO / accessibility out of
214.
▲
by
senfiaj
10mo ago
There is N-th child selector with filter, for example you can write :nth-child(3 of .red) https://waspdev.com/articles/2025-06-29/css-features-web-dev...
215.
▲
by
senfiaj
10mo ago
Yes, HTML & CSS alone won't replace JS. Of course, for complicated form validation HTML is not sufficient. But IMHO it's very important to provide basic functionality in HTML / CSS as much as possible / reasonable. M
216.
▲
by
senfiaj
10mo ago
Maybe. But I remember one game developer told that they face even a more challenging problem, which is the synchronization between players in multiplayer real-time games. Just imagine different users having significantly different network l
217.
▲
by
senfiaj
10mo ago
When I visit such pages, my impression is that someone want to break my browser.
218.
▲
by
senfiaj
10mo ago
In this case yes, but on the other hand Red Hat won't publish the RHEL code unless you have the binaries. The GPLv2 license requires you to provide the source code only if you provide the compiled binaries. In theory Meta can apply its
219.
▲
by
senfiaj
10mo ago
> I don't perceive that as an ordering issue. "Pure mathematics" has multiple division definitions, what we see here is the definition you use in class 1: integer division. The issue here is not associativity, it is that t
220.
▲
Problem: Why 32-Bit Systems Will Fail Like Y2K [video]
(youtube.com)
2 points
by
senfiaj
10mo ago
|
0 comments
221.
▲
by
senfiaj
10mo ago
> That's only the problem of floats, with ints this issue doesn't exist. With ints the results can be dramatically different (often even worse than floats) even though in pure mathematics the order doesn't matter: 1 *
222.
▲
by
senfiaj
10mo ago
LOL, that was good.
223.
▲
by
senfiaj
11mo ago
We are definitely better at survival and safety. In modern societies we are less likely to starve, die in infancy / childhood, have longer life expectancy, etc. But when we compare by other metrics, such as mental and physical health,
224.
▲
by
senfiaj
11mo ago
I think what definitely has improved, is the survival. We are less likely to starve, die in infancy / childhood, have longer life expectancy, etc. In the past there were also stresses. But I think the stresses were different then. They
225.
▲
by
senfiaj
11mo ago
I also tried this bool is_divisible_by_15(int x) { return x % 3 == 0 && x % 5 == 0; } bool is_divisible_by_15_optimal(int x) { return x % 15 == 0; } is_divisible_by_15 still has a branch, while is_divisible
226.
▲
by
senfiaj
11mo ago
Yeah, this one as well: bool is_divisible_by_6(int x) { return x % 2 == 0 && x % 3 == 0; } bool is_divisible_by_6_optimal(int x) { return x % 6 == 0; } Mathematically x % 2 == 0 && x % 3 == 0 is exa
227.
▲
by
senfiaj
11mo ago
The compiler didn't recognize that x % 2 == 0 && x % 3 == 0 is exactly the same as x % 6 == 0 for all C/C++ int values. In theory a compiler could detect that and generate identical code for both functions, but it isn'
228.
▲
by
senfiaj
11mo ago
So you claim that the compiler "knows about this but doesn't optimize because of some safety measures"? As far as I remember, compilers don't optimize math expressions / brackets, probably because the order of opera
229.
▲
by
senfiaj
11mo ago
I wonder if compilers do multiple passes on the intermediate code in order to optimize / simplify it. For example, during each pass the optimizer searches some known harcoded patterns and replaces them with something else and repeats u
230.
▲
by
senfiaj
11mo ago
Kids can / often use other family members' smartphones / tablets (I assume it's the majority of cases). How can the law prevent this if parents do nothing about this?
231.
▲
by
senfiaj
11mo ago
Practically I haven't seen. Either they were sloppy or there was a lot of legacy stuff (especially in big projects). If by perfect you mean 100% bug free and perfectly readable/maintainable, I don't think they exist. Even NAS
232.
▲
by
senfiaj
11mo ago
You are probably talking about this: https://stitcher.io/blog/generics-in-php-3 . If I remember correctly, the author claims it will either cause runtime overhead or extreme memory overhead. The best solution is to int
233.
▲
by
senfiaj
11mo ago
It seems that pipe operator was introduced largely because PHP arrays and strings don't have "methods". You can't write something in "OOP" style: "some_string"->str_replace("some", "
234.
▲
by
senfiaj
11mo ago
Yeah, the core ergonomics is significantly lagging behind most other backend languages despite improvements in some areas. I even wrote an article https://waspdev.com/articles/2025-06-12/my-honest-opinion-ab... .
235.
▲
by
senfiaj
11mo ago
Haven't used Gemini much, but when I used, it often refused to do certain things that ChatGPT did happily. Probably because it has many things heavily censored. Obviously, a huge company like Google is under much heavier regulations th
236.
▲
by
senfiaj
11mo ago
Exactly.
237.
▲
by
senfiaj
11mo ago
In theory even a single company service could be distributed, so only a fraction of websites would be affected, thus it's not a necessity to be a single point of failure. So I still don't like this argument "you see what happ
238.
▲
by
senfiaj
11mo ago
This is worse than than the Amazon outage. I couldn't even login to Cloudflare.
239.
▲
by
senfiaj
11mo ago
IMHO XP and 7 were the pinnacles.
240.
▲
by
senfiaj
11mo ago
yeah, eventually figured out how to do in 5 moves
More ›