Better HN
topnewbestaskshowjobs
Log inSign up

kloop

224 karma · joined Apr 4, 2024 (2y ago) · 111 submissions

Submissions

comment 1y ago · link · parent

I believe quite a bit of the JS tooling has been rewritten in other languages over the last decade or so

comment 1y ago · link · parent

I'm not sure what you consider a decent scala ide, but it was a problem with IntelliJ in several of our code bases, and I'd have to crawl the implicit resolution path.

I eventually opted to desugaring the scala completely, but we were already on the way out of scala by that point

comment 1y ago · link · parent

As a veteran of a large scala project (which was re-written in go, so I'm not unbiased), no. I was generally not happy.

This was scala 2, so implicit resolution lookup was a big chunk of the problem. There's nothing at the call site that tells you what is happening. But even when it wasn't hidden in a companion object somewhere, it was still difficult because every import change had to be scrutinized as it could cause large changes in behavior (this caused a non-zero number of production issues).

They work well for anything you would use environment variables for, but a chunk of the ecosystem likes to use them for handlers (the signature being a Functor generally), which was painful

comment 2y ago · link · parent

> however I will note that a large reason that C exists in the first place was to have a machine independent language to write programs in.

That's fair, but what we call a monstrosity by modern standards is much simpler than porting the assembly

There were cross plaform languages before C, but they never really took off for system development the wat C did (OSs, for example were commonly written in pure assembly)

comment 2y ago · link · parent

> reflect: what does seeing “written in rust” as a suffix make you think about a project’s qualities before you ever read the code

That the community is going to be significantly more dramatic than average

comment 2y ago · link · parent

That's not giving up in the sense it's being used here. Giving up would involve no longer attacking the problem, not switching tactics

comment 2y ago · link · parent

They made medical claims. That's a very bad idea if you aren't 100% sure

comment 2y ago · link · parent

There are lots of organizations with $1M and a desire to influence the population

This can only be done with a sentiment that was, at least partially, already there. And may very well happen naturally eventually

comment 2y ago · link · parent

> You got any idea why people hate the concept of nested functions in C?

It breaks the model of c mapping to the hardware.

Functions in C are just labels you jump to. Assuming you want to capture values from the environment you're defining the function in, you have to implement some sort of function struct that is callable, and it probably won't work with any shared libraries on your system. Also it would be slightly slower, and C programmers tend to not be willing to make that tradeoff

comment 2y ago · link · parent

The best book I've found on this subject is Moral Mazes.

It's from about halfway through the process you describe. If you don't have time to read the whole thing, look for the section on "milking the plant"

comment 2y ago · link · parent

The hardest language to learn is the second one.

You can learn the first one by rote memorization. But to continue down that path requires remembering the product of all language features x syntaxes.

comment 2y ago · link · parent

> There are no markets without government intervention.

Of course there are. Black markets pop up everywhere to route around government intervention

comment 2y ago · link · parent

The goal is to update beliefs in all areas when they change in one spot.

As a hypothetical, let's say you believe from prior experience that being mugged has a very high probability. Let's say 50% because it's easier.

Let's also say your friend points out that you've left your home hundreds of times this year and haven't been mugged. 50% seems like a ridiculous overestimate.

Reexamining your priors would involve not only changing your mind about the chance of being mugged, but changing downstream beliefs that might be influenced by that belief (such as what public policies you support).

comment 2y ago · link · parent

They're talking about Bayesian priors. Basically prior assumptions about the likelihood of a subject.

It's a common phrase in the ratsphere (and its descendants).

Changing your mind is one outcome, but the implication is that it requires a complete reexamining of your worldview, as changing the internalized probabilities can have many effects on perceived likely outcomes.

comment 2y ago · link · parent

For preservation? The salt content iirc, but there may be something else

comment 2y ago · link · parent

Only because they were using public airwaves.

Cable was never regulated like that. The medium actually mattered in this case

comment 2y ago · link · parent

That does seem like the biggest risk for Amazon.

As a platform, they can probably get around counterfeit items being listed/sold, but sending one from a different seller seems it might open them up to legal risk if Amazon knows there's counterfeits floating around.

I'm sure we all accept the risk in the fine print somewhere, but that only matters until it makes the news and a politician thinks they can get reelected by going after them

comment 2y ago · link · parent

Most companies aren't good at tech hiring, and even worse at evaluating engineer output

comment 2y ago · link · parent

std::string isn't null terminated (or at least it isn't guaranteed to be, I don't think it's forbidden for an implementation to do that).

That's why the c_str method exists, so you can get a pointer to a null terminated character array

comment 2y ago · link · parent

A lot of police interactions happen in public, and additionally when police are on duty and interacting with the public they have a reduced expectation of privacy.

It's generally only recording private conversations that's illegal.

It feels like you didn't think about the differences between the two situations at all

comment 2y ago · link · parent

The second one actually seems to be harder for some people. It requires separating the syntax from the semantics

Agreed on all further ones, however

comment 2y ago · link · parent

I think a lot of the frustration comes from people being asked to make an effort for something they know won't reduce the stigmatization.

comment 2y ago · link · parent

You can treat spaceflight like software and work out the bugs by trial and error. Lord knows spacex did.

You just can't put people on the vessel while you're doing that part

comment 2y ago · link · parent

Sure, but to be consistent with the analogy, we're evoking the program from bash and it's been solved in several languages already.

Trying it isn't exactly locking you into anything

comment 2y ago · link · parent

The same things that happens in JS or python.

If you get a key wrong it throws (panics in go)

comment 2y ago · link · parent

    var res map[string]any
    err := json.Unmarshal(&res)

comment 2y ago · link · parent

This has been one of the reasons moving to go has been a godsend.

Don't get me wrong, the project is absolutely insane. There's an api with a gpu layer for raster transformation.

But the build process is still:

    go build [-tag {project name}] .

comment 2y ago · link · parent

Low carb tortillas are absolutely packed with fiber (like 25-30 grams per burrito).

A little chewy, but you get used to it. And you definitely aren't short of fiber if you also have a salad that day

comment 2y ago · link · parent

Just start building a thing. Any thing. It doesn't really matter what.

Any time you don't know how to do something, google it (or chat gpt mostly works these days).

1234