[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

A new day. No Rust thread?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 21
Thread images: 1

File: rustlang.png (65KB, 650x195px) Image search: [Google]
rustlang.png
65KB, 650x195px
Rust thread.
This language is a fucking beautiful beast.
For some reason It clicked instantly for me.
>>
>>59644058
good thread
>>
>>59644058
Fuck man, Rust needs a lot of typing and the book is scaring me

>String::from("A string");
Really?
>>
>>59644855

Rust is a meme. Try implementing a graph data structure in Rust.
>>
>>59645041
And?
>>
>>59645041
Just werks. Your point?
>>
>>59644855
This creates a dynamic (heap-allocated) string from a static (text segment) string.
>>
>>59644855
Rust is a systems language so strings can't be so simple. It's similar to the problem in C++ with const char* and std::string.
&str in Rust is like the const char* in C++ and std::String in Rust is like the std::string in C++.
std::String owns the string memory, &str don't.
>>
Rust is definitely the best language. Too bad it doesn't have lisp syntax, live reloading and debugging.
>>
>>59646726
How does a language have those things?
>>
>>59647411
By being a lisp implementation.
>>
>>59647504
Why on earth would you want to be a lisp implementation?
>>
>>59647557
>
>>
>>59647557
(you)
>>
>>59644058
>This language is a fucking beautiful
Have you seen the syntax?
Go fuck yourself Rustshill
>>
Elixir/Erlang is superior
>>
>>59649953
Gotards everybody
>>
>>59644855
If you did HtDP book you'd know what a function signature is and thus this syntax would be completely familiar.
>>
>>59649953
Syntax isn't particularly bad compared to the equivalent languages (Java, C++).
>>
>>59650493
>Java
>Systems language
>>
>>59651133
Unfortunately that is the case. It doesn't write bare metal shit but the JVM is more portable than a lot of C/C++ code.
Thread posts: 21
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.