yvt

Results 102 comments of yvt

I think downgrading (pinning) to Python 3.9 is a reasonable short-term approach to temporarily work around the mozjs issue and get CI running again for now. Could you add to...

> System framework dependencies need to be specified explicitly on Darwin. Example ([`nixpkgs/pkgs/development/tools/rust/cargo-embed`](https://github.com/NixOS/nixpkgs/blob/1637945189070199494480264357738cc946c70c/pkgs/development/tools/rust/cargo-embed/default.nix#L26)): ```nix rustPlatform.buildRustPackage rec { # ... buildInputs = [ libusb1 libftdi1 ] ++ lib.optionals stdenv.isDarwin [ AppKit...

FWIW it's possible to access an arbitrary path by spawning an external process by `exec_cmd`, although this solution is rather hacky. [Example](https://github.com/yvt/zellij-cpulamp/blob/0254b7da8f235e525d1cc7245d28cea55971ff2a/src/process.rs#L133-L157)

I needed to run the model on CPU for a testing purpose (because a machine with GPU is currently occupied by another variation of this model) so I would be...

It seems that the problem lies in the handling of page data JSON files. Here's an excerpt from the top page's page data: ```JS "cover": { "children": [ { "__typename":...

Unstably added in 14f47c81c7abce437aaebffff22dcbb413c611c5

There are no memory accesses that need to be synchronized by `Arc::clone`, hence the use of `Relaxed` ordering. (Note that `Arc::clone` alone doesn't grant access to the ref-counted object to...

Yes, that's the right way to implement a default allocator on unsupported targets, except that you don't need `RefCell` because `Mutex` already provides interior mutability. Just in case though: Locking...

It appears [Embassy](https://embassy.dev/) is based on cooperative (non-preemptive) scheduling. In this case, if you don't need to use the allocator in interrupt handlers, `spin::Mutex` is fine. You might want to...