You have to convince me that Rust has a place in this world

You have to convince me that Rust has a place in this world.

Swift is the answer.

Garbage Collected cucks can GTFO, this is no place for little girls.

Attached: swiftsvg.png (2000x1800, 104K)

Other urls found in this thread:

github.com/apple/swift
github.com/apple/swift-evolution/blob/master/proposals/0199-bool-toggle.md
twitter.com/AnonBabble

i literally do not care, go be autistic on stack overflow instead please

You can't.

Ha!

Just use C.

Silly teenage boomers.

the only relevant languages are C and C++

>You have to convince me
And what happens if we don't? Are you gonna summon Satan so he pulls it down to hell?

Swift has automatic reference counting which is a form of garbage collection.

Go back to your wikipedia

inheritance is dumb
no need for an object/struct distinction; just include a box type. hell, in a language with such a distinction you're encouraged to put data on the heap when you could just leave it on the stack and pass around references to it, which is dumb
the borrow/lifetime checkers in rust are good

> inheritance is dumb
LOL, ignorant, Swift is not just a pretty language. THE FIRST PROTOCOL-ORIENTED-LANGUAGE.

> no need for an object/struct distinction; just include a box type. hell, in a language with such a distinction you're encouraged to put data on the heap when you could just leave it on the stack and pass around references to it, which is dumb
the borrow/lifetime checkers in rust are good
Yes, there's a need. You are wrong because processors now have more and more L1 and L2 cache, where it's more effective to copy things around that to fetch little bits from the RAM.

you do realize it's perfectly possible to pass structs by value in rust, right

>Yes, there's a need.
And what would that be?

>THE FIRST PROTOCOL-ORIENTED-LANGUAGE
It was Haskell that convinced the world to favor interfaces over inheritance, and Rust and Go beat Swift to the punch
Your brazen ignorance is how I can tell you're shitposting
Don't break kayfabe next time

When the fuck did I say it wasn't possible?

Of course passing by value is the way to do it in many situations.

Ahahahaha, no. Prove it. Because, no, they weren't.

I hope for your sake this thread is bait.

>THE FIRST PROTOCOL-ORIENTED-LANGUAGE.
Okay, yeah. I shouldn't have bothered.

>he thinks rust is garbage-collected
nigger, that's the entire selling point of rust, being safer than C or C++ without garbage collection overhead and shit

>this is no place for little girls.
then you should leave

Nobody said Rust is GC'ed. Dumbass.

You got me, pajeet!

if the right way to do something with a tool isn't the obvious and natural way to do it then you have an engineering problem; hence, c is a poorly engineered language

>this is no place for little girls
Where do you think you are?

Attached: 509.jpg (768x1024, 233K)

>I love tofu

Isn't Swift proprietary? Or at least no Linux/windows implementation?

Does it have a garbage collector?

github.com/apple/swift

Swift is open source, works on Linux, and uses automatic reference counting rather than tracing garbage collection

>when you could just leave it on the stack and pass around references to it
That's not what stacks are for...

>1. limiting scope
This is the basis of proper software architecture

>2. facilitating recursion
Literally the main reason that stacks exist

>3. Handling intermediate data in a resource friendly way
Another good reason why stacks exist

>4. Functions as first class objects
Yet another reason why a stack exists

What the stack is NOT for

>1. mutating data/objects
If your functions use references and pointers to mutate data on the stack... You're fired.

>2. Using gotos and jumps to simulate a procedural language
If you do this... You're fired.

>3. Abuse of the type system
...

>4. Using try/catch ... reflection or other such fuckery to indirectly control flow
This is why Enterprise Java/.NET is almost impossible to maintain at scale and makes me want to hurt people.

>github.com/apple/swift-evolution/blob/master/proposals/0199-bool-toggle.md
The absolute state of swiftlets

Attached: >swiftlets.png (1066x596, 87K)

but c is the obvious and natural way to do it

holy shit

>works on Linux
though it's not particularly useful without all apple's mac-specific libraries