Better HN
topnewbestaskshowjobs
Log inSign up

binary132

1,655 karma · joined Mar 24, 2014 (12y ago) · 1,715 submissions

Submissions

comment 2y ago · link · parent

The Rust thing here is a bit of a distraction, you can target BPF with C too.

comment 2y ago · link · parent

Memory can still be observed. Encrypted content in memory cannot.

comment 2y ago · link · parent

Sorry but does that actually address cedws' question about subpoena?

comment 2y ago · link · parent

It's hard for me to understand what is meant by "similar characteristics to psilocybin" without hallucinogenic effects. Is the idea that the hyperreality of the subconscious / inner life would dominate conscious perception, but without the confusing or distressing associated overload of the physical senses, e.g. seeing or hearing things that aren't there?

It's almost impossible to imagine the one aspect of the dreamlike state dominating the mind without the disruption of the other, but even if the senses are perfectly unperturbed I would think the unconstrained and disordered psyche alone could be very upsetting or confusing.

comment 2y ago · link · parent

Self-hosting could be as simple as running an app or service on a tor-like virtual network, especially if there's good peer caching / pinning / routing to loadbalance popular content. That's a bit like what Tlon attempted with Urbit.

comment 2y ago · link · parent

I read it more as wry irony. "My dad was dumb and wrong, but I'm totally right when I feel the same way he did." I don't think the comment really means either one of them was right or wrong.

comment 2y ago · link · parent

Google style guide is good tbh.

You should use the right tool for the job.

std::unique_ptr is just a move-only ergonomics type over a bare pointer, it doesn't have extra state. std::shared_ptr is basically no different than Rust's Arc.

Closures specify capture semantics explicitly, so you will always know, and default to copy.

And yes, you can capture local references and leave. Don't do that, or return references to local variables, or lots of other fun stuff.

comment 2y ago · link · parent

I think the standard library has some bugs too.

comment 2y ago · link · parent

Kinda feel like he just wrote this to make the rust folks seethe.

comment 2y ago · link · parent

The difference is negligible in real syntax:

    auto my_closure = [](int x, int y) { return x + y; };

    let  my_closure = |x: int, y: int| { x + y }
and frankly, the option of an explicit capture-list with aliases and mixing moves and copies is a benefit:

    int sum = 0, diff = 0;
    
    auto adder = [&sum](int num) {
        sum += num;
    
        // compilation error, author didn't
        // mean to capture diff.
        diff -= num;
    };

comment 2y ago · link · parent

Returning interfaces is an antipattern masquerading as a design pattern... Just saying

comment 2y ago · link · parent

I was able to get a cheap external m.2/pcie3 USB3 enclosure with a WD blue running with zero effort as my boot disk. Haven’t benched it yet...

comment 2y ago · link · parent

Something I find myself thinking about very frequently is how little community code reuse and composability there seems to be around graphics programming.

comment 2y ago · link · parent

Some truths are best told as parables, sometimes fantastical ones.

comment 2y ago · link · parent

European Christianity in many ways was integrated with the local mythologies and mysticisms of the peoples who took it up. For example, the magic in infinite knotwork became Christian prayer in the new framework. It's not so far-fetched to see the illumination of the Book of Kells as being in direct continuity with the pagan heritage, and the message of the film seemed to me to be the exposition of that relationship, and of how that relationship was used in evangelization.

The Vikings themselves were eventually pacified by the same evangelization, and social integration into the new Europe.

comment 2y ago · link · parent

My family loves this movie. I came here to leave this comment :)

comment 2y ago · link · parent

I've never really understood the imperative to "move forward". If you want to do something new, do something new. Why break what works?

comment 2y ago · link · parent

It’s not returning impl trait that is confusing, but the limitations surrounding it. Why shouldn’t there be send by default, why is send so important to the discussion? Why do we need to worry about GATs in this context? Why shouldn’t we expose this to users of our traits yet?

Why isn’t async straightforward? It seems like a fairly fundamental aspect of a language and a key differentiator. I suppose it has something to do with capturing a reference to self, but I don’t think I understood that bit either. And why are static impl traits supported but not dynamic?

At the end of the day this feature is simply inaccessible. I’m not a complete outsider, I understand why it’s useful to return a future of result user record, or the difference between impl trait and dyn trait.

There are fairly technical answers to these questions, and people have attempted to offer them, but I suppose I would need a master class to get me to where I could understand the answers.

That isn’t the case for async in most languages and I’m not really clear why people didn’t put a bit more care into the async API for Rust.

If your language requires an expert to use a fundamental feature, I feel there is a gap in the design principles.

comment 2y ago · link · parent

I’m not taking an issue with “prioritize time to market”. I’m taking an issue with “processor cycles and memory are actually meaningless now compared to engineering hours”. That is simply not always true.

comment 2y ago · link · parent

Maybe the limitations and logic around this ITRPiT (?) stuff make tons of sense to anyone who’s used to the Rust async typestack, but to an outsider this is almost completely incomprehensible gibberish, even after reading the fairly detailed blog posts about it. I like the idea of Rust, like many people do, but when I actually see convoluted language features like these it makes me think this is not a serious language meant to empower everyday users like it says on the label. I think at this point I’d almost rather use OCaml or Haskell.

comment 2y ago · link · parent

At scale a few % efficiency can make a big difference.

comment 2y ago · link · parent

I’m surprised their benchmark only saw a 200% performance improvement. LuaJIT is way faster than Lua in many cases.

comment 2y ago · link · parent

When I first read the blog post announcing this project, I got really excited, but unfortunately supporting Windows is not important to the author (correct me if I’m wrong?) and I am mainly interested in projects that are portable between at least windows and Linux, so it isn’t really an option for me.

comment 2y ago · link · parent

TIL PHP uses dynasm, here I thought only LuaJIT did. Cool!

comment 2y ago · link · parent

A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines.

comment 2y ago · link · parent

std::forward<Self>(self)

ok that's pretty goofy

comment 2y ago · link · parent

Rust posts on HN generate drama because of Rust People bickering with Anti-Rust People.

C++ posts on HN generate drama because of C++ People bickering with C++ People.

comment 2y ago · link · parent

There’s a website for people like us.

Merry Christmas!

https://www.etymonline.com/word/pager

comment 2y ago · link · parent

Everyone is so committed to their own spin that it makes me sick.
1
525354
58