Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xscott
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
301.
▲
by
xscott
3y ago
> Circles and the relationship between their circumference and diameter existed before minds existed There really aren't any circles in the physical universe. There aren't any ellipses either. I'm not sure about lines.
302.
▲
by
xscott
3y ago
Are these the bonds where you can only buy $10k to $15k per year? If so, that doesn't solve the problem for anyone who has the problem.
303.
▲
by
xscott
3y ago
Thank you!
304.
▲
by
xscott
3y ago
What is the Proton mail affair? Recently I was thinking about creating an account with them, so I'm interested.
305.
▲
by
xscott
3y ago
> I just assume they have the goal of killing the language Sadly, that's my conclusion too. I really wish there was a good "portable assembly language", and maybe that'll be something that targets WASM.
306.
▲
by
xscott
3y ago
Yes, I can have functions/methods that do math differently from the default. I could just as easily say that's C's way and mix and match those: int64_t x = add_i64_with_abort_on_debug_and_wrap_on_release(y, z); uin
307.
▲
by
xscott
3y ago
Don't kid yourself about "superior" - only Wayland developers and fanboys care about the simplicity or cleanliness of Wayland's implementation. Wayland's killer feature for an app developer is "vertical sync&q
308.
▲
by
xscott
3y ago
I agree with your point, but note that Rust does have an ugly way to do it: https://doc.rust-lang.org/std/primitive.i64.html#method.wrap... I'd rather just put `-fwrapv` on the command line that clutter my code wi
309.
▲
by
xscott
3y ago
Yes, so fix the C standard... But the compiler guys won't let the anyone fix it, because optimizations. So either A) the optimizations using UB are important, and therefore C is/will-always-be faster than Rust which doesn't
310.
▲
by
xscott
3y ago
No, what's astonishing is that now that every CPU worth using has 2's complement for signed integers, the compiler writers are still embracing undefined behavior in the name of piddly optimizations. I was tempted to specify "
311.
▲
by
xscott
3y ago
This is more like Python 2 vs Python 3... Wayland will win because "new is better" to the mob. After it takes over, it'll be worse performance for 4-5 major releases, and you'll never get back all the features. All the
312.
▲
by
xscott
3y ago
There are plenty of examples throughout history where an inferior product won out over the alternatives, usually because of business or politics unrelated to merit.
313.
▲
by
xscott
3y ago
It seems to me there's some uncharted territory between "massively parallel" (GPU) and "unpredictable branching" (CPU), and the corpse of Itanium is laying there as a warning to anyone who would go exploring in that
314.
▲
by
xscott
3y ago
Lol, when C does it, it's "unsafe". When Rust does it, it's "modular"!
315.
▲
by
xscott
3y ago
Any of those instructions could be wrapped in a C function or intrinsic if they were valuable enough
316.
▲
by
xscott
3y ago
I understand your point: Modern hardware tries REALLY hard to pretend it is a simple set of instructions executing one after another. For all the on the fly clever caching, micro-op translation, branch prediction, speculative execution, r
317.
▲
by
xscott
3y ago
I would rather die than lose all my retirement savings and be forced to find a job in my 60s or 70s. No hyperbole at all.
318.
▲
by
xscott
3y ago
I would pay thousands of dollars for this, literally. I'm currently paying many thousands of dollars for fairly mediocre real life human teachers who barely try to understand my question before they repeat what they already said. Chat
319.
▲
by
xscott
3y ago
>> "Let's not call out India and China" > You do realize that the US is doing way worse in Co2/capita/year > right now than both of those (~15tons compared to ~9 and ~2, respectively)? If you call out &
320.
▲
by
xscott
3y ago
> Renting should be illegal Are you going to make hotels illegal too?
321.
▲
by
xscott
3y ago
What does a try expression like this do? Returns null/undefined on a throw? I suspect you could do something like: const c = attempt(() => ... ); where attempt invokes the lambda, catches any exceptions, and does what you
322.
▲
by
xscott
3y ago
> Americans need to be deprogrammed out of this belief that owning a home is supposed to yield a return I think you have the cause and effect reversed. They believe a home yields a return because it does. They aren't delusional or
323.
▲
by
xscott
3y ago
I see. Please don't reply to me again in the future, and I won't reply to you. You are not the kind of person I want to talk to.
324.
▲
by
xscott
3y ago
Things don't have to be just STOP!!! or just GO!!! Hindsight is 20/20, but a little more moderation along the way might have been a good thing. And yeah, recovering from a recession is good, but the crazy positive stock market gr
325.
▲
by
xscott
3y ago
Calling bonds a bad gamble is questionable. The Fed rate goes up, the price of bonds at the old rate goes down, a minor bank run forces them to sell the bonds at a loss to cover the withdrawals. Were they supposed to invest in stocks, opti
326.
▲
by
xscott
3y ago
> But it was also irresponsible for the Fed to raise rates so quickly that it put massive banks in danger of insolvency. It was also irresponsible of them to have the rates near zero in the first place. It's one huge whiplash, and
327.
▲
by
xscott
3y ago
I'd give them more credit for digging us out of the hole, but I think having the Fed rate near 0% for so long created most of problems in the first place. That started well before the current or previous administration. (I know we
328.
▲
by
xscott
3y ago
> I don't think that C actually forbids this code: *(int*)0x12345678 If not, give it time. It was only a few years ago when you were allowed to use a union for that kind of thing. I really believe they'll eventually
329.
▲
by
xscott
3y ago
> Strict aliasing is one of the few tools we have to tell the compiler that aliasing will not occur. I can see the argument, but there's a much better way to indicate what you want with your example: void f(int16_t* a, int32_
330.
▲
by
xscott
3y ago
The original author was talking about hardware not behaving like linear memory, and other than caches and maybe some thread local tricks, I'm not sure what he meant. However, it seems pretty clear that CPUs do try really hard to make:
More ›