[ / / / / / / / / / / / / / ] [ dir / animu / arepa / asmr / ausneets / pawsru / sonyeon / vg / wx ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.976628>>976631 >>976844 [Watch Thread][Show All Posts]

> Version 1.29.1 (2018-09-25)

> "The standard library's str::repeat function contained an out of bounds write caused by an integer overflow. This has been fixed by deterministically panicking when an overflow happens."

> https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1291-2018-09-25

I thought all you Rust "evangelists" said that the language would eliminate entire classes of bugs including overflows and memory errors?

 No.976631>>976648 >>976850

File (hide): 7087973dc1fe7f6⋯.jpg (51.17 KB, 702x508, 351:254, Dget1gqUcAAlrhE.jpg) (h) (u)

>>976628 (OP)

>The piece of the code specifically marked UNSAFE had a memory error in it

durrr

Still better than the top tier of c codebase.


 No.976645

<A new abstraction layer comes with a new set of bugs

Wow, who could've seen this coming?


 No.976648>>976655 >>976844

>>976631

Because c only has "unsafe", it is designed to be as safe as possible. This includes ergonomics (rust shills find a dictionary), compiler warnings, and external tools. Rust has a "safe" mode, sure, but it is so obtuse that you *have* to write "unsafe" code to do anything non-trivial. Add to that unsafe is designed to be as unwieldy as possible, because "you said unsafe, you asked for it", and you'll find top tier rust code bases have these sorts of bugs again and again.


 No.976655>>976661 >>976684 >>976850

>>976648

>it is designed to be as safe as possible

c is literally the most retarded unsafe language there is


 No.976661>>976705

>>976655

Safe while still letting you do whatever you want. Not as bad as assembly, or unsafe rust.


 No.976667

This thread is retarded

t. I don't even use Rust


 No.976684>>976926

File (hide): bc0fdc9ddb25da2⋯.webm (159.58 KB, 316x236, 79:59, improving-the-c-language.webm) (h) (u) [play once] [loop]

>>976655

Terry was right (again)


 No.976705>>976850

>>976661

Unsafe rust is safer than standard c you retard. C Lacks so many basic type safety features.


 No.976844>>976850

>>976628 (OP)

Integer overflow is as much of an error as out of bounds indices and addresses.

>>976648

>Because c only has "unsafe", it is designed to be as safe as possible.

Bullshit. Null-terminated strings, array decay, and lack of error handling make C less safe, as well as slower. The whole problem of "security holes" and having to constantly stay updated so you don't get exploited is caused by C. What really sucks is that most of these problems were solved in the 60s and have very simple solutions, but C can never use them.

>This includes ergonomics (rust shills find a dictionary), compiler warnings, and external tools.

All of that sucks compared to real languages. The only way you could possibly think C is "ergonomic" is if you're comparing it to C++.

http://archive.adaic.com/pol-hist/history/holwg-93/holwg-93.htm

>When Bell Labs were invited to evaluate C against the DoD requirements, they said that there was no chance of C meeting the requirements of readability, safety, etc., for which we were striving, and that it should not even be on the list of evaluated languages. We recognized the truth in their observation and honored their request.

Why am I retraining myself in Ada?  Because since 1979 I
have been trying to write reliable code in C. (Definition:
reliable code never gives wrong answers without an explicit
apology.) Trying and failing. I have been frustrated to
the screaming point by trying to write code that could
survive (some) run-time errors in other people's code linked
with it. I'd look wistfully at BSD's three-argument signal
handlers, which at least offered the possibility of provide
hardware specific recovery code in #ifdefs, but grit my
teeth and struggle on having to write code that would work
in System V as well.

There are times when I feel that clocks are running faster
but the calendar is running backwards. My first serious
programming was done in Burroughs B6700 Extended Algol. I
got used to the idea that if the hardware can't give you the
right answer, it complains, and your ON OVERFLOW statement
has a chance to do something else. That saved my bacon more
than once.

When I met C, it was obviously pathetic compared with the
_real_ languages I'd used, but heck, it ran on a 16-bit
machine, and it was better than 'as'. When the VAX came
out, I was very pleased: "the interrupt on integer overflow
bit is _just_ what I want". Then I was very disappointed:
"the wretched C system _has_ a signal for integer overflow
but makes sure it never happens even when it ought to".

It would be a good thing if hardware designers would
remember that the ANSI C standard provides _two_ forms of
"integer" arithmetic: 'unsigned' arithmetic which must wrap
around, and 'signed' arithmetic which MAY TRAP (or wrap, or
make demons fly out of your nose). "Portable C
programmers", know that they CANNOT rely on integer
arithmetic _not_ trapping, and they know (if they have done
their homework) that there are commercially significant
machines where C integer overflow _is_ trapped, so they
would rather the Alpha trapped so that they could use the
Alpha as a porting base.


 No.976850>>976866 >>976911


 No.976866

>>976850

>Yes goy accept the memory errors!


 No.976911>>976918

File (hide): 4c370a7103d2857⋯.jpg (409.88 KB, 1024x731, 1024:731, d3bc9d2fa0f11f7f84b087fb77….jpg) (h) (u)

>>976850

At this point I'm convinced half the C LARPers on here are CIAniggers trying to keep security flaws easy to find in software because this attitude is completely illogical.


 No.976918

>>976911

The Jews definitely don't want you using Ada, that I will tell you.


 No.976921

>software has bugs

Nogrammer detected


 No.976926>>977093 >>977119

File (hide): 98c48fa47e4088f⋯.mp4 (11.69 MB, 640x360, 16:9, it's a mess.mp4) (h) (u) [play once] [loop]

>>976684

He doesn't much like standard C.


 No.977093

>>976926

>professional games are intimidating

what did he mean by this


 No.977101>>977203

File (hide): bcd307309f82e3a⋯.jpg (263.38 KB, 800x601, 800:601, smug.jpg) (h) (u)

LoL. I knew this. I tell others to remove rust libraries.

>apt list --installed | grep rust

>tfw nothing shown

Are there any more Rust compiled code? I want to gimp them.


 No.977104

Why wasn't this posted in the Rust thread?

Mods please delet this.


 No.977119

>>976926

And he's dead.


 No.977203>>977259

>>977101

>using your shitty system package manager instead of one designed for the language

it's not 1998 anymore anon


 No.977259>>977363

>>977203

>package manager

>designed for the language

mein nigger


 No.977363

File (hide): 569afb8e4dfb082⋯.jpg (51.93 KB, 900x810, 10:9, sqQlid7.jpg) (h) (u)

>>977259

>what is crates.io

>what is cargo




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 4
22 replies | 6 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / animu / arepa / asmr / ausneets / pawsru / sonyeon / vg / wx ][ watchlist ]