[ / / / / / / / / / / / / / ] [ dir / random / 55chan / cuteboys / islam / miku / s / sl / tech / x ][Options][ watchlist ]

/tech/ - Technology

Freedom Isn't Free
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.)
Archive
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 6ab224a5eb98333⋯.png (81.9 KB, 660x660, 1:1, rustlogobig.png) (h) (u)

[–]

 No.1063637[Last 50 Posts][Watch Thread][Show All Posts]

On May 15th, 2015, Rust was released to the world! After 5 years of open development (and a couple of years of sketching before that), we finally hit the button on making the

attempt to create a new systems programming language a serious effort!

It’s easy to look back on the pre-1.0 times and cherish them for being the wild times of language development and fun research. Features were added and cut, syntax and keywords were tried, and before 1.0, there was a big clean-up that removed a lot of the standard library. For fun, you can check Niko’s blog post on how Rust's object system works, Marijn Haverbeke’s talk on features that never made it close to 1.0 or even the introductory slides about Servo, which present a language looking very different from today.

Releasing Rust with stability guarantees also meant putting a stop to large visible changes. The face of Rust is still very similar to Rust 1.0. Even with the changes from last year’s 2018 Edition, Rust is still very recognizable as what it was in 2015. That steadiness hides that the time of Rust’s fastest development and growth is now. With the stability of the language and easy upgrades as a base, a ton of new features have been built. We’ve seen a bunch of achievements in the last year:

>We have been StackOverflow’s “Most loved programming language” 4 consecutive years in a row

>We opened up a whole new area of development for stable Rust: embedded development

>Rust+WASM went from an experiment to a usable product, making rustc the first compiler with focus on supporting WASM

>We shipped a new language edition: Rust 2018

>Crates.io passed a billion downloads and has over 25,000 crates available

>There’s now over 100 meetups around the world, in 42 countries

>6(!) new conferences were spun up (RustRush, RustCon Asia, Oxidize, Rust LATAM, Colorado Gold Rust, RustLab Italy)

This list could go on and on. While the time before and after release was a time where language changes had huge impact how Rust is perceived, it's becoming more and more important what people start building in and around it. This includes projects like whole game engines, but also many small, helpful libraries, meetup formats, tutorials other educational material. Birthdays are a great time to take a look back over the last year and see the happy parts!

Rust would be nothing, and especially not winning prizes, without its community. Community happens everywhere! We would like to thank everyone for being along on this ride, from team members to small scale contributors to people just checking the language out and finding interest in it. Your interest and curiosity is what makes the Rust community an enjoyable place to be. Some meetups are running birthday parties today to which everyone is invited. If you are not attending one, you can take the chance to celebrate in any other fashion: maybe show us a picture of what you are currently working on or talk about what excites you. If you want to take it to social media, consider tagging our Twitter account or using the hashtag #rustbirthday.

https://blog.rust-lang.org/2019/05/15/4-Years-Of-Rust.html

discuss

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063639

Rust is really good for system programming and has a good typed system. Better than C at least.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063650>>1063655

rust has too much abstraction to be low level at least as low level as C. It wont replace alot of applications C has right now such as being used in embedded shit, control systems, and anything else. Not to say its a bad language. Comparing rust to C isnt very accurate it is more accurate to compare it to C++. I'm not sure why C is brought up when talkimg about rust so much.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063651>>1063655

Rust is a bastard child of C++ and Haskell with the disadvantages of both. Being better than C is not an accomplishment.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063655>>1063665 >>1063670

>>1063650

>I'm not sure why C is brought up when talkimg about rust so much.

Because there are a lot of Cniles that are allergic to memory/thread safety and use C for everything.

>>1063651

>Haskell

What? You have to expound on that.

Protip: You won't because you are a LARPer and an anti-Rust shill

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063665>>1063673

File (hide): a37a101a527af02⋯.png (1016.75 KB, 1280x1280, 1:1, failure[1].png) (h) (u)

>>1063655

The pattern matching and type-checking enforcements . Except Haskell feels natural, allows you to program what you want and doesn't ask you to type-annotate every object with mile-long types.

In Rust by contrast if you're doing anything remotely serious half the time is spent wrestling with the borrow-checker. It does nothing to make your life easier, and you have to write all the annotations yourself. What Rust allows as valid is a small subset of actually-valid code. Therefore it's disgusting to anyone who loves freedom and getting the job done over getting a stupid certification by a stupider piece of code. Some people seem to like it, but for the life of me I can't understand them.

I like being able to use GOTO in c++. Last time I used it for control-flow in an interpreter long ago. I usually shouldn't use it, and 99% of the time I don't. But whether I use it or not, 100% of the time I am allowed to use it. That is freedom. And freedom is good.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063670>>1063673

>>1063655

>defending Rust, the ugly and overly complex language

Use Ada, C or C++ or even Go(ck)lang instead.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063673>>1063682 >>1063691 >>1063844 >>1063864

>>1063665

>pattern matching

Haskell didn't invent pattern matching though.

>muh borrow checker

Kek. Every time.

>GOTO

Absolutely harmful. A high level language shouldn't have it.

>>1063670

>Go

<The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.

<It must be familiar, roughly C-like. Programmers working at Google are early in their careers and are most familiar with procedural languages, particularly from the C family. The need to get programmers productive quickly in a new language means that the language cannot be too radical.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063682>>1063686

>>1063673

>asks for an argument

<shitposts as response

Well, my fault for falling for the bait.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063686>>1063688 >>1063689 >>1063699

>>1063682

>shitpost

>bait

Spotted the anti Rust shill. Why don't you try it with some

>muh syntax

or

>muh doubly linked lists

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063687

Rust is so good they fired their shills. Except OP, he does it for free.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063688>>1063702

>>1063686

Can we agree to disagree and leave it at that?

Frankly, until your glorious pet language makes an impact you don't have a leg to stand on. I'm just betting it won't.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063689>>1063702

>>1063686

If syntax doesn't matter then why are you using a programming language at all? Bust out a hex editor and write in pure machine code or get the fuck out you larper.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063691>>1063702 >>1071166

File (hide): 703b891a2fb9ca3⋯.png (35.09 KB, 1200x635, 240:127, Go vs Rust.png) (h) (u)

>>1063673

>Rust

<The key point here is our programmers are web developers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned JavaScript, maybe learned Ruby or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.

<It must be familiar, roughly C++-like. Programmers working on the web are early in their careers and are most familiar with procedural languages, particularly from the C++ family. The need to get programmers productive quickly in a new language means that the language cannot be too radical.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063699>>1063702

>>1063686

Rust syntax is pure UNIX brain damage, like the rest of the language. A big company of C++ weenies finally discovered that C++ sucked and instead of switching to a tried and tested safe language like Ada or PL/I, they decided to make their own language by bolting features from other languages onto their new not-C++. The results speak for themselves: PL/I could compile itself on a 64 kilobyte machine while Rust somehow runs out of registers on x86 CPUs, and instead of attracting C++ weenies Rust attracted JavaScript and webshit weenies. Not even C weenies can stand this garbage.

A language can be memory safe and brain damaged weenie garbage at the same time. Rust is both and must be hurled in the trash, where it can rot while real languages take its place.


My code was incorrectly printing the value of one of the
registers (r0). After I had spent a pleasant, relaxing
afternoon ineffectively trying to debug my code, and
discovered this, I remarked upon it to run a new program-,
it would be a Good Thing to separate the notion of
creating a new process from the grapevine.

I was much amused at the factory gates, I, for one, will
not be there to urge clemency.

Ever notice how most unices, the ones that don't use
MMDF, often send you half-complete messages? Ever
wonder where all those lost bits GO??

But the point of this is that it really hasn't got much to do
with MMDF, it has to do with unix itself. The problem,
see, is that it really hasn't got much to do with MMDF, it
has to do with unix itself. The problem, see, is that it
really hasn't got much to do with MMDF, it has to do that,
you might at least think that you could arrange some
kludge to optimize the common case.(1) But no, that would
be perfectly adequate to run a mailer and a filesystem. And
it would have been, too, except that the nice helpful people
who brought you unix invented this thing called the "fork",
which they then proceeded to stick - um, sorry, about to get
a little carried away, there.

But anyway, see, by employing the great unix principle of
"composable functionality", they were able to determine that
even though 99.9997 percent of the time you create a new
process you are too generous. When I was porting a Scheme
compiler to the RT, I managed to make adb -- nothing like a
fancy, source-level debugger, or anything, just dumb ol' adb --
dump core with about 6 or 7 keystrokes. Not arcane
keystrokes, either. Shit you would tend to type at a debugger.

It turned out that the machine you mention, MC, is only a poor
little Microvax 3, with probably only 16Mb of memory. Which,
you would think, would be -messy-, and unix is not -messy-.
So, kids, the way we run a new process, and -copies (and I
mean -copies-, as in moves bits around on the disk), the entire
address space of the old program into the new program you
wanted to run a new program-, it would be a Good Thing to
separate the notion of stuffing the new one-, followed, 99.9997
percent of the time, by the "exec" system call, which takes a
running program, makes a new program-, it would be a Good
Thing to separate the notion of creating a new process from
the grapevine.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063702>>1063705 >>1063888

>>1063688

>Frankly, until your glorious pet language makes an impact you don't have a leg to stand on. I'm just betting it won't.

It already has. Get fucked, anti Rust shill.

>>1063689

>muh syntax

spotted the LARPer

>>1063691

>/g/ tier image

you have to go back

>>1063699

This doesn't even make any sense. Nice try though, impostor.

>Rust somehow runs out of registers on x86 CPUs

?????

memory != registers

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063705>>1063710

>>1063702

>spotted the LARPer

The only real difference between the vast majority of real languages which are all basically clones of C, some kind of Lisp, or Pascal is, surprise surprise, fucking syntax, because you can do just about anything in any language if you are brave and autistic enough.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063710>>1063713

>>1063705

>The only real difference between the vast majority of real languages is syntax

LOL. Stop LARPing.

The differences between C and literally any other language are immense.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063713>>1063714 >>1064939

>>1063710

The only differences between C and any other language that isn't a scripting language or executed within a virtual machine are syntax-related. There are some small differences pertaining to the bloat factor of the stdlib and what tooling is provided or available but that is covered under "brave and autistic enough". Also rust is shit. Nim is better even if it has some stupid issues and a faggot GC.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063714>>1063716

>>1063713

>being this fucking retarded

Is UB and IB also just syntax?

Your retardedness is showing, anti Rust shill. Youw on't convince anyone if your spouting shit as inane as that.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063716>>1063719

>>1063714

>You are so fucking retarded let me show you how much smarter I am by refuting your point by comparing two things that are not programming languages!

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063719>>1063722

>>1063716

>going completely off the rails

The absolute state of anti Rust shills.

How embarrassing.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063722>>1063725

>>1063719

>How dare you call me out for being wrong let me act like you are the one acting crazy!

Why did you stop avatar fagging Steve?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063723>>1063725

Rate my Rust™


fn sort_strings_length() {
let mut a = ["hello","I","am","a","sentence","please","sort","me","faggot"];
a.sort_by(|a,b| a.len().cmp(&b.len()));
for e in a.iter() { print!("{},",e);}
println!();
}

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063725

>>1063722

>I'm wrong

no u XDDDDDDDDDDDDDDDDDD

>>1063723

I improved it:

fn fn sort_strings_length() {                                                                       
let mut a = ["hello","I","am","a","sentence","please","sort","me","faggot"];
a.sort_by_key(|s| s.len());
println!("{:?}", a);

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063806>>1063829

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083

>any type can be safely cast to any other type, causing memory safety vulnerabilities in safe code (e.g., out-of-bounds write or read)

Rust everybody.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063829>>1063838 >>1063888

>>1063806

LOL

Now post the C/C++ CVEs XDDD

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063838>>1063852

>>1063829

stop trying to associate Rust with C. you anti Rust shills are pathetic

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063844>>1063852

>>1063673

>harmful

Using the world "harmful" kinda is expected from rust supporters, isn't it? Anyone can see you for what you are. Campaign first for Rust to disabow CoC guidelines and stop shilling your shitty language.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063852>>1063888

>>1063838

>anti Rust shill calling a Rust shill an anti Rust shill

LOL

>>1063844

>Using the world "harmful" kinda is expected from rust supporters

>Dijkstra is a Rust supporter

I'm ok with that

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063864>>1063914

>>1063673

I still don't get what's so bad about having "easy to use language that helps you write good software" as a goal itself. Most of the time the arguable design decisions of Go aren't even mentioned in these posts. Should be flagged as spam tbh, obstructing discussion and wasting time.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063868>>1063888

Rust shilling is the Baneposting of programming.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063888>>1063891 >>1063914 >>1063950

>>1063702

>syntax doesn't matter

but it does. syntax just isn't the most important aspect of a language as long as it's not absolutely terribad (ie rust tier bad)

>>1063829

C/C++ don't claim to be safe

>>1063852

>t. i don't understand what "goto considered harmful" means or where it originated from

>>1063868

well congratulations, you got yourself caught. what's the next step of your master plan?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063891

>>1063888 (checked)

Crashing this language

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063898>>1063907 >>1063914

C/C++ programmers

>It's fine dude just turn on every warning, make them errors, use libasan, and follow these 1000 point guidelines

>Lol Rust? Its too restrictive for no gain

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063907>>1063914

>>1063898

Well, yes, but guidelines != bondage and discipline.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063914>>1063930

>>1063864

>go

>good software

LOL.

Also Go wasn't created to make good software with. It was created so that the dumb niggers Google hires can shit out code faster than Google can abandon projects.

>>1063888

>muh syntax

ok, kid

>C/C++ don't claim to be safe

But Cniles claim that they can write safe C/C++.

>>t. i don't understand what "goto considered harmful" means or where it originated from

I wrote that HIGH LEVEL LANGUAGES should not have goto. Prove me (and Dijkstra) wrong.

http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html

>>1063898

based

>>1063907

unbased

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063930>>1063932 >>1063938 >>1063945

>>1063914

Go has a use case. Rust does not.

Go has a specification. Rust does not.

Go has a useful standard library. Rust does not.

Go has excellent profiling tools. Rust does not.

Go has trivial compilation time. Rust does not.

Go is simple. Rust is not.

Go can be learned in a weekend. Rust requires months.

Go documents its weaknesses and has tools to deal with them. Rust pretends they don't exist.

Go has been used in enterprise production code. Rust has not.

Checkmate, athiest.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063932>>1063956

>>1063930

ok. Now tell me how to write a generic data structure in Go.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063938>>1064021

>>1063930

>Go has a specification. Rust does not.

Technically speaking, without a specification everything in Rust is undefined behaviour.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063945>>1063949 >>1063956 >>1064021

>>1063930

Rust has been used in firefox, go has not

Rust has working types, go has not

Rust has inline assembly, go has not

Rust has been used to make a full OS, go has not

Rust teaches good memory practice, go does not

The only thing go has over rust is slow garbage collection and Google GRIDs

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063949>>1063956 >>1064021

>>1063945

Rust has also been proven 10x faster than Go, with Go's C API being horrible and sluggish.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063950>>1063981 >>1064021

>>1063888

>t. i don't understand what "goto considered harmful" means or where it originated from

Any instance of goto should be replaced with a higher level control flow thing. Unfortunately Ctarded languages like C only offer you a few predetermined ones like if, while, for, etc.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063956>>1063970 >>1064021

>>1063932

Go generate. Reflect. Type assertion. Interfaces. What's the cost in compilation time for having generics which you rarely actually need? What about legibility? Don't eat so much candy, junior, you'll give yourself a tummy ache.

>>1063945

Firefox has more CVEs than ANY other application. It has small Rust components, which is the equivalent of a pity fuck.

If you think ADTs which you have to make a function call to unwrap every time, are some kind of godsend over multiple return types, you're an idiot. Please tell me where the Go type system doesn't "work".

GoOS exists. It's just as relevant as Redox (ie, not at all)

Goroutines.com/asm

Rust doesn't teach you anything about memory other than convoluted rules that are only relevant to its own implementation. Rules which break down when concurrency comes into play. Did you mean GNAT?

You're out of your league. Try Hacker News or Ycombinator. Or maybe your buddies on Grindr would listen to you gushing about how a worse language is better. I would take Java, any shitLisp before Rust.

>>1063949

Share your benchmark, please. Benchmarksgame shows go at 1.5-3x C. Unscientific benchmarks is about 1.5-2.5x C.

Mozilla isn't sending their best.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063970>>1063971 >>1063976 >>1064021

>>1063956

>Please tell me where the Go type system doesn't "work".

Go interfaces are retarded. Structural typing is a shitty hack to give duck typing to a static language, and interface{} is a cancer you see everywhere due to Go's shit type system (Somebody fucking looked at old Java casting everything to and from Object and thought that looked good enough for a new language).

The fact that you can't define your own goddamn generic types is laughably retarded. The fact that Go encourages literal copy-paste over a reusable type is fucking stupid.

I'm not a rust shill, but Go is shit. No immutability declarations, no generics, no overloading, no ranging over non-builtins, fucking nullable types, terrible error handling (good error handling is something Rust actually has going for it), no support for stack-only operation making it useless for any dynamic programming, impossible to write low-level code accessing arbitrary memory addresses in any way (which isn't in itself bad, but for a programming language that purports to be a systems programming language, it's retarded).

Go is a mess. It doesn't do anything new, it's got a horrible hodge-podge design with too little power to be useful to just about anybody, the typesystem is a mess reminiscent of Java when its type system was even worse than it is, and in dozens of areas it is a step backwards in programming language design. I'm happy with people shitting on Rust, but defending Go is a step too far.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063971

>>1063970

>no support for stack-only operation making it useless for any dynamic programming

s/dynamic/embedded/

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063976>>1064021 >>1064025

>>1063970

You brought up Go, Steve, not me. Anyone could easily list all the ways Java or Racket is superior to Rust. Plus you don't know anything about Go that you did learn from Reddit comments. Consts exist. Rust error handling "genius" is "let it bubble up to main, XD"

which you an do in Go too, but shouldn't. Define an error type in Rust someday. The boilerplate is ridiculous. I have to explicitly implement a display trait?

You obviously spend more time jacking off on programming comment sections than writing any software. Which is why you shill this gay language with a bunch of features that sound good on paper but somehow never seem to lead to working enterprise software.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063981>>1063982 >>1063984 >>1064021 >>1064022 >>1064024 >>1070456

>>1063950

>Any instance of goto should be replaced with a higher level control flow thing.

[code]

The most-noted item ever published in Communications was a letter from Edsger W. Dijkstra entitled “Go To Statement Considered Harmful” which attempted to give a reason why the GOT0 statement might be harmful. Although the argument was academic and unconvincing, its title seems to have become fixed in the mind of every programming manager and methodologist. Consequently, the notion that the GOT0 is harmful is accepted almost universally, without question or doubt. To many people, “structured programming” and “GOTO-less programming” have become synonymous.

This has caused incalculable harm to the field of programming, which has lost an efficacious tool. It is like butchers banning knives because workers sometimes cut themselves. Programmers must devise elaborate workarounds, use extra flags, nest statements excessively, or use gratuitous sub- routines. The result is that GOTO-less programs are harder and costlier to create, test, and modify. ....

I posed the following problem to a group of expert computer programmers: “Let X be an N x N matrix of integers. Write a program that will print the number of the first all-zero row of X, if any.”

Three of the group regularly used GOTOs in-their work. They produced seven-line programs nearly identical to this:

for i :=1 to n

do begin

for j:=1 to n do

if x[i,j] <> 0 then goto reject;

writeln('The first all-zero row is ' i);

break;

reject; end

The other ten programmers normally avoided GOTOs. Eight of them produced 13 or 14-line programs using a flag to indicate when an all-zero row was found. (The other two programs were either incorrect or far more complex.)...

[​/code]

http://web.archive.org/web/20090320002214/http://www.ecn.purdue.edu/ParaMount/papers/rubin87goto.pdf

Goto is a tool. A tool you use sparingly, but a tool nonetheless. Try writing a decent interpreter without goto. You can't. Any language in which a goto semantics makes sense and is compatible should support goto. A knife isn't evil because you get cut faggot.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063982>>1064031

>>1063981

Oh well, fucked up the formatting. Fuck.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1063984

>>1063981

jmp considered harmful

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064021>>1064137

>>1063938

Fuck off, drew. Introduce some more segfaults into your WM instead of shitposting here.

>>1063945

based

>>1063949

based

>>1063950

based

>>1063956

>Go generate. Reflect. Type assertion. Interfaces.

LMAO. You could do the same with Java years ago.

>>1063970

focking BASED

>>1063976

>You brought up Go, Steve, not me.

He is not Steve. I am. And I did not bring up Go.

>>1063981

>but in this specific example the goto version is slightly short

Great argument.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064022>>1064130

>>1063981

>what is return

Dijkstra was wright and only braindamaged UNIX weenies argue in favor of goto.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064024>>1064032

>>1063981

(0..matrix.rows()).find(|r| matrix.iter_row(r).all(|i| i == 0))

Goto considered harmful.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064025>>1064027 >>1064055

>>1063976

>Plus you don't know anything about Go that you did learn from Reddit comments

I've used Go at work. Some of us have jobs, dipshit.

> Rust error handling "genius" is "let it bubble up to main, XD"

I didn't say "genius", so I don't know what you're quoting. And no, that's exceptions. Rust is "you have to either handle errors at the site of occurrence or explicitly pass them out of the function". You almost should never bubble all errors up to main in Rust either. You have the option, but you have to do it explicitly as opposed to exceptions which do it automatically, or Go which has the same problems that C does in error checking, in that it can be ignored by the programmer. Even exception throwing is better than Go's error handling.

> Define an error type in Rust someday. The boilerplate is ridiculous. I have to explicitly implement a display trait?

It's literally writing a single function that tells how to print your type. What shit programmer are you that implementing a single function that can easily be one line is too difficult?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064027>>1064137

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064031>>1064032 >>1064033 >>1064946

>>1063982

>posts code that finds all the all-zero rows of the matrix, instead of just the one needed, missing the point entirely

I don't need goto in haskell either, faggot, but that's besides the point. If you have a low-level systems programing language (not fairy dust python or haskell) where efficiency is paramount you should have goto.

There's something called the control-flow graph of a program which can be either reducible or irreducible. Procedural programing constructs like "while" or "for" and "if" only allow us to make programs with reducible control-flow graphs. Memory, simplicity, efficiency. If you're prepared to sacrifice at least one of the three, (usually two), then you can live your life in the smugness that 100% of the time, you never use Goto. People who get things done, on the other hand, can only say that they don't use Goto 99.9% of time. Still 0.1% falls short of your dogmatic ideological purity. Rules that are made for practical reasons can be broken for practical reasons.

Rust is like that academician (not even STEM, it would be better designed and less cancerous, pdf related), like the post modern art teacher that on day goes to the construction site to tell the workers "how shit's done". Without understanding the reasons why they do shit the way they do in the first place. It won't work because workers aren't willing to jump trough 10 additional hoops just to get the art-teacher's approval. Getting shit done is hard enough without having an ideological thought-police built into your compiler.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064032

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064033

>>1064031

>>posts code that finds all the all-zero rows of the matrix, instead of just the one needed, missing the point entirely

LMAO

https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find

>Searches for an element of an iterator that satisfies a predicate.

>find() is short-circuiting; in other words, it will stop processing as soon as the closure returns true.

Kill yourself, you utter retard.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064055>>1064126 >>1064151

File (hide): 07ff24e9a3fb688⋯.jpg (86.42 KB, 1280x720, 16:9, maxresdefault.jpg) (h) (u)

>>1064025

>One line

enum Error {

Io(io::Error),

Parse(ParseIntError),

}

impl Display for Error {

fn fmt(&self, formatter: &mut Formatter) -> fmt::Result {

match *self {

Error::Io(ref error) => error.fmt(formatter),

Error::Parse(ref error) => error.fmt(formatter),

}

}

}

impl error::Error for Error {

}

impl From<io::Error> for Error {

fn from(error: io::Error) -> Self {

Error::Io(error)

}

}

impl From<ParseIntError> for Error {

fn from(error: ParseIntError) -> Self {

Error::Parse(error)

}

}

Everything you have said is false. You are the Prince of Lies, and Steve Klabnik is the king.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064126

>>1064055

>hurr durr

You have a lot of different ways to do errors.

1. Do what you did

2. Do it he Exceptions way: Panic instead of returning Results. Panics can be catched with https://doc.rust-lang.org/std/panic/fn.catch_unwind.html

3. Do it the C way

4. Use Box<dyn Error> as your error type

5. Use a library (https://docs.rs/snafu, https://docs.rs/failure, https://docs.rs/error-chain, https://docs.rs/err-derive, https://docs.rs/err-ctx)

sage negated btw

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064130>>1064131

>>1064022

>Fortranfags and PL/Ifags are UNIX weenies

Fuck off poser.


The fits significant blow to PL/1 was from made in early 70th by religious
fanatics connected to the "structured programming" dogma and,
especially, Edsger W. Dijkstra inspired "verification frenzy". Now it is
difficult to comprehend how almost the whole computer science was
hijacked by this primitive religious doctrine. But it was true and has
demonstrated quite well that the virtues ascribed to academic scientists
are way overblown. Heretics who are ready to be burned on the stake
defending the truth are as rare in academic community as among
commoners. May be even more rare. Complete corruption of academic
economics, conversion of the majority of them into intellectual defenders
of interests of financial oligarchy that we observed since 1980 say this
pretty load and clear. And computer scientists are not that different
those days. They also depends on grants and want tenure at all costs.
Which requires certain compromises.

Edsger W. Dijkstra inspired "verification frenzy" was mostly related to
bogus mathematic masturbation called "correctness proofs". The idea
was "simple, attractive and wrong" and due to this it soon became
more fashionable that drunks fights in pubs in England. It attracted
huge amount of verification snake oil salesmen and "computer science
crooks" who often flooded computer science departments and eliminated
useful research. While there was a positive component if structured
programming movement (it did helped to introduce richer set of
programming control structured in the language and PL/1 was again
pioneer in this area) but most affects were creation of some unrealistic
expectations (that number of errors in a program without goto statements
is less then for the program with many goto statements; but in reality if
not presence of absence of goto statements, but the usage of structured
control statements that matter and if some are not available in the
language they should be emulated using goto statements) or simply
harmful.

Edsger W. Dijkstra played the role of a fervent Ayatollah. This
controversial character has the religious zeal of Luther, but was more
misguided. At the height of his delusion Ayatollah Dijkstra
completely lost common sense and issued a fatwa in which he
declared PL/1 to be a "fatal disease". Those spikes of religious
fervor damaged the language standing and helped more primitive
languages with much simpler compilers such as Pascal and C to get
ground Another advantage of Pascal was that it has freely available
compiler (despite his conversion into verification zealot, Wirth
remained a master of compiler writing to his last days). It was
based on recursive decent parsing and was specifically designed to
make compiler so fast that it can be used instead of linker (source
code linking). This tremendous speed with which Pascal can be
compiled (which was later demonstrated to the surprised world by
Turbo Pascal) was probably the most innovative feature of the
language. Compiler from C were also much simpler then compiler
for comparable subset of PL/1 such as PL/M and were distributed
freely with Unix source code. Creators of C discarded bogus "no
reserved keywords" idea and greatly simplified the syntax of
declaration of variables which removed to warts of PL/1 language
not only at no cost but with considerable savings in simplicity of
compiler. But cutting the language to the subset suitable for system
programming they cut way too much. and those decisions hunt C
and C programmers to this day. They also made some blunders in
design of the syntax of the language (no mechanism for multiple
closure of {} blocks with a single bracker like a: end a in PL/1 in one
obvious blunder. Usage round brackets as delimiters for conditional
expressions in if statements is another. Just those two errors cost
C programmers immense amount of lost hours in trying to find errors
that should not exist in properly designed language in the first place.
They also ignored some important heuristics for catching "running
string literal" errors invented in PL/1 optimizing compiler.

Structured programming dogma and verification frenzy were two first
religious movements in programming but unfortunately they were not
the last. Later object orientation (OO) became fashionable with its
own crowd of snake oil salesmen. Each of those splashes generated
huge crowd of crooks and religious fanatics, as well as promoted
corruption in computer science departments. As for computer science
departments, the level of corruption from early 80th became probably
pretty close to corruption of economic professions with its bunch of
highly paid intellectual prostitutes or outright criminals masquerading
as professors.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064131>>1064137

>>1064130

unbased

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064137>>1064138 >>1064139

File (hide): 808a02662da1c26⋯.jpg (173.83 KB, 1200x1000, 6:5, 15116248530.jpg) (h) (u)

>>1064021

>>1064027

>>1064131

>all these insightful and well-thought-off effort-posts that contribute to the thread

brain-damaged and unbased

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064138>>1064139

>>1064137 (unbased)

Here is your insightful and well-thought-off effort-post that contributes to the thread:

For a number of years I have been familiar with the observation that the quality of programmers is a decreasing function of the density of go to statements in the programs they produce. More recently I discovered why the use of the go to statement has such disastrous effects, and I became convinced that the go to statement should be abolished from all "higher level" programming languages (i.e. everything except, perhaps, plain machine code). At that time I did not attach too much importance to this discovery; I now submit my considerations for publication because in very recent discussions in which the subject turned up, I have been urged to do so.

My first remark is that, although the programmer's activity ends when he has constructed a correct program, the process taking place under control of his program is the true subject matter of his activity, for it is this process that has to accomplish the desired effect; it is this process that in its dynamic behavior has to satisfy the desired specifications. Yet, once the program has been made, the "making' of the corresponding process is delegated to the machine.

My second remark is that our intellectual powers are rather geared to master static relations and that our powers to visualize processes evolving in time are relatively poorly developed. For that reason we should do (as wise programmers aware of our limitations) our utmost to shorten the conceptual gap between the static program and the dynamic process, to make the correspondence between the program (spread out in text space) and the process (spread out in time) as trivial as possible.

The unbridled use of the go to statement has an immediate consequence that it becomes terribly hard to find a meaningful set of coordinates in which to describe the process progress. Usually, people take into account as well the values of some well chosen variables, but this is out of the question because it is relative to the progress that the meaning of these values is to be understood! With the go to statement one can, of course, still describe the progress uniquely by a counter counting the number of actions performed since program start (viz. a kind of normalized clock). The difficulty is that such a coordinate, although unique, is utterly unhelpful. In such a coordinate system it becomes an extremely complicated affair to define all those points of progress where, say, n equals the number of persons in the room minus one!

The go to statement as it stands is just too primitive; it is too much an invitation to make a mess of one's program. One can regard and appreciate the clauses considered as bridling its use. I do not claim that the clauses mentioned are exhaustive in the sense that they will satisfy all needs, but whatever clauses are suggested (e.g. abortion clauses) they should satisfy the requirement that a programmer independent coordinate system can be maintained to describe the process in a helpful and manageable way.

It is hard to end this with a fair acknowledgment. Am I to judge by whom my thinking has been influenced? It is fairly obvious that I am not uninfluenced by Peter Landin and Christopher Strachey. Finally I should like to record (as I remember it quite distinctly) how Heinz Zemanek at the pre-ALGOL meeting in early 1959 in Copenhagen quite explicitly expressed his doubts whether the go to statement should be treated on equal syntactic footing with the assignment statement. To a modest extent I blame myself for not having then drawn the consequences of his remark

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064139>>1064140

>>1064137

They aren't even getting the syntax right, it's

DECLARE postnumber BASED;

>>1064138

The only insight your post has given this thread is that you're too new to blockquote properly. Lurk more and take your syntax errors elsewhere.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064140

>>1064139

>The only insight your post has given this thread is that you're too new to blockquote properly.

No shit. I'm not an annoying faggot, that's why I can't do it properly.

unbased btw

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064151>>1064164

>>1064055

What you have done is not just implement your own error, you have implemented an error enum type that encapsulates other errors, and also the necessary switching logic and the From traits to automatically convert. Don't bullshit me, you idiot. Here's a proper simple error type:


use std::{error::Error, fmt};

#[derive(Debug)]
struct MyError;

impl Error for MyError {}

impl fmt::Display for MyError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Something broke")
}
}

You have to impl the Error trait to treat it as an Error, and the only function you need to implement for your own error type is that fmt function, which can easily be one line, exactly like I said. You need extra code like you wrote to have a proper error wrapper enum type, but that's not what I said. I was talking about how to "Define an error type", not "Define an error type that wraps other errors". If you want to wrap errors without any extra code, you can also just throw a Boxed Error, but the way you showed is far better.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064164>>1064169 >>1064174

>>1064151

>Still not a one-liner

>Still a pathological liar

>Still a disappointment to everyone

>Still a help desk nobody

>Still unshaven and covered in macaroni and cheese stains

>Still indicted for possession of child pornography

Rust in a nutshell:

the people who wrote the application with more CVEs than any other application in the world other than a full OS got together and made a "safe" language. *Unironically*

To nobody's surprise, the language is full of hidden bugs, is completely unspecified, and is objectively worse than the language it was meant to replace (C++). These shortcomings are dealt with by the lowest form of developer life, the soy webdev, flooding the internet with false praise. Of course, in their smooth-brained reasoning, the only thing that matters is hype and the only metric of software is popularity. Four years since 1.0, they still live in a pathetic state of denial. Shitting all over the internet is the only thing they have left to do with their time because God knows they sure as fuck aren't writing working software.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064169>>1064179

>>1064164

>the people who wrote the application with more CVEs than any other application in the world other than a full OS

LOOOOOOOOOOL. Imagine anti shilling Rust this hard.

>completely unspecified

I recommend you to look up how long it took C/C++ to get specified :)

sage negated btw

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064172

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064174

>>1064164

>Still not a one-liner

I didn't say it was a one-liner. I said you only have to implement one function, and the implementation of that function could be one line. If you have to misrepresent what I said, you have no argument.

> All that pathetic projection

You're such a sad.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064179

>>1064169

Goon stop posting.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064922

bump

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064939

>>1063713

"Scripting language" is a meaningless term used by autists to define what they believe is not "real programming".

Also, languages aren't inherently "compiled", "interpreted", or "executed in a virtual machine". It all boils down to the implementation.

And no, differences among languages go far beyond syntax. Either you're baiting, or you truly know nothing.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1064946>>1067339

>>1064031

The "for" example is even wrong kek.

This stuff is a textbook example of pointless, excessive formalism.

It's quite ironic, considering that you yourself bring up "cancerous academicians".

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067318

bump :^)

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067339>>1067365 >>1067372

File (hide): 4011aaef491c4f6⋯.jpg (123.35 KB, 1080x763, 1080:763, da01aece20addf2701b7570bc7….jpg) (h) (u)

>>1064946

It's "formalism" for the sake of defending proper usage-cases of GOTO, against religious zealous. In other words, its not "DO THINGS OUR WAY ONLY, ALL OTHER WAYS ARE WRONG WE PROVED IT REE". it's "Hey, maybe those guys that sometimes do things in a different way have a point. Let's examine it and see if we can learn anything." That's the opposite of the rustfagacademic mindset.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067365>>1067372 >>1067376

>>1067339

>proper usage-cases of GOTO

But there are none in high level languages.

unbased and sage negated btw

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067372

>>1067339

>>1067365

I heard that for people who are srsly hardcore there is a command COMEFROM.

In C++ it is implemented in the form of throwing exceptions, or so they say.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067376>>1067390

File (hide): ad0aabbd58b0f58⋯.png (19.8 KB, 682x469, 682:469, yes.png) (h) (u)

>>1067365

Thank God for user-scripts.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067390>>1067401 >>1067494 >>1067537

>>1067376

>le cloud to butt replacer tier reddit humor

unbased

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067401>>1067523

>>1067390

fatally assblasted

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067494>>1067523

File (hide): ec2c0e9e8bba4e5⋯.jpg (120.5 KB, 709x554, 709:554, it_keeps_happening.jpg) (h) (u)

>>1067390

>replacer tier reddit humor

It's more of a spam filter so us grownups can focus on real conversations. This last post did make me snicker tough.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067523>>1067537 >>1067549

>>1067401

>>1067494

>even more reddit

unbased and sages negated

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067537>>1067575

>>1067390

>>1067523

>complaining about reddit while using "based"

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067549>>1067575

File (hide): d7e45b3722020bf⋯.jpg (39.34 KB, 720x1102, 360:551, b864a5224eccc107594cf2f5a8….jpg) (h) (u)

>>1067523

>thinks sages are a downvote

>says we're reddit

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067575>>1067580 >>1067613

>>1067537

unbased

>>1067549

>hurr durr muh sage is downvote strawman XDDDDDDDDDDD

unbased and sage negated

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067580>>1067635

File (hide): 78146ad72db0ae0⋯.png (17.91 KB, 678x439, 678:439, he_does_it_for_free.png) (h) (u)

>>1067575

This script is the gift that keeps on giving. If any of you fags wanna try it out and don't feel like writing your own, here's a link:

https://userscripts-mirror.org/scripts/show/41369

It's basically java-script, so when adding a word:replacement-word pair, you should write 'I\'m a faggot' (don't forget the backslash for special characters like ') .

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067613>>1067635

>>1067575

Calm down anon, it's common courtesy to sage if you're not contributing to the thread.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1067635

>>1067580

>being this much of a reddit fag

LMAO

>>1067613

Thanks for explaining sage to me, newfag.

unbased and sage negated btw

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070319>>1070341

File (hide): aa6c06b2889d933⋯.png (16.53 KB, 964x114, 482:57, mmstick_paid_rust_shill.png) (h) (u)

I just want to remind everybody. This goofball said this nonsense two years ago, and, hold on, spoiler alert, servo is still a Mozilla internal experiment and RedoxOS is dead as disco

This guy is STILL brigading comments sections everywhere.

https://github.com/rust-lang/rfcs/issues/600

>Define a stable ABI

>Open since 2015

Rust: The Language of always Tomorrow

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070341>>1070409

>>1070319

>servo is still a Mozilla internal experiment

Servo was never meant to be more than an internal experiment.

Parts of servo are already integrated into Firefox.

Retarded Cnile.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070398

at this rate Python will stay the king

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070409>>1070475

>>1070341

Servo's purpose is an experiment to explore proof of concept ideas. Instead of forking Firefox and implementing the ideas with a version of Firefox, they use Servo as the platform for experimenting.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070433>>1070436 >>1070452

Can you write to a specific address in memory using rust?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070436>>1070458

>>1070433

>Can you write to a specific address in memory using rust?

Yes

https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070452

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070456

>>1063981

>'labelled continue' use of goto

>four replies

>nobody points out that modern languages can do this without goto

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070458>>1071161

>>1070436

Thanks. I just looked and they seem to support riscv. Might actually give it a try. C is sometimes really backwards on bare metal.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070469>>1070482

File (hide): 8816f386e410ca9⋯.png (110.9 KB, 1080x1106, 540:553, Rust wins again.png) (h) (u)

https://archive.is/54FQL

>When June rolls around and cis het males start complaining, I will usually dig into why with some people. Inevitably, it almost always boils down to personal distaste for “gay shit”, which is usually code for “I’m not super secure in my identity”.

>You’re fine.

>To paraphrase Chris Kluwe: watching a Pride Parade isn’t going to make you start lusting after your best same-sex friend. If anything, it might give you a better fashion sense.

>The last thing I’m going to address is the sentiment that Pride month isn’t needed anymore. Rather than waste paragraphs explaining why this is not true, here’s a challenge for you dudes that say this:

>Live as a transgender woman for a month.

>I promise you, you will understand the need for it by the end.

You heard him, Rustfags. Understanding LGBTQ oppression will make you an even better programmer than all those cis white C weenies. Now go out there and be fabulous for a month!

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070475>>1070476

>>1070409

mmstick, who appears to be paid by the post, seemed to believe that he was going to be browsing with Servo . . . which will never happen. Rust is the personification of the mental illness its developers at Mozilla have, gender dysphoria and a constant feeling of malaise that will be fixed just as soon as you get the next big thing.

Rust will be great as soon as . . .

>We have friendly compiler error messages

>We reach 1.0

>We get async/await ... just like Javascript and C#!

>We get GATs . . . just like Haskell!

I'm Steve Klabnik, and I'll be happy and everyone will take me seriously when I...

<Get these skinny jeans

<Watch sissy-hypno on 4chan and visit a glory-hole at the truck stop

<Get my breast implants so people stop calling me "sir"

<Go to Mexico and get my willy chopped off

<Get on hormone replacement to look more feminine

<Vote for Hillary

<Become the board owner of leftypol and perform fellatio on camera

<Pay some Nigerians to wear MAGA hats and jump me

<Take these xanax and jump from my balcony in a feces-smeared wedding dress

Do you see what I mean? Happiness is always just one-more-thing away. It's a mental disorder. Is it any surprise that the "inclusion and empowerment" community's mental disorders have manifested in their programming language?

And don't forget that not having a stable ABI, which means your OS can't ship your pre-compiled rust as a dynamic library, is a very non-trivial limitation. How are you supposed to ship patches to your rubbish-crates that somehow made it to distribution? Oh, you can only build with cargo. Now instead of shipping a trivial patch for Debian or whoever to distribute, your OS has to call cargo and recompile the library and anything that uses it. Better go out for coffee or pick up groceries, because recompiling anything important is going to take a very long time. Or maybe those other programs locked in the vulnerable version into their build because they were scared somebody would commit the sin of "breaking SemVer." Or more likely, Rust libraries just never get patched, ever with essential bug fixes or security updates.

It basically makes it impossible for Rust to replace C/C++ in the domain it is most heavily used. You either ship statically linked binaries (that won't get patched) everywhere and you get unbelievable bloat (because every library is statically linked in every program that uses it, remember?).

As a stand-alone application development language which is safer than C++, I would say Rust is a good option, but it is not a viable systems language.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070476>>1070477

>>1070475

>I'm Steve Klabnik, and I'll be happy and everyone will take me seriously when I...

>Watch sissy-hypno on 4chan and visit a glory-hole at the truck stop

Could I get Steve Klabnik's nudes if I threaten to ban sissy hypnosis from /hypno/?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070477

>>1070476

You'll have to ask him. Just post anything to Hacker News with "Rust" in the title, and he will appear like fucking BeetleJuice

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070480

Strange, I thought Firefox+Rust would be done by now since Mozilla is operating at 1000% efficiency due to diversity.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1070482

>>1070469

What an insufferable buttfucker.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1071161>>1071171

hey fuckers. i was actually getting ready to give rust a try >>1070458, but i just discovered that i would have to use a llvm compiler.

put it into gcc or something gpl or get fucked.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1071166

>>1063691

go is trendy. so what?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1071171>>1071290

>>1071161

You can use https://github.com/thepowersgang/mrustc to compile Rust to C.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1071290

>>1071171

mrustc is MIT. don't you understand the problem?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1071292>>1071317 >>1071320

Have they ever solved the problem in Go that executables of "Hello World" programs are bigger than what my first harddrive could store? What a world we live in

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1071317

>>1071292

>Go

This is a Rust thread though.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1071320

>>1071292

>why is a statically linked binary bigger than a dynamically linked one?

Truly a mystery

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1073600>>1073603

C is comfy to write, Rust is too deep in zero-cost abstractions. Plus you have to wrestle with the compiler and its borrow-checker for your life.

Anyways you can make sure that your contracts are not broken yourself. And even if they are, you can bugfix with valgrind and gdb and other plethora of debugging tools.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1073601

4 years of crust.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

 No.1073603

>>1073600

>C is comfy to write

LARPer spotted.

>Rust is too deep in zero-cost abstractions.

But that's a good thing Just look at Java to see what non-zero cost abstractions look like.

>Plus you have to wrestle with the compiler and its borrow-checker for your life.

Not really.

>Anyways you can make sure that your contracts are not broken yourself. And even if they are, you can bugfix with valgrind and gdb and other plethora of debugging tools.

https://www.cvedetails.com/vulnerability-search.php?f=1&vendor=&product=&cveid=&msid=&bidno=&cweid=&cvssscoremin=&cvssscoremax=&psy=&psm=&pey=&pem=&usy=&usm=&uey=&uem=&opmemc=1&opov=1

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Screencap][Nerve Center][Last 50 Posts][Random][Update] ( Scroll to new posts) ( Auto) 5
114 replies | 13 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / random / 55chan / cuteboys / islam / miku / s / sl / tech / x ][ watchlist ]