Better HN
topnewbestaskshowjobs
Log inSign up

heythere124

4 karma · joined Jun 30, 2017 (9y ago) · 9 submissions

Submissions

comment 9y ago · link · parent

Python does that too.

comment 9y ago · link · parent

Since when is discrimination based on IQ illegal?

comment 9y ago · link · parent

What would you do with smaller businesses when you decide to quit/retire and they need to take control of their own websites?

comment 9y ago · link · parent

The point is that they can still. Whatever the standard for taking time off work for illness it should apply equally to both genders so there should never be any need for a separate rule/law.

comment 9y ago · link · parent

Not sure those optimisations are worth much. And it's only safety by forcing lowest common denominator code and making you justify everything to a dumb compiler. Rust serves a niche, but it is a tight niche IMO.

comment 9y ago · link · parent

Your "solution" is possible in many languages. It's just to give threads complete ownership of data they use. It doesn't require a special type system.

In general I don't think Rust actually adds much abstraction that isn't already in say Python. What it does is enforce tight constraints.

comment 9y ago · link · parent

time.Sleep(1000) could be replaced with a real syncing mechanism of some kind -- it's only for illustration.

comment 9y ago · link · parent

Not my area of expertise and it is yours, but if you eliminate a zero instruction before a copy instruction how can you be sure that doesn't affect other threads?

  var x Int
  // Pass x to a thread by reference
  x = 0
  time.Sleep(1000)
  x = 1