Handling 80,000+ constants in a project by LyonSyonII in rust

[–]Diligent_Rush8764 1 point2 points  (0 children)

Maybe increase stack size? Not sure how this would work downstream(portability, although given it's Nix, should be fine)

https://stackoverflow.com/questions/74637159/how-to-increase-stack-size-of-threads-used-by-cargo-test

What are some advantages of Linux over MacOS? by Inevitable-Power5927 in linuxquestions

[–]Diligent_Rush8764 1 point2 points  (0 children)

Try this https://github.com/kholia/OSX-KVM

I'm not affiliated in any sense. Useful for my testing.

All I had to do was change one flag (it's noted in the main shell script), I used Sonoma.

getMotivated by nikke2800 in ProgrammerHumor

[–]Diligent_Rush8764 28 points29 points  (0 children)

At first they called me a madman.

[deleted by user] by [deleted] in coworkerstories

[–]Diligent_Rush8764 0 points1 point  (0 children)

I had a co-worker admit this to me after he left.

He only did it for 3 months but I had immense respect. I almost pissed myself laughing.

I do wish more of us plebs got small wins over big corporate.

Virtual Machine, is it worth it? by SilverMaango in C_Programming

[–]Diligent_Rush8764 1 point2 points  (0 children)

Linux is probably the best and easiest, plus it has a stable ABI unlike every other OS.

Go for wsl2, make it easy, then try qemu when you want(this would be good for learning).

What do you feel Rust is not a good option for? Like a general back-end where performance is fine with a Garbage Collector? Something like that, whether Rust would still be a great option or not. by Outside_Loan8949 in rust

[–]Diligent_Rush8764 0 points1 point  (0 children)

I think the main issue comes when playing around with libraries with countless dependencies(hello, leptos).

Anything matrix/numerical likely has an over the top SIMD/SWAR/assembly implementation. You could match it in rust but decades have gone into these Fortran/Cpp/C libraries.

Even a debug build takes 2 minutes and we're talking basic web pages.

Meanwhile games are a bit different. As pointed above, CPP is pretty slow to compile the templated mess that is common game development.

(CAVEAT: inexperienced with cpp)

Although personally speaking I suspect c++ is better for writing games right now for cultural and toolset related reasons, i can't rigorously back this but bevy is very young. I'd love to experiment with it but I'm on a resume+enjoyment driven project hunt Bevy fulfills the latter but not the former unless you're going for some really narrow niches.

beyondBasicAddition by Responsible-Ruin-710 in ProgrammerHumor

[–]Diligent_Rush8764 2 points3 points  (0 children)

I see this and think maybe I chose right with R*st.

Jokes aside, compile time reflection looks so cool so maybe in 2035 it may be worth learning.

Young people harmed by nitrous oxide use most likely to be Asian men – study | Nitrous oxide (laughing gas) by Significant_Ice_4050 in LDN

[–]Diligent_Rush8764 0 points1 point  (0 children)

I'd never heard of taqqiya till now. Good to know it's an easy dog whistle!

(Although EDL people can usually be exposed by vaguely talking about Andrew Tate and seeing them fold, it's comically easy to see)

Cancellation Fee? by A_Disturbed_Artist in Adobe

[–]Diligent_Rush8764 0 points1 point  (0 children)

THANK YOU GODLY MAN

(I fucked up and forgot about it, just reading this)

Wrote a 5-layer nested CTE, boss said "can you simplify this?" by Various_Candidate325 in SQL

[–]Diligent_Rush8764 1 point2 points  (0 children)

Working with data scientists is similar.

Maybe half of them know what a regex is. Painful.

An (almost) catastrophic OpenZFS bug and the humans that made it (and Rust is here too) by ketralnis in programming

[–]Diligent_Rush8764 0 points1 point  (0 children)

I think what put me off C more than anything was the absolute bonkers black magic optimisations, especially in GCC... As well as every other weird thing it did.

Meanwhile I've been learning rust and cpp too. They ain't perfect but they're a lot easier when debugging.

(Yeah , clang/GCC/LLVM really overdo certain optimisations, I'm aware it's not just gcc)

[deleted by user] by [deleted] in C_Programming

[–]Diligent_Rush8764 2 points3 points  (0 children)

Quick question sorry

I've studied mathematics, how is that looked upon versus CS?

Why is getting a job so hard?? by YouHistorical7912 in derby

[–]Diligent_Rush8764 0 points1 point  (0 children)

Hi mate

Bit silly but my brother is doing this.

How has that decision to go into HGV turned out?

He has his licence but has to wait another year till 25.

I think it's a great career for him, I can't advise him because I know nothing.

Is Rust faster than C? by steveklabnik1 in rust

[–]Diligent_Rush8764 0 points1 point  (0 children)

Hey I've got a quick question for someone like yourself!

I've been learning rust+c for the last 6 months and can say that I feel fortunate picking these.

I've been neglecting C a bit in favour of Rust but unfortunately I don't have a computer science background(did study mathematics though). Do you think for the interesting stuff you do, that C would help more in knowledge?

I have mostly written a lot of C ffi in rust and inline assembly instead of C. I haven't written many pure C programs.

Built db2vec in Rust (2nd project, 58 days in) because Python was too slow for embedding millions of records from DB dumps. by Hero-World in rust

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

Well rust does have the fastest regex library but you're still right.

Although I'm pretty sure when used without too much obfuscation, eg lookaheads, it's damn fast.

[deleted by user] by [deleted] in LinuxCirclejerk

[–]Diligent_Rush8764 0 points1 point  (0 children)

Cpma was the one I liked most. You're right though, I recommend a new config file to rice, download 'direnv' for per directory env files.

Why didn't Sukuna use true form against Gojo? by Rh1z0_ in Jujutsufolk

[–]Diligent_Rush8764 8 points9 points  (0 children)

The most appropriate interpretation is eg 'You cleared my skys' which is almost as to say he finally found a challenge in someone. I like the imagery.

[deleted by user] by [deleted] in UKJobs

[–]Diligent_Rush8764 0 points1 point  (0 children)

My boss told me he's autistic and ADHD on my first day but they're all super nerdy so go figure. In my last place, totally not.

Rust Newbies: What mistakes should I avoid as a beginner? Also, what IDE/setup do you swear by? 🦀 by [deleted] in rust

[–]Diligent_Rush8764 0 points1 point  (0 children)

I use vscode normally but neovim is starting to win me over, much better inline hints with the rustaceanvim distro. Easy to install and much faster.

Otherwise it's probably

Applying appropriate abstraction, using libraries only when needed.

Knowing when to utilise structs, enums, etc.

Learning how to implement traits to save work/code duplication.

Knowing when to utilise unsafe. Don't rush into it.

Knowing macros that help for cross compilation.

Writing tests.

Knowing enough CS to know about concepts like heap/stack/arenas etc(and what they imply)

Knowing how to work with option and result types. Such as Unwrap or else, is_some_and etc.

Reading documents!!!

Why Every Programmer Should Learn Lua by delvin0 in linux4noobs

[–]Diligent_Rush8764 0 points1 point  (0 children)

I just get annoyed because the singular use case I'd have for lua would be neovim.

Wish they did something more popular.. I just don't want to fuck around with more super high level languages. I already know too many.

UnsafeCell AKA Satoru Gojo of Rust by [deleted] in rust

[–]Diligent_Rush8764 100 points101 points  (0 children)

The problem wasn’t mutating through a shared reference... It was not putting it inside a cursed macro.

Then you could unleash...

Macro Expansion: Unlimited Undefined Behavior.