Re:Why Discord is switching from Go to Rust
by nickserv on Tuesday February 04, 2020 @02:15PM
(#22239741)
It's just an example of something that the Go team took a decision on, and won't allow you to change. I mean, even Python lets you choose.
I don't really have a problem with it however, even if I do prefer spaces.
[ Parent
| on HN ]
Re:Why Discord is switching from Go to Rust
by monocasa on Tuesday February 04, 2020 @02:36PM
(#22239984)
There's a difference between making decisions that are really open to bikeshedding, and making sweeping decisions in contexts that legitimately need per app tuning like immature GCs.
The Azul guys get to claim that you don't need to tune their gc, golang doesn't.
Re:Why Discord is switching from Go to Rust
by geodel on Tuesday February 04, 2020 @02:57PM
(#22240238)
Hmm ..this is why Azul's install and configure guide run in hundreds of pages. All the advanced tuning, profiling and configuring OS commands, setting contingency memory pools are perhaps for GCs which Azul does not sell.
Re:Why Discord is switching from Go to Rust
by monocasa on Tuesday February 04, 2020 @03:05PM
(#22240314)
I mean, they'll let you because the kind of customers want to be able to are the kinds of customers that Azul targets.
But everything I've heard from their engineers is that they've solved a lot of customer problems by resetting things to defaults and just letting it have a giant heap to play with.
Not sure how that makes the golang position any better.
Re:Why Discord is switching from Go to Rust
by giancarlostoro on Tuesday February 04, 2020 @02:23PM
(#22239835)
Python chose spaces a la PEP8 by the way.
Re:Why Discord is switching from Go to Rust
by dragonwriter on Tuesday February 04, 2020 @02:26PM
(#22239860)
PEP8 isn't a language requirement, but a style guide. There are tools to enforce style on Python, but the language itself does not.
Re:Why Discord is switching from Go to Rust
by giancarlostoro on Tuesday February 04, 2020 @02:31PM
(#22239930)
Same thing with Go... Tabs aren't enforced, but the out of the box formatter will use tabs. PyCharm will default to trying to follow PEP8, and GoLand will do the same, it will try to follow the gofmt standards.
See:
https://stackoverflow.com/questions/19094704/indentation-in-...
Re:Why Discord is switching from Go to Rust
by marsokod on Tuesday February 04, 2020 @02:29PM
(#22239902)
You can use tabs to indent your python code. Ok, you might be lynched if you share your code but as long as you don't mix tabs and spaces, it is fine.
Re:Why Discord is switching from Go to Rust
by giancarlostoro on Tuesday February 04, 2020 @02:33PM
(#22239959)
Same with Go, you can use spaces.
Re:Why Discord is switching from Go to Rust
by _wldu on Tuesday February 04, 2020 @02:56PM
(#22240217)
Or none at all: https://play.golang.org/p/VeEaJbJ6sYT