Better HN
topnewbestaskshowjobs
Log inSign up

wavemode

6,826 karma · joined Apr 19, 2017 (9y ago) · 1,859 submissions

Submissions

comment 3mo ago · link · parent

> Although guarded methods seem necessary, unfortunately, I don’t know of any mainstream languages that allow their definition.

C++ has this feature. When you define a template class, you can use SFINAE (or, in modern C++, concepts) to make it so that certain methods only exist if the template parameter meets certain requirements.

(Though even this is often unnecessary - for something like your `flatten` example, you could just go ahead and define it unrestricted. Methods of template classes are typechecked lazily - in other words, they don't need to successfully typecheck unless they're called. For this specific use case, SFINAE/concepts would just make the error message nicer.)

Rust also has this feature, with conditional impls.

comment 4mo ago · link · parent

if the government was able to lie on the jobs report, why wouldn't they just continuously pretend that jobs are up from now all the way through the election? (all the way through to the presidential election, for that matter)

comment 4mo ago · link · parent

Curious what you mean by this. There is very, very little medical knowledge today that aligns with historical folk wisdom.

(Even simple things like "an apple a day" - apples are fine, but foods like berries, kiwis and avocados tend to have both lower sugar and much higher nutritional content.)

comment 4mo ago · link · parent

It can be both. Bell Labs performed a lot of speculative research while still producing economically valuable technology.

comment 4mo ago · link · parent

Like how OpenAI is (was?) structured as a nonprofit?

comment 4mo ago · link · parent

Plenty of companies in (or adjacent to) the AI space are still getting acquired and/or finding VC funding, even as funding in other spaces is drying up.

comment 4mo ago · link · parent

Meh. It does all sound rather grandiose, but in this startup economy I'm sure he can at least manage to get acquired.

At least he's pursuing something more novel than yet another "sandboxes for agents".

comment 4mo ago · link · parent

It's a well-made show, for sure. Expertly crafted, visually, and very well-acted. Though I found the pacing questionable - there were (generously) 6 episodes worth of plot spread out over a 9-episode season.

comment 4mo ago · link · parent

I see nothing wrong with this, neither in principle nor in practice. Also, this was merged over 6 months ago without incident. What is the purpose of this HN submission?

comment 4mo ago · link · parent

Haven't encountered "marbles in an airplane"-style brainteasers, but leetcode challenges are definitely still the norm at Google and other big tech. Not sure who was claiming otherwise.

comment 4mo ago · link · parent

For what it's worth, a GSL developer later reopened that GitHub issue and stated that they're going to look into fixing the UB. Sutter may have just been stating an assumption.

https://github.com/microsoft/GSL/issues/786#issuecomment-513...

> I'll raise this issue in the next internal GSL sync. I'd agree with y'all that this behavior: https://godbolt.org/z/4Tr1fe9xG is undesirable

comment 4mo ago · link · parent

GSL is not the standard library nor an internal runtime library. Its GitHub page claims that it supports a variety of compilers:

> The GSL officially supports recent major versions of Visual Studio with both MSVC and LLVM, GCC, Clang, and XCode with Apple-Clang

comment 4mo ago · link · parent

the new Windows Terminal had horrendous performance when it first came out. in the aftermath of the drama surrounding that, was when I first started seeing a lot of terminal emulator projects bragging about their throughput.

comment 4mo ago · link · parent

How do you define a trait that is itself generic? Like:

    trait ConvertTo[T]:
      fun convert(self) -> T;
Seems to create a single trait ConvertTo, for a generic type with a [T] argument, rather than allowing one to define separate implementations for ConvertTo[i32], ConvertTo[String], etc.

comment 4mo ago · link · parent

If all you're doing with a bunch of cash over 18 years (!) is holding it in a bank account to collect interest, you're just losing money to inflation. Bank interest is almost nothing. Better to hold stocks, or at the very least bonds if you're extremely risk-averse.

Though this needs to be put in context - maybe you actually intend for the child to be permitted to spend the cash, in which case a bank account makes plenty of sense.

comment 4mo ago · link · parent

Bad faith, got it.

comment 4mo ago · link · parent

I can't tell if you're arguing in bad faith or if you just don't actually understand anything I've been saying.

> Your hypothesis wasn't a bad instinct. But you could have followed up on it or, when confronted with evidence against it, chosen not to double down.

...huh? What solitary point of evidence has even been presented? First it was pointed out to me that I'm not a psychic, which is true but is not evidence of anything. Then it was pointed out to me that seatbelts save lives and contraception prevents pregnancy, which are also true statementsnbut are also not evidence of anything, given that both are highly effective at what they do.

If you want to present evidence of something, why don't you start by presenting evidence of this:

> Vaccines have been effective at the community level without being totally effective individually.

Let's start with, what historical vaccine had 44% effectiveness? Then, let's move on to, what historical vaccine had 44% effectiveness and was released to the public despite there already existing a 99% effective prophylactic drug for the same disease? And what was the outcome there?

If you still don't get the point I'm making, then nothing will change this and we should just end the exchange.

comment 4mo ago · link · parent

No, I'm not talking about moral hazard at all. I'm just talking about the poor effectiveness. If it were highly effective, like PreP and birth control are, there would be no issue in my mind.

comment 4mo ago · link · parent

> Seatbelt requirements did result in riskier driving. It also, on the net, saved lives.

Okay? This seems unrelated. A better analogy would be if they had invented airbags and then people stopped wearing seatbelts. (like taking a 44% effective vaccine and then stop using PreP)

> Same for every other vaccine, or e.g. birth control in respect of teenage and unwanted pregnancies.

Also unrelated. Birth control is highly effective, and in fact is statistically more effective than condoms (since condoms can slip and/or break). My issue is the poor effectiveness of this vaccine.

comment 4mo ago · link · parent

The target audience of this doesn't appear to be people who don't like reading the news. But rather people who like reading journalism that has perspective and nuance (which tend to improve when you take your time to let a story fully develop before writing about it).

comment 4mo ago · link · parent

The epistemic modality of my statement was implied. I obviously don't know the future.

comment 4mo ago · link · parent

No, but it should only last 10 years or so. Copyright in general is good as it provides economic incentive to produce new creative works. But copyright lasting or exceeding the length of people's lifetimes has done more harm than good to society. By that time, you have long since passed over from incentivizing creators, into enabling rent-seeking corporations.

comment 4mo ago · link · parent

Kotlin seems to have eaten Scala's lunch, for many organizations in the "JVM-but-not-Java" camp.

Also, non-backwards-compatible language changes fragmented the Scala ecosystem. Combined with the general trend of functional programming hype somewhat dying down in recent years.

comment 4mo ago · link · parent

It will have the opposite effect, if people who get the vaccine start behaving as though they are 100% protected (which, many people will).

comment 4mo ago · link · parent

hello fellow Robert Fitzgerald-ian

I think it's fitting that a story that was originally an ancient poem, should sound ancient and poetic.

comment 4mo ago · link · parent

Correct
1
8910
62