Re: [Python-ideas] Unicode Name Aliases keyword argument abbreviation in unicodedata.name for missing names

2018-07-15 Thread Stephen J. Turnbull
Robert Vanden Eynde writes: > Not for control characters. There's a standard convention for "naming" control characters (U+, U+0001, etc), which is recommended by the Unicode Standard (in slightly generalized form) for characters that otherwise don't have names, as "code point labels". This

Re: [Python-ideas] The future of Python parallelism. The GIL. Subinterpreters. Actors.

2018-07-15 Thread Leonardo Santagada
No one talked about this, but modern cpus with multiple numa nodes are atrocious to any shared memory (maybe threadripper is better, but multiple socket xeon is slow) and more and more all cpus will move to it on single chips, so a share nothing aproach can really make python a good contender on mo

Re: [Python-ideas] The future of Python parallelism. The GIL. Subinterpreters. Actors.

2018-07-15 Thread Nathaniel Smith
On Sun, Jul 8, 2018 at 11:27 AM, David Foster wrote: > * The Actor model can be used with some effort via the “multiprocessing” > module, but it doesn’t seem that streamlined and forces there to be a > separate OS process per line of execution, which is relatively expensive. What do you mean by "

Re: [Python-ideas] The future of Python parallelism. The GIL. Subinterpreters. Actors.

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 10:31 AM, Nathaniel Smith wrote: > On Sun, Jul 8, 2018 at 11:27 AM, David Foster wrote: >> * The Actor model can be used with some effort via the “multiprocessing” >> module, but it doesn’t seem that streamlined and forces there to be a >> separate OS process per line of e

Re: [Python-ideas] The future of Python parallelism. The GIL. Subinterpreters. Actors.

2018-07-15 Thread Nathaniel Smith
On Sun, Jul 15, 2018 at 6:00 PM, Chris Angelico wrote: > On Mon, Jul 16, 2018 at 10:31 AM, Nathaniel Smith wrote: >> On Sun, Jul 8, 2018 at 11:27 AM, David Foster wrote: >>> * The Actor model can be used with some effort via the “multiprocessing” >>> module, but it doesn’t seem that streamlined

Re: [Python-ideas] The future of Python parallelism. The GIL. Subinterpreters. Actors.

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 1:21 PM, Nathaniel Smith wrote: > On Sun, Jul 15, 2018 at 6:00 PM, Chris Angelico wrote: >> On Mon, Jul 16, 2018 at 10:31 AM, Nathaniel Smith wrote: >>> On Sun, Jul 8, 2018 at 11:27 AM, David Foster wrote: * The Actor model can be used with some effort via the “mult

Re: [Python-ideas] The future of Python parallelism. The GIL. Subinterpreters. Actors.

2018-07-15 Thread Stephan Houben
What about the following model: you have N Python interpreters, each with their own GIL. Each *Python* object belongs to precisely one interpreter. However, the interpreters share some common data storage: perhaps a shared Numpy array, or a shared Sqlite in-memory db. Or some key-value store where

Re: [Python-ideas] The future of Python parallelism. The GIL. Subinterpreters. Actors.

2018-07-15 Thread Chris Angelico
On Mon, Jul 16, 2018 at 3:00 PM, Stephan Houben wrote: > What about the following model: you have N Python interpreters, each with > their own GIL. Each *Python* object belongs to precisely one interpreter. > > However, the interpreters share some common data storage: perhaps a shared > Numpy arra

Re: [Python-ideas] Unicode Name Aliases keyword argument abbreviation in unicodedata.name for missing names

2018-07-15 Thread Stephen J. Turnbull
Steven D'Aprano writes: > Sorry, I'm not sure if you mean my proposed alias() function isn't > useful, or Robert's try...except loop around it. I was questioning the utility of "If the abbreviation list is sorted by AdditionToUnicodeDate." But since you ask, neither function is useful TO ME, a