Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
senfiaj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
91.
▲
by
senfiaj
5mo ago
Just out of curiosity, I looked at the HN RSS feed and they still use regular escape for titles (and some other things, except description). It means they use 2 versions of escape instead of 1. So why not just use 1?
92.
▲
by
senfiaj
5mo ago
Yeah, the numbers will eventually overflow if you play long enough, it seems doesn't end.
93.
▲
by
senfiaj
5mo ago
Sounds like a nightmare.
94.
▲
by
senfiaj
5mo ago
> Despite all the critiquing I've done in this article, I still think the amount of hate PHP gets is undeserved. As a person who also codes in PHP at work, I still dislike the language syntax part. JS/TS also has terrible parts
95.
▲
Printf Is a Secret Virtual Machine – and a Giant Security Hole [video]
(youtube.com)
2 points
by
senfiaj
5mo ago
|
0 comments
96.
▲
by
senfiaj
5mo ago
> “Part of the mystery is, we don’t know what makes a human mathematician good at math,” Litt says, adding that it is unclear whether humans have some “secret sauce” that makes them uniquely creative. My theory is that AI neural network
97.
▲
by
senfiaj
5mo ago
> There are people who navigate the web with JavaScript turned off, so those experiments do have practical applications. This is practical (and necessary) for relatively basic stuff, such as text content, navigation, basic form / in
98.
▲
by
senfiaj
5mo ago
> Maybe its intentional badness kind of makes it art? I guess it's the whole point of such type of blog posts. Similarly, some people write complicated interactive web pages without using JS, like this https://benjaminast
99.
▲
by
senfiaj
5mo ago
Maybe. IMHO there is also a microbiome hype train in the recent years. Most of these microbiome studies aren't considering a lot confounding factors. Here is a paper: https://www.cell.com/cell/fulltext/S0092-8
100.
▲
by
senfiaj
5mo ago
I would still be cautious with such findings. Many autistic people are picky eaters, also some of them have issues with peristalsis. This might affect the microbiome as well. While it's plausible that it might help a subset of people,
101.
▲
by
senfiaj
5mo ago
I guess XP (x64) could run like this on modern PCs.
102.
▲
by
senfiaj
5mo ago
IMHO, for servers IO (FS/DB, network, etc) is usually a greater bottleneck. Microoptimizations make sense only for CPU bound problems.
103.
▲
by
senfiaj
5mo ago
Yes, but doesn't run locally.
104.
▲
by
senfiaj
6mo ago
Maybe UWP and similar stuff isn't that popular, but about WSL?
105.
▲
by
senfiaj
6mo ago
In ideal world, but it's too late. The codebase is old. It's very difficult to backport/reimplement/integrate features (tons of APIs, kernel features, etc) that new software relies on. Also, because of compatibility you
106.
▲
by
senfiaj
6mo ago
IMHO the last truly brilliant and consistent version was 7. Ideally MS should do such improvements on Windows 7. Sadly, Windows developers also have to deal with the mess created during Windows 8/8.1/10/11.
107.
▲
by
senfiaj
6mo ago
> The complexity of binary search in terms of "search" (comparison) operations is exactly log_2(n)+1, not just O(n) > So not exactly "n" as in O(n). For large enough inputs the algorithm with better Big O complexit
108.
▲
by
senfiaj
6mo ago
For me it's slightly misleading because it's almost like saying "I wrote a faster quicksort implementation, so it beats quicksort!". In this case the binary search fundamental idea of "divide and conquer" is st
109.
▲
by
senfiaj
6mo ago
I guess it matters if you have to do lookup in a tight loop. If you do this occasionally, I think it's not worth it, especially for complex objects with custom comparators. The algorithm is still O(log(n)) just a more advanced "di
110.
▲
by
senfiaj
6mo ago
The title is slightly misleading, I mean yes, naive binary search might have larger constant but the algorithm is still O(log(n)). This is still some "divide and conquer" style algorithm just with bunch of CPU specific optimizatio
111.
▲
by
senfiaj
6mo ago
> Python already had threads But for a long time (I think even till today despite that there is as an optional free-threaded build) CPython used Global Interpreter Lock (GIL) which paradoxically makes the programs run slower when more th
112.
▲
Programming used to be more fun [video]
(youtube.com)
1 points
by
senfiaj
6mo ago
|
0 comments
113.
▲
by
senfiaj
6mo ago
How efficient is AI at reducing RAM consuption?
114.
▲
by
senfiaj
6mo ago
I think there are some standard header bytes, so the number of combinations of the interesting parts might be much smaller. Also I said less than 7 bytes, so it's actually 281474976710656 . If header bytes reduce 1 or 2 bytes, it will
115.
▲
by
senfiaj
6mo ago
I wonder if this might motivate to write more memory efficient software. I mean we have so much memory, but even some trivial programs eat hundreds of megabytes of ram.
116.
▲
by
senfiaj
6mo ago
This one as well https://frankforce.com/city-in-a-bottle-a-256-byte-raycastin...
117.
▲
by
senfiaj
6mo ago
I guess anything that is less than 7 bytes can be brute forced.
118.
▲
by
senfiaj
6mo ago
Probably because JS has larger runtime, in JS you don't have to write about most of the low level code. So it's easier to squeeze code in JS than in ASM or machine code.
119.
▲
by
senfiaj
6mo ago
Again, there is no simple answer. It depends on situations and resources. Some systems might rely on multiple services. If those services are independent, in such system this might cause more frequent failures which might still result in se
120.
▲
by
senfiaj
6mo ago
> It’s a single point of failure for the internet. Every Cloudflare outage ends up in the news. I hear this argument all the time, but I think it's more complicated. Firstly, if people used more diverse / smaller services the d
More ›