News for hackers. Stuff that matters.
Re:Why Discord is switching from Go to Rust (2020) by cletus on Monday February 22, 2021 @01:45PM (#26228556)
Why? Well, for one, Go produces a statically linked binary and C# requires a runtime be installed.

If we’ve learned nothing from Java and Python, it’s that managing runtimes and environment can be a huge pain point.

EDIT: swipe keyboard put ringtone instead of runtime and I missed it. Corrected.

Re:Why Discord is switching from Go to Rust (2020) by meepmorp on Monday February 22, 2021 @01:48PM (#26228605)
>C# requires a ringtone be installed.

This confused the hell out of me until I realized it's supposed to be runtime.

Re:Why Discord is switching from Go to Rust (2020) by tantalic on Monday February 22, 2021 @02:17PM (#26229094)
On the other hand, would you be surprised to learn the .NET runtime includes a ringtone?
Re:Why Discord is switching from Go to Rust (2020) by meepmorp on Monday February 22, 2021 @02:45PM (#26229537)
That's probably why it confused me so much; I couldn't rule out that interpretation reliably enough to interpret it as a typo.
Re:Why Discord is switching from Go to Rust (2020) by philwelch on Monday February 22, 2021 @01:53PM (#26228708)
Thanks. I assumed it was an allusion to the .Net runtime having a bunch of unnecessary crap built into it, including a ringtone for some arcane reason.
Re:Why Discord is switching from Go to Rust (2020) by thaumasiotes on Monday February 22, 2021 @02:07PM (#26228947)
Autocorrect: turning simple, obvious mistakes into opaque, irrecoverable mistakes.

It's never been clear to me why someone would want this.

Re:Why Discord is switching from Go to Rust (2020) by carlosrg on Monday February 22, 2021 @01:59PM (#26228822)
> Go produces a statically linked binary and C# requires a runtime be installed

Not true since .NET Core 3.

$ dotnet publish --self-contained --runtime osx.11.0-x64 -p:PublishSingleFile=true

Re:Why Discord is switching from Go to Rust (2020) by doodpants on Monday February 22, 2021 @02:31PM (#26229318)
Not disagreeing with you, but just to be pedantic:

In .NET Core 3, you can build and distribute a single-file executable which, when run, will actually unpack an executable and a ton of DLLs into a temp directory, and run it from there.

In .NET 5 they changed it, so that when you build a "single-file" executable, you actually get an executable plus a few DLLs, which must be distributed together.

Re:Why Discord is switching from Go to Rust (2020) by tonyedgecombe on Monday February 22, 2021 @01:50PM (#26228646)
Re:Why Discord is switching from Go to Rust (2020) by juskrey on Monday February 22, 2021 @01:52PM (#26228669)
With C# and Java, we have learned that time and battle tested VMs can remove terrible pain points in proper hands.
Re:Why Discord is switching from Go to Rust (2020) by cletus on Monday February 22, 2021 @02:30PM (#26229296)
To be fair, I have found Java’s JRE to be relatively painless. It’s fairly simple to have multiple installed and choose which one to use as a command line option.

Python OTOH...