Want to do a simple json parsing cli tool

>want to do a simple json parsing cli tool
>it's 3MB large

Wtf

Attached: 1 T5HJv_JYlmBALYbaNlKzcA.png (1400x1049, 50.26K)

Other urls found in this thread:

youtube.com/watch?v=Axg27gwEqCE
twitter.com/NSFWRedditImage

Shut the fuck up, nigger.

Compiled GC'd language

lol large binaries

go sucks cocks.

Attached: 1624259704456.png (882x498, 67.62K)

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?

Attached: kek.png (987x181, 14.31K)

they're joking user, they know how it works

This was a good thead. I like it.

Attached: Screenshot - 2021-11-08 , 20_22_48.png (1515x791, 1.64M)

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/watch?v=Axg27gwEqCE

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

Attached: aergergrg.png (510x48, 4.02K)

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!

Attached: 17c.png (2847x1412, 1.94M)

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

Attached: Screenshot_2022-02-04-19-29-09-283_org.mozilla.fenix.jpg (1080x2400, 691.55K)