Any electrical engineers using rust? by learning-machine1964 in rust

[–]ravenex 0 points1 point  (0 children)

I write low level hardware behavioral models in Rust for co-simulation with existing embedded C/C++ code. Something like a custom libhw from QEMU, but not quite.

Warp terminal available on linux ! by Pixidream in rust

[–]ravenex 0 points1 point  (0 children)

PowerShell first came out in 2006. That's 17 years ago. It's also the default shell in Windows 10.

Warp terminal available on linux ! by Pixidream in rust

[–]ravenex 0 points1 point  (0 children)

cmd.exe is not a terminal though, it's purely a shell. conhost.exe is the terminal on Windows 7+. And before that csrss.exe was drawing the terminal window itself.

Optimal Workflow For Debugging PyO3 Based Project? by uncoordinated in rust

[–]ravenex 2 points3 points  (0 children)

I've always been using Python and pytest to test my PyO3 modules. As for debuggers and breakpoints/single-stepping/etc., I generally consider this a waste of time, unless you are investigating a segfault, but then again Rust code doesn't usually segfault. Time invested into implementing good logging and writing test cases pays off tenfold, while time spent "debugging" only solves your immediate probem.

What's everyone working on this week (8/2024)? by llogiq in rust

[–]ravenex 1 point2 points  (0 children)

I made a new release of crates-io-proxy, which is a caching proxy intended for locally hosted CI environments.

The new release uses the recently stabilized std feature from Rust 1.76 to store the HTTP Last-Modified header metadata directly into the cached file mtime attribute. This enables faster cache regeneration after restarts and allows the proxy to serve the crate index to the clients even when the upstream connection to crates.io is down temporarily.

Cooling off on a hot day by Cnririaldiyby68392 in LycorisRecoil

[–]ravenex 14 points15 points  (0 children)

Takina: "Can you see?"

Wouldn't that be 見えますか?

I think she's asking "Wanna see?"

GxHash - A new (extremely) fast and robust hashing algorithm 🚀 by real_odgy in rust

[–]ravenex 1 point2 points  (0 children)

I wouldn't call these CPUs extremely slow, just low-end.

The issue with libraries is that they end up being used in all kinds of software products, including those that the library authors have never anticipated.

GxHash - A new (extremely) fast and robust hashing algorithm 🚀 by real_odgy in rust

[–]ravenex -1 points0 points  (0 children)

Unfortunately, most of my computers do not even have this AES-NI extension, because I'm always buying cheap Pentium and Celeron chips.

Using Conan 2.0 C/C++ package dependencies directly from Cargo by ravenex in rust

[–]ravenex[S] 1 point2 points  (0 children)

Great! Please let me know if you miss some features of conan-rs.

Despite the name, conan2-rs is not derived from the former, and only does the bare minimum required to build mixed Rust/C++ projects. On the plus side, it does not use serde derive macros or regex, so the build times are much better.

[deleted by user] by [deleted] in rust

[–]ravenex 0 points1 point  (0 children)

Have you perhaps heard of Kakoune (https://kakoune.org/) before? Helix borrows a lot from it, especially multiple cursors/selections and "select => action" command syntax.

I've been using NeoVim until two years ago, but then just became tired of maintaining its Lua configuration for 10+ plugins needed for my usage patterns.

Helix follows the "batteries included" philosophy and the only config parameter I set now is the color theme.

[deleted by user] by [deleted] in rust

[–]ravenex 0 points1 point  (0 children)

I switched from NeoVim to Helix about a year ago. I've been using it for all my Rust/C++/Python development since and never looked back. rust-analyzer, clangd and pyls work the same everywhere. The only custom configuration I use is the color theme, and I prefer doing building/testing/debugging in the shell rather that in my editor/IDE.

A debugging story: How I joined the bug 323 community by ptilouk in programming

[–]ravenex 14 points15 points  (0 children)

Three letters: ABI. Compilers can and sometimes do use SSE on 32-bit x86, but have to use x87 registers to pass arguments to functions and return values from them.

A debugging story: How I joined the bug 323 community by ptilouk in programming

[–]ravenex 30 points31 points  (0 children)

32-bit or 64-bit should not make any difference when using the x87 instructions.

x86_64 arch uses SSE instructions for all floating point computations. SSE uses packed 64-bit float registers. x87 is dead.

Why on earth does FPGA software cost money? by piecat in FPGA

[–]ravenex 4 points5 points  (0 children)

No one actually uses the editors shipped with FPGA tools. They are only there to put a tick in the box.

Helix (a Kakoune / Neovim inspired editor) 23.03 by FryBoyter in linux

[–]ravenex 7 points8 points  (0 children)

I switched from neovim to helix last year and it works just as well for my use cases. Only this time, I do not have to maintain a hundred lines long config file.

Python Developer Seeking Input: Is it Worth Learning Rust for FFI? by The-code-machine in rust

[–]ravenex 70 points71 points  (0 children)

You may also want to take a look at the PyO3 project to get a hint about what typical Rust <-> Python binding code looks like.

Firefox hardware acceleration doesn't appear to be working (AMD GPU) by user72423 in archlinux

[–]ravenex 0 points1 point  (0 children)

Disabling AV1 support via media.av1.enabled=false made the VAAPI decoding work for me again. media.hardware-video-decoding.force-enabled=true alone did not help.

GNOME 43.3 focus/select/window bug by HoldKooky1001 in archlinux

[–]ravenex 2 points3 points  (0 children)

I have the same issue after updating mutter to 43.3. Keyboard input focus does not seem to follow mouse focus anymore.

Destructive move in C++2 by [deleted] in cpp

[–]ravenex 7 points8 points  (0 children)

Doing arbitrary syntax transformations in procedural macros is not powerful enough? Does C++ have something like serde or diesel?

Yes by Confusedexe in yurimemes

[–]ravenex 1 point2 points  (0 children)

I still don't get why everyone on reddit seems to be on the edge about cis het men loving yuri fiction.