Various updates (Bootstrap 3.4.1, lts-12.26 for Stack), small refactors
This commit is contained in:
@@ -15,8 +15,10 @@ because it's just green threads and cooperative threading is a model
|
||||
that's fresh out of the '90s, and Python /still/ has the [[https://wiki.python.org/moin/GlobalInterpreterLock][GIL]] - and
|
||||
because Elixir, Erlang, Haskell, [[https://github.com/clojure/core.async/][Clojure]] (also [[http://blog.paralleluniverse.co/2013/05/02/quasar-pulsar/][this]]), [[http://docs.paralleluniverse.co/quasar/][Java/Kotlin]], and
|
||||
Go all handle async and M:N threading fine, and have for years. The
|
||||
Python folks have their own set of complaints, like [[http://lucumr.pocoo.org/2016/10/30/i-dont-understand-asyncio/][I don't understand
|
||||
Python's Asyncio]].
|
||||
Python folks have their own set of complaints, like
|
||||
[[http://lucumr.pocoo.org/2016/10/30/i-dont-understand-asyncio/][I don't understand Python's Asyncio]] and
|
||||
[[http://jordanorelli.com/post/31533769172/why-i-went-from-python-to-go-and-not-nodejs][Why I went from Python to Go (and not node.js)]].
|
||||
At least it is in good company [[https://nullprogram.com/blog/2018/05/31/#threads][with Emacs still]].
|
||||
|
||||
On the other hand, it's still a useful enough paradigm that it's in
|
||||
the works for [[https://doc.rust-lang.org/nightly/unstable-book/language-features/generators.html][Rust]] (sort of... it had green threads which were removed
|
||||
@@ -75,8 +77,8 @@ coroutines and futures. My summary on what I figured out is below.
|
||||
** Python already had generator-based coroutines.
|
||||
|
||||
Python now has a language feature it refers to as "coroutines" in
|
||||
asyncio (and in calls like ~asyncio.iscoroutine()~, but Python 2.5 it
|
||||
also already supported similar-but-not-entirely-the-same form of
|
||||
asyncio (and in calls like ~asyncio.iscoroutine()~, but in Python 2.5
|
||||
it also already supported similar-but-not-entirely-the-same form of
|
||||
coroutine, and even earlier in a limited form via generators. See [[https://www.python.org/dev/peps/pep-0342/][PEP
|
||||
342]] and [[http://www.dabeaz.com/coroutines/Coroutines.pdf][Beazley's slides]].
|
||||
|
||||
|
||||
1746
posts/2018-04-08-recommender-systems-1.md
Normal file
1746
posts/2018-04-08-recommender-systems-1.md
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user