Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yalue
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
yalue
5y ago
Better yet, another commenter [1] found that you can clobber the number of section header entries, as long as the size of a section header entry is 0. So, now the smallest size is two bytes shorter: 112 bytes for a full "Hello, world!
32.
▲
by
yalue
5y ago
Interesting! So, it looks like you can clobber the number of section header entries, because, with this alignment, the _size_ of a section header is 0. Cool!
33.
▲
by
yalue
5y ago
Odd. For some reason, my version of nasm didn't do that, and instead opted for the lengthier 10-byte instruction shown in the article's objdump output. Maybe it's just an older version of nasm.
34.
▲
Tiny ELF Files for Linux: Revisited in 2021
(nathanotterness.com)
6 points
by
yalue
5y ago
|
0 comments
35.
▲
by
yalue
6y ago
Eh, mabe they don't quite have the same feel they did when they had more regular, long episodes, but they still made the "Missing Hit" episode after being bought, which was excellent and widely popular. The recent-ish qanon e
36.
▲
by
yalue
7y ago
If you have a system with ROCm installed, support for compiling PyTorch on AMD has already been upstreamed. The PyTorch source code ships with a script for building a version using HIP (basically the script converts PyTorch's CUDA code
37.
▲
by
yalue
7y ago
I'd say it's likely because NVIDA's CUDA compiler produces code for NVIDIA GPUs, and AMD would have a lot of (questionably legal) reverse engineering ahead of them in order to support the same code on their own GPUs. If you&#
38.
▲
by
yalue
7y ago
The specific thing, IMO, is the fact that the interface itself is specified in the Go standard library along with plenty of utilities for working with it. Java does have similar things, but, as far as I know, they're limited to the UI
39.
▲
by
yalue
7y ago
The "image" interface is one of my favorite parts of Go's standard library, and I think it's one of the best showcases of Go's "interface" feature. Want to save something as an image? Just implement three
40.
▲
by
yalue
7y ago
This is true, but note that the problem in general doesn't specify that the ints are only 16-bit. It's already well established that "linear time" sorting algorithms exist (e.g. radix sort) for numbers that are all a bou
41.
▲
by
yalue
7y ago
I agree, and wrote a lengthy comment below about why this "algorithm" would actually be considered exponential time using the accepted definition of time complexity in theoretical CS.
42.
▲
by
yalue
7y ago
I was going to comment on this already, but even that's way too "fast" based on the accepted notion of time complexity in theoretical CS... abacus sort should technically be an exponential-time algorithm! (And yes, I disagre
43.
▲
by
yalue
8y ago
(Note that I'm not trying to straw-man you here, because I know you're only talking about the specific instance of this panel, which I've already agree was a farce to begin with. However,...) I still think it's harmful
44.
▲
by
yalue
8y ago
Sure, but if they're not debating that topic, why should it be an issue? Not that I think such a person belongs on the panel, but the reason they're not invited should be, as you said, that they have few or no qualifications to di
45.
▲
by
yalue
8y ago
You're right about all of that, but shouldn't a meaningful board at least make some show of trying to include diverse opinions? The key word of course is "meaningful", and I think you're right on the money that Goo
46.
▲
by
yalue
8y ago
It actually did get significantly better in Go 1.8, in early 2017. See https://golang.org/doc/go1.8 ("The overhead of deferred function calls has been reduced by about half."). However, I think this change w
47.
▲
by
yalue
8y ago
I'm pretty sure youtube-dl just invokes ffmpeg in the background to extract the audio for you; all it means is that you don't need to remember the exact ffmpeg commands.
48.
▲
by
yalue
8y ago
Having set up both, Gogs is much easier to set up than gitlab, and I don't know how the install instructions are similar. Gogs' are, from https://gogs.io/docs/installation/install_from_binary , essenti
49.
▲
by
yalue
8y ago
Probably the slightly better term here would be "weasel words". (Or better yet, "bullshit")
50.
▲
by
yalue
8y ago
Looks like it, yes. Just refreshed the front page in the past ~30 seconds. This got dozens of new comments in that time frame, but the link is no longer present at all.
51.
▲
by
yalue
9y ago
It isn't common, and the code example wouldn't even compile because "err" is assigned but never used. I imagine that they included the "err" variables to show that they're available, but didn't want t
52.
▲
by
yalue
9y ago
Sometimes, yes, you'll need to write your own syscall wrappers. For example, there isn't a gettid (get thread ID) function in Glibc, but you can work around this by calling the syscall directly. The other case where this is useful
53.
▲
by
yalue
9y ago
That's the thing, though. Extremist videos are already against the rules, can be reported by users, and removed if the reports have merit. Whether it's exaggerated "by the right-wing press" or not (I find it concerning d
54.
▲
by
yalue
9y ago
I would say that this is the only use for this particular feature, because actual calls to violence and extremist messages are already against the rules on youtube and can simply be reported by users. Like you, I also find the Alex Jone
55.
▲
Show HN: Rendering the “Buddhabrot” fractal using CUDA
(github.com)
1 points
by
yalue
9y ago
|
0 comments
56.
▲
by
yalue
9y ago
Have you considered adding the ability to use dithering on this site? I made a similar tool a while back (to convert an image to an arbitrary color palette), and one of the main things I learned was how powerful dithering can be. For exampl
57.
▲
by
yalue
9y ago
I noticed that, too. Unfortunately it seems like it's going to take several more years to shake off the aggressive anti-fat lobbying and paid "research" by the sugar industry. Also, I'd imagine McDonalds would be much le
58.
▲
by
yalue
9y ago
On the website, you mentioned that you run stock Raspbian with a real-time patch on the devices. I'm mostly curious about the real-time extensions you're using. Did you write the patch in-house? What real-time capabilities are sup
59.
▲
by
yalue
10y ago
I agree that this sounds more like "volatile", but it still makes sense that programmers should be able to rely on atomic operations for inter-thread communication. According to the comments on the bug report, this behavior is ins
60.
▲
by
yalue
10y ago
Variable writes that look like they have no side effects may actually be intended for another thread to read (but hopefully most reasonable programs don't do this without some good explanation). However, many concurrency models say tha
More ›