Zero-cost abstractions

...

Other urls found in this thread:

play.rust-lang.org/?gist=20fa8127a02a737faa5d0094e5c27843&version=stable
github.com/redox-os
github.com/servo/servo
github.com/BurntSushi/ripgrep/
github.com/rust-lang/regex
github.com/hyperium/hyper
github.com/gfx-rs/gfx
vulkano.rs/
twitter.com/NSFWRedditVideo

rust

RUST?

Rust is a zero cost abstraction of assembly in terms of memory. In proccessing power it is not 1-1 for zero costs. But you can inline assembly and use rust on multiple platforms to make up for it.

what a shit thread
reported
saged

Rust uses negative cost abstractions which makes it literally faster than pure assembly.

lmao no way. You can inline assembly in a memory safe language?

LLVM and various ASM code are pretty low-cost abstractions

further proof its literally a meme language

Why isn't cool shit being made in rust? The idea seems good, so why does everyone hate it? Is it just cancer community?

play.rust-lang.org/?gist=20fa8127a02a737faa5d0094e5c27843&version=stable
RUST BTFO

its at least twice as cancerous as the python community

github.com/redox-os
github.com/servo/servo
github.com/BurntSushi/ripgrep/
github.com/rust-lang/regex
github.com/hyperium/hyper


kys

That's sad because at least on paper the idea seems pretty good.

github.com/gfx-rs/gfx

vulkano.rs/

There are good sub-communities who care to leverage the good aspects of the langs and avoid the main community.

L M A O

I'll wait while you find another api that targets every platform.

Many features of c++ are zero overhead, for example the classes, virtual methods. They compile to the exactly the same code you would make in C. Standard library alghotihms such as sorting are even faster than the C version one would code. On the other hand shit like streams produce kilometres of assembly where printf would be just a couple of instructions. I recommend Compiler Explorer (godbot.org). It's a great website which will compile your c/c++ code and display the assembly, you can compare 2 different compilator or different flags. It's perfect for checking how expensive is your abstraction.

In almost every case it won't matter if you produce 5 lines of assembly or 50.

Checked. /thread

noice

It does matter if it's in a loop that is executed millions of times. Fuck, even without such loop, you don't do a stream once in your code, right. Multiply that difference. The great thing about c++ is that you can do both if you care or not care about the perfomance (doesn't matter how small the difference is)

Their new goal for the project according to their own blog:

Simply ebin

Oh Steve...

More like hand-rolled macros for designing around the limitations of a terrible language.