HNHacker News
TopNewBestAskShowJobs

brettcannon

641 karma · joined January 12, 2016

[ my public key: https://keybase.io/brettcannon; my proof: https://keybase.io/brettcannon/sigs/0H8mwk1clr7bZlgwmC5GyIa80EurUoXhovK5m0kyqLI ]
submissionscomments
brettcannon··on Don Jayamanne, creator of Python extension for VS Code, joins Microsoft
PTVS itself is open source so there's no worry there (our whole team does it's work as open source wherever it makes sense, and in this instance it would).
brettcannon··on Don Jayamanne, creator of Python extension for VS Code, joins Microsoft
We don't have directly control over most of the Windows (they are controlled by VS Code itself). But feel free to file an issue at https://github.com/microsoft/vscode-python.
brettcannon··on Don Jayamanne, creator of Python extension for VS Code, joins Microsoft
Would you (and others) be willing to have an extra 20 MB download to get better intellisense? We could potentially work with the PTVS team on better/faster intellisense, but it would require writing that code in .NET which would mean downloading a private copy of .NET for use by the extension.
brettcannon··on Ask HN: Where do you host your personal blog these days?
Ghost(Pro). Support has been fantastic with responses to emails measured in hours, not days (even on weekends!).
brettcannon··on Problems I Have with Python
Stating that something is a matter of opinion does not mean that insults do not hurt. Either you don't want people to listen to you so you don't have to worry about what you say or you do want people to listen in which case how you phrase things matters.

Or put another way: I'm a core developer of Python and I found your post somewhat insulting (I've unfortunately seen worse). You claim I'm possibly incompetent and I did a half-assed job with asyncio. You very "audibly" sigh and call my work "nonsense". You ask me to "come on" and accept your view on things when I have apparently helped make a "gimped language". And you end by saying I need to "fix [my] language". None of that phrasing comes off as understanding of the hard work and immeasurable number of hours I have put into making sure Python continues to function well for you over the past 14 years that I have been a core developer. I know you like Python as you stated in the post and in the comments here, but that doesn't wash away the rest of the unnecessary negativity in your post such that I want to take your opinions seriously enough to spend the time to explain why things are the way they are.

brettcannon··on Problems I Have with Python
See https://bugs.python.org/issue27852 for a discussion as to why there isn't a more general flatten().
brettcannon··on Grumpy: Go running Python
I'm implying that they can get the decimal module into Grumpy by implementing enough of Python to support the module (i.e. they don't need to implement the decimal module from scratch because the module isn't implemented only in C).
brettcannon··on Grumpy: Go running Python
The decimal module in Python 2.7 is implemented in pure Python: https://github.com/python/cpython/blob/2.7/Lib/decimal.py (in Python 3 there is an accelerated extension module that's used when available, falling back on the pure Python version otherwise).
brettcannon··on Grumpy: Go running Python
The ast module itself is in Python, but it imports the _ast module which is an extension module. This actually isn't that big of a deal, though, as the entire AST is defined in a DSL (see https://cpython-devguide.readthedocs.io/en/latest/compiler.h... for some details), so you just have to write some code to generate _ast in Python instead of C (which PyPy may have already done).
brettcannon··on Taking a month off from OSS volunteering
As the author of the post being linked to, I just wanted to say thanks for all the kind words being said in this thread that are directed at me. For those that are curious, I'm still contributing to open source (I'm actually doing some on my vacation, but it's stuff I want to work on so it's all good). :)

I know the tone is rather dark here in the comments due to the fact that project maintainers are coming forward and saying how they end up suffering in a similar way as I have. But acknowledgment is the first step in dealing with a problem. My hope is we as an overall community of open source can come to terms with the problem at hand and start to develop solutions. (and if anyone cares, my current thinking on potential solutions all rely around improving our communication tools, but that's probably for another blog post :) ).

brettcannon··on Some thoughts on asynchronous Python API design in a post-async/await world
Is that still true? Some uvloop benchmarking has shown it to be equivalent to gevent when using streams: https://magic.io/blog/uvloop-blazing-fast-python-networking/ . Plus Python 3.6 has a bunch of optimizations for asyncio where all of these numbers are going to have to be re-evaluated.
brettcannon··on I don't understand Python's Asyncio
If people would like some more illustrative examples for using asyncio there's https://asyncio.readthedocs.io
brettcannon··on Static types in Python
There's an open issue discussing the idea of an explicit protocol support somehow in Python: https://github.com/python/typing/issues/11 .
brettcannon··on Python 3.6 dict becomes compact and keywords become ordered
It needs to be realized that this dict implementation landed literally yesterday. There are space benefits and it simplifies the language in three places where we are adding ordered mapping guarantees (kwargs, namespace passed to metaclasses, and cls.__dict__, all of which were planned to be ordered prior to this dict implementation coming into the language).

Before we bake the requirement of dictionaries being ordered into the language spec and require all current and future Python implementations to support it for Python 3.6 onwards -- remember, Python is 26 years old -- we want to live with the dict implementation for a few releases first.

brettcannon··on Python JITs are coming
Actually Unladen Swallow's aim was simply to be fast. :) They attempted to do that through using LLVM's JIT but ran into a lot of bugs in LLVM and had to spend their time fixing rather than on Python itself. There was no specific work to deal with the GIL.
brettcannon··on Python JITs are coming
It wasn't a failure because they couldn't do it, they simply ran out of time as they only had a one year mandate and spent the majority of that time fixing bugs in LLVM's JIT.
brettcannon··on Python JITs are coming
Python already has this through Cython: http://cython.org/
brettcannon··on PyPy gets funding from Mozilla for Python 3.5 support
It's a possibility. uvloop is written in Cython so it will depend on whether PyPy3 supports what uvloop uses through Cython: http://docs.cython.org/en/latest/src/userguide/pypy.html
brettcannon··on PyPy gets funding from Mozilla for Python 3.5 support
The venv module in the stdlib: https://docs.python.org/3/library/venv.html#module-venv
brettcannon··on Python 3 Is Winning Library Developer Support
I believe both Ubuntu and Fedora have/are dropping Python 2 from the default install this year.
brettcannon··on Python 3 Is Winning Library Developer Support
I tried to outline a bunch of things at http://www.snarky.ca/how-to-pitch-python-3-to-management . But what one person considers an "innovation" while another considers just something "nice to have" is going to vary from person to person, problem to problem.
brettcannon··on Python 3 Is Winning Library Developer Support
Sure, there's a chance people will pick up the mantle and essentially fork Python 2.7 to do unofficial bugfix releases past 2020; as you pointed out, it's open source and people can do what they want. But my point is there is no guarantee that will happen, nor that those unofficial releases will be of quality either. RH and Continuum on the other hand will most likely have financial incentives to make sure any maintenance they do meets the needs of their paying customers and thus are of a certain level of quality. IOW one possible future is more of a certain than the other.
brettcannon··on Python 3 Is Winning Library Developer Support
See http://www.snarky.ca/why-print-became-a-function-in-python-3 for the reasoning behind making `print` a function.
brettcannon··on Python 3 Is Winning Library Developer Support
Pyston targets Python 2.7 because that's what they use on their servers. As for why Pyston over PyPy, http://blog.pyston.org/2015/11/24/pyston-talk-recording/ has a nice video that mentions why (among other things).
brettcannon··on Python 3 Is Winning Library Developer Support
Technically the goal was a majority of new projects started using Python 3 in 5 years. Regardless, everyone knew it would take several years to reach a point like this.
brettcannon··on Python 3 Is Winning Library Developer Support
There's actually been a lot of work the past few months to speed up CPython 3.6. I expect there will be more news coming out of PyCon US on stuff related to this.
brettcannon··on Python 3 Is Winning Library Developer Support
Their PyPI page explicitly says otherwise: https://pypi.python.org/pypi/supervisor . It looks like there is support in their repository but not in any official release (yet).
brettcannon··on Python 3 Is Winning Library Developer Support
pyreadiness.org uses https://github.com/brettcannon/caniusepython3 to figure out if a project supported Python 3. The issue is that gevent doesn't specify their support through a trove classifier on PyPI. There is a hand curated overrides file, though, that I just edited to list as supported (https://github.com/brettcannon/caniusepython3/blob/master/ca...). I don't know how often py3readiness.org updates, but the issue should resolve itself the next time they update the data on the site.
brettcannon··on Python 3 Is Winning Library Developer Support
The Python development team will cease supporting Python 2.7 in 2020. After that you will have to buy support from someone like Red Hat or Continuum Analytics.
brettcannon··on Python 3 in 2016
There are no plans to break backwards-compatibility in Python 4 like Python 3 did with Python 2. If there is any breaking change it will be something like the C API to remove the GIL or something (otherwise it will be standard stuff like removing deprecated modules and functions).
← PreviousPage 2 of 3Next →