Home › Forums › Science & tech › If C and C++ are such great languages according to this board why are they so much more vulnerable t…
- This topic has 134 replies, 1 voice, and was last updated 7 months, 2 weeks ago by
Anonymous.
-
AuthorPosts
-
-
October 9, 2021 at 8:09 pm #183706
Anonymous
GuestIf C and C++ are such great languages according to this board why are they so much more vulnerable to buffer overflow? Isn’t Rust far less vulnerable to buffer overflow? Why learn C and C++ when rust is a thing? I personally am as it is useful for my field and understanding assembly, but for everyone else does it make sense? What other reasons justify learning C and C++ over Rust?
-
October 9, 2021 at 8:10 pm #183707
-
October 9, 2021 at 8:15 pm #183708
Anonymous
Guestim gonna be honest im a zoomer please elaborate on what’s said there
-
October 9, 2021 at 8:18 pm #183711
Anonymous
Guestif you code in SPARK, it’s impossible to code a wrong program
-
October 9, 2021 at 8:24 pm #183713
Anonymous
GuestThat’s absolutely not what it means.
SPARK doesn’t have undefined behavior, which means that it’s theoretically possible to conduct a rigorous formal verification, which would let you verify that a given program acts according to a given formal specification.
This has nothing to do with right or wrong. Your program can have dead-wrong logic (e.g. using a wrong formula to calculate a missile’s trajectory) and you’ll only discover it with FV if you write the proper test.
-
October 9, 2021 at 9:47 pm #183783
Anonymous
GuestAre you saying that a language can’t babysit a programmer 100%? How insightful.
Seriously, the article even uses the term "correctness of code."
if you code in SPARK, it’s impossible to code a wrong program
gave a decent summation.
-
-
-
October 9, 2021 at 8:24 pm #183714
Anonymous
GuestRust is a hobby project. C/C++ are professional tools.
If you want to do anything serious on Rust, you have to use unsafe, and as the docs say: "you are on your own, it makes Rust as vulnerable as the code you are importing"
-
October 9, 2021 at 8:26 pm #183717
Anonymous
GuestEven if you stick with safe code, Rust code just isn’t mature enough. I’m getting an endless amount of panics from allegedly production-ready libraries I’m using.
-
October 9, 2021 at 8:35 pm #183724
Anonymous
Guestlmao
-
-
October 9, 2021 at 8:27 pm #183719
Anonymous
Guest>Rust is a hobby project. C/C++ are professional tools
that must be why fortune 500 companies are starting to use Rust now too
>you have to use unsafe
you say this as if it’s supposed to be forbidden, or illegal to use "unsafe". you don’t seem to understand the point of having explicit unsafe blocks and are trying conflate it with the code being "bad", or somehow invalidates the entire language, which is absurd-
October 9, 2021 at 8:30 pm #183720
Anonymous
Guest>fortune 500 companies are starting to use Rust
They aren’t. The Rust cult keeps a list whenever a company makes a passing comment of having written 1 line of Rust for one module, and then go on to pretend all the products are powered by Rust.One good example is Dropbox which Rustaceans love to brag about using rust, yet you check their job offers and there’s nothing for Rust, just Python/Go/C/C++/Java/JavaScript
-
October 9, 2021 at 8:32 pm #183722
Anonymous
Guest>They aren’t.
except, they are, why are you lying? I personally know someone who was hired at one specifically to use Rust on a new project with a new team of people.
Microsoft is even working on their own new language with similar concepts to Rust, to help create more secure and malware resistant software. you’re just willfully ignorant, this is the future of software-
October 9, 2021 at 8:35 pm #183725
Anonymous
Guest>Microsoft is even working on their own new language
so….not rust? what a resounding endorsement of rust.
-
-
-
October 9, 2021 at 8:41 pm #183731
Anonymous
Guest>that must be why fortune 500 companies are starting to use Rust now too
They are only using it for web services. Apples listing about Rust was for a webservice-
October 9, 2021 at 8:46 pm #183734
Anonymous
Guest>browser
>web service
so to avoid buffer overflow as it’s safer right?what are important systems cause a web service sounds pretty important?
pls sir pls elaborate
-
-
October 9, 2021 at 9:55 pm #183789
-
-
-
October 9, 2021 at 8:38 pm #183728
Anonymous
GuestImportant systems will continue using Ada not Rust. You use Rust when safety is nice to have but not a life-or-death requirement. Such as a browser.
-
October 9, 2021 at 9:16 pm #183751
Anonymous
Guestim gonna be honest im a zoomer please elaborate on what’s said there
if you code in SPARK, it’s impossible to code a wrong program
The F35 software is written in c++
-
-
October 9, 2021 at 9:44 pm #183781
Anonymous
GuestDude, I’m a crummy programmer, and I read that while 75% drunk and understood what was said. How on Earth did you not understand?
-
October 9, 2021 at 9:50 pm #183784
-
-
October 9, 2021 at 10:15 pm #183792
Anonymous
Guestrust defaults to crashing on runtime errors, which is just a complete no go in safety critical software.
-
October 9, 2021 at 10:18 pm #183795
Anonymous
Guest>defaults to crashing
so does C++
and if you’re writing safety critical software you never do things the default way, I don’t care what language you’re using, so this is a non agrument-
October 9, 2021 at 11:45 pm #183828
Anonymous
Guest>if you’re writing safety critical software you never do things the default way
Ada says hi
-
-
October 9, 2021 at 10:24 pm #183796
Anonymous
Guestno it doesn’t
pretty much everything returns a Result<> or an Option<>
you can unwrap() it causing panic or handle it properly it’s up to you
-
-
-
October 9, 2021 at 8:22 pm #183712
Anonymous
Guestthat has way more to do with government and military specs requiring standards for every freaking tiny thing. it doesn’t mean Rust is bad or unfit for any purpose. there is so much freaking red tape to do anything government related that private industry doesn’t have to deal with
-
October 9, 2021 at 8:27 pm #183718
Anonymous
GuestThe Rust team doesn’t have the capability to work on that level because it’s a hobby project. That’s why it has one lone compiler with over 7000 bugs (and growing), everyone uses the nightly version because anything slightly outdated is inadequate, no standard (let alone a safety standard), package manager has another 1000 bugs, they are swamped in bugs and can’t keep up, and they keep ousting all the key people that made Rust (the lead dev, the Rust book guy)
-
October 9, 2021 at 8:30 pm #183721
Anonymous
Guest>The Rust team doesn’t have the capability to work on that level because it’s a hobby project.
the bit about not using in military context because of not having secure coding standards has nothing to do with the language itself, or does it suggest it’s somehow insecure, it LITERALLY means no one has sat down and put together a formal standard of recommendations for secure coding practices. the fact that no one has sat down and done this means they can’t use it
it has absolutely nothing to do with Rust, or the people working on Rust. anyone could do this, just no one has bothered to do it.-
October 9, 2021 at 8:49 pm #183735
Anonymous
Guest>just no one has bothered to do it.
And why do you think that is? Because the faries haven’t said "Go!"?
>I work on such systems. Maturity matters.-
October 9, 2021 at 8:52 pm #183737
Anonymous
Guest>And why do you think that is?
doing standards work like that isn’t free, and it’s time consuming. if no one has a vested interest in doing it then it won’t get done
and who’s to say someone isn’t working on it right now? there may be a team of people interested in using Rust in such projects and is working to get such standards written, it wouldn’t surprise me if it was true
I also wouldn’t be surprised if it wasn’t happening because shit takes eons to change in government and military, and they already have things in place that "just work" and probably won’t see change for 10-20 years -
October 9, 2021 at 9:04 pm #183739
Anonymous
Guest>And why do you think that is?
There hasn’t been much motivation to do so. Safety standards exist for C and C++ because if such standards didn’t exist, every program written in them would potentially be a time bomb. For Rust, there’s not much that needs to be said. Just…1. Don’t use unsafe when a safe alternative exists. If unsafe must be used, have someone else verify.
2. Don’t use panics unless you mean to crash everything (you don’t). Don’t use functions that can panic unless you can verify they can’t.
3. Don’t rely on a crate without verifying its safety, and when you do, specify an exact version number to prevent supply chain attacks.Honestly there’s not *too* much to be concerned about.
-
October 9, 2021 at 9:11 pm #183742
Anonymous
Guestevery allocation can panic in Rust, such a great language
-
October 9, 2021 at 9:20 pm #183759
Anonymous
GuestThere’s a reason why the try_new and try_reserve family of methods are being implemented on Rust data types that allocate. That said, panicking on allocation only happens when a system is out of memory, at which point, there is very little that an application can do normally.
-
October 9, 2021 at 9:24 pm #183769
Anonymous
Guest>something that any relevant language would have implemented on first day is being implemented 6 years later in rust
You actually *can* catch panics.
https://doc.rust-lang.org/std/panic/fn.catch_unwind.html>not recommended to be used as try/catch mechanism
>cannot catch all panics
this isn’t even why it was added to begin with, scrotebrained shills don’t even know a thing about rust, cute2 more weeks to flatten C++ programmer curve
-
October 9, 2021 at 9:26 pm #183770
Anonymous
Guestwhat’s the quivalent of try_new and try_reserve in C++?
-
October 9, 2021 at 9:28 pm #183772
Anonymous
Guestnew(std::nothrow)
-
October 9, 2021 at 9:39 pm #183778
Anonymous
Guest>not recommended to be used as try/catch mechanism
You should focus on the reason why. Most functions in Rust’s standard library that panic have alternatives that do not panic, and instead return an Option or Result. It is much more preferable to either use that return value or propagate it, than it is to force panics into the role of try/catch as they are used in languages where exceptions are the standard error model. Panics should be treated as a scenario for which no recovery exists.>cannot catch all panics
Rust panics can take two forms: unwind or abort. This is specified at the level of the crate, in your Cargo.toml file, and the default is to unwind. If a panic can unwind, it will ALWAYS be caught by catch_unwind. If you choose to abort instead in order to minimize binary size, catch_unwind will not catch it, because the program will abort at the site of the panic, with no room for cleanup. Since the programmer can control how they want panics to behave in their program, however, this is not that much of an issue. -
October 9, 2021 at 9:40 pm #183779
Anonymous
Guestif only anything in Rust returned option or result instead of randomly panicking…
-
October 9, 2021 at 9:51 pm #183786
Anonymous
GuestMemory allocation is one of the few things in Rust that can only panic on failure, and there is current work being done to stabilize an API that allows for failable allocations. Nearly every other thing in Rust that can panic also has an alternative that does not.
-
October 9, 2021 at 9:53 pm #183788
Anonymous
Guestif trannies cared about safety, it would’ve been default
You’re gonna need to show that picture of the C++ conference trans chick.
>exception to the rule is the rule
-
October 9, 2021 at 10:13 pm #183791
Anonymous
Guest>if trannies cared about safety, it would’ve been default
If every function that allocated memory returned an Option, most programs would have to be more verbose. The reason why panicking is a default is because in nearly all cases, running out of memory is practically impossible, and in the odd event that it does happen, there is nearly nothing that a programmer could do to recover. It is only in certain embedded applications where you both have memory being tight, and also have failure being unacceptable, that this comes up.>exception to the rule is the rule
Funny thing is… the "rule" in Rust is that nearly all users are straight white guys. Not trans people. -
October 9, 2021 at 10:17 pm #183793
Anonymous
Guest>The reason why panicking is a default is because in nearly all cases, running out of memory is practically impossible, and in the odd event that it does happen, there is nearly nothing that a programmer could do to recover
What the fuck are you talking about?
Take Photoshop as an example, try to load xbox huge raw file, i.e try and allocate 1TB ram, oops can’t do it, WHY THE FUCK WOULD THE PROGRAM CRASH WHEN IT CAN DISPLAY "NOT ENOUGH MEMORY FOR THAT FILE" AND KEEP GOING?
This is why no one can take rust seriously. -
October 9, 2021 at 10:12 pm #183790
Anonymous
Guest>if only anything in Rust returned option or result instead of randomly panicking…
Now imagine a language where pretty much anything could throw an exception, return a type system ruining magic value not part of the function signature, maybe set a global flag somewhere and silently fail, or return a number you manually have to look up to know what it means. -
October 9, 2021 at 10:35 pm #183802
Anonymous
GuestThe only thing that panics is alloc, so std. I don’t think that military software is gonna use std at all. Rust doesn’t alloc by default.
>rust compiler is mostly written in sepples
>rust compiler is written in rust
>but muh the back end it uses is written in sepples so it means that it’s written in sepples
kys -
October 9, 2021 at 10:37 pm #183804
Anonymous
Guestthe backend is part of the compiler anon-kun. you could even argue its the most important part
-
October 9, 2021 at 10:38 pm #183807
Anonymous
GuestChoose from llvm, GCC, or cranelift (which is written in Rust).
-
October 9, 2021 at 10:40 pm #183809
Anonymous
Guest>cranelift
that toy which got archived because trannies can’t into systems programming? -
October 9, 2021 at 10:42 pm #183812
Anonymous
Guestcranelift is not really a toy, it’s meant to be used as a jit compiler, not an aot compiler
-
October 9, 2021 at 10:45 pm #183815
Anonymous
Guest>jit
so a toy -
October 9, 2021 at 10:48 pm #183816
Anonymous
Guest>no true scotsmanning a non sequitur
just for how long do you intend to keep digging? -
October 9, 2021 at 10:50 pm #183817
Anonymous
Guestcranelidt is archived repo, but since you don’t actually use it, it makes sense that you’d miss such an unimportant detail, waiting for Rust to be archived soon
-
October 9, 2021 at 10:40 pm #183810
Anonymous
Guestwhich one do you choose?
-
October 9, 2021 at 10:37 pm #183805
Anonymous
GuestBackend is what actually generates real code than runs on bare metal
>and rust compiler has this part written in c++ because it just does okay, we could rewrite in rust anytime!
-
-
October 9, 2021 at 11:43 pm #183826
-
October 9, 2021 at 11:49 pm #183830
Anonymous
GuestAre you really going to attempt to free up system resources and/or compact memory in some random non-critical application? I understand the need for that ability to exist, but in most applications crashing is the sensible [albeit still undesirable] solution.
-
October 10, 2021 at 3:09 am #183839
-
-
-
-
October 9, 2021 at 9:11 pm #183743
Anonymous
Guestalso, rust is like 6 years stable, that’s basically still a new language, I wouldn’t expect strict military coding standards to exist yet, I don’t know why this surprises anyone
-
October 9, 2021 at 9:12 pm #183744
Anonymous
Guestif it were relevant in the field the standard would already exist and it would already be used
>but it isn’t
>will never be
>just like you will never be a woman-
October 9, 2021 at 9:14 pm #183748
Anonymous
Guesthow on earth do you expect a secure coding standard to just come into existence out of thin air for a new language?
-
October 9, 2021 at 9:15 pm #183749
Anonymous
Guestwhen people actually use the tool, these things just happen to be made
>when will the realization kick in, chud?
oh no no no no -
October 9, 2021 at 9:17 pm #183754
Anonymous
Guest>when people actually use the tool, these things just happen to be made
correct, and I’m sure there will be a secure standard at some point
you’ve clearly never worked for the government, 6 years is basically no time at all, it’s not private industry. Rust probably won’t make it into any major projects there for at least another 5-10 years
and again, who cares what the military does? why is this a sticking point for anyone? -
October 9, 2021 at 9:19 pm #183757
Anonymous
GuestWho cares at all anyway? Use what you want. They all freaking work at the end of the day and what someone uses doesn’t affect you whatsoever.
-
October 9, 2021 at 9:22 pm #183765
Anonymous
Guest>what someone uses doesn’t affect you whatsoever
then does Rust specifically, more than seemingly any other language, make some on LULZ seethe so freaking hard that it even exists, or that some people like to use it? -
October 9, 2021 at 9:24 pm #183768
Anonymous
Guest*why does
-
October 9, 2021 at 9:26 pm #183771
Anonymous
GuestBecause it’s community is a symptom of a current major social issue, and one that seems to be plaguing the tech industry the most.
LULZ also argues about which web browser to use every single day.
-
October 9, 2021 at 9:19 pm #183758
Anonymous
Guest>just in 2 more weeks rust will replace C++
HAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
>just 2 more weeks!1one!!!>leak code of proprietary software
Anon, just remember, you said non-toy… -
October 9, 2021 at 9:21 pm #183762
Anonymous
Guest>just in 2 more weeks rust will replace C++
??? -
October 9, 2021 at 9:21 pm #183763
Anonymous
Guest2 more weeks guys, in 2 more weeks rust will be viable in aviation!
-
October 9, 2021 at 9:23 pm #183766
Anonymous
Guestsource?
-
October 9, 2021 at 9:23 pm #183767
Anonymous
GuestWhere are you pulling this 2 weeks number from?
-
-
-
-
-
-
-
-
October 9, 2021 at 9:10 pm #183741
Anonymous
Guest>code that may cause people to die needing standards is bad because it just is
reminder that even trannies wouldn’t date trannies-
October 9, 2021 at 9:13 pm #183745
Anonymous
Guest>code that may cause people
what?how is that a Rust problem? same thing can happen in C or C++, or any language. if you request more memory for an allocation and the OS can’t give it to you, what do you expect to happen?
-
October 9, 2021 at 9:14 pm #183746
Anonymous
GuestC++ never panics
-
October 9, 2021 at 9:15 pm #183750
Anonymous
Guestof course not, it throws an exception, which if uncaught will terminate the program, totally different
but please point me to a program that gracefully catches and handles an out of memory exception-
October 9, 2021 at 9:16 pm #183752
Anonymous
Guest>can’t into try catch
-
October 9, 2021 at 9:18 pm #183755
Anonymous
Guestyou skipped the other part. show me a non-toy project that gracefully catches out of memory exceptions and actually does something with them
-
October 9, 2021 at 9:22 pm #183764
Anonymous
GuestYou actually *can* catch panics.
https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
-
-
-
-
October 9, 2021 at 11:40 pm #183825
Anonymous
Guest>same thing can happen in C or C++
wanna know how I know you’ve never written a line of C? -
October 10, 2021 at 12:36 am #183834
Anonymous
Guest>what do you expect to happen?
it returns a NULL pointer and you handle that however you want lmao scrotebrain
-
-
-
-
October 9, 2021 at 11:59 pm #183831
Anonymous
Guest>over 100 rules to turn a crippled scrotebrain language into something that still doesn’t work
That’s because C is a toy language that sucks.
https://github.com/mortdeus/legacy-cc
-
-
October 9, 2021 at 8:15 pm #183709
Anonymous
Guestwith great power comes great responsibility.
just have a working brain and learn to avoid bad buffer manipulation.-
October 9, 2021 at 8:16 pm #183710
Anonymous
Guestwhat makes C/C++ more powerful than Rust?
-
October 9, 2021 at 10:25 pm #183797
Anonymous
Guestwrite a complex piece of code in c++ (or even better in c) using all of its features and translate that directly to asm with pseudocode. break down everything into the most fundamental of instructions the cpu would understand. you may not like the result but what you will end up with is fake asm code that looks incredibly close to the actual asm code gcc or any other compiler would come up with. some things WILL be different and there may be extra code that can be cut down in either the actual or the fake translation.
now try and do that with rust. you can’t; unless you’re actively working on expanding and changing the language itself.
with rust you get "safe" code. with c you get pure freedom to do anything you want, hack or otherwise. now that’s
> t r u e
> p o w e r-
October 9, 2021 at 10:27 pm #183798
Anonymous
Guest>break down everything into the most fundamental of instructions the cpu would understand.
I didn’t know there were compilers that generated instructions the CPU can’t understand-
October 9, 2021 at 10:33 pm #183801
Anonymous
Guest>I didn’t know there were compilers that generated instructions the CPU can’t understand
literally freaking what mate?hint: translate BY HAND and BY COMPILER and then compare. does that maybe help you understand what i mean?
-
October 9, 2021 at 10:39 pm #183808
Anonymous
GuestI guess you’re good at predicting what asm the compiler will generate from your C code? good for you I guess?
-
-
-
October 9, 2021 at 10:35 pm #183803
Anonymous
Guestok ill explore this when i have more time IDA Pro can just autocreate the pseudocode youre talking about right? do i have to do it by hand like you told that other guy?
-
October 9, 2021 at 10:41 pm #183811
Anonymous
Guestlisten, you have no reason to do this. why you’d want to do a by hand translation of a piece of c code into, say, x86 asm to compare with the results of gcc is beyond me. it’s just that you can do it, it’s just one reason why c is the best.
as for ida pro, i have no idea what it offers but i’d guess it doesn’t do this, no.
-
-
October 9, 2021 at 10:38 pm #183806
-
October 9, 2021 at 10:43 pm #183813
-
-
-
-
-
October 9, 2021 at 8:24 pm #183715
Anonymous
GuestYes. Rust is the future. C/C++ stopped innovating so that’s why Rust was created.
-
October 9, 2021 at 9:07 pm #183740
Anonymous
GuestRust innovation: find, grep, gpu terminal and SRS
-
October 9, 2021 at 11:01 pm #183818
Anonymous
GuestC++ stopped innovating? Modules, concepts, coroutines, constexpr… Try doing a for-loop at compile time in Rust.
-
October 9, 2021 at 11:33 pm #183822
Anonymous
Guest>Try doing a for-loop at compile time in Rust
Although C/C++ and Rust use the same keyword and all use it in loop constructs, that’s where the similarities end. The closest to a C/C++ for-loop you’ll find in Rust is a while-loop; which, coincidentally, are allowed in constant functions.
-
-
-
October 9, 2021 at 8:26 pm #183716
Anonymous
Guesttemplate<typename Type>
class Array
{
…Type &operator[](int idx)
{
must(("out of bounds", idx < this->size));
return this->arr[idx];
}-
October 9, 2021 at 10:18 pm #183794
Anonymous
Guestwhat happens when idx < 0 dumfuck
-
-
October 9, 2021 at 8:34 pm #183723
Anonymous
Guestthere’s more to programming than just avoiding buffer overflow. rust can’t handle complex data structures without throwing unsafe {} around the entire program. there’s a reason that the rust compiler is mostly written in C++.
-
October 9, 2021 at 8:36 pm #183726
Anonymous
Guest>rust can’t handle complex data structures without throwing unsafe {} around the entire program.
you’ve never written a line of rust in your entire life -
October 9, 2021 at 10:29 pm #183799
Anonymous
Guest>rust compiler is mostly written in c++
kys-
October 9, 2021 at 10:32 pm #183800
Anonymous
Guest
-
-
-
October 9, 2021 at 8:43 pm #183733
Anonymous
GuestRust is definitely more popular online and social media than with people actually shipping code. We’ve hired about 20 programmers in the past year and I’ve never heard Rust come up even as a topic. To say "Rust is the future" is quite premature. There’s a lot more to a language than memory safety by default.
-
October 9, 2021 at 8:51 pm #183736
Anonymous
GuestRust has a lot more to offer over C++ than memory safety. Cargo is absolutely amazing for having reproducible builds, for instance, because every library on crates.io is effectively locked in place. It is impossible to remove or update a library at version x.y.z, you can only make changes at a new version number. Moreover, since the same tool used for building is also used for package management, leaving instructions for building a program is as simple as "use rustup to install cargo, and then run the command cargo build".
-
October 9, 2021 at 9:00 pm #183738
Anonymous
Guest>use rustup to install cargo, and then run the command cargo build
only for toy programs. anything more complex will still require other tools/libraries. just look at the setup page for servo lmao -
October 9, 2021 at 9:14 pm #183747
Anonymous
Guest>Rust has a lot more to offer over C++ than memory safety.
It’s not that Rust doesn’t offer more it’s that when it comes to replacing C/C++ there is a lot more to consider than memory safety.
>All you have to do is this one command
It’s never quite that simple in the real world. -
October 9, 2021 at 11:28 pm #183819
Anonymous
GuestYou can do this exact style of package versioning with C++ using cmake and git.
-
October 9, 2021 at 11:33 pm #183821
Anonymous
Guestyou can do the same thing with conan for C++, we use it at work for most of our dependencies. it does the same thing, tracking dependency trees, segregating builds by version and build configuration, and allowing coarse or fine grained control of what versions to use
-
-
-
-
October 9, 2021 at 9:17 pm #183753
-
October 9, 2021 at 9:20 pm #183761
Anonymous
GuestShe’s cute
-
-
October 9, 2021 at 9:20 pm #183760
Anonymous
GuestIt’s a lot easier to understand how to avoid the memory pitfalls of C/C++ than it is to understand a completely new paradigm like Rust.
-
October 9, 2021 at 9:34 pm #183773
Anonymous
GuestCurrent industry is still using C and C++ an order of magnitude more than Rust. Most Rust libraries are in an experimental stage. C and C++ ecosystems are mature, well maintained time tested libraries exist for everything.
Rust is hopefully the future but C and C++ are never going away either.
Writing sepples in and of itdelf is a massive pain but dealing with an experimental Rust library in active development is not much better. -
October 9, 2021 at 9:38 pm #183775
-
October 9, 2021 at 10:43 pm #183814
Anonymous
GuestLEARN ABOUT DIFFERENT BUGS
-
October 9, 2021 at 11:32 pm #183820
Anonymous
GuestA language is not vulnerable, a programmer is.
If you write shit code, no programming language will save you, not even Rust.-
October 9, 2021 at 11:35 pm #183823
Anonymous
Guest>no programming language will save you
you’ve clearly never written Rust code. you have to go out of your way to create the same vulnerabilities that you can trivially do in C or C++ without being very careful, it will straight up fail to compile if you have common errors in your code
so yes, it can save you by forcing you to write correct code in the first place
-
-
October 9, 2021 at 11:37 pm #183824
-
October 10, 2021 at 12:17 am #183832
Anonymous
GuestThe popular opinion on LULZ is almost always scrotebrained and wrong.
-
October 10, 2021 at 12:33 am #183833
Anonymous
Guest>buffer overflow
if you don’t stop making such mistakes after your first 5 years of programming then kys. scrotebrains always fret over things that aren’t issues to anyone competent and well-organised.
>oh no le memory management is sooo hard I need a free for every alloc this is too much a bloo bloo
lmao-
October 10, 2021 at 12:38 am #183835
Anonymous
GuestCtards have been making the same mistakes since C came out. They can have 30 or 40 years of experience and they make the same mistakes. It doesn’t matter who is using it, the language is designed to make those bugs easy.
>scrotebrains always fret over things that aren’t issues to anyone competent and well-organised.
That’s because anyone competent and well-organized wouldn’t use C.-
October 10, 2021 at 3:14 am #183840
Anonymous
GuestRust will come with its own minefield. All languages do.
-
-
October 10, 2021 at 1:07 am #183836
Anonymous
Guestfirst year guess i have four more to go
-
October 10, 2021 at 1:25 am #183837
Anonymous
Guest>oh no le memory management is sooo hard I need a free for every alloc this is too much a bloo bloo
this is much harder to do in non-trivial programs, not every allocation is immediately freed a few lines after it was used, or even within the same scope.
if it was a non-issue we still wouldn’t be having the same memory related bugs recreated over and over again after 50+ years of writing software. if this stuff was easy no one would bother trying to create GC languages or things like Rust in the first place
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.