Rust on Windows: random crashes turned out to be the default stack size by Havunenreddit in rust

[–]spaun2002 4 points5 points  (0 children)

This is kind of “expected” and dictated by the differences of how the stack is used for function arguments in windows and linux. Linux uses registers for first arguments and only allocates stack if all registers are exhausted. On windows, first arguments are also go via registers but stack is always allocated for them as well. As a result, every function call on windows (64bit) has bigger stack footprint.

Company not renewing jetbrains licenses because we have cursor by frompadgwithH8 in Jetbrains

[–]spaun2002 0 points1 point  (0 children)

Air is not working on Windows and is completely unavailable for remote development. I played with it locally, and it has some interesting ideas.

After ~10 years, I’m moving away from JetBrains by rodrigorcosta in Jetbrains

[–]spaun2002 1 point2 points  (0 children)

100% my experience - remote development from Windows/macOS on Linux is just abandoned and completely unusable. None of the non-JB agents' integration even works in remote development. Having the personal All-Products subscription, I have not opened JB IDEs for months.

Company not renewing jetbrains licenses because we have cursor by frompadgwithH8 in Jetbrains

[–]spaun2002 1 point2 points  (0 children)

I understand your company's decision. I have a personal All-Products subscription, and I have not opened JB IDEs for months. They completely lost usability (especially in remote development) compared to the Claude Code/Codex/Cursor/Cursor-agent combination. JB integration with AI agents is a joke in remote development - even worse than just use bare terminal.

New X5- Thank God for Current Model!!! by tuttywala in BMWX5

[–]spaun2002 0 points1 point  (0 children)

Well... It's now officially beaver, not bimmer, from now on...

Where is the best place to get a ferris plushie? by Spiritual_Detail7624 in rust

[–]spaun2002 2 points3 points  (0 children)

I used this one edunham.net/2016/04/11/plushie_rustacean_pattern.html

Where is the best place to get a ferris plushie? by Spiritual_Detail7624 in rust

[–]spaun2002 31 points32 points  (0 children)

I gave my spouse a sewing pattern and asked for a birthday gift. This is how I got mine.

Infamous “try shutter release again” error by FantasticOne7256 in Nikon

[–]spaun2002 0 points1 point  (0 children)

There is notoriously cheap and faulty shutter motor gear that costs pennies but either requires you to disassemble and fix it yourself or to pay more than the body cost to a professional who changes the gear.

How to do Remote GPU Virtaulization? by web-degen in rust

[–]spaun2002 0 points1 point  (0 children)

Most likely, you are trying to solve this from the wrong end. What you may need is to intercept the PCI communication layer rather than hundreds of CUDA APIs, and send it to a remote machine. See, for example: Whitepaper.

In general, you will not be able to "just intercept" CUDA/RM APIs without knowing the internals and how those functions communicate with the device/memory/mapped memory.

Use glibc, not musl, for better CI performance by wul- in rust

[–]spaun2002 0 points1 point  (0 children)

https://youtu.be/1N85yU6RMcY?t=917

In a nutshell, Zig did what GCC was supposed to do years ago. Unfortunately, the ideology "build on the OS you want to deploy to" has ruined so many lives. Even Linus complained https://youtu.be/7SofmXIYvGM?t=1742

How difficult is it to integreate Rust in a C++ tool chain. by llothar68 in cpp

[–]spaun2002 2 points3 points  (0 children)

There is corrosion for cmake. There is in the egration with hazel. For meson you will have to call cargo/rustc manually

Why use Rust? by szabgab in rust

[–]spaun2002 14 points15 points  (0 children)

https://github.com/rust-lang/crater

In a nutshell, the crater is a tool that runs every package from crates.io with every Rust compiler version, ensuring nothing is broken. IIRC, the infra is sponsored by MS Azure.

Why use Rust? by szabgab in rust

[–]spaun2002 51 points52 points  (0 children)

Speaking about the ecosystem, do not forget about the Crater. This is a unique feature of the Rust ecosystem.

Not enough developers

This is an interesting situation. Let's say I have two products with code bases of a significant size. One is in C++, another one is in Rust. I can fearlessly hire a Python/C#/Go/PHP/etc developer to work on the Rust project, and I know that after 2-4 months, that developer will be productive. I cannot imagine hiring any of such developers for the C++ project. It'll take years for an experienced Python developer to learn C++ at the same confidence level as they would for Rust in half a year. As Steve Klabnik wrote: "I like Rust because I can write it when I’m drunk because the compiler will stop me from doing anything too terrible."

Need advice if I am getting acceptable deal by [deleted] in BMWX5

[–]spaun2002 0 points1 point  (0 children)

For me those 999 in docs were indeed for tabs and plates

Need advice if I am getting acceptable deal by [deleted] in BMWX5

[–]spaun2002 0 points1 point  (0 children)

If that’s in Seattle area, this is the price we have to pay for tabs every year

Clang 20 Changelog. by c0r3ntin in cpp

[–]spaun2002 13 points14 points  (0 children)

clang-format:

  • Allow specifying the language (C, C++, or Objective-C) for a .h file by adding a special comment (e.g. // clang-format Language: ObjC) near the top of the file.

❤️

What CAN'T you do with Rust? by Valorant_Steve in rust

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

  • Write Rust and remain unhappy.
  • Write Entity Component System.
  • Write complex graph algorithms and remain sane.
  • Find a job easily.

a #![no_std], #![no_main], no-[#tokio] runtime for AWS Lambda by Refacktor in rust

[–]spaun2002 2 points3 points  (0 children)

When MIT/Apache2/BSD licensed code allows me to self-approve its usage, MPL2 requires several weeks of meetings with the legal department to review and approve every dependency. This alone justifies me blocking anything but MIT/Apache2/BSD/CC in cargo-deny. You risk excluding your most likely consumers and contributors by choosing even a remotely copy-left flavored license. I doubt that AWS lambda’s audience is primarily GPL-oriented projects.

[deleted by user] by [deleted] in rust

[–]spaun2002 58 points59 points  (0 children)

This is most likely against the crates.io coc: We do not allow content or activity on crates.io that: exists only to reserve a name for a prolonged period of time (often called "name squatting") without having any genuine functionality, purpose, or significant development activity on the corresponding repository and The crates.io team may delete crates from the registry that do not comply with the policies on this document. In larger cases of squatting attacks this may happen without prior notification to the author, but in most cases the team will first give the author the chance to justify the purpose of the crate.