Better HN
topnewbestaskshowjobs
Log inSign up

c-baby

18 karma · joined Nov 7, 2022 (4y ago) · 16 submissions

Submissions

comment 4y ago · link · parent

Yea, that makes sense. Basically exactly how you can use an eigenbasis in linear algebra to diagonalize a matrix.

comment 4y ago · link · parent

When running, containers aren’t anything more than composed process isolation primitives like chroot. Docker’s main innovation was the layering system, which made it feasible to build and distribute the large images required to ship an entire system in a container.

comment 4y ago · link · parent

That's called picking up pennies in front of a steam roller.

comment 4y ago · link · parent

Good point. But what makes studying these functions interesting? Like what key theorems govern this class of functions?

comment 4y ago · link · parent

Ok, but what is being asked is what interesting properties does such a function have. You still haven’t answered that question.

comment 4y ago · link · parent

This news leaves me speechless. I can't imagine the torment felt by the arrested protesters and their families. Those fighting for their rights are unspeakably brave.

comment 4y ago · link · parent

5z + 2 is linear?

comment 4y ago · link · parent

Maybe I'm missing what's interesting about this, but a function like f(z) = 5z + 2 would output a wave with changed amplitude and phase when z = sin(x). That doesn't seem that interesting to me, so f(z) must have some other interesting properties?

comment 4y ago · link · parent

Hmm I see. So the value is in creating a kind of blocking promise. I can see how that might be useful in certain circumstances, but using blocking functionality isn't something you'd want to rely on in general.

comment 4y ago · link · parent

I see what you’re saying. For your bench mark code, it doesn’t look like you’re using a generator? How does the await compare to a generator? I only ask because the non-async example looks like there are a million ways the runtime could optimize it that might not apply in practice. (I’m on my phone now, otherwise I would try it).

comment 4y ago · link · parent

This seems a lot more complicated than something like this:

    if (!(value instanceof Promise)) {
        value = Promise.resolve(value)
    }
And then you write the rest of your code as if it is async.

comment 4y ago · link · parent

I’ve derived immense enjoyment from watching the Twitter debacle unfold, so I can’t believe I’m going to say this, but I like the scheme to pay for blue check marks. It’s nice to see someone has at least $8 to spend on spreading their opinion on Twitter. There’s something reassuring about that. I can’t articulate exactly why, but it feels nice to know that what I’m reading isn’t part of some cheap troll farm.

comment 4y ago · link · parent

You can do something like that with rxjs.

comment 4y ago · link · parent

Are there really good alternatives to C? You can use Rust where you can use C, but the memory safety doesn’t come for free. A lot of people find Rust extremely annoying to write. Maybe something like Zig? But the ecosystem isn’t that big…