[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]

Prove to me that Rust isn't shit

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: 91
Thread images: 21

Prove to me that Rust isn't shit
>>
it's shit
>>
literally cannot
>>
>>60426092
You can develop a kernel in it, trivially.
It's better thought out than C++.
It's faster than C++.
It's safer than C++.

>inb4 but C++ is shit too!
If you're not comparing Rust to C++, then Rust isn't for you, and you should just keep using Python or whatever.
>>
File: 13122862.jpg (31KB, 326x323px) Image search: [Google]
13122862.jpg
31KB, 326x323px
>>60426092
Rust is the best language. Stick to your retro hippie shit if you want
>>
>>60426092
I can't
>>
>>60426092
Pattern matching
Tagged enums
Iterators
Traits
>>
>>60426308
>Tagged enums
Tagged unions*

Enums in Rust are actually just tagged unions, which makes them quite useful.
>>
>>60426275
>t. someone who has never used Ada

Ada btfo'd c++ and rust
>>
>>60426327
>Ada
Ancient obsolete garbage.
Trash syntax.
>>
>>60426327
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line ("Ada is shit!");
end Hello;


fn main(){
print!("Rust is better");
}
>>
>>60426359
>print!
Fucking retard. It's
println!
>>
>>60426379
According to what?
>>
>>60426389
According to the fucking language.
print! does not print a newline, while println! does.
Unless of course your intention was to not print a newline, in which case, you're fucking retarded in this case since it's completely inappropriate.
>>
>>60426389
Put and Put_Line
print! and println!
>>
>>60426423
>>60426417
Who asked for these?
>>
>>60426389
>>60426431
>rust "developers"
wew, I'm glad I never bothered learning this shit language
>>
>>60426445
Who are you quoting?
>>
>>60426453
>this fucking faggot
>AGAIN
just kill yourself
>>
>>60426462
Why?
>>
>>60426431
>>60426462
>>60426470
Just fuck off.

>>60426445
Don't group us Rust users in with those retards please.
>>
>>60426474
meant to reply to >>60426453, not >>60426462
>>
>>60426348
>Trash syntax.
like which
>>
>>60426496
All me though
>>
>>60426500
Like, all of it.
>>
>>60426528
unlike rust which has even worst syntax
>>
>>60426536
shit garbage trash
begin
usual
end suffering

vs
fn name(args){
stuff
}


Hmmm. Making me think here really hard
>>
File: 1493994842590.png (806KB, 1300x417px) Image search: [Google]
1493994842590.png
806KB, 1300x417px
>>60426585
>fn
>>
File: maxresdefault.jpg (271KB, 1920x1080px) Image search: [Google]
maxresdefault.jpg
271KB, 1920x1080px
>>60426606
<procedure fucking trash
>begin
>end garbage
>>
File: 1492837575921.gif (107KB, 400x220px) Image search: [Google]
1492837575921.gif
107KB, 400x220px
>>60426662
>he doesnt know about function
>>
>>60426699
Who are you quoting exactly?
>>
>>60426707
KILL YOURSELF YOU FUCKING NIGGER GODDAM IT I FUCKING HATE YOU YOU LITTLE FAGGOT PIECE OF SHIT REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
>>
File: 1489842602922.jpg (115KB, 699x520px) Image search: [Google]
1489842602922.jpg
115KB, 699x520px
>>
>>60426741
kek
>>
File: memes.jpg (42KB, 650x365px) Image search: [Google]
memes.jpg
42KB, 650x365px
>>60426707
>he thinks this is a quote
rust is and will always be a meme
>>
>>60426761
And Akari will never be real
>>
>>60426761
>>he thinks this is a quote
Who said this
>>
>>60426807
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
>>
File: 1455892775728.jpg (38KB, 362x346px) Image search: [Google]
1455892775728.jpg
38KB, 362x346px
>>60426834
>>
>>60426807
Your mother did when I fucked her last night.
>>
File: 1458854528187.jpg (49KB, 640x640px) Image search: [Google]
1458854528187.jpg
49KB, 640x640px
>>60426858
Never knew mom was into girls
>>
File: 1471693952008.jpg (46KB, 640x480px) Image search: [Google]
1471693952008.jpg
46KB, 640x480px
>This thread
>>
>>60426893
You mean this entire board.
>>
>>60426327
And got btfo'd by C (avionics) and C++ again (auto). But we shall keep it alive with SPARK!
>>
File: 1465519075030.png (230KB, 548x642px) Image search: [Google]
1465519075030.png
230KB, 548x642px
>>60426882
A-Are you saying I'm a girl?
>>
>>60426969
Wtf you look like one
>>
File: 1464998686938.jpg (328KB, 1214x584px) Image search: [Google]
1464998686938.jpg
328KB, 1214x584px
>THIS THREAD
>>
good thread fellas.
Although, I'm still not convinced
>>
>>60426662
Ada's syntax is beautiful though.
In rust they should have used either 'func' or 'function' but not fucking 'fn', also remove 'let' from the language please it's fucking retarded.
>>
>>60427005
https://en.wikipedia.org/wiki/Fn_key
>>
>>60427005
But func and function are the worst choices. func sounds fucking retarded, and function is too long.
fn is the best choice, doesn't sound retarded, and is short.
>>
>>60427005
Fn is short for function and it is well established
>>
>>60426996

>>60426275
>>60426308

Blub paradox.
Conveniently ignoring any actual points doesn't cut it.
>>
>>60427029
the fn key on your keyboard is also stupid.
>>60427072
Never ever seen fn being short for function in a programming language before.
>>
>>60427176
So either the whole world is stupid or it's just you.

Hmmmm
>>
File: 559.gif (876KB, 500x279px) Image search: [Google]
559.gif
876KB, 500x279px
What're the best books for learning Rust? Any YouTube tutorials? How would I go about creating wrappers so that the Windows API would be usable in Rust?
>>
>>60427251
When you have read the official book and rustonomicon, read this http://shop.oreilly.com/product/0636920040385.do
>>
>>60427298

These?

>Official book
https://doc.rust-lang.org/book/

>rustonomicon
https://doc.rust-lang.org/nomicon/
>>
>>60427340
yes
>>
>>60427120
this, altougth blub paradox is ironic/paradox as in its name giver is a blub one-trick pony toy language creating fraudster that tricked yahoo
>>
I'm not fond of the SJW aspects but I have to admit, the language is very impressive, the project gives out fascinating updates as it progresses, the toolkit is very convenient.

I wish it went further with code correctness precautions and had better readability. Really I wand Ada with an actual community and borrow checker and cargo.

Cargo makes everything much simpler.
>>
File: 1493754937916.jpg (32KB, 480x856px) Image search: [Google]
1493754937916.jpg
32KB, 480x856px
>>60426275
>It's better thought out than C++.
>It's faster than C++.
>It's safer than C++.
This is what rustcucks believe
>>
File: rust-sjw.jpg (65KB, 774x332px) Image search: [Google]
rust-sjw.jpg
65KB, 774x332px
The reason Rust is being pushed so hard is because social justice warriors have found great difficulty penetrating the communities of open source system coders who use C and/or C++.

The "safety" features give advantages to lobotomised Feminist studies "coders" who are trying to "disrupt" these communities while breaking the knee caps of everyone else who knows what they are doing.

Literally nothing in Rust actually solves problems that haven't already been solved by RAII in C++ and even some GC/stack/heap techniques in the arguably superior but slower D compiler.

The advocates are all social justice warriors and this is their "long march through the development communities". They are employing critical theory against their main targets C and C++, by criticising everything it is and does and demonising its users. They've held back their "cis het white male" jargonism for now, but once they have established a foot hold "killer app", expect them to go wild with it. Just read through the big throbbing CoC they've erected on their main website.

Rust is kill. Don't touch it, spit on all its advocates.
>>
>>60428051
Keep deluding yourself, I guess.
>>
>>60428073
Rust is too hard for SJW's and feminists.
>>
>>60428073
Really, that's your argument? Why do you come to a tech board in the first place if you can't present any argument with technological/scientific merit?
>>
File: trumpotato.jpg (50KB, 327x422px) Image search: [Google]
trumpotato.jpg
50KB, 327x422px
>>60428083
>Keep deluding yourself, I guess.
The one being deluded is you. Come back to me when your rust "hello world" binaries can fit into a program cache. What a fucking joke.

MUH SAFETY
MUH FUCKING SAFETY
>>
>>60428130
Do you know the difference between static and dynamic linking? I don't think so, all you ever did is watch anime and spew the hottest "memes" found on /g/
>>
>>60428130
Is that your only argument? because literally the only reason why Rust binaries are large is because everything is statically linked.
Why is it statically linked? because no one is going to have rust libraries installed, because it's not that wide spread (yet anyway).

Go and fully statically link your C++ programs and see the binary size, faggot.

$ cat main.cxx 
#include <iostream>

int main() {
std::cout << "Hello world\n";
}
$ g++ main.cxx -static -static-libgcc -static-libstdc++
$ ll a.out
-rwxr-xr-x 1 - - 2.0M May 17 00:02 a.out
$ g++ main.cxx -static -static-libgcc -static-libstdc++ -Os
$ ll a.out
-rwxr-xr-x 1 - - 2.0M May 17 00:02 a.out
$ strip a.out
$ ll a.out
-rwxr-xr-x 1 - - 1.6M May 17 00:08 a.out
$ ./a.out
Hello world
$ cat main.rs
fn main() {
println!("Hello world");
}
$ rustc main.rs
$ ll main
-rwxr-xr-x 1 - - 3.5M May 17 00:07 main
$ strip main
$ ll main
-rwxr-xr-x 1 - - 324K May 17 00:07 main
$ ./main
Hello world


Conclusion? Statically linked stripped Rust programs are actually smaller than statically linked stripped C++ programs, and the rust program wasn't even optimized.
What does this mean? Rust is actually way smaller than C++, and a dynamically linked stripped Rust binary would be either the same size or smaller (due to compilation units being a whole module = better optimization) than a dynamically linked stripped C++ binary.

Oh and just for comparison, here's a statically linked stripped C program:
$ cat main.c
#include <stdio.h>

int main() {
puts("Hello world");
}
$ gcc main.c -static -static-libgcc -Os
$ ll a.out
-rwxr-xr-x 1 - - 792K May 17 00:17 a.out
$ strip a.out
$ ll a.out
-rwxr-xr-x 1 - - 722K May 17 00:17 a.out
$ ./a.out
Hello world


Notice anything? it's fucking larger than a statically linked stripped Rust program. KEK.

Pick better bait next time.
>>
>>60428522
>Arguing with Neo-/g/
You do realize these kids are fresh new to programming with no prior knowledge, right. This is how >>60428073 they try to fit into the conversation.
>>
>>60428102
>if you can't present any argument with technological/scientific merit?

His argument about the political agenda behind Rust is very relevant. In science, like everywhere else, political decisions have heavy impact on technical issues. If Rust developers push for their language in order to break existing communities that they perceive as "hateful" then their succes will be harmful on technology.
>>
>>60428603
>His argument about the political agenda behind Rust is very relevant.
No it isn't. Believe it or not, by writing language X, you are neither going to drive white race to extinction nor you are going to kill all African people. Mental delusion is not an excuse.
>>
nyankoposting should be a perman desu
>>
>>60428566
best post in this thread desu
>>
>>60428641
did a cat hurt your feelings?
>>
>>60428684
That's the worst cat though
>>
File: 5688-1880735610.png (85KB, 320x400px) Image search: [Google]
5688-1880735610.png
85KB, 320x400px
>>60428711
show me where the cat touched you
>>
Rust is the shittiest PL out there except for all the others.
>>
>>60428720
Second best cat, upgrade
>>
File: a_sicp_is_fine_too.jpg (86KB, 540x720px) Image search: [Google]
a_sicp_is_fine_too.jpg
86KB, 540x720px
>>60428744
fine
>>
>>60428073
>>>/pol/
>>
File: C_8ZRg7UwAEakD8.jpg large.jpg (140KB, 986x1098px) Image search: [Google]
C_8ZRg7UwAEakD8.jpg large.jpg
140KB, 986x1098px
>>60428073
>>
>>60426092
Compared to C? It is and will be for a long time even if it gets adopted.
Compared to C++? It's a godsend. There's no reason to choose that abomination over rust. The syntax is as ugly as c++, but the language is actually usable.
It won't have a chance against C until there's a verified compiler and integration with proof assistants.
>>
>>60426092
its just another meme language. people make these every day and no serious programmer uses them.
>>
>>60426707
>Who are you
It is I!

Oh, right, you meant to write "whom". Then say so, faget.
>>
File: bait-23.png (9KB, 254x255px) Image search: [Google]
bait-23.png
9KB, 254x255px
>>60428051
>It's better thought out than C++.
Is this why rustcucks always use the latest nightly builds so that they can use the latest (((unsafe))) constructs so they can actually use their shitty language for anything more advanced than hello world?
>>
>>60426909
he actually meant site ofcourse
>>
I was seriously considering rust for my freenet rewrite until is looked at their stdlib.
rust is the worst language to write any network aware code in so far.
go is pretty good but their gc is a bit too slow to warrant using it.
C++ has exceptions and RAII which make it too complex to bother with for my use case.
C is the most portable language in existence so I've decided to use that. I hate how the rust kids assume every programmer needs to be handled with kid gloves, we're adults we can handle ourselves and access memory in ways that are scary to amateurs. Rust is immature as a language, their ecosystem is only going to become more fragmented and they are religious nuts on the level of Scientology.
>>
>>60428522
>Oh and just for comparison, here's a statically linked stripped C program:
>Notice anything? it's fucking larger than a statically linked stripped Rust program. KEK.
That's a complaint against the standard library implementation, though, not the language.

Try this for size instead:
void exit(int st)
{
asm("mov $60, %%eax;\n"
"mov %0, %%edi;\n"
"syscall;\n"
: : "r" (st) : "eax");
}

int write(int fd, void *data, int len)
{
int ret;

asm("mov $1, %%eax;\n"
"mov %1, %%edi;\n"
"mov %2, %%rsi;\n"
"mov %3, %%edx;\n"
"syscall;\n"
: "=a" (ret) : "r" (fd), "r" (data), "r" (len));
return(ret);
}

int strlen(char *str)
{
int n;

for(n = 0; *str; n++, str++);
return(n);
}

void puts(char *str)
{
int s, n, r;

for(s = strlen(str), n = 0; n < s; n += r)
r = write(1, str + n, s - n);
}

void _start(void)
{
write(1, "Hello World!\n", 13);
exit(0);
}
>>
>>60430375
For some reason, I can't post the results. When I do, Hiromoot considers my IP range blocked.

The resulting program size was 928 bytes, though.
>>
>>60430410
Also >inb4 b-but inline assembly isn't standard iso ansi c
Being able to interface easily with assembly and other foreign object files via the standardized ABI is one of the strengths of C.
Thread posts: 91
Thread images: 21


[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.