HNHacker News
TopNewBestAskShowJobs

kloop

223 karma · joined April 4, 2024

submissionscomments
kloop··on Context should go away for Go 2 (2017)
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

kloop··on Context should go away for Go 2 (2017)
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

kloop··on Show HN: Go Plan9 Memo
> 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)

kloop··on Smart pointers for the kernel
> 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

kloop··on The Soldiers' Philosopher (2014)
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
kloop··on It's Time to Stop Taking Sam Altman at His Word
They made medical claims. That's a very bad idea if you aren't 100% sure
kloop··on I Am Tired of AI
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

kloop··on The lost language extensions of MetaWare's High C compiler (2023)
> 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

kloop··on Drift towards danger and the normalization of deviance (2017)
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"

kloop··on Drift towards danger and the normalization of deviance (2017)
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.

kloop··on Apple mobile processors are now made in America by TSMC
> There are no markets without government intervention.

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

kloop··on How to succeed in MrBeast production (Leaked PDF)
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).

kloop··on How to succeed in MrBeast production (Leaked PDF)
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.

kloop··on Blood puddles, mold, tainted meat, bugs: Boar's Head inspections are horrifying
For preservation? The salt content iirc, but there may be something else
kloop··on Judges rule Big Tech's free ride on Section 230 is over
Only because they were using public airwaves.

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

kloop··on Tattoo ink sold on Amazon has high levels of weird and rare bacteria
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

kloop··on We found North Korean engineers in our application pile
Most companies aren't good at tech hiring, and even worse at evaluating engineer output
kloop··on Small Strings in Rust: smolstr vs. smartstring (2020)
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

kloop··on Show HN: Omi – Open-source AI wearable for capturing conversations
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

kloop··on I'm tired of fixing customers' AI generated code
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

kloop··on Euphemisms are best changed frequently (2016)
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.
kloop··on NASA acknowledges it cannot quantify risk of Starliner propulsion issues
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

kloop··on Grok-2 Beta Release
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

kloop··on Go is my hammer, and everything is a nail
The same things that happens in JS or python.

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

kloop··on Go is my hammer, and everything is a nail

    var res map[string]any
    err := json.Unmarshal(&res)
kloop··on Hundred Rabbits is a small collective exploring the failability of modern tech
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}] .
kloop··on Hundred Rabbits is a small collective exploring the failability of modern tech
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

kloop··on Books to Dive in into Fullstack Development
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).

kloop··on B-Trees Require Fewer Comparisons Than Balanced Binary Search Trees
Also if it's big enough that recursing will blow out your stack.

Yes, you can throw the nodes on an array in the heap to allow tail recursion, but at that point you're going to be losing to a map with all but the biggest datasets, and even then the copies really aren't desirable

kloop··on Chat Control: Incompatible with Fundamental Rights (2022)
Yeah, authoritarians love provisions like that.

They abused a similar one in the US constitution (the commerce clause) to rule that growing wheat on your own land for personal consumption counted as "interstate commerce" (Wickard v Filburn) and backdoored into the federal government controling basically everything physical.

← PreviousPage 3 of 4Next →