Live data from Hacker News

Go is my hammer, and everything is a nail

maragu.dev

811–816 of 816 posts

Re: Go is my hammer, and everything is a nail

#811

Earlier quoted context omitted.

I agree with that and Scala example, but also languages diseased by not evolving and not allowing new widely-accepted features. I wonder what would happen with Go if they never changed their mind and kept it without generics? My point is not about bringing all features other languages have (its just not possible unless its a lisp), but rather creating a new language and not understanding how vital something like gene…

> I wonder what would happen with Go if they never changed their mind and kept it without generics? Change their mind? What do you mean? Go always maintained it would get them, once the right design was found – which was echoed by Ian Lance Taylor actually working on them even before the first public release. He alone has, what, 8 different failed proposals? The problem was always, quite explicitly, that nobody withi…

> The problem was always, quite explicitly, that nobody within the Go team had the full expertise necessary to create something that wasn't going to be a nightmare later. As you may recall, once they finally got budget approval to hire an outside domain expert, the necessary progress was finally made.

This is a very interesting part and looks like you know about what happened. I wonder how come Go team had many super talented experts (Pike and Thompson for example) with a "power" of Google behind them and generics were an issue at all, while for example Crystal being a very similar language with native code generation, similar concurrency model and no big tech behind it managed to pull it off?

I've read some comments of devs who used both and they say Crystal is just plainly better. This just doesn't make sense to me, the biggest tech company on the planet should create a language that is head above everything else, but ended up being just good.

Re: Go is my hammer, and everything is a nail

#812

Earlier quoted context omitted.

Python has _remarkably little_ ecosystem churn compared to a lot of languages. New packages come and go all the time but the older packages are very well maintained and nobody's forcing you to switch to the new ones.

Depends on your bubble. AI circuls have huge churn. And I'm an advocate of not chasing new shiny toy, but it's also a problem when after so many years people don't know -m exist or stick to setup.py. In fact, I'm willing to bet half of HN can code in Python, yet can't tell the difference between setup.py, setup.cfg and pyproject.toml. That's part of the things the ecosystem dumps on you.

I'm sorry to say if you can't google the difference between setup.py and pyproject.toml then it's a skills issues, because in 14 years of using Python that has never been an impediment to getting anything done in a timely manner.

Re: Go is my hammer, and everything is a nail

#813

Earlier quoted context omitted.

Setting up a requirements.txt file and venv is _not_ a difficult ask. Seems like a skills issue here frankly.

Your attitude towards a new developer in the community is disappointing. I just wrote in detail why I found it difficult/unintuitive and you dismissed everything without addressing it.

If that's too difficult then you might as well not be in the profession, because it's one of the simplest things in the world.

Re: Go is my hammer, and everything is a nail

#814
post #268

Earlier quoted context omitted.

Or servers, and about anything that really benefits from concurrency. Even a lot of games could be made with go. The gc wouldn’t really kill the frame rate of a game unless you really push it.

both unity and unreal have GC these days.

Yeah, but their GC are tuned for the specific task of being a game engine. (Idk the specifics, but I doubt they are stop-the-world GCs for example)

Re: Go is my hammer, and everything is a nail

#815

Earlier quoted context omitted.

Sorry, this comment is so incorrect that I have to ask, what are you basing it on? You can create games today using Go without cgo, and there are numerous examples of shipped games of varying complexity and quality. I do this to ship the bgammon.org client to Windows, Linux and WebAssembly users, all compiled using a Linux system without any cgo. https://ebitengine.org https://github.com/sedyh/awesome-ebitengine#game…

https://ebitengine.org/en/documents/install.html For anything other than windows: > Installing a C compiler > A C compiler is required as Ebitengine uses not only Go but also C. I mean, even on platforms without cgo, it's it working magically? No; it's using https://github.com/ebitengine/purego , which is: > A library for calling C functions from Go without Cgo. Like... I mean.... okaaaay, it's not cgo, but it's basi…

Ebitengine author here.

PureGo is not fully used in Ebitengine for Linux, macOS, and so on yet. You still need Cgo for such environment.

Re: Go is my hammer, and everything is a nail

#816
post #476

Earlier quoted context omitted.

Does Maven come bundled with the SDK?

It's an additional install, like the jdk. Typically on a brand new os install the equivalent of these steps would be done: sudo apt-get install sudo apt-get install maven And then you'll be good to go.

I develop on a Windows machine so you're left working out which version of which JDK you need to install.

That isn't really a problem with other languages.

Post reply on HN