Better HN
topnewbestaskshowjobs
Log inSign up

bytearray64

21 karma · joined Jan 2, 2021 (5y ago) · 6 submissions

Submissions

comment 5y ago · link · parent

I've been using this macro in my personal projects repo: https://pastebin.com/raw/atNtPgwv

The three big gotchas with this are:

- You need to name the rule the same as the module you've exported in Rust

- It creates a copy to get the naming right. You could write an actual rule instead of a macro that just makes a symlink with the right name for Python to pick it up.

- Since the macro just exposes a genrule and isn't a PyInfo provider, you need to add it in the data of the py_library/binary you intend to use it in. Again, could be fixed by an actual rule impl.

comment 5y ago · link · parent

Not disagreeing that cargo-raze in bazel is awkward, but just wanted to add:

Cargo raze should let you consume libraries you've imported in a rust_binary target, if that's what you're talking about. It's also possible, but slightly more annoying, to vendor the dependency tree if you need to rely on pulling from a local mirror.

I've also used it to import cargo binaries (i.e wasm-bindgen-cli) into a Bazel workspace -- it just makes the resulting target something like @raze_some_bin//:bin

comment 5y ago · link · parent

At least for your glibc / nvidia concern, I feel like if you stick to the binary packages, at least on Ubuntu, it's hard to break. Recently I've been trying to do all the gaming I can on Linux with Proton, and at least for single-player games, it tends to work pretty well. (MP is still a big issue due to the current state of anti-cheat)

Audio latency is one struggle I agree is still pretty bad. I had a pretty good time getting SteamVR running on Linux with Beat Saber running via proton, but tuning the audio latency was a big pain.

comment 5y ago · link · parent

They also block nyaa, an Anime/Manga focused tracker. It's not a very aggressive list though, as you're right that major torrent sites are still accessible.

comment 5y ago · link · parent

You probably have Verizon - they've started null routeing traffic to sites "like this".

https://old.reddit.com/r/mangadex/comments/nvj7qf/is_verizon...

comment 5y ago · link · parent

I like Mikrotik for routers. They're cheap and have a lot of knobs in the SW (maybe too many if you just want NAT). They do run linux, but their SW isn't open. I've been pairing my Mikrotik hEX with a Unifi AP. Not sure what I'll do going forward, as I've heard Mikrotik's APs aren't as good as their routing and switching hardware.

If I was going the "dedicated machine" route, I'd probably go with OPNsense nowadays.