Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Ygg2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
451.
▲
by
Ygg2
1y ago
> The compiler isn't ignoring your new types True, I didn't meant to imply you can just ignore types; I meant to say that the equivalent operations on a naked vs wrapped value return equivalent assembly. It's one of those
452.
▲
by
Ygg2
1y ago
Problem is there is a huge number of pitfalls when measuring performance. You have to do it correct or you might be just measuring: when your system is pulling updates, how big is your username, the performance of the least critical thing i
453.
▲
by
Ygg2
1y ago
Isn't that just same old "skill issue", "No True C(++) programmer" refrain? If people could keep entirety of J.2 appendix in their mind at all time we would not have these issues. And if they had entirety of J appen
454.
▲
by
Ygg2
1y ago
Can't run Godbolt on my phone for some reason, but in this case I expect compiler to ignore wrapper types and just pass Vec around. If you have Vec<i32> // newtype struct struct Data{ data: Vec<i32>
455.
▲
by
Ygg2
1y ago
> electronics engineers routinely design systems with millions of components, intricate timing relationships, and complex interactions between subsystems. Yet they don’t rely on anything analogous to our type checkers. Disclaimer: not ha
456.
▲
by
Ygg2
1y ago
> That's actually the same as Java, with its "checked exceptions" (aka listed in function signatures), and the RunTimeException hierachy which don't have to be listed. You are correct, but the logic is inverted. Most
457.
▲
by
Ygg2
1y ago
I thought the idea is to prevent Russian hackers from introducing exploits. Not prevent Russian hackers from fixing exploits.
458.
▲
by
Ygg2
1y ago
It's not a coincidence. Cancer means crab, because the earliest known physicians saw tumors and thought they looked like crabs.
459.
▲
by
Ygg2
1y ago
> You're stating this as if class tensions preclude the existence or effectiveness of foreign information operations. Do you actually believe that to be true? I'm saying, what could Russians possibly do that Americans aren'
460.
▲
by
Ygg2
1y ago
> Do you honestly believe "a free market" would only produce two alternatives No. A free market will eventually produce a single monopolistic winner. If you have ability to buy your competition, and most of people consider it a
461.
▲
by
Ygg2
1y ago
> What’s the counterfactual? The division in American weren't created by a foreign entity. The class war simply never ended. If you're rich you want to keep less rich off your lawn. So you let the guys with torches fight the gu
462.
▲
by
Ygg2
1y ago
I mean it doesn't seem to be a really well designed or effective influence campaign. If sowing division is the goal of KGB, they don't need to do anything. Americans are way better and have been way longer in that game. Honestly j
463.
▲
by
Ygg2
1y ago
That just seems like an influence campaign. I expect every country to try to meddle in each other's politics, for their own gain. Also Tim Pool? Rubin? Those are small fries. Putin couldn't afford Joe Rogan or Ben Shapiro?
464.
▲
by
Ygg2
1y ago
Vendor or fork?
465.
▲
by
Ygg2
1y ago
> Your last point is of course not relevant when you're considering which language to pick for your new enterprise application. Sure I might be writing a new app, but what if some dependency is Scala 2.12-? As for your latter point.
466.
▲
by
Ygg2
1y ago
That's not as bad as Apple's. https://archive.is/20240401152946/https://www.wired.com/2010...
467.
▲
by
Ygg2
1y ago
> Because your English reading comprehension missed the fact I was talking about the nullability improvements. Tank you :P Never claimed to be native English speaker. Were there any meaningful changes in nullability semantics between C#
468.
▲
by
Ygg2
1y ago
Kibwen is saying that there was an idea to have `fn drop(&mut x)` from Drop trait become `fn drop_own(&own x)`. Then `&own` would do mutation and drop the owner of the reference. A regular &mut reference shouldn't do th
469.
▲
by
Ygg2
1y ago
Then why did you tell me to update my knowledge of C#? It wasn't wrong for the discussion at hand. Also, you failed to mention that the generics ADT in Java is still abysmal (it's relevant, because the topic started as boosting pr
470.
▲
by
Ygg2
1y ago
> If something breaks it's 100% their fault that they need to make right "You're holding it wrong", Steve Jobs to a customer that covered their invisible antenna.
471.
▲
by
Ygg2
1y ago
> I advise you to update your language knowledge to Java 24, C# 13, Scala 3. I'll update it when I need it :P I'm pretty sure I'll never need Scala 3. > Into the Java ADTs that you say Java doesn't have for sure T
472.
▲
by
Ygg2
1y ago
> On top of that, Scala provides several widely used ... With Scala is less what you miss, and more what you have. - Custom operators. Those are great for DSLs and rendering your code to look like utter gibberish, and confuse IDEs. - SBT
473.
▲
by
Ygg2
1y ago
Ok, I should have been more specific. By ADT I meant sum types, or, to be even more exact, discriminated union. Everyone and their mother has product types. Java doesn't have a discriminated union for sure (and C# as of 8.0). It does h
474.
▲
by
Ygg2
1y ago
> To do a fair analysis the author should have compared with a language like Java, Scala or C#. Wouldn't that be unfair to them? They still use null or Nullable. They don't have ADTs, their thread-safe invariant is maintained b
475.
▲
by
Ygg2
1y ago
Did it? Last time I checked, Scala 3 still has custom operators. The thing I'm making fun of is Scala's custom operator gibberish.
476.
▲
by
Ygg2
1y ago
> that way lies madness. Flashbacks to scala operator PTSD. No. I don't want to use ++<>^^%% operator! I am not a number! I'm a man!
477.
▲
by
Ygg2
1y ago
> It doesn't go without saying that compaction involves a lot of memory traffic It definitely tracks with my experience. Did you see Chrome on AMD EPYC with 2TB of memory? It reached like 10% of Mem utility but over 46% of CPU aroun
478.
▲
by
Ygg2
1y ago
> Yes, but practical minimisation, not hypothetical minimisation, i.e. how can I get the least bugs while keeping all my constraints, including budget. Like I said, a language like Rust exists because minimisation of errors is not the on
479.
▲
by
Ygg2
1y ago
> The goal of ANY software engineer worth their salt should be minimizing errors and defects in their end product. > > ...to the extent possible within their project budget. Sure, but when other engineers discover that shit caused
480.
▲
by
Ygg2
1y ago
> It isn't optional, and yet it's also not at any cost, or we'd all be programming in ATS/Idris. In a better, saner world, we'd writing Ada++ not C++. However, we don't live in a perfect world. > The goal
More ›