[-] [email protected] 10 points 4 months ago
fn foo(x: i32) {
    match x {
        const { 3.pow(3) } => println!("three cubed"),
        _ => {}
    }
}

But it looks like inline_const_pat is still unstable, only inline_const in expression position is now stabilized.

[-] [email protected] 10 points 4 months ago

It's because it has to work in pattern contexts as well, which are not expressions.

[-] [email protected] 7 points 5 months ago

According to Wikipedia:

In March or April 2023, it dimmed to magnitude 12.3. A similar dimming occurred in the year before the 1946 outburst, indicating that it will likely erupt between April and September 2024.

[-] [email protected] 12 points 7 months ago

Yes, for example, syncing on a kernel panic could lead to data corruption (which is why we don't do that). For the same reason REISUB is not recommended anymore: The default advice for a locked-up system should be SysRq B.

[-] [email protected] 7 points 8 months ago

There is no central naming authority in I2P. All hostnames are local. (Naming and Address Book)

Therefore, if an url doesn't work, it isn't in your local address book.

You can add mappings yourself if you know the destination or b32 address, or make use of subscriptions. In this case, add http://i2p-projekt.i2p/hosts.txt and http://notbob.i2p/hosts.txt to your address book subscriptions, the latter contains the destination for mysu.i2p.

[-] [email protected] 41 points 10 months ago

https://stackoverflow.com/questions/10602504/how-does-user-js-work-in-firefox-in-detail:

It just looks like a JavaScript file. Once upon a time in Netscape 3 and maybe 4 it actually was, but now it's just a file with a .js extension and a very restricted syntax that's parsed by a separate (non-JS) parser and not executed in any way.

63
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]

This is a favourite of mine. White to move. rnbqk1nr/pp1pppbp/6p1/2pt5/3PP3/5N2/PPP2PPP/RNBQKB1R w KQkq - 1 4

(Original posted to [email protected])

[-] [email protected] 37 points 11 months ago

Quad9, a Swiss public benefit, not-for-profit foundation. Main address is 9.9.9.9.

[-] [email protected] 13 points 1 year ago

You should not torrent over the tor network, but you can torrent over the I2P network. qBittorrent even has experimental I2P support built in.

[-] [email protected] 12 points 1 year ago

Indeed. This works because direct connections to the tor network are easily censored, but WebRTC is not (not without a lot of collateral damage at least).

[-] [email protected] 68 points 1 year ago

The snowflake proxy acts as a bridge to the tor network at the entry side. If by repercussions you mean risk of exit-node traffic, there are none. It might cost a little bit of bandwidth.

[-] [email protected] 96 points 1 year ago

Memory safety would be the main advantage.

view more: next ›

0v0

joined 1 year ago