Better HN
topnewbestaskshowjobs
Log inSign up

ta20200202

37 karma · joined Feb 4, 2020 (6y ago) · 6 submissions

Submissions

comment 4y ago · link · parent

Alternative link: https://threadreaderapp.com/thread/1507819508609679364.html

2.

How sanctions are killing Russia(twitter.com ↗)

16 points · by ta20200202 · 4y ago · 1 comment

comment 4y ago · link · parent

> there's a lot of developers that misuse/shouldn't use generics.

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

comment 5y ago · link · parent

The same is true for a HackerNews comment.

comment 6y ago · link · parent

> 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.

comment 6y ago · link · parent

RAII for references (pointers) is a no-op. If the cache returns references to the data in its own array there is no overhead.