Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ninkendo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
361.
▲
by
ninkendo
1y ago
Not GP, but I take it to mean I can’t do: #define private public #import <iostream> // muahaha Or any such nonsense. Nothing I define with the preprocessor before importing something should effect how that somet
362.
▲
by
ninkendo
1y ago
C++ can never change the way move vs copy semantics work, which is precisely the opposite of Rust’s. It’s the basis for rust’s ownership model, and it’s no small difference. Without this I don’t see how C++ can ever get a workable ownership
363.
▲
by
ninkendo
1y ago
Is there a language that has proper exclusively checked exceptions? That is, not just syntax sugar around checking an error value (à la Swift), but actual “the processor signals an exception” semantics, but all exceptions are still enforc
364.
▲
by
ninkendo
1y ago
They have the same hardware in them as a personal computer, and essentially always have. (The original Nintendo had the same CPU as an Apple II.) The difference is only how they were marketed, and the artificial limitations on what software
365.
▲
by
ninkendo
1y ago
The example I always go to is a Nintendo or PlayStation, etc. They’re clearly just computers, they’re “hardware you own”, but you’ve never been able to run whatever software you want on them. But it’s been like this since the 1970’s and the
366.
▲
by
ninkendo
1y ago
Except the java/python style with unchecked exceptions means an exception can happen at any time, there's no way to know in advance. This is what Rust is trying to avoid with the errors-as-values approach. It has its drawbacks, ye
367.
▲
by
ninkendo
1y ago
You only see them if they’re high up enough to be in sunlight. (This is true no matter what: satellites don’t emit their own significant light, they’re reflecting the sun’s.) The later it gets, the higher the satellite would have to be to s
368.
▲
by
ninkendo
1y ago
You only see satellites when the sun has recently set, when a few hundred kilometers up is still in sunlight. The rest of the night you don’t see satellites at all. It’s not great that there are satellites visible for an hour or so after su
369.
▲
by
ninkendo
1y ago
The file manager wouldn’t use the “string” type to hold file names, if it’s written properly. Languages like Rust have things like OsString as separate from String for just this reason. If you have a type that says “my contents are valid UT
370.
▲
by
ninkendo
1y ago
I wonder if it could work somewhat the way MIME multiparty attachment boundaries work in email: pick a random string of characters (unique for each prompt) and say “everything from here to the time you see <random_string> is not the u
371.
▲
by
ninkendo
1y ago
> I'm curious whether people who daily drive mac or linux encounter these sorts of system configuration gremlins. IMO these issues occur any time you have third party software that does the job the operating system should be doing i
372.
▲
by
ninkendo
1y ago
So? All the letters in this string are “just text”: "\u0000\u0089\uDEAD\uD9BF\uDFFF" JSON itself allows putting sequences of escape characters in the string that don’t unescape to valid Unicode. That’s fine, because the s
373.
▲
by
ninkendo
1y ago
It seems like most of these are handled by just rejecting invalid UTF-8 byte sequences (ideally, erroring out altogether) when interpreting a string as UTF-8. I mean, unpaired surrogates, or any surrogate for that matter, is already illegal
374.
▲
by
ninkendo
1y ago
Command+Up
375.
▲
by
ninkendo
1y ago
> The fundamental purpose of a buyback is not to raise the stock price. Make up whatever nonsense you want about the “fundamental purpose” of something, it doesn’t matter. The purpose of a system is what it does: https://en.m.
376.
▲
by
ninkendo
1y ago
> people just statically linked most of their libraries Correction: People statically linked in other swift libraries. Particularly Swift's stdlib, which finally became usable dynamically circa Swift 5.5. The libraries provided by
377.
▲
by
ninkendo
1y ago
> Swift has different tradeoffs because it mostly doesn't target foundational software, and because it specifically targets a niche that prioritizes code size. IMO it goes way beyond code size. Swift needs a stable ABI so that when
378.
▲
by
ninkendo
1y ago
> While Swift has some support for stack allocation, most types are heap-allocated, and I think that reduces the extent to which the rest of the language has to be warped to accommodate the stable ABI. Stack vs heap in swift is simple: s
379.
▲
by
ninkendo
1y ago
Who’s forcing rust on you exactly?
380.
▲
by
ninkendo
1y ago
It wouldn’t, there would have to be dynamic dispatch. Swift provides some prior art for “monomorphization in the same binary, dynamic dispatch across linker boundaries” as a general approach, and it works pretty well.
381.
▲
by
ninkendo
1y ago
Talking about foundational software but no mention of the biggest missing part of rust IMO: an ABI. If you want to write an OS in rust and provide rich services for applications to use, you need to offer libraries they can call without need
382.
▲
by
ninkendo
1y ago
https://youtube.com/watch?v=AK3gB7DpaM0
383.
▲
by
ninkendo
1y ago
Nah, it’d take all night because it would be using the GPU for a fraction of the time, splitting the time with other customer’s tokens, and letting higher priority workloads preempt it. If you buy enough GPUs to do 1000 customers’ requests
384.
▲
by
ninkendo
1y ago
The 10 trillion FPS number comes from the fact that they’re taking advantage of a strobing effect in the light they’re filming, such that if the strobe is happening at (for example) 1000Hz, they can get a frame at time T, then a frame at ti
385.
▲
by
ninkendo
1y ago
> It has been so long since I've had to !g something that I don't even remember the last time. I use !g once a week or so in Kagi, and 100% of the time, google’s results are worse. It’s usually something bogus I’m searching for
386.
▲
by
ninkendo
1y ago
The camel book was “programming Perl” and was more geared towards existing programmers IIRC… there was also the llama book, “learning Perl”, which was maybe what GP was referring to? Learning Perl (the llama book) was my first programming b
387.
▲
by
ninkendo
1y ago
> people talking right past each other because they're not actually talking about the same thing. Just like every HN thread about vibe coding!
388.
▲
by
ninkendo
1y ago
> Whichever part makes Safari completely fail at properly rendering Jira What evidence do you have that this is Safari’s fault and not Jira’s fault? Give me a web browser and I will write code that will fail in it and work in other brows
389.
▲
by
ninkendo
1y ago
Let’s compare my quality of life to a king 500 years ago. I have air conditioning. I have running water and a toilet. I have antibiotics. And all sorts of other medicine that actually works. When I have to get an operation done I can go und
390.
▲
by
ninkendo
1y ago
There was also a minor upgrade to Windows 3.1 called Windows 3.11, which further reinforces your point.
More ›