Better HN
topnewbestaskshowjobs
Log inSign up

safarimonkey

10 karma · joined Feb 23, 2021 (5y ago) · 7 submissions

Submissions

comment 8mo ago · link · parent

I made my account on a server that a personal friend span up. Said friend deleted it on a whim after a few months after not using it much, not really aware of the implications. Personal connection was not the issue here, ownership of my digital identity was.

Besides, people sometimes have fallings-out.

comment 3y ago · link · parent

Some of the techniques improve over linear scaling of the baseline models. For example, from the article:

> Conditional computation avoids applying all model parameters to all tokens from the input sequence. [CoLT5] applies heavy computations only to the most important tokens and processes the rest of the tokens with a lighter version of layers. It will speed up both training and inference.

[CoLT5]: https://arxiv.org/abs/2303.094752

comment 3y ago · link · parent

Magic Leap 2 has a segmented dimmer that works fairly well. It's a small probably-LCD panel that sits in front of your eye. It lets the headset black out part of your view, leaving a kinda blurry shadow around objects.

comment 5y ago · link · parent

Indeed not, so it's not a full replacement. I'm not entirely sure that I like the idea of an "if let" variant creating bindings that escape the visual block, but I'd probably get over it.

comment 5y ago · link · parent

I ran into this the other day, and it took me a moment to realise that I could just use `matches!`:

    // want to do this
    if not let Some("pattern") = val {
        doSomething();
    }

    // can instead do
    if !matches!(val, Some("pattern")) {
        doSomething();
    }

comment 5y ago · link · parent

I ran into this the other day, and it took me a moment to realise that I could just use `matches!`:

    // want to do this
    if not let Some("pattern") = val {
        doSomething();
    }

    // can instead do
    if !matches!(val, Some("pattern")) {
        doSomething();
    }
edit: formatting

comment 5y ago · link · parent

Here is one (recently created) that operates on the whole program rather than a single function: https://crates.io/crates/no-panics-whatsoever