>want to do a simple json parsing cli tool
>it's 3MB large
Wtf
>want to do a simple json parsing cli tool
>it's 3MB large
Wtf
Other urls found in this thread:
Shut the fuck up, nigger.
Compiled GC'd language
lol large binaries
go sucks cocks.
try it in java
god, I hate java
listen everyone. you're all dumb fucks larping idiots. especially larping dumb idiot fuck.
it's 3mb because it's statically linked, as opposed to your c program in which those megabytes are some random idiot location on your disk. no-one cares about 3mb of storage, but when you're shitty json parsing shit stops working because your c library updated itself, or you send it to someone and it doesn't work on their machine cus the lib is different version ,they care.
idiot
are you talking seriously about how language works in Any Forums, user
your the idiot
even a statically linked C program isn't this fucking large unless you're using something like cygwin or msys, you fucking nigger.
This is actually a minor nuance compared to other Go's defects.
Shut the fuck up, nigger.
It can always be worse.
>oh no, not my 3MB hello world, what am I gonna do?
they're joking user, they know how it works
This was a good thead. I like it.
I can build a Rust hello world that statically links both musl and Rust's own bloated standard library and it'll still be under 400K
nice kitchen
youtube.com
You'll like it
Please sir don't use Go, please use Java, or better yet use C++
This
why should I use go instead of a memelang like nim or d?
>3mb
>large
... what year is this ?
anyway, if you want to make your Go binaries smaller, just strip the debug info when you compile:
go build -ldflags="-s -w"
In java it would be under 20kb because it would be just the bytecode
The answer is jq+shell script
that is with -ldflags. Without it's 5MB. Try it yourself. The runtime of golang is gigantic for no reason
oh shit 3 MB?? WE'RE DOOMED!
Yo nim's binaries are fucking tiny
That's not that much better
$ cat src/main.rs
fn main() {
println!("Hello, world!");
}
$ cargo build --release --target x86_64-unknown-linux-musl
Finished release [optimized] target(s) in 0.00s
$ strip target/x86_64-unknown-linux-musl/release/hello
$ du -h target/x86_64-unknown-linux-musl/release/hello
388K target/x86_64-unknown-linux-musl/release/hello
It's almost ten times as good
Guys pls, I'm black
Even captcha is racist