_Vi

joined 1 year ago
[–] [email protected] 1 points 1 year ago (1 children)

Playground link is mangled as well: I needed to manually replace &s with & to make it load the gist.

[–] [email protected] 3 points 1 year ago

I asked in the Rust Discord channels and it seems like my approach is fine. Even the mutable version is okay and doesn’t need to be unsafe if it returns the reference with self’s lifetime.

Then maybe publish it as a mini-crate (e.g. any-slice), ideally with a link to the discussion that proves that it is sound.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (3 children)

Note: both code fragments and links contain things like & which makes them inoperable as is.

[–] [email protected] 2 points 1 year ago (2 children)

Is anyvec crate of relevance?

[–] [email protected] 1 points 1 year ago

Now also as an Android app: https://github.com/vi/wgserve

UI/UX is currently bad, though.

14
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Allows to share network (i.e. act like a VPN server) without root access by combining user-space Wireguard library and user-space TCP/IP stack.

[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (2 children)

Is (or will) Ferrocene be open source?

... exclusive early access to Ferrocene releases ...
exclusive

This phrase look suspicious, as "open source" and "exclusive" typically does not mix well.

Will it be a special version of rustc with private bugfixes, like in ~"we have fixed 19 bugs in rustc that can lead to miscompilations in your missing-critical program, so you better pay us for better private rustc instead of using buggy upstream version"~?

Or will publicly available source code be exactly the same as in certified version of the compiler, with the difference only being the legal warranties?

Or will it follow something like grsecurity model, i.e. technically open source, but please do not distribute (lest lose the subscription).

[–] [email protected] 2 points 1 year ago

So that tabs with lemmyrs posts would be easily distinguishable from tabs of docs.rs and the forums. Docs.rs have somewhat different role, so tabs with it is less likely to be intermixed in the tree with other ones. But IRLO/URLO and Lemmyrs serve comparable roles and are likely to link to each other, so distinctive favicons can help.

 

Currently favicon (circled R) looks similar to the one used for internals.rust-lang.org or users.rust-lang.org.

Maybe Lemmyrs should have a distinct favicon (website tab icon), for example, circled "L" instead of circled "R"?

// Cannot post it to Meta community instead: UI hangs