HNHacker News
TopNewBestAskShowJobs

cy_hauser

196 karma · joined October 30, 2017

submissionscomments
cy_hauser··on The Go Programming Language and Environment
>> But people praise startups for pivoting ...

Yes, but you discount the size of Google. Some of the things Google has killed have been large enough to have been considered successful products for a startup. They kill a "tiny" product because it's only large enough to be what some startup hopes to become. Google Reader is my favorite example of this. Multiple companies now exist in the soil on top of that grave.

cy_hauser··on Feeling like a victim is a perfectly disastrous way to go through life
> For a narrow enough definition of rich

No matter where you lop the end of the Pareto distribution off the remaining curve still fits the same distribution. I though that was a defining characteristic of the principle.

> ... reliable distributions ... do not control individuals.

The people who've made it always talk to the people who haven't as if they can, by force of will, change their circumstances. That may be true if an individual has an untapped talent but in general luck will determine your outcome way more often than force of will. If it were possible for everyone to be rich there would be examples of that in society all across the world and all throughout history.

I applaud your optimism though.

cy_hauser··on Golang Diaries: Generics
I thought the genericists were the majority? It was the top most requested feature in the Go surveys for years.
cy_hauser··on Generics can make your Go code slower
I've coded Java, C#, and now Go and have spent years doing each. My experience differs from yours. Clearly our experiences differ and that's okay. I occasionally support Go and occasionally bash Go but really I don't have the passion to dislike any language as much as you seem to. Be well.
cy_hauser··on Generics can make your Go code slower
Enums in Go are inferior but that doesn't stop you from using them in the same way.

Of course you can code gen using Go's tags. It's done all the time.

As already pointed out, Go has the JFR it needs, not what Java has.

Go doesn't need a JITter.

Go isn't perfect, but neither is Java or C#. Go code is known for being maintainable and easy for newcomers to read so your last line applies to Java more than Go. But it seems like you want to hate Go. Why?

cy_hauser··on Generics can make your Go code slower
Go does have some of these features: annotations, enums, JFR. They're just built for features of Go rather than Java. They're not the same but perform similar roles for the Go language. Error handling is subjective but I'm not going to disagree it could use some help. Same with Go's GC in certain situations but nothing I've coded has needed more.

All that said, what makes your list any different than a similar list comparing Java to Blub? I don't see your list as preventing one from writing a Java app in Go using Go's idioms instead. (It can't fully do what Java or C# do.)

cy_hauser··on Ask HN: How can we fix Wikipedia?
I'm interpreting your comment as, "Wikipedia isn't far right enough for my tastes." Is that accurate? Do you know of any examples where Wikipedia leans farther right than left?
cy_hauser··on I changed my mind about advertising
For the sake of argument I'll say the way a desire comes into being has no bearing on making it good or bad. What is the implication of this with respect to advertising in your mental model?
cy_hauser··on Notes on the Go translation of Reposurgeon (2020)
So are you manually building a stack trace?
cy_hauser··on Upcoming Features in Go 1.18
I'm on the opposite side of that fence. I'm looking forward to seeing what wonderful libraries can be created now that we have generics. It's going to be really interesting to see who's "right". Will the fear of those who think coders can't code and everything is going to get worse outweigh the concise and expressive functionality that can show up in a well crafted generic library?
cy_hauser··on Upcoming Features in Go 1.18
> Errors reach end users, and they cannot read stack traces.

In general, users don't care about errors or stack traces. They don't want errors of any kind. As a developer I want users reporting errors, which can include a dense stack trace, so I can get the error and an explanation of what they were doing when the error happened. I'm more for making my life easier than worrying about what a user sees.

cy_hauser··on Go: Don't Change the Libraries in 1.18
That wasn't the greatest example as Go doesn't really have any way to represent it. If it did it might be something like this.

  type MyStruct struct {
    Name string
  }

  var-not-nil myStruct = &MyStruct{"Hello"} // this is a "not-nil" pointer variable

  myStruct = nil // compiler would catch this
The idea being to allow variables to hold and pass pointers to structs like now but ensure they are never nil.
cy_hauser··on Go: Don't Change the Libraries in 1.18
Or, if history is a guide, there will be a few really nice generic libraries written and a sizable minority of developers will adopt them as pseudo standard to fill the void. Then the Go team will do what they want, fracture the community, and alienate those who expected your described path to be the one taken.
cy_hauser··on Effective Go
No, the other one. The Oracle we hate and have hated for more than 20 years now.
cy_hauser··on Effective Go
Java (and C# and C++) have become kitchen sink sink languages. Everything is just thrown in. That makes it less productive for me. I've decided I don't want to carry around that much in my head all the time in order to read somebody else's code. I switch languages a lot these days.

Go is getting generics in (hopefully) in a few months. Some features are missing but most don't cause much pain and can be either simulated or worked around. Error handling is its biggest failure, but outside of that I find is at least as productive as other compiled languages in the same space.

cy_hauser··on Effective Go
Because Java has become an unpleasant to code in. Do you really think what you like is what everyone else likes?
cy_hauser··on The BYTE magazine covers by Robert Tinney
I have this cover on my wall too. I believe it was from extra copies that FIG or Forth Dimensions had. I see it every day. There was another version I'd seen that had a bit more color and stars in the background. Not sure whose that was.
cy_hauser··on Golang: How to Update APIs for Generics
No, it's not. It's just being dismissive because your wants are being met by the current state.
cy_hauser··on The pleasure of writing Go
> Generics has so much indirection ...

I don't understand. What do you mean?

> almost every use of generics ultimately ends in type erasure or forced casting

Again, not understanding. Would you mind giving an example of this?

cy_hauser··on Genny – Generate Nim library bindings for many languages
Off topic but if OP is a maintainer please reduce the size and resolution of the GitHub banner image (2.4 MB).
cy_hauser··on Error stack traces in Go with x/xerror
You're probably right. I use Goland and I just think of it as a natural extension to Go. I shouldn't.
cy_hauser··on Error stack traces in Go with x/xerror
It returns nothing or the compiler/linter/ide will tell you.
cy_hauser··on The Go Collective on Stack Overflow
> It will retain the great question and answer experience we’ve all come to appreciate from Stack Overflow.

I deleted my SO account a few years back because I came to dread the "great q&a experience" so much that it was pointless. Trying to word a question so it wasn't closed immediately or getting the "what are you really trying to accomplish" was just too much to bother with. Best of luck though, I guess.

cy_hauser··on Go Error Handling Proposals
The color choice is bad, that makes it difficult for my eyes to read. In case you hadn't realized each line is a link to the actual proposal. That's where the detail is found. The error line in the page tries to summarize the proposals way of handling errors. Common techniques are put in groups. I though it was pretty concise.
cy_hauser··on Go Error Handling Proposals
> Go error handling in practice actually works very well.

I disagree. A quick look through the Go code I'm working with now shows more than half the functions that check for and return errors have absolutely no business knowing about the error. These places are in the middle of the call chain, well away from the place that generated or first encountered the error. These functions check the "if err != nil" and bubble them up. That's just noise. Go's error handling in these cases color everything in their path.

cy_hauser··on SQLite in production with WAL
With no claims to suitability. Just back of envelope based on 400 write transactions per second.

-- Assume an employee filling out a form on a web site that takes on minute to complete.

-- Assume submits are randomly sent. (A bad assumption)

Per minute that's (1 * 60 * 400) 24,000 people submitting a form. Or over a million people submitting their form per hour. Nothing Google scale but enough for most any internal business application.

cy_hauser··on Ask HN: Are you satisfied with Elixir or do you regret choosing Elixir?
> I would never complain about a language just because an IDE does not exist for it.

I think their complaint is valid, especially in light of their finding it difficult to find experienced coders who are in their salary range.

New coders can lean heavily on a good IDE to help: code completion, breakpoints, step wise debugging, one click links to the docs, easy code navigation, and more. Senior coders can and should use the editor of choice, but a great IDE makes a world of difference for a junior or even intermediate coder.

cy_hauser··on Half a million lines of Go
The lack of an ordered map keep me using slices where I'd otherwise reach for a map. This is one of the things I'm looking forward to once generics are in Go.
cy_hauser··on Half a million lines of Go
Infix notation with all the parens is the primary reason I never got comfortable with the lisps. My mind never worked like that. So I really believe there are valid personal preferences that keep people from liking languages right from the start. (I loved forth though. My mind took to it immediately.)
cy_hauser··on Go proposal: new package to provide generic slice functions
True, but what other languages or other anythings are doing is at best irrelevant and at worst the entire point.
← PreviousPage 2 of 6Next →