Re:Why Discord is switching from Go to Rust (2020)
by sgt on Monday February 22, 2021 @01:46PM
(#26228583)
I wouldn't mind looking into Rust to eventually replace our Java and Python based stacks, but every time I look at it, I tend to give some thought to the difficulty of writing Rust as opposed to reading/writing/maintaining Java for an entire team. Frankly I'm worried that not all team members will become good Rust developers, and the codebase will develop serious rot over time. Any experiences with this?
[ Parent
| on HN ]
Re:Why Discord is switching from Go to Rust (2020)
by ris on Monday February 22, 2021 @04:10PM
(#26230676)
> our Java and Python based stacks
I always find it bizarre when python (and to some extent java) are lumped in as languages that you found Go or Rust a suitable replacement for. They're just such different ends of the spectrum - Go/Rust will just never be able to match the expressivity and rapid development ease of python because they have such different design goals.
If you find porting a production application from python to Go/Rust a satisfactory outcome, then I suspect you should never have been using python for it in the first place or you've been using python All Wrong.
Re:Why Discord is switching from Go to Rust (2020)
by sgt on Tuesday February 23, 2021 @05:33AM
(#26235719)
I have used Go on a project that could easily have been done in Python, though. So they are not that far apart in terms of suitability.
Re:Why Discord is switching from Go to Rust (2020)
by l2cluster on Monday February 22, 2021 @01:56PM
(#26228762)
We switched Ruby -> Scala, and it took considerable training effort and some years before everyone was comfortable.
I would estimate 15% of the developers still can't write moderately good Scala code.
Re:Why Discord is switching from Go to Rust (2020)
by johnnycerberus on Monday February 22, 2021 @03:05PM
(#26229816)
I think you should be worried instead of the amount of libraries that you give up from the JVM and Python ecosystems before anything else. Also, the applications of Rust and Java/Python generally do not overlap, I would be cautious in approaching this transition. Scala would be a better choice since you have expertise on the JVM and it has a familiar syntax to Python devs.