HNHacker News
TopNewBestAskShowJobs

jy3

43 karma · joined March 24, 2017

submissionscomments
jy3··on Facebook-owned sites were down
No. All the ones you mentioned are up.
jy3··on Updating the Go Memory Model
Just implement methods in your config struct in such a way that they are safe for concurrent access?! Using a mutex for example.

Why would you need it to lock mutexes everywhere?

jy3··on Go+: Go designed for data science
I hope you have the presence of mind to realize the amazing benefit this has for the entire Go codebase in existence.
jy3··on Go+: Go designed for data science
> errors thrown for unused imports

You're doing something wrong if it doesn't get cleaned up automatically.

jy3··on Tesla's “full self driving” beta is potentially dangerous
> It's far better than this.

I don't know what you're referring to. Any links?

jy3··on GeForce RTX 3060 Ethereum Mining Restrictions Have Been Broken
Can anyone enlighten and explain why there were restrictions in the first place?
jy3··on Go is not an easy language
> There are a number of patterns to limit the number of goroutines, and none of them are exactly easy. A simple example might be something like:

This is probably what the author was looking for https://pkg.go.dev/golang.org/x/sync/semaphore

jy3··on Go Micro – A Go microservices development framework
net/http is all you need. You don't need any library or framework.
jy3··on Proposal: A built-in Go error check function, try
Looks a lot like the already proposed check/handle keywords that was met with a lot of push back from the Go community:

https://go.googlesource.com/proposal/+/master/design/go2draf...

Doesn't look like the proposal adds anything new.

jy3··on Go hits the concurrency nail on the head
Describing its concurrency model as one of its weakness is a bold statement, because it's probably one of the biggest reason it became widely adopted.

Everyone is different, but Go 's concurrency model has been the easiest for me to reason about. And I've dealt with my fair share of "async/await".

jy3··on On the Road to Pure Go X11 GUIs
One would think that syadmins love native executables with no system dependencies.
jy3··on Notes on the Go2 Generics Draft
I'm taken aback. I didn't mean to sound condescending.

I won't argue with you my use of the imperative mood as I'm not a native speaker. I'll take note of it.

jy3··on Notes on the Go2 Generics Draft
Reading HN, it feels like some people just want every language to have the same features and have them implemented the same way.

Sad indeed.

jy3··on Notes on the Go2 Generics Draft
That means Go is not the right tool for you. Don't use it.

It's so sad to see people pushing to radically alter a language that they will probably never use because it will never be suitable for their needs.

jy3··on Go 2 Draft Designs
My gut feeling is a significant part of people who voted for them don't really intend to use Go that much.

They might try to please different crowds with Go 2. At the end of the day, they might just loose everyone.

jy3··on Go 2 Draft Designs
> Just because a feature can be misused doesn't mean it's not legitimately useful.

The point isn't that it can't be useful.

In the real world, the amount of code I'm forced to understand that uses overly complicated abstractions is the issue. I'm glad one language finally took the opposite direction.

jy3··on Exploring Error Handling Patterns in Go
Except it's just a returned value and not a goto lookalike.
jy3··on Exploring Error Handling Patterns in Go
I'm not sure I understand the relationship between union-types and exceptions. You mean something like <Result, ErrorData>? Could you expand on that?

> Thanks to panics, even in Go.

Fortunately, for some reason Go developers don't use panic like exceptions and recover them at library boundaries.

jy3··on Exploring Error Handling Patterns in Go
That's precisely why Go is loved.
jy3··on Exploring Error Handling Patterns in Go
I've always been annoyed by the parallel control flow introduced by exceptions in any language. They are used so often in many languages where it doesn't feel necessary.

The fact that I don't even have to think if the function call I'm looking at can throw and if I should catch it or not outweighs everything.

jy3··on Exploring Error Handling Patterns in Go
Just using WithStack() from "github.com/pkg/errors" on any error that originates from outside my repository has been my go-to rule for any Go project. It has never disappointed.
jy3··on Atom 1.29
I have the same question. I've never bothered looking back extensively at Atom since using VS Code.
jy3··on Getting to Go: Garbage collection and runtime issues
As previously stated, Go for video game servers feels like a no brainer.
jy3··on Djbsort: A new software library for sorting arrays of integers
It's kinda hilarious to see that as more and more successful projects and companies use Go in their stacks, the number of comments like these increases in HN.
jy3··on Transfer.sh – File sharing from the command line
Of course it's written in Go.

It's amazing to see the language embraced that much for server side apps.

jy3··on 3.5 Years, 500k Lines of Go
I'm sorry it went badly then.

Your example intrigues me, isn't an interface enough?

Is what bother you that the return value won't be typed T but IIncrementable in go?

jy3··on 3.5 Years, 500k Lines of Go
> I’ve tried porting some of my Java code, and it quickly grew to some classes being duplicated hundreds of times

Who would have thought. Maybe a rewrite would have been more appropriate.

jy3··on 3.5 Years, 500k Lines of Go
I think you are missing the point. Of course you can't assume what a function will do with certainty.