Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codeape
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
codeape
14y ago
From the article: I’ve been reviewing lot of code lately for various open source and internal projects written in Python. As part of those reviews, I have noticed what I think is a trend toward using dict() instead of {
32.
▲
by
codeape
14y ago
Is it still based on .NET/mono?
33.
▲
by
codeape
14y ago
Why the exec? print "Hello world\n" * 100
34.
▲
by
codeape
14y ago
I believe html manpages are built in to most Linux distros' default apache install (or at least easy to set up). http://localhost/cgi-bin/man/man2html At least on Ubuntu, after apt-get install apache2, the URL above works.
35.
▲
by
codeape
15y ago
The reason the python version is slow is (I believe) that the code is very inefficient. It uses socket.sendall() instead of sockfile.write/flush. Using sockfile.write/flush speeds it up from 50 requests/second to 7k requests/second on my ma
36.
▲
by
codeape
15y ago
I don't use socket.send/flush. I use sockfile.write/flush.
37.
▲
by
codeape
15y ago
I changed memg.py to use sockfile.write()/.flush() instead of socket.sendall(). This makes the memg.py server > x100 faster. It outperforms a gevent-based implementation by 10%. See https://github.com/codeape2/Key-Value-Polyglot/commit
38.
▲
by
codeape
15y ago
I lack knowledge on networking/event-based systems on a fundamental level. Here's what I don't understand: * test.py is sequential: It first does 500 sets then 500 gets, all in one thread, using a single connection to the server. * The sock
39.
▲
by
codeape
15y ago
Great work, love it! An idea: Integrate with different ORMs (Python SQLAlchemy, Ruby ActiveRecord etc.) and let users execute code against the schemas. http://imgur.com/O5PoV Would obviously require a sandboxed execution environment, like
40.
▲
by
codeape
15y ago
Is it available on Linux?
41.
▲
by
codeape
15y ago
Never use SQLite in production if you expect more than one simultaneous user.
42.
▲
by
codeape
16y ago
Werkzeug or WebOb if you're using WSGI. I like kid and jinja2 for templating.
43.
▲
by
codeape
16y ago
Questions: * Is it possible to use the Android as a Linux development platform? * Can I compile POSIX sources on the Android? * For instance, can I download bash, Vim and Python tarballs to an Android device and build?
44.
▲
Multiple monitor support for Vim
(github.com)
1 points
by
codeape
16y ago
|
0 comments
45.
▲
by
codeape
16y ago
Could not agree more. My default stack is Werkzeug+SQLAlchemy+Jinja2. Deployed on Apache/mod_wsgi. If a customer wants Windows/IIS, I deploy using isapi-wsgi.