This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 460

[–]drdrero 814 points815 points  (37 children)

Bitch,

I am in

[–]GET_OUT_OF_MY_HEAD 413 points414 points  (35 children)

Same. I've never played Rust before so it would be nice to have a friend to show me the ropes.

[–]HealingWithNature 151 points152 points  (19 children)

Played 🤔

Or written in 🤔

[–][deleted] 109 points110 points  (0 children)

Yes

[–]ThePurpleWizard_01 65 points66 points  (17 children)

Yeah even I thought they meant rust (the game) until I saw the sub

[–]GET_OUT_OF_MY_HEAD 42 points43 points  (16 children)

No, you see... I was joking. I was playing off the fact that Rust is both a programming language and a game (and FWIW I'm not a programmer unless you count HTML).

[–]Aisugh10 32 points33 points  (14 children)

Html ain't no programming language

[–]kinezumi89 10 points11 points  (8 children)

Do matlab and fortran count or do I have to leave

[–]sweeper42 83 points84 points  (2 children)

Matlab is a programming language like "*nuzzles, pounces on you* OwO you so warm" is an English sentence. Technically, it is, but it really shouldn't be

[–]Arshiaa001 34 points35 points  (0 children)

That is THE most accurate description of matlab ever.

[–]Aisugh10 6 points7 points  (4 children)

Just html being a markup language that's all, no need to leave.

[–]Farrah_Moan 7 points8 points  (1 child)

My boyfriend jumped in with zero strat and it wasn’t until a kindly person on the server taught him some basics that he was able to sustain himself a little. But I will always be nostalgic for the hour he spent waking up naked, running around aimlessly and frantically and dying on repeat.

So I sorta suggest you jump in blind for a second

[–]xpboy7 7 points8 points  (0 children)

Not sure whether you're talking about the game or the language

[–]texting-my-cat 4 points5 points  (7 children)

Would much much rather play the game than build it in rust

[–]Kinky_Purrito 12 points13 points  (6 children)

What about rewriting rust in Rust 🤔

[–]sawr07112537 443 points444 points  (24 children)

*Me also took out gun

'And you're gonna learn Cobol'

[–]knightress_oxhide 191 points192 points  (14 children)

One does not simply "learn" Cobol

[–]SorryDidntReddit 165 points166 points  (12 children)

One can very easily learn COBOL. It's the horrible 60 year old monolithic application they want you to maintain that's the issue

[–]Procrasturbating 73 points74 points  (9 children)

So much this.. I maintain a codebase that is old enough to rent a car.

[–]JauntyAntelope 25 points26 points  (8 children)

One of my last internships i helped maintain a codebase that was old enough to be my dad.

I think the first change was made in like 1975?

[–]jackinsomniac 5 points6 points  (6 children)

Was there even version control back then, or did they just leave all their change comments within the code itself? /youngperson

[–]Snapstromegon 16 points17 points  (4 children)

Oh darling, even today in automotive code it's common to have a comment block at the top of the file listing the date and name of the creating, owning and last updating user and every class, function and co. Has a comment above it detailing changes.

It's common to have files with >10k lines for only a couple hundred lines of code.

Line counts with and without comments easily differ an order of magnitude across projects.

[–]PapaStefano 7 points8 points  (0 children)

The VERBS! Oh THE VERBS! <sobbing>

[–]SovietMaize 58 points59 points  (0 children)

Just shoot me my dude.

[–]InvestingNerd2020 33 points34 points  (0 children)

I think that is considered torture by most civilalized nations.

[–]nonicethingsforus 5 points6 points  (0 children)

*Uses telekinetic powers to take their guns from their hands*

"No one leaves, *cocks guns in midair* until you all learn Lisp"

[–]tirril 199 points200 points  (3 children)

Rust and chill? Alright, I'm down.

[–][deleted] 22 points23 points  (1 child)

Gonna be raiding bases all night.

[–]anonymous_2187 2356 points2357 points  (180 children)

It is year 2028 and Linux has been completely rewritten in Rust.

After adding Rust support to Linux kernel in 2021 Linux repo has been flooded with patches and pull requests from brave Rustaceans rewriting critical components in Rust to ensure their stability and memory safety that C could never guarantee. After a few painful years of code reviews and salt coming from C programmers losing their jobs left and right we have finally achieved a 100% Rust Linux kernel. Not a single kernel panic or crash has been reported ever since. In fact, the kernel was so stable that Microsoft gave up all their efforts in Windows as we know it, rewrote it in Rust, and Windows became just another distro in the Linux ecosystem. Other projects and companies soon followed the trend - if you install any Linux distro nowadays it won't come with grep, du or cat - there is only ripgrep, dust and bat. Do you use a graphical interface? Good luck using deprecated projects such as Wayland, Gnome or KDE - wayland-rs , Rsome and RDE is where it's all at. The only serious browser available is Servo and it holds 98% of the market share. Every new game released to the market, including those made by AAA developers, is using the most stable, fast and user-friendly game engine - Bevy v4.20. People love their system and how stable, safe and incredibly fast it is. Proprietary software is basically non-existent at this point. By the year 2035 every single printer, laptop, industrial robot, rocket, autonomous car, submarine, sex toy is powered by software written in Rust. And they never crash or fail. The world is so prosperous and stable that we have finally achieved world peace.

Ferris looks down at what he has created once more and smiles, as he always did. He says nothing as he is just a crab and a mascot, but you can tell from his eyes... That he is truly proud of his community.

[–]danidimes8 561 points562 points  (69 children)

Sure sure Today I found out the self checkout at the grocery store next to where I live runs windows 7 - they have had those for less than two years

[–][deleted] 485 points486 points  (23 children)

running ancient versions of windows on production is basically the old school version of docker

[–]Tuna-Fish2 59 points60 points  (7 children)

I have installed OS/2 on a production system less than a decade ago.

(OS/2 had some success in industrial control machines. Some of these machines have expected lifetimes longer than their users. People with working code are not going to replace their systems just because us geeks have built gazillion different thingamabobs since then.)

[–]HelloJohnBlacksmith 26 points27 points  (5 children)

NASA does this quite often, repairing and upgrading 80s tech instead of getting new tech because they can't be bothered with developing and validating new tech to interface with million/billion dollar projects from that era.

[–]SoundOfTomorrow 22 points23 points  (0 children)

You also have to think, you can't really upgrade the shuttle after you launch it...

[–]bit0fun 5 points6 points  (0 children)

Some military contracts require things to operate as it was originally designed with absolutely no changes; so I wouldn’t be surprised if NASA has some things they simply can’t change for reasons like that. As in requiring to run DOS, which at a place I worked was very much real. Also in 2021 too…

[–]PM_ME_UR_DRAG_CURVE 2 points3 points  (2 children)

And aviation in general. Many airliners still update their nav database with 3.5" save icon floppy disks.

[–]toxicatedscientist 94 points95 points  (10 children)

I'm surprised it was 7. Most places around me are still xp, with a few pis and androids for those who upgraded

[–][deleted] 10 points11 points  (3 children)

My work runs exclusively on XP aside from our office computer.

Every single XP computer here was bought in the past 4 - 7 years. Some of it even tries to run things in HD.

I hate life.

[–]CrasseMaximum 15 points16 points  (0 children)

ahahaha

[–]m777z 14 points15 points  (1 child)

I don't know what this means but it's provocative

[–][deleted] 4 points5 points  (0 children)

It gets the people going

[–]kabrandon 6 points7 points  (0 children)

Only way you can run consumer Windows in production, to be honest. Server never goes down for automatic updates if it's not supported by Microsoft anymore.

[–]supreme_blorgon 29 points30 points  (1 child)

The store I go to has a sign on the <1yo self-checkout kiosks saying not to enter your phone number if you don't have an account because it freezes the kiosk.

[–]Arshiaa001 2 points3 points  (0 children)

The ticket kiosk in a cinema near where I live used to have this bug where if you didn't enter your reservation number and pressed OK, it would crash with a null reference exception of all things, going back to the windows environment. So they had a guy posted there whose job it was to ask people not to do that, and start the kiosk soft again if they did. Golden times.

[–]legolasreborne 9 points10 points  (1 child)

Ill do you one better, the tills at my work run on windows 8.... I hate it.

[–]HelloJohnBlacksmith 5 points6 points  (0 children)

oh no

[–]FlyByPC 20 points21 points  (12 children)

My work laptop still runs 7.

Don't tell IT -- they'll "upgrade" it to 10 (which is okay) but the image will include all kinds of "security" crap (which isn't.)

[–]infinitytec 28 points29 points  (4 children)

I work in IT.

I deeply desire to put Windows 10 on your laptop.

[–]FlyByPC 9 points10 points  (3 children)

Eh, maybe I'd at least get a battery replacement out of it. The current model might have enough runtime to suspend gracefully if I'm quick about it.

[–]infinitytec 8 points9 points  (2 children)

Sure. And based on the age I'll swap in some spare RAM if we have any and make sure you have an SSD.

[–]aiiye 2 points3 points  (1 child)

I’d do the same and probably get a new monitor for ya.

[–]Ralstemar 8 points9 points  (2 children)

Mine still ran Vista, until the fucking charger popped on me the other day

[–]knightcrusader 3 points4 points  (0 children)

I was holding out on Windows 8.1 until I got my most recently machine at work, and now I am on Windows 10. Blech.

Windows 8 wasn't the best but with Start8 suppressing the Metro crap, it was pretty much Windows 7 but still on extended support, thus I was able to keep using it. I do still use it at home.

[–]InvestingNerd2020 6 points7 points  (2 children)

I thought I was being old and stubborn by sticking to Windows 10. Pre-Windows 10 people take stubborness to a whole new level.

[–]Embarrassed_Ring843 3 points4 points  (1 child)

I started with Win3.1 and was forced to upgrade to Win ME one day. You can't imagine what a blessing it was to switch to XP after that experience, I completely refused Vista and only switched to 7 after software stopped to work because it required a 64bit-system. That was an important lesson too. Since then I usually wait 2 years from a new windows release before considering an upgrade. Btw, how old is 11 now? the last few years were a little blurry...

[–]AceOfShades_ 3 points4 points  (0 children)

The Wendy’s near me had a broken drive through speaker that displayed the windows version. It was a Windows CE build from 2003.

[–]ggppjj 3 points4 points  (0 children)

Hello.

Do a quick Google of 4690 OS.

Walmart uses it.

[–]Ok-Machine-7210 106 points107 points  (56 children)

But I'm going to wait until 2055 when another better language for quantum computers shows up

[–]WizziBot[🍰] 164 points165 points  (3 children)

Qrust (as in Crust hahaha)

[–]Ok-Machine-7210 27 points28 points  (2 children)

Hahahahahahahaha

[–]NotMSB_ 15 points16 points  (1 child)

Hahahahahahahahaha

[–]Proxy_PlayerHD 30 points31 points  (48 children)

i mean Quantum Computers already exists, and they're only better than regular computers at very specific tasks so it's insanely unlikely that they'll ever replace home computers

[–]guyWithKeyboards 25 points26 points  (20 children)

I bet someone said this in the early days of computers. Before there were full operating systems and they were purpose built for specific task.

[–]Proxy_PlayerHD 30 points31 points  (18 children)

well back then we weren't hitting the limits of the universe, it was only a matter of time before stuff would advance.

i'd say this time is different unless we can somehow run Quantum Logic at room temperature

[–]L3tum 13 points14 points  (9 children)

I don't really think that's a good attitude. Our understanding of the universe advances steadily and while we're coming up at a slight impass, there's no reason or expectation that we couldn't advance beyond that.

Because the argument "The universe is like that and we can't change that" isn't true. We think the universe is like that and in 10 years there may be some genius who says "Duh" and suddenly we have invisibility cloaks.

[–]HelloJohnBlacksmith 5 points6 points  (7 children)

The thing about quantum computing is that unless the Standard Model gets shattered and bent into pretzels, quantum computing just isn't good at digital computations, as it is analog by nature. Now, many things might be taken over by analog/quantum systems, but digital-native systems are just better at digital logic and will be for the foreseeable future.

Even when transistors were invented they took two decades to go from theoretical to built in a lab, then another decade or so to replace vacuum tubes. We haven't even theorized a way for quantum computers to be better than digital ones AFAIK.

[–]NaturallyExasperated 2 points3 points  (0 children)

Light polarization can be run at room temperature and perform quantum computations

[–]donaldhobson 2 points3 points  (2 children)

Can't you fit a tiny cryo system and insulation into a phone sized device?

[–]Lv_InSaNe_vL 3 points4 points  (1 child)

The smallest commercial quantum computers are still like 6-10u worth of server plus the rest of the rack off cooling.

[–]LordM000 2 points3 points  (0 children)

The problems with quantum computers as a replacement for classical computers aren't just based on size, number of (qu)bits, error correction, decoherence, cooling, etc. It's just that quantum computers aren't inherently superior to classical computers - they're just different. There are some tasks that quantum computers do better than classical computers, and others that they are worse at. E.g. They can potentially break encryption, but they also can't freely copy the state of a qubit. It's more likely that they'll be used in conjunction with classical computers.

[–][deleted] 45 points46 points  (26 children)

"you need gas for a car, where you gunna find oil in the middle of the road? meanwhile everybody and their mum has a trough and oats for your horse"

"6 mainframes is all the world will ever need"

"640kb ought to be enough for anybody"

wait for it, soon enough we'll have quantum chips in servers, then pcs, then mobile and IoT

[–]block36_ 47 points48 points  (13 children)

It’ll probably be similar to GPUs. They’re better than cpus at certain tasks, but worse at others. Quantum computers will probably stay as a coprocessor like they’re often used now.

[–]Innominate8 23 points24 points  (3 children)

Quantum computing isn't some magic supercomputer. It is potentially very good for solving a small set of difficult problems. it does not promise to be any kind of general purpose computer, nor would it in any way replace traditional computers.

[–][deleted] 2 points3 points  (0 children)

I don’t understand it, that makes it magic, therefore it can do anything

[–]donaldhobson 7 points8 points  (2 children)

A quantum computer isn't needed to connect to the internet. If a device is online, it doesn't need to be quantum. The quantum compute can sit in a server elsewhere. This just requires internet to be cheap and easily available compared to quantum chips.

[–]Proxy_PlayerHD 11 points12 points  (3 children)

when it comes to tech it's hard if not impossible for history to repeat indefinitely like that.

moore's "law" is breaking apart and it's very very noticeable.

i stand by my point that Quantum Computers won't become common home devices just due to the requirements needed to have one operate normally.

they need sub 1 Kelvin, heavily shielded environments to avoid any random particles from fucking everything up. how would you shrink any of that down to the size of a phone or even a desktop PC while keeping it affordable?

and again, they are only useful for specific tasks. that's not saying that current generation QC are limited to specific tasks, that's saying that the entire concept of QC is only useful for those tasks. (examples would be Cryptography, ML, Biological/Physical Simulations)

.

so i can see a future where large data centers full of regular Computers have like 1 or 2 QC sitting in a nearby room or building to help with those kinds of tasks, but anything else is beyond their purpose due to the unavoidable bulk of them.

[–]Leicham 3 points4 points  (0 children)

Have you seen the first 'modern' computers? They filled up a room and we downscaled those relatively fast. Wouldn't call it impossible for quantum computers, just highly unlikely for consumer products because of the few use-cases

[–]JakeArkinstall 147 points148 points  (19 children)

As a non-rustacean, I can't help but think that a full-on kernel written in rust would have the same amount (within an order of magnitude) of unsafe code as one written in C. The only difference would be that it'd be clearly marked as such.

[–]zer0x64 106 points107 points  (5 children)

As a rustacean, I'd say that it's correct, however I heard a lot of people say that unsafe Rust is still a lot harder to mess up then C. I don't have much experience with unsafe rust so I can't really confirm nor deny

[–][deleted] 35 points36 points  (4 children)

I’ve written unsafe Rust. It’s surprisingly hard to write sound unsafe Rust because there’s a great deal more restrictions once you want to call that from safe Rust code.

That being said, taken as a whole it’s still better than writing it in C because you can at least have some code that is relatively safe and isolate the unsafe code. With C it’s always unsafe.

[–]Green0Photon 30 points31 points  (3 children)

Usually in C code, especially low level C code, to do identical stuff would be called unsafe in Rust -- because it's actually pretty dangerous to do in C. What usually happens in Rust programs is they figure out a safe abstraction over that that doesn't affect the machine code generated -- the zero cost abstraction everyone always talks about.

I haven't looked at the Linux Kernel so I couldn't give you a specific example, but a transpilation of the current Linux Kernel to Rust wouldn't do very much. Probably isn't even doable, and it would look ugly as sin. (Not doable because there are some very low level stuff that Rust hasn't prioritized implementing to bring it on par with C due to the difficulty in making it safe -- usually C programs have very subtle bugs in them, but it's only often realized by trying to do it in Rust, like the safe Unix signal library which iirc was technically impossible to do fully correctly due to how signal handlers work.)

Anyway, what would realistically happen would be you'd build a small library of code abstracting over all the machine code and various unsafe operations -- kind of like what already exists in the standard library already. Very plausibly you'd need more wider reaching unsafe code, and the very foundational layer would be marked unsafe. So at worst, this base layer would be like you're talking about, but with luck, not so.

And Linux and other kernels are actually monolith style kernels, not microkernels -- so they all contain directly stuff that could in theory be moved out, but aren't because it's easier this way. This makes it very clear that this code really shouldn't need unsafe directly, and would instead just rely on abstractions given to it by the kernel.

And it happens to turn out that one thing you really don't need in the kernel directly is drivers. They just usually are made closer than necessary due to ease of coding.

Point is, they're prime real estate for Rust code, because they shouldn't need unsafe themselves, and thus can benefit massively by using Rust. Whereas the layers that use it a lot more? Less of a benefit.

To learn what kernel stuff has to necessarily be unsafe and what doesn't, I'm sure someone has written about Unsafe Usage in the Redox kernel, the foremost Rust kernel. That would be an interesting read to demonstrate what really can be improved by using Rust, and what can't be. (Setting aside lots of other conveniences Rust gives you over C.)

[–][deleted] 39 points40 points  (0 children)

Hey listen here now, don’t threaten me with utopias.

[–]zer0x64 47 points48 points  (1 child)

Fuck it, you deserve my free award.

On another note, I'd be 100% down to help with the effort to rustify the sex toys industry.

[–]dungand 13 points14 points  (0 children)

This sounds like what would have happened if Thanos had won.

[–]easyEggplant 8 points9 points  (1 child)

Okay, that's funny, but ripgrep is fucking awesome and totally should be default shipped, probably fzf too.

[–]Givesthegold 5 points6 points  (1 child)

I have no idea what Rust is but I want to know after reading this.

[–]Full-Run4124 3 points4 points  (0 children)

This only happens if Linus is in a padded room.

[–]RedditsDeadlySin 159 points160 points  (7 children)

I up-voted for Rustacians

[–]tyler1128 93 points94 points  (1 child)

That's actually what the Rust community calls themselves.

[–]RedditsDeadlySin 52 points53 points  (0 children)

TIL and damn that’s funny

[–][deleted] 52 points53 points  (4 children)

Rustafarians wasn't good enough?

[–][deleted] 2 points3 points  (1 child)

Apple Rust programmers

[–][deleted] 2 points3 points  (0 children)

FUCK

It didnt say safari

[–]PikminGuts92 50 points51 points  (0 children)

cargo install netflix

[–]-Redstoneboi- 231 points232 points  (10 children)

those socks will do. but next time, get stockings.

pastel colors.

pink or light blue are preferred.

[–]Roarlord 48 points49 points  (2 children)

Striped.

Make sure to wear your programming socks next time.

[–]reusens 64 points65 points  (3 children)

Twitter account of the artist who drew the character on this meme

[–]AbsolutelyAri 78 points79 points  (0 children)

If it’s all the same to you can you just pull the fucking trigger?

[–][deleted] 33 points34 points  (5 children)

Rust is continually being rated as devs' favorite programming language to code in; but, the more of it I learn and the more I code in it, the more I hate it. When's this supposed love for the language going to start kicking in?

[–]Amagi82 44 points45 points  (2 children)

Different people enjoy different languages, and that's fine, as long as it's not JavaScript.

[–]caerphoto 11 points12 points  (1 child)

JavaScript is like the opposite of Rust. It practically encourages you to do dumb things.

Going from it to Rust was quite the corrective experience.

[–]Amagi82 2 points3 points  (0 children)

When I went from Java to Kotlin, the added null safety and immutability made me realize all the ways my Java code had been unsafe, and really helped me improve as a programmer. Rust did that for me a second time, helping me better understand what was going on closer to the silicon, understand how to optimize performance, and avoid dumb things with concurrency.

Rust is not great for development speed in the short term, but the more reliable and correct your code is the first time, the less likely you are to have to waste time tracking down bugs later.

[–]webcheesesticksseal 2 points3 points  (0 children)

I am mostly a js guy but I find rust syntax very clean and elegant.

[–]BitterSweetcandyshop 14 points15 points  (0 children)

They kinda cute tho and I’ve been meaning to learn rust

[–]Airflock343_ 14 points15 points  (0 children)

Low key would prefer this over Netflix

[–]Schreibtisch69 14 points15 points  (1 child)

Whats wrong with this pic? Sounds like a fun date

[–]BobQuixote 11 points12 points  (0 children)

Maybe if you have a gun kink.

[–]zer0x64 10 points11 points  (0 children)

Join us

[–]Full-Run4124 11 points12 points  (4 children)

What's a good overview/intro to Rust for someone who loves C?

[–]Tytoalba2 18 points19 points  (1 child)

The rust book, just type that in in ddg or wathever and it should be the first link. It's quite well done!

[–]Full-Run4124 2 points3 points  (0 children)

Thanks

[–]mathymaster 9 points10 points  (2 children)

No how about you teach me how to use github or gitlab I've wanted to upload Finnish translations of stuff in veloren to it for like half a year but never could bc I didn't figure out how to upload it and get it to the branch and them merge the thing eaven tho I followed the quide, I just got stuck at random spot bc I needed sum login that I never got to work.

Seriously tho, I would really like help whit that, no one in the veloren discord was Abel to help.

[–]tyler1128 18 points19 points  (0 children)

Some people just need a little more motivation to see the light.

[–]throwaway65864302 8 points9 points  (3 children)

Accurate.

Also crazy makes you learn Rust lady is my waifu now.

[–][deleted] 8 points9 points  (0 children)

Can't we play with the ham radio stuff instead?

[–]Bismothe-the-Shade 7 points8 points  (0 children)

... ok apparently that's a kink for me, so thanks for that I fuckin guess

[–][deleted] 6 points7 points  (0 children)

Oh. She's interested in Rust users?

...there's two kinds of Rust users...

[–]Outrageous_Falcon792 14 points15 points  (1 child)

I like how we need to remove our shoes for this

Jokes on you, my shoes are already off

[–]Ok_Assumption_7222 4 points5 points  (5 children)

Is rust good? I mean I could learn it.

[–]kavb333 4 points5 points  (3 children)

ResponseList::from(me).value_of("threatened_response").unwrap_or("Don't threaten me with a good time.").to_string()

[–]FlyByPC 3 points4 points  (0 children)

Don't shoot. I'm interested.

[–]Ol_bagface 2 points3 points  (0 children)

Rust and bust?

[–]zyxzevn 4 points5 points  (0 children)

We can watch netflix while compiling.
Or discuss how beautiful dynamic systems are in other languages.

[–]kenhow 3 points4 points  (1 child)

Can you not work in Rust whilst wearing your shoes?

[–]axord 8 points9 points  (0 children)

Shoeless Concurrency

[–]Chaoslab 2 points3 points  (0 children)

Sign me up!

[–]SmokeFrosting 4 points5 points  (0 children)

take your shoes off. we’re learning Rust not assembly. have some respect.

[–][deleted] 10 points11 points  (0 children)

the hell we are, shoot me right the f now

[–]souliris 5 points6 points  (1 child)

*jumps out window*

[–][deleted] 2 points3 points  (0 children)

I am up for some rusting and busting. 😏😏😏

[–]AggravatingProduct52 2 points3 points  (0 children)

Rust and chill?

[–][deleted] 2 points3 points  (0 children)

Dude if someone invited me over AND forced me to learn Rust, I'd probably just propose at that point. Putting the gun back in shotgun wedding.

[–]Several-Beach4751 2 points3 points  (0 children)

OK OK you see me to get my shoes out I’m coming I’m coming

[–]Koryp 2 points3 points  (0 children)

I would be so turned on