[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
from the day that I met you I stopped feeling afraid in your
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 53
Thread images: 11
File: rust-logo-512x512[1].png (94 KB, 512x512) Image search: [Google]
rust-logo-512x512[1].png
94 KB, 512x512
from the day that I met you
I stopped feeling afraid
in your arms I feel safe
in your arms I feel safe
>>
>>55024767
>Mozilla project
D O A
O
A
>>
File: 1381541245172.jpg (42 KB, 597x589) Image search: [Google]
1381541245172.jpg
42 KB, 597x589
>>55024767
>it's a 600kb hello world episode
>>
+1 Good Language
-1 Militantly leftist community
-1 Horribly unstable windows support
+1 good package manager/build system

=

0
>>
>>55024832
That's because everything is statically linked, you'd get the same with C and C++ if you statically linked the libc and stdc++.
>>
>>55024879
From what I hear Windows support is in a good state now, they made the MSVC toolchain a Tier 1 platform, what are you referring to precisely?
>>
>>55024902
>what are you referring to precisely?

Try actually using Rust on Windows to get work done. Most crates require the GCC which Windows doesn't have. So you lose a solid ~2/5th of crates.

You can't actually build Rust win-msys64/86 currently https://github.com/rust-lang/rust/issues/20900 so effectively you can only use it as a small tool for local scripting jobs that you can build up in the STDLIB.
>>
http://phoronix.com/scan.php?page=news_item&px=Rust-Low-Level-Linux-Thoughts
http://groveronline.com/2016/06/why-rust-for-low-level-linux-programming/
>>
>>55024956
That's not the fault of the language tho, it's just the ecosystem doesn't give a fuck about Windows.

Also why would you be building it yourself? Just use rustup.rs, it already has gnu and msvc toolchains for Windows.
>>
>>55024893
>it's a rust fanboys lie about C episode
>>
>>55024994
Also to expand on that, I just use MSYS2 and rustup.rs on Windows.

I use the -gnu toolchain tho, and the dependencies installed through MSYS2, haven't had a single problem.
>>
>>55025011
https://lifthrasiir.github.io/rustlog/why-is-a-rust-executable-large.html

Also comparing a C executable statically linked with musl to a Rust executable linked with glibc is kind of retarded.
>>
>>55025056
rust doesn't statically link glibc. a rust hello world statically linked against musl will be even larger than a normal rust hello world.

it's very easy to get an 8kb hello world by using lrs. the reason that a rust hello world is 600kb is because of retarded decisions by the rust stdlib people.
>>
>>55025097
I didn't say it statically links to glibc, I just said the comparison is retarded.
>>
>>55025097
pic related
>>55025134
the comparison is retarded because it is too nice to rust. in a non retarded comparison rust would look even worse.
>>
>>55025011
>>55025151
gcc gives me an executable with size 784K, when compiling with -O and -static
>>
>>55024879
Who cares about Windows you fucking MS shill
>>
>>55025220
Because you're linking against glibc. glibc does not support static linking by design.

Take it from the former glibc maintainer: https://www.akkadia.org/drepper/no_static_linking.html

If you want to statically link C programs, link against musl, ulibc, or dietlibc.
>>
>>55025244
And that is why the comparison is retarded.
>>
>>55025151
16KB for a dynamically linked hello world? What kind of botnet are they hiding in the binaries?
>>
>>55025304
You seem to think that rust links statically against glibc. It does not. It links dynamically against glibc. glibc contributes at most 5kb to the rust hello world. the other 500kb are rust code.
>>55025312
It's possible to get it down to 5kb with some compiler switches but I didn't bother.
>>
File: 7281.png (73 KB, 2048x1024) Image search: [Google]
7281.png
73 KB, 2048x1024
>>55024767
>>
>>55024879
I'd rather have leftists than poltards.
>>
>>55025530
>tards
banned for the use of problematic language
>>
>>55025530
Why?
>>
File: 1462904653770.jpg (40 KB, 700x551) Image search: [Google]
1462904653770.jpg
40 KB, 700x551
>>55025362
oh boy it's /pol/ again.
We already had this talk in the firefox thread. Do you need to be educated again? Perhaps you won't say "cuckcuckcuckcuckcuckxD" This time?

Go back were you belong autistic alt-right. go back to /pol/.
>>
>>55025580
>9gag
>cuckxD
leave faggot
>>
>>55025343
No, what I'm saying is if you go out your way to optimize for size, then you can get similar results in C and Rust.

Like you would use musl to statically compile an executable in C and get small sizes and maximum portability, you can do the same with Rust by using musl and the appropriate compiler flags.
>>
>>55025635
>you can do the same with Rust by using musl and the appropriate compiler flags
No, the point is that you can't. It's not possible to produce a small rust hello world by changing compiler switches. If you think otherwise prove it.
>>
>>55025633
It's a saved image. i could give two shits about it's origin from 9GAG.

It's meant to symbolize that I've found "dat /pol/ boi"
>>
>>55025655
Did you check the link I gave you? It proves it.
>>
>>55025666
It's a long article and I don't want to read it all. Please just post the compiler switches here so that I can test it myself. I did you the same courtesy before when I showed you how to produce a small C hello world.

I'm going to the gym now so I won't be able to reply for at least half an hour.
>>
File: Capture.jpg (28 KB, 611x199) Image search: [Google]
Capture.jpg
28 KB, 611x199
>>55025655
>It's not possible to produce a small rust hello world by changing compiler switches. If you think otherwise prove it.
Of course, this isn't statically linked.
>>
File: 1464754217341.png (138 KB, 375x375) Image search: [Google]
1464754217341.png
138 KB, 375x375
>>55024879
> le windows
So +1 then, all things considered. Not bad.
>>
>>55024879
A large part of the FOSS community is leftist. FOSS borrows from the communist ideal of the workers (developers and users) owning the means of production (software)
>>
>>55025703
There's a TL;DR in the article itself, just go to the end of it.
>>
>>55025726
BTFO
>>
>>55024879
>language = community's political opinions
if language is 1 so it's 0.2 at most
>>
File: 92e.png (120 KB, 294x256) Image search: [Google]
92e.png
120 KB, 294x256
>>55024832
>>55025151
>>55025312
>>55025635
Binary size is a valid criticism (even if the language is in its infancy), but you faggots probably don't even author anything popular enough that portability should be a personal concern for you.

Sure makes for a great meme to argue over on /g/ though, doesn't it?

How does the trend extend to binary sizes I would actually expect to see in production? `redis-server` is ~5MB. What would a similarly sized idiomatic Rust project look like when compiled?
>>
>>55025726
with that line of argument you can prove that firefox is just an 8kb binary. we were comparing statically linked binaries and the benchmark is currently 16kb for the C one.
>>55025844
can it really be that hard to just copy paste the command line arguments into a 4chan post?
>>
>>55025662
cuck
>>
>>55025662
> explains the meme
what a loser
>>
>>55025011
anon-kun, why must you be such a retard?
>>
>>55026428
You might wanna read the thread before you start the namecalling.
See >>55025244
>>
>>55026428
>it's an anon doesn't read the thread before replying episode
>>
>>55026050
6mb
>>
File: 1461739196507.jpg (24 KB, 285x290) Image search: [Google]
1461739196507.jpg
24 KB, 285x290
>>55026050
> practical anon
> looking solely at hello world examples doesn't prove anything a pragmatist would care about
> what would a popular, real world rust binary look like?

>>55026428
>>55026441
>>55026444
> fizzbuzzers
> continue to argue about hello worlds
>>
>>55026618
link to source/project?
>>
>>55026628
There are 3800 binaries in my /usr (excluding symbolic links) and the median size of them is 24kb. If the minimum rust binary is 600kb that makes a huge difference.
>>
>>55025011
>>55025151
>>55025220
>>55026428
it took me all of 10 seconds to google this:
https://benchmarksgame.alioth.debian.org/u64q/rust.html

why are you still stuck discussing hello world binary size, when you could do all that and more using the data on the page? sources are included, along with compiled sizes and benchmarks, for Rust vs C
>>
>>55026722
fair point, supposing the smallest a rust binary can get is indeed 600kb
>>
>>55026767
You can get an 8kb one by linking the rust library dynamically but since rust doesn't have a stable ABI you then have to recompile every program whenever you update the library.
>>
>>55025362
Hmm... what can I say, I'm impressed. This actually amuses me
While I can see that this was not exactly hard to make, someone went out of their way to make this logo. Somebody actually took their time to make a custom version of the Rust logo and made a meme out of it. Not just any meme, but one of the absolutely worst and more shameful memes out there (the cuck card, invalidates the opposition's arguments).
This is actually the kind of things that have taught me not to trust opinions in 4chan, because everybody is ready to jump and say "cuck! xD" without actually knowing what they're talking about.
Anyway, it's kind of impressive, I'm now ready to see a whole family of cuck logos for everything out there. Gee, I'm even expecting a Cuck Linux. I may even make it. I'll make a whole fucking linux distribution based on systemd just to say that using systemd makes you a cuck.
This is so cool. You can work hard to call people cucks. Everybody is a cuck and you can prove it thanks to your hard work in exposing cucks.
What else can I say? this is beautiful, we're in for a brave new world boys. I should found a startup: Cuck Solutions Ltd.
Fuck, I'll change my last name to Cuck. Anon Cuck, how do you like that?
Thread replies: 53
Thread images: 11

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.