Lmao imagine being so humorless that not only do you not understand certain types of humor, but you actively seek and destroy humor elsewhere that you don't understand. src
What advantages does rust have over C++ besides memory safety? There's tons of static and dynamic analyzers out there for C/C++, and last I checked Rust was beaten handily in benchmarks. Is it actually worth using or will it go the way of D or (lol) Vala?
The only reason I took a look at Rust was the "statically linked binary", because I love the idea of easily distributable (and easily cross-compiled to other platforms) small tools I often write to prop whatever shit is burning in other people projects.
Semi-embedded systems, system tooling, tiny daemons, you know the edge between programming and system administration. From what I understand it was developed as a stop-gap for gamedevs who wanted a nicer language that can still be used with C++ (it does compile to C, so you can have your .o and stick it in)
Semi-embedded systems, system tooling, tiny daemons.
Isn't that just C tho? Rust reminds me of D. It's not a bad language at all. It's got some great features to make life easier, but no one wants to contribute to big projects using it because no one wants to learn a new language for something that could just as easily been done in C++
The first "Hello, world!" program written in it was produced by a Lisp program using a local beam search of the space of all possible programs. It is modelled as a virtual machine based on ternary digits.
I like it's match construct, basically like the C switch-case on steroids and meth.
And cargo. Having had to juggle cmake, make and scons I can appreciate a built in build system. With unit test support out of the box, to boot.
What it doesn't have is the need to fuck around with new/delete/malloc/free. I can definitely appreciate that little timesaver.
From an embedded guy's perspective, it cross-compiles to baremetal targets (e.g. an ARM Cortex M4) a lot more readily than anything else.
You wanna use c++ on baremetal? Great! Prepare to strip out most of the cool shit c++ offers, unless you want a binary ten times bigger than your program flash.
You might disagree with me, but benchmarks aren't everything a language can offer. Horses for courses, breh
Absolutely not. That's why I use C. These points are all valid, but I've used C/C++ for so long messing with build systems and memory is just part of the job now. I wouldn't mind something making my life easier tbh, but C is comfy and familiar. Any chance you could link my lazy ass some neat projects using Rust?
am I the only one who still likes c/c++? yeah its a pain in the ass, but it doesnt restrict you from doing anything and has pretty much no extra performance costs aside from you not using poor or naive algorithms yourself...
I will personally admit, that productivity is not even comparable between them, but this doesnt mean lower level languages have no benefits. even if i can code in C# or java in 1/4th of the time, and in a majority of cases there wont be a noticable impact on performance, there are still cases where C++ is the better tool for the job.
Im probably not finishing my bachelors and just getting into IT because I absolutely need to get a job now so im working on certs instead and delaying any return to school.
I realized a lot of changes have happened that drive it further away from C, but I didnt realize people took it as pre-c++ 11, so I learned something today.
57 comments
1 SnapshillBot 2018-05-10
Lmao imagine being so humorless that not only do you not understand certain types of humor, but you actively seek and destroy humor elsewhere that you don't understand. src
Snapshots:
I am a bot. (Info / Contact)
1 saddertadder 2018-05-10
Bonus meme: https://www.reddit.com/r/programming/comments/8igiwq/announcing_rust_126/dyrppd4/#dys4xyr
1 Capricorgicorn 2018-05-10
A rubber hammer like a mallet? It's literally a tool you use in carpentry.
1 saddertadder 2018-05-10
You can tell he's done a lot of construction work in the past!
my friend that's a carpenter has an Tool[] belt. One of the type T of Tools is a Rubber Mallet, among many other Tool objects
1 LightUmbra 2018-05-10
Python 2.7 is the only language worth learning.
1 BumwineBaudelaire 2018-05-10
and something that runs on the jvm because that fucking thing is everywhere
1 Ed_ButteredToast 2018-05-10
Install Gentoo
1 Velxon 2018-05-10
Wow. This is ur worst post yet.
1 saddertadder 2018-05-10
fuck you never diss /u/Ed_ButteredToast, bitch.
anyways, real 10xer devs install stock ubuntu or buy an overpriced linux distro AKA macOS
1 Velxon 2018-05-10
Real niggas run all their shit on TempleOS
1 saddertadder 2018-05-10
Holy C compels you!!!!
1 3E4K3RWRGZPR970NVH28 2018-05-10
mwahahaha
1 LightUmbra 2018-05-10
1 Capricorgicorn 2018-05-10
Be 2020, notice plebs not using Barbie B-Bright Laptop.
1 toynbeeidea16 2018-05-10
This but unironically.
1 ObstinateHarlequin 2018-05-10
It's like you haven't even heard of Red Star OS
1 miraclebelly 2018-05-10
Numpy and the scipy stack are losing 2.7 support in 2020, time to grow up big boi
1 backltrack 2018-05-10
Python 3 is better than 2.7 u right
1 PrayTheFayAway 2018-05-10
What advantages does rust have over C++ besides memory safety? There's tons of static and dynamic analyzers out there for C/C++, and last I checked Rust was beaten handily in benchmarks. Is it actually worth using or will it go the way of D or (lol) Vala?
1 saddertadder 2018-05-10
that is such a broad question i cant into atm. do u even "Hello World!" bro?
what is pointer :S
what is byte :S
what is reference & :S
1 opi 2018-05-10
The only reason I took a look at Rust was the "statically linked binary", because I love the idea of easily distributable (and easily cross-compiled to other platforms) small tools I often write to prop whatever shit is burning in other people projects.
1 PrayTheFayAway 2018-05-10
Any particular reason you went with Rust over Golang for this? I mean, they're both meme languages, but I'm curious
1 opi 2018-05-10
The error handling in Go makes me go apeshit. At least when I looked into it. Now I'm trying to switch to Nim, because it's bit Python-ish in syntax.
1 PrayTheFayAway 2018-05-10
Nim looks kinda neat. Python-ish for sure, but compiled and statically typed, which is great. I just don't see the use case.
1 opi 2018-05-10
Semi-embedded systems, system tooling, tiny daemons, you know the edge between programming and system administration. From what I understand it was developed as a stop-gap for gamedevs who wanted a nicer language that can still be used with C++ (it does compile to C, so you can have your .o and stick it in)
1 PrayTheFayAway 2018-05-10
Isn't that just C tho? Rust reminds me of D. It's not a bad language at all. It's got some great features to make life easier, but no one wants to contribute to big projects using it because no one wants to learn a new language for something that could just as easily been done in C++
1 backltrack 2018-05-10
Anything is better than lua
1 ObstinateHarlequin 2018-05-10
Hipster cred, mostly.
1 PrayTheFayAway 2018-05-10
I thought Erlang was worth the most hipster points. That or Haskell
1 ObstinateHarlequin 2018-05-10
Get with the times, geezer. Haskell hasn't been cool since like 2008.
Erlang is for people who don't want to actually produce anything of value, but still want it to be provably correct.
1 PrayTheFayAway 2018-05-10
I miss when people were still finding ways to make useful and funny shit in Brainfuck 😔 esoteric >>> functional
1 ObstinateHarlequin 2018-05-10
Let me introduce you to Malbolge https://esolangs.org/wiki/Malbolge
1 PrayTheFayAway 2018-05-10
Now this is podracing
1 backltrack 2018-05-10
Stack exchange has a code golf forum
1 avistel 2018-05-10
Fuck no. Hipsters are too piss weak and beta to deal with an ownership-Nazi like the rust compiler.
Now node.js, on the other hand...
1 ObstinateHarlequin 2018-05-10
I'm pretty sure comparing Rust compiler to Nazis gets you banned from the Rust """community""" for wrong-think.
1 avistel 2018-05-10
I like it's match construct, basically like the C switch-case on steroids and meth.
And cargo. Having had to juggle cmake, make and scons I can appreciate a built in build system. With unit test support out of the box, to boot.
What it doesn't have is the need to fuck around with new/delete/malloc/free. I can definitely appreciate that little timesaver.
From an embedded guy's perspective, it cross-compiles to baremetal targets (e.g. an ARM Cortex M4) a lot more readily than anything else.
You wanna use c++ on baremetal? Great! Prepare to strip out most of the cool shit c++ offers, unless you want a binary ten times bigger than your program flash.
You might disagree with me, but benchmarks aren't everything a language can offer. Horses for courses, breh
1 PrayTheFayAway 2018-05-10
Absolutely not. That's why I use C. These points are all valid, but I've used C/C++ for so long messing with build systems and memory is just part of the job now. I wouldn't mind something making my life easier tbh, but C is comfy and familiar. Any chance you could link my lazy ass some neat projects using Rust?
1 backltrack 2018-05-10
No c++11 on embedded devices? Can you use shared ptrs, auto and templates? I've never used c++ outside of boring desktop environments
1 sRand45 2018-05-10
am I the only one who still likes c/c++? yeah its a pain in the ass, but it doesnt restrict you from doing anything and has pretty much no extra performance costs aside from you not using poor or naive algorithms yourself...
1 saddertadder 2018-05-10
bro
hol up
dont make me post this to /r/programmingcirlcejerk
C and C++ are dinosaur tier. using a managed language like Java or C# is a godsend
1 sRand45 2018-05-10
ugh I hate java. and C#. C# is easier, sure... but it stops me from doing a lot of stuff that I want that may or may not be potentially dangerous.
I dont like managed code for a variety of reasons. you can argue with me, if youd like. but I wont care or change my mind.
I know C# and java too, and though those are easier, id still attempt to make any final project in C++.
Although your talking to someone who also values assembler and from time to time, tries to tinker with it pretty ineffectually on emulators and such.
1 sRand45 2018-05-10
I will personally admit, that productivity is not even comparable between them, but this doesnt mean lower level languages have no benefits. even if i can code in C# or java in 1/4th of the time, and in a majority of cases there wont be a noticable impact on performance, there are still cases where C++ is the better tool for the job.
1 saddertadder 2018-05-10
lol replying to your own comment
1 sRand45 2018-05-10
talking to myself is fun, what can I say?
1 saddertadder 2018-05-10
its cool mang i was just projecting that u r a lil babby comp sci major that discovered MUH_BARE_MACHINE_LOW_LEVEL_ACCESS of C or C++
btw using C/C++ triggers greybeard programming fags like me, thank you.
1 sRand45 2018-05-10
sorry, I know they are very different. everyone else does it, so its out of laziness.
1 saddertadder 2018-05-10
who knows, come to /r/programmingciclejerk for fun 😜😝😜😝
1 sRand45 2018-05-10
im not nearly as good as Id like to be.
Im probably not finishing my bachelors and just getting into IT because I absolutely need to get a job now so im working on certs instead and delaying any return to school.
1 saddertadder 2018-05-10
seriousposting.exe: curious, not trying to be mean
do you live in US?
1 sRand45 2018-05-10
yeah, not a big fan of the culture and politics in general, but i was born in the USA.
1 saddertadder 2018-05-10
cool mang, I hope it works out for you. study hard and dont be a pittance towards paid resources like udemy or pluralisight. god bless.
1 hoseja 2018-05-10
I hate when people say c/c++
It implies pre-c++11 and i get nightmares.
1 sRand45 2018-05-10
I wasnt aware of the implication.
I realized a lot of changes have happened that drive it further away from C, but I didnt realize people took it as pre-c++ 11, so I learned something today.
1 saddertadder 2018-05-10
basically C is very different than C++ so using C/C++ implies that the old myth of "C++ is just C with classes XD!"
pedantic programming nerds like me get mad! grr so angerery!
1 JJJacobalt 2018-05-10
I thought they meant Rust the steam game.
I was deeply confused.
1 backltrack 2018-05-10
Rust is so fucking ugly