Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
1st1
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
421.
▲
by
1st1
10y ago
> DDG tells me it's probably a reference to US conservative viewpoints. Right, I wanted a provocative title ;) Thanks!
422.
▲
by
1st1
10y ago
Well, there are a lot of great frameworks in Python -- gevent, twisted. They existed for many years, are quite fast and solid. Even 10 years ago it was totally possible to solve c10k in Python. Now, with players like Go, it's a bit har
423.
▲
by
1st1
10y ago
uvloop author here. AMA :)
424.
▲
Uvloop: Make Python Networking Great Again
(magic.io)
15 points
by
1st1
10y ago
|
8 comments
425.
▲
Speeding up CPython 5-10%
(mail.python.org)
7 points
by
1st1
11y ago
|
0 comments
426.
▲
by
1st1
11y ago
You can use a ProcessPool executor and have nice async/await interface to it.
427.
▲
by
1st1
11y ago
Looks like everybody is in love with async/await in Python :)
428.
▲
by
1st1
11y ago
UTF-8 is just an encoding. Unicode is a more general term. Python 3 allows you to convert bytes to unicode from any encoding, including utf-8 (which is default). Using utf-8 as the internal unicode representation is flawed too - index and
429.
▲
by
1st1
11y ago
The only thing you are forced to think about is whether you're working with strings or with bytes. Unicode is handled transparently (but you do need to know the encoding when you're decoding bytes). How it's stored internall
430.
▲
by
1st1
11y ago
For those who want better Python highlighting in VSCode, we've just published MagicPython: https://marketplace.visualstudio.com/items/magicstack.MagicP...
431.
▲
by
1st1
11y ago
Fixed in v0.4.21!
432.
▲
by
1st1
11y ago
This has been fixed in the latest release!
433.
▲
by
1st1
11y ago
Well, if it's a decorated function, then one of the decorators might consume the first argument. IOW there is no reliable way to tell if the first argument of the method is really "self" or something else. In this very case
434.
▲
by
1st1
11y ago
It's not a keyword in a classic sense, but yeah, we can assign it a distinctive scope. Feel free to open an issue!
435.
▲
by
1st1
11y ago
The UI theme is Soda Dark (although I made some minor modifications).
436.
▲
by
1st1
11y ago
Here it is: [1] For now it has to be installed manually. I'll submit it to Package Control and create an Atom version soon. [1] https://github.com/MagicStack/Chromodynamics
437.
▲
by
1st1
11y ago
Try to add this snippet anywhere in your code: r'(' Besides broken regexps, PythonImproved still doesn't highlight async/await, highlights raw docstrings as regexps, incorrectly handles implicit line continuatio
438.
▲
by
1st1
11y ago
To name a few, we highlight correctly async/await, function annotations, very complex regexps, all kinds of unicode|byte|raw string literals (and new/old style formatting), docstrings, reserved words in improper contexts etc. Mos
439.
▲
by
1st1
11y ago
Sure, feel free to create PRs and submit issues :)
440.
▲
by
1st1
11y ago
Yeah, should be fairly easy to add. Please submit an issue!
441.
▲
by
1st1
11y ago
> [...] A question for the author: does this expand upon the capabilities of the editor [...] MagicPython is a completely new implementation, written from scratch. The ultimate goal would be to integrate it into Atom and Sublime Text by
442.
▲
by
1st1
11y ago
I'm one of the authors, ama.
443.
▲
MagicStack: Python syntax highlighter for Sublime Text and Atom
(github.com)
130 points
by
1st1
11y ago
|
29 comments
444.
▲
by
1st1
11y ago
FWIW nothing stops you from forking the project and being a leader of it. Go ahead, show the better way.
445.
▲
by
1st1
11y ago
Thanks for writing this! > [..] It handles hundreds of thousands of concurrent connections [..] Is it a single process application, or you use a few OS processes behind some load balancer?
446.
▲
by
1st1
11y ago
> This mirrors my experience precisely. I was very excited about async/await, hoping that this would integrate coroutines into regular Python scripts, without the need to manage some complex dispatch engine. I was equally disappoint
447.
▲
by
1st1
11y ago
> Now, nothing less than a wholesale change of the leadership can right the listing ship. I'd suggest you to go to python-dev and post a concrete (and realistic!) proposal on how to improve whatever you think is broken. Suggesting t
448.
▲
by
1st1
11y ago
First of all, see this pic: https://pbs.twimg.com/media/COLLg0TUAAA4j79.jpg:large asyncio doesn't provide any nio abstractions for files because (a) it's not really needed, and (b) there is no easy way to imp
449.
▲
by
1st1
11y ago
Yes, it will be open source. As for emails - we won't disclose them to anyone, or fire emails more often than 1 in 3-4 weeks.
450.
▲
by
1st1
11y ago
Great to hear that :) We plan on writing a series of blog posts to cover EdgeDB and some of the concepts behind it.
More ›