Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jforberg
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
jforberg
4y ago
Maybe the store was recently opened? This project is from last year, I just finished the write-up now.
2.
▲
by
jforberg
4y ago
NUC is a single board computer :) If you think the price is high, I would point out that the SSD I used cost €200 new when I purchased it back in mid 2022. A used 120 GB SSD by contrast can be had for maybe €10 which alone would explain the
3.
▲
by
jforberg
4y ago
I probably would have if it had been available at the time. This project was actually done last spring/summer.
4.
▲
by
jforberg
4y ago
If this was going to be used for some "big and serious" application, maybe different choices would have been made. Hopefully it was clear from the post that my goals here were the exact opposite! In my own anecdotal experience of
5.
▲
by
jforberg
4y ago
Yes, I considered that and agree that it would have been nicer! I didn't pursue it for this project because my jury-rigged SD boot was working fine and I wanted to move on to other parts of the system.
6.
▲
Building an ARM64 home server the hard way
(jforberg.se)
258 points
by
jforberg
4y ago
|
118 comments
7.
▲
by
jforberg
7y ago
> challenges rm -rf /var/tracking_data/jforberg
8.
▲
by
jforberg
7y ago
It rarely makes sense. Pointer to const is a contact between caller and callee. A signature like char <star>strdup(const char <star>) says "I take a pointer to memory that I promise not to modify, and you get a pointer to m
9.
▲
by
jforberg
7y ago
> Our observations are consistent with Einstein’s general theory of relativity.
10.
▲
by
jforberg
7y ago
I mostly deal with openembedded at work and I have few positive things to say about it. I'm sure Nix is much faster and nicer. Frankly it's hard to imagine that the opposite could be true. But your example looks nothing like Json.
11.
▲
by
jforberg
7y ago
That looks completely inscrutable to me. Like a sequence of magic words. I don't see the connection with JSON at all.
12.
▲
by
jforberg
7y ago
If you'd like to hear the case against OOP in modern programming, the Rich Hickey talks are a pretty good place to start: * The value of values * Simple made easy * Are we there yet? I'm on mobile, but you'll find these easil
13.
▲
by
jforberg
7y ago
> "Virtually all Server OSs get hacked/have had security bugs. Nobody should use them to host or store anything." Your comparison is flawed. Most server installations are not broken into during their lifetime. But it only
14.
▲
by
jforberg
7y ago
Are you implying that DRM is a solution to piracy? If anything, DRM is a big driver for piracy, and its success rate is near zero. Virtually all major DRM-"protected" works are available on thepiratebay shortly after release. Som
15.
▲
by
jforberg
7y ago
Gotta get rid of all those nasty pure functions. Can't have any of that cruft in muh object oriented language.
16.
▲
by
jforberg
7y ago
This is true, but if anything it reinforces my point that continuing past a signal is the exception, not the rule. In the general case services are not at liberty to just exit(), they need to perform some kind of active cleanup action befor
17.
▲
by
jforberg
7y ago
This discussion seems to ignore the fact that being blocked in a "long-running system call" is the normal state for many (most?) Unix services. If you look at `ps ax` on your system, you'll likely see about a hundred processe
18.
▲
by
jforberg
7y ago
Spotify did it right; they managed to put together a service that is actually better than piracy in the ways that matter to a typical consumer. The movie and TV industry have instead put great effort into building services that are signif
19.
▲
by
jforberg
7y ago
No, your point is still extremely muddled. Cuda and Wolfram are both compilers/runtimes, they fill exactly the same role of translating high-level code into something that can run on hardware.
20.
▲
by
jforberg
7y ago
What if we could have examples on our homepage that actually made the product seem useful in some way...
21.
▲
by
jforberg
7y ago
Guess what, all you need to prove in order to get a new "valid" cert is that you control the server. And, if you control the server then you already have access to the original certificates, so you probably don't even need ne
22.
▲
by
jforberg
7y ago
Indeed. What I would really like is a way to toggle it on case-by-case basis. With -fwrapv you have to convince the code owner to toggle it globally, which can complicate things unless you are the owner.
23.
▲
by
jforberg
7y ago
That sounds reasonable. I agree that overflow is often a bug (and in GCC can use -ftrapv to enforce that view). But overflow is also frequently what you want in algorithms that deal with counters or differences of sums. Maybe point out tha
24.
▲
by
jforberg
7y ago
Nice! That's something I often wish GCC had.
25.
▲
by
jforberg
7y ago
The section about overflow put me off. Undefined semantics is one of my least favourite parts of C. It seems from the article that Zig is leaving not only signed overflow but also unsigned overflow as undefined (or runtime crash in "sa
26.
▲
by
jforberg
7y ago
In a system with virtual memory, you would typically ensure that address 0 (i.e. the lowest page) is unmapped. This causes an error condition if the address is ever read or written, which is useful because 0 is used as a placeholder value (
27.
▲
by
jforberg
7y ago
As a Swede, I wish I could say that Assange could come here and face justice without fear of being extradited to the US. But I'm not sure if that's true.
28.
▲
by
jforberg
8y ago
> Plays and movies aren't just people spewing lines non-stop. Screenplays contain more than just lines.
29.
▲
by
jforberg
8y ago
That might be a valid argument for making -ftrapv the standard. It's certainly not an argument for keeping it undefined. Most -f options tweak the standard in some way and defining overflow would not make -ftrapv suddenly go away.
30.
▲
by
jforberg
8y ago
You have several options, at least if you are willing to stick with GCC/Clang. Passing -fwrapv will give you well-defined (wrapping) signed overflow, which is often the native machine behaviour anyway. If you are interested in catching
More ›