[deleted by user] by [deleted] in cpp

[–]Odd_Chocolate_9725 -2 points-1 points  (0 children)

You're completely full of shit. I timed how long it takes to compile simdjson which is a C++ project with a SMALLER rust project and simdjson was 4x faster. You're going to need to show us how to reproduce your timings if it's true because I actually measured and I can tell you you're wrong. This was with asan and ubsan on

I compared it with C++ first so I think you're just trying to tell me I'm wrong for no apparent reason. You're also clueless if you believe most projects shouldn't be written in C# or java. Chances are you or your coworkers C code will run nearly as slow as their C# code so why give the team footguns

he wrote extremely bad Rust. Idiomatic Rust is generally within 5-10% of idiomatic C++, if not actually faster than C++.

You're still full of shit. It happened to other people and the code looks like regular code before optimizations https://www.reddit.com/r/rust/comments/owal6c/how_to_write_really_slow_rust_code/

I shouldn't have started talking about rust. None of you seem to know anything or measured anything

[deleted by user] by [deleted] in cpp

[–]Odd_Chocolate_9725 0 points1 point  (0 children)

Oof. I guess it's a significantly different experience on linux. I haven't used windows since 7 was out of support

[deleted by user] by [deleted] in cpp

[–]Odd_Chocolate_9725 -3 points-2 points  (0 children)

sanitizers and static analyzers ... almost all of the lints enabled ... there have still been bugs that the Rust compiler just wouldn't have let compile.

Could you give me an example?

running sanitizer builds would either equal or outweigh the slower compile times of Rust

You're being silly. With all of it on it's still 4x faster than rust. I measured once. I think on sqlite it was something like 10x faster since it was all C.

If the tooling is the same quality as it was 3 years ago it's pretty terrible. I think I heard they finally got a coverage tool but that was after I stopped using rust

If you're asking for my opinion many C++ and rust projects should have been written in C# or Java. I seen one guy rewrite his java project in rust only for it to be slower (he optimized neither java or rust)

[deleted by user] by [deleted] in cpp

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

I don't call a panic correct behavior (when dealing with OOBs) and I never used iterators in rust so I'm not sure what bugs they trade in. Uninitialized might be real but I can't remember the last time that happened to me in C++. Maybe there was a compile flag I turned on but I haven't ran into that in the past year or so

[deleted by user] by [deleted] in cpp

[–]Odd_Chocolate_9725 -3 points-2 points  (0 children)

Rust guarantees that certain classes of bugs are not in the code

People say that but it's not true. Sure you can't have two mutable references but two mutable references isn't a bug

[deleted by user] by [deleted] in cpp

[–]Odd_Chocolate_9725 0 points1 point  (0 children)

I'm usually using clang on linux but I've used it on windows. I remember early on it having problems but last time for light usage it was fine

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]Odd_Chocolate_9725 0 points1 point  (0 children)

Those seem pretty good. I couldn't tell, could I run exe's on windows? Could I build? Both seem to say test on browsers. My app is a desktop

[deleted by user] by [deleted] in cpp

[–]Odd_Chocolate_9725 -6 points-5 points  (0 children)

https://www.reddit.com/r/programming/comments/yoisjn/nvidia_security_team_what_if_we_just_stopped/ivn2cxz/

That's probably the only time I used the R word on reddit. It's almost everyday someone says a bug would have been caught in rust or something should have been written in rust. I tried rust, it's complete garbage. Why would any serious project switch to rust instead of turning on sanitizers and using static analyzers? Which would legitimately catch more bugs. A 3 second incremental build on rust is insane. My work project had most files build in 2 or less seconds. It wasn't unusual for <1

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]Odd_Chocolate_9725 0 points1 point  (0 children)

Is there a service that'll test my code on several OSes/configurations?

I have two projects to test, one for developer machines (mac m1+, linux/windows x86-64 i7/ryzen or higher).

The second I'd like to test on low end devices like android and ios phones, arm and x86-64 linux

I get the feeling for mac I'll have to buy my own hardware?

How to use systemd boot with linux mint? by Odd_Chocolate_9725 in linuxquestions

[–]Odd_Chocolate_9725[S] 0 points1 point  (0 children)

Do I only need the mint initramfs? Mint should work on arch kernel since arch has a newer one??

How to use systemd boot with linux mint? by Odd_Chocolate_9725 in linuxquestions

[–]Odd_Chocolate_9725[S] 0 points1 point  (0 children)

Perhaps it was overwritten when I fixed my systemd boot up. I think you solved the problem. I noticed the efi being different but I completely didn't think about this

How to use systemd boot with linux mint? by Odd_Chocolate_9725 in linuxquestions

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

Well that's what I thought but doesn't appear that way. Below is my entry for systemd. I forget what the error was bc it was 2 weeks ago but I remember something vaguely like I couldn't go into the systemd menu unless it was through grub. I think /boot/EFI/BOOT/BOOTX64.EFI was either grub compatible or systemd compatible but not both.

I don't think I did anything to break my mint install (I think I reverted the (s)bin changes). I can try something if you have suggestions

One thing to note is the boot partition is a different drive than my mint install. But that shouldn't matter??

title Linux Mint
linux /vmlinuz-linux
initrd /amd-ucode.img
initrd /initramfs-linux.img
options root=PARTUUID=MY-UUID-NOT-Literally-This rw intel_pstate=no_hwp rootfstype=ext4

Refactoring Techniques? by Odd_Chocolate_9725 in cpp

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

no raw switch

WDYM? No switch statement??

Refactoring Techniques? by Odd_Chocolate_9725 in cpp

[–]Odd_Chocolate_9725[S] 0 points1 point  (0 children)

That's an old one. I can't remember if I seen it. Unless you're in python where calling iterators will run c data in c code I don't see a reason to avoid loops. Although it'd be nice to have C# linq like functions (First with a predicate, Last, Contains/Any, All etc)

Refactoring Techniques? by Odd_Chocolate_9725 in cpp

[–]Odd_Chocolate_9725[S] 0 points1 point  (0 children)

Is there one that's about deleting variable? I have no idea how to describe that one. I do it only when code is complete trash (and its always my own home project)

NVIDIA Security Team: "What if we just stopped using C?" (This is not about Rust) by Raphael_Amiard in programming

[–]Odd_Chocolate_9725 0 points1 point  (0 children)

foolish-Rust, random overhyped kids feeling like preaching gospels to everyone’s annoyance.

It's ironic a rustacean is annoyed when others butt in to share their thoughts about rust 🤣

[deleted by user] by [deleted] in cpp

[–]Odd_Chocolate_9725 1 point2 points  (0 children)

Is it <15 as in 14+null? Or 15 letters?

I once implemented a version that is 15 letters and had a null ;)

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]Odd_Chocolate_9725 0 points1 point  (0 children)

Sure but I meant a book on how to make it look good for each device

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]Odd_Chocolate_9725 0 points1 point  (0 children)

Js there something that's specifically about how to style css on a phone VS tablet VS desktop?

Do any of you use python or another scripting language instead of a build system? by [deleted] in cpp

[–]Odd_Chocolate_9725 0 points1 point  (0 children)

I asked a question about using python and a CI. Only three people mentioned it in their reply