331 karma · joined Feb 16, 2015 (11y ago) · 258 submissions
comment 8y ago · link · parent
The OS context switches to the next available thread at fixed time intervals. It doesn't matter if you have 5 threads or 5000, the number of context switches is the same.
The only difficulty is deciding which thread is the "next available" one. This is the job of the process scheduler.
Normally, the process scheduler is a complex heuristic affair that tries to pick a more deserving thread based on some black magic rules of thumb. Under certain loads this black magic can backfire, picking some threads more frequently while letting others starve.
If you know your workload, you can use a scheduler without magic heuristics. These kinds of schedulers are called "real time". Try them, you'll be surprised.
comment 8y ago · link · parent
There has. GPU programming is exactly that. CPU-heavy tasks (games, bitcoin mining, machine learning) have already migrated.
comment 8y ago · link · parent
Considering that even high-IQ native English speakers have huge, huge problems "just doing what you want", even after explicit and unambiguous instructions -- don't hold your breath. (Maybe after the flying moon car.)
comment 8y ago · link · parent
The source of complexity isn't a mythical "culture of complexity", the complexity is there because it's inevitable if you want to implement powerful compile-time type reasoning. (And you definitely want compile-time reasoning because it's the only way to guarantee performance and correctness of programs.)
The case of Haskell and Rust proves that the issue isn't cultural, it's inherent to the problem domain.
comment 8y ago · link · parent
He's actually right. Adblockers are a racket, their business model involves asking advertisers to pony up protection money for exceptions.
> Not to speak of the negative impact ads have on website performance, battery usage and waste of bandwidth.
This is true, but adblockers don't care about fixing the user's problems.
comment 9y ago · link · parent
Only because of inertia. There's nothing inherently special about "classics". Eventually somebody will branch out once Go and poker are mined out of paper and article opportunity.
Once we do then maybe some new, interesting algorithms will be found.
In principle, every game can be solved by storing all possible game states in a database. Where brute-force storing is impractical due to size concerns, compression tricks have to be used.
E.g., Go is a simple game because at the end, every one of the fixed number of board spaces is either +1, -1 or 0. Add them up and you know if you won. This means that every move is either "correct" or "incorrect"; the problem of classifying multidimensional objects into two classes is a problem that we're pretty good at now, and things like neural networks get the job done.
A slightly more complex game like Agricola has no "correct" and "incorrect" moves because it's not zero-sum; you can make an "incorrect" move and still win as long as your opponent is forced to make a relatively more "incorrect" move.
Not sure how much of a difference that makes, but what's certain is that by (effectively) solving Go we've only scratched the surface. It's not the end of research, only the beginning.
comment 9y ago · link · parent
False, because nobody ever bothered to study modern boardgames rigorously.
Modern boardgames have small decision trees but very difficult evaluation functions. (Exactly opposite from computational games like Go.)
Modern boardgames can probably be solved by pure brute force calculation of all branches of the tree, but nobody knows if things like neural networks are any good for playing them.
comment 9y ago · link · parent
No, Go is a much less intelligent[1] game. It has a huge decision tree and requires massive amounts of computation to play, but walking trees and counting is exactly what computers do well and what humans do poorly.
[1] 'Intelligence' here means exactly that which differentiates humans from calculators: the ability to infer new rules from old ones.
comment 9y ago · link · parent
No. It's an unsupported code dump of patched kernel code: https://github.com/253647445/Pocket-Ubuntu-kernel
Needless to say, nobody is every going to merge or ever update this.
comment 9y ago · link · parent
It's only an "official image" if it comes from Ubuntu's website or from a kernerl compiled from sources from kernel.org.