News for hackers. Stuff that matters.

ta20200202

Re:Go 1.18 on Tuesday March 15, 2022 @07:49PM (#30693483)
> there's a lot of developers that misuse/shouldn't use generics.

The same is true for other features, like channels and goroutines.

The same is true for a HackerNews comment.
Re:Why I’m Leaving Elm on Friday April 10, 2020 @12:06AM (#22829890)
> issue is that under the newest release Elm is requiring that no code contain any ‘raw’ JS or it won’t compile. It seems like this was an option prior to the current version so is this basically like if the Rust team said as of the new release no code, other than that code coming from the Rust team may use ‘unsafe’?

Yes, the problem is similar. It can be considered worse, because in safe Rust you can do almost everything, but Elm is much more limited.

You can still use regular JavaScript with ports, but it is more complicated. It is something like a WebSocket channel, where the server is the JavaScript code.

Re:Why Discord is switching from Go to Rust on Tuesday February 04, 2020 @07:06PM (#22242572)
RAII for references (pointers) is a no-op. If the cache returns references to the data in its own array there is no overhead.