Better HN
topnewbestaskshowjobs
Log inSign up

debugnik

2,564 karma · joined May 8, 2019 (7y ago) · 1,259 submissions

Submissions

comment 3mo ago · link · parent

Right, I didn't mean those are bad things! Just that value classes don't change the semantics of regular objects as much as value semantics do in other language. I like that the remaining features will be orthogonal and opt-in.

Go isn't even memory-safe under data races, because they don't want to pick between slower loads (like .NET's Memory<T>.Span) or removing fat pointers. Meanwhile the JVM never had value types until now so they'd silently break a lot of code if a single keyword applied willy-nilly introduced torn reads like struct does in C#. It's coming but as a separate opt-in.

comment 3mo ago · link · parent

I'd say it's the other way around than escape analysis. The method ABI can always scalarize value class types without escape analysis, but if they ever need to get type-erased or written atomically you end up with extra allocations for what would have been a single object before. Similar to boxing value types in C# really.

comment 3mo ago · link · parent

Even a smart compiler can't break the program semantics, and without a closed world assumption it simply can't assume that an entirely different part of the program doesn't expect to observe object identity for a type.

Java is adding small, orthogonal features that amount to the same feature set as value types in other languages, but can be cherry-picked into existing code for partial advantages without significant changes. These value classes are still nullable, lack a guaranteed layout, and can't be observed torn, unlike in C++/C#/Go.

comment 3mo ago · link · parent

Pure Datalog can't express peano up to infinity, its terms can't be functors as in Prolog. At best you could hardcode a successor relation up to a limit.

comment 3mo ago · link · parent

I'd argue dotnet is about AI. The official blogs and conferences have been hijacked by AI products, much like VS Code.

comment 3mo ago · link · parent

> Lobsters has a funny obsession with being anti-AI, but the most commented posts on the front page are usually AI related.

Reminds me of gamer-gate: Back then, NerdCubed graphed the top posts from both pro- and anti-gamer-gate subreddits, and most were meta posts about themselves and each other rather than their alleged topics. Gosh, that was such a dumb period.

comment 3mo ago · link · parent

> My full middle name is a single letter though.

I guess you could follow the Simpsons joke and spell the letter's name. I'm adding this one to my personal list of falsehoods programmers believe about names.

comment 3mo ago · link · parent

I'm not the one who originally complained above, but personally I've simply got more things to read than time to read them so I do my best to ignore the sloppy writing, be it by a 90s magazine writer or most often by Claude. It can be, but on someone else's screen.

comment 3mo ago · link · parent

I would move the quotes to "open" since the issue of licensing is still left. Although LLM providers have shown that they don't care about copyright so it should go both ways.

comment 3mo ago · link · parent

That barely anyone with an organic brain would use any those phrases as a heading, much less all of them.

This article isn't particularly egregious but AI does come up with really cringy headings. Most often "the <irrelevant noun>" over and over.

comment 3mo ago · link · parent

This case happened precisely because the officers noticed the phone flash and reboot when they entered the pin. IIRC they didn't make a fuss over it, but time later he got charged over the event.

So whatever a duress pin does, it has to be subtle enough that anyone looking doesn't link it to the act of entering the pin.

comment 3mo ago · link · parent

My most awkward experience was a maintainer commenting on my feature request just to prompt a bot to "explain to issue reporter why this is very hard to implement."

It felt like they were trying to avoid me. They could have simply addressed me and given me the explanation they gave to the bot: it would have been simpler for him and more polite. I did in fact reply without waiting for the bot.

comment 3mo ago · link · parent

But most people who want to get good at their main discipline, even for self-fulfillment purposes, have been gaining the necessary experience through their job, because an unrelated job takes away too much time to do so.

comment 3mo ago · link · parent

Not surprising, but Jarred has been teasing "tomorrow I swear" for months and Bun keeps missing his own deadlines.

There's clearly something wrong in their confidence about Rust Bun: If it isn't ready they should have said "whenever it's done", and if it is they'd have met some deadline by now. I suspect the speed was supposed to be part of the stunt, yet they seem to have encountered the 90:90 rule.

comment 3mo ago · link · parent

My PC doesn't have swap and it freezes for about 20 s when I run out of memory until the OOM killer finishes its job, usually by killing Code or more rarely Firefox. I'll take this over the machine swapping so slowly that I need to hard reset anyway, but I'd appreciate it if the OS could stay more responsive when it happens.

comment 3mo ago · link · parent

I don't even know what you're trying to convey: I'm countering the perception that every channel does this. But it isn't true, they've simply allowed themselves to have a disgusting feed.

The "players" can do whatever, I don't care, because I don't watch them; they barely even show up on my algorithmic feed anymore. No one has to watch them, they simply chose to and then pretend they didn't have a choice. I just want people to own it, these channels do clickbait because many people like it.

comment 3mo ago · link · parent

They reluctantly acknowledged that as a mistake by adding an actual "optional" modifier for field presence. proto3's previously so-called optional were really all present with a zero default value; proto2 could have supported that for required fields at the code level if they had wanted. In the end, all they've changed is how they frame the feature.

comment 3mo ago · link · parent

The translations from that Google Search widget are painfully literal given how searches are usually phrased. I can't believe they've put that in production.

Similarly, I find its AI tab useless because it has a hard time interpreting search phrasing. If I need to reword it I might as well switch to a chatbot.

comment 3mo ago · link · parent

How many of them can be accounted for by the natural rate of sexual dysfunction?

I've been taking it without significant side effects for ~15 years, so I'm not worried, although at this point it's losing its main effect as well.

comment 3mo ago · link · parent

Sounds like you've let your feed fill with shitty channels, but no, not all channels do this. I mostly refuse to watch videos with those cringe clickbait thumbnails, and I've still got more stuff to watch that I've got time for. And it's mostly gaming and variety streamers, or music/animation artists; not serious stuff.

Now, I'll grant you that these may not become as successful as the clickbaity ones. Then again, the latter channels might as well not exist to me and like-minded people.

Just an hour ago I unfollowed a streamer precisely because he's been getting clickbaity. We've got to take some responsibility over the people we choose to watch.

comment 3mo ago · link · parent

Welcome to hyperbole.

comment 3mo ago · link · parent

Not really, Spectre showcased an attack from within a JavaScript sandbox, which isn't considered to own the machine.

Any side effects from speculation machinery can easily become a side-channel to infer values across security boundaries.

comment 3mo ago · link · parent

Yesterday I encountered AI-generated food photos on a menu for the first time. I immediately felt grossed out before even realising why. Their generated focaccias didn't even look like food, just off-putting trypophobia triggers.

comment 3mo ago · link · parent

Jsoo supports self-recursive and mutually recursive tail calls, but for general tail calls it would need to trampoline every single call, since the only major browser with proper tail calls is Safari.

comment 3mo ago · link · parent

It's so toxic when people prevent others from avoiding wasting their time reading blatant fluff that no one spent their own time writing.

comment 3mo ago · link · parent

There's always a lag, you calibrate the test based on previous results, not future ones. If intelligence is decreasing I'd expect every IQ test to keep scoring a median lower than 100 unless taken immediately after calibration. Once it stops decreasing they'd converge again.

comment 3mo ago · link · parent

A one item collection is admittedly a lame one, but it is a collection. Pointers are collections of zero or one items in a sense.

Now, the verb "map" is the traditional name for this operator, but I agree it sounds confusing when the noun "map" is also a collection type. C# and SQL call this Select, if that helps.

1
456
42