Better HN
topnewbestaskshowjobs
Log inSign up

wfsfw4w44

0 karma · joined Mar 28, 2016 (10y ago) · 9 submissions

Submissions

comment 10y ago · link · parent

how does this compare to youtube-dl?

comment 10y ago · link · parent

> Windows

comment 10y ago · link · parent

ooc, most if not all of these software are second-class citizens on windows, and would perform much better under linux/bsd (as in OSX). how come you are running windows?

comment 10y ago · link · parent

by being able to use the go toolchain on the go source itself (it was previously in C)

comment 10y ago · link · parent

go is somewhat special in what is shipped with its system libs:

"TLS/SSL/GZIP/PNG/XML"

all of these are part of the go standard libs, and gets regularry updated with the language.

tls and ssl: https://golang.org/pkg/crypto/tls/ gzip: https://golang.org/pkg/compress/gzip/ png: https://golang.org/pkg/image/png/ xml: https://golang.org/pkg/encoding/xml/

since golang also has built in support for fuzzing in the toolchain, the standard parts are quite battle tested already.

if you study their sourcecode you will also find Benchmark functions, that you can use to benchmark the implementations (go test -bench ./...)

comment 10y ago · link · parent

the most obvious difference is a go-panic and exceptions are used in different scenarios.

it's considered bad practice in go library code to panic(), while it is considered normal error handling to throw an exception in java.

also note that you can catch a panic in go, and use it as some kind of exceptions if you really must.

https://github.com/golang/go/wiki/PanicAndRecover#usage-in-a...

comment 10y ago · link · parent

Your issue here (obviously), is going to stack overflow for advice.

comment 10y ago · link · parent

Since go is a compiled language, you get the benefit on zero startup cost, which you pay when using JVM or NET, or even Python.

comment 10y ago · link · parent

No, it should not.

As another poster already commented; > You don't need to try selling C# to anyone. People who need it already use it