Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aldanor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
76 ms
·
781.
▲
by
aldanor
11y ago
sorted is always a list, whereas reversed is an iterator (at least in Python 3)
782.
▲
by
aldanor
11y ago
It's quite obvious where it comes from though, it first calls __iadd__ on the list and that succeeds, and then it calls __setitem__ on the tuple which fails; however, the first operation already mutated the list. This has nothing to do
783.
▲
by
aldanor
11y ago
The credit card problem is quite easy to solve: allow a few months of free "pro" functionality upon signup, and then allow users to upgrade. During that period of time, you can also track whether they actually used the service a
784.
▲
by
aldanor
11y ago
The hardest part is to make decorator preserve the function signature, however it's quite doable and there's a few packages for that -- e.g. wrapt and decorator in pypi.
785.
▲
by
aldanor
11y ago
Trolls are trolls...
786.
▲
by
aldanor
11y ago
Tornado added support for that recently, I believe
787.
▲
by
aldanor
11y ago
But tuple unpacking inside lambdas is actually supported in Python 3, isn't it?
788.
▲
by
aldanor
11y ago
There's also gridstack.js
789.
▲
by
aldanor
11y ago
And I found Homebrew to be a "much better tool than MacPorts with way more useful packages" which to me is "clearly the better system" :) Been using it for the last 5 years and had many chances to compare both. See, it&#
790.
▲
by
aldanor
11y ago
Rust iterators are a bit of a crutch IMO, until it's possible to return them unboxed; if you use them heavily you end up with types one paragraph long.
791.
▲
by
aldanor
11y ago
That's an interesting claim, care to back it? P.S. *nix shell != bash, there's zsh and fish that are light years ahead re: tab completion and other general niceties.
792.
▲
by
aldanor
11y ago
Hasn't this been already done in webpack (css-loader with local scope)? https://github.com/webpack/css-loader#local-scope
793.
▲
by
aldanor
11y ago
Making money on daily trading != predicting stock prices. More often than not, you don't want to be trying to predict prices or use fair value models if you are a high frequency trader.
794.
▲
by
aldanor
11y ago
Another way to do this would be to use numba package to generate LLVM IR from Python bytecode (it supports a rich set of instructions including numpy stuff, has type inference, etc), and then run it in the browser via emscripten, with some
795.
▲
by
aldanor
11y ago
Here's one good example: abc (abstract base classes) from Python's standard library -- https://hg.python.org/cpython/file/3.4/Lib/abc.py
796.
▲
Python metaclasses
(ivansmirnov.io)
55 points
by
aldanor
11y ago
|
29 comments
797.
▲
by
aldanor
11y ago
Better call Saul!
798.
▲
by
aldanor
11y ago
But Matlab users love it! oh wait..
799.
▲
by
aldanor
11y ago
What about Rust though?
800.
▲
by
aldanor
11y ago
Looks like a fun project on its own, with a lot of syntax tree hackery going on, but I see no real (pragmatic) use since many of the AST hacks and use cases presented are in my opinion completely unwarranted and can already be solved by the
801.
▲
by
aldanor
11y ago
When is 2.2 planned?
802.
▲
by
aldanor
11y ago
Has the bug with removing autoloaded functions been fixed yet?
803.
▲
Show HN: PYNAB, a read-only API for accessing YNAB data
(github.com)
7 points
by
aldanor
11y ago
|
2 comments
804.
▲
by
aldanor
12y ago
Confirming this
805.
▲
by
aldanor
12y ago
That would be an iPad Mini Air
806.
▲
by
aldanor
12y ago
Module system, uniform function call syntax (UFCS) -- it all starts looking more and more like D :)
807.
▲
by
aldanor
12y ago
I don't agree. In the notebook, you can use "%pylab inline" or "%matplotlib inline" magic to have plots inline, but you can also not use it and have plots output to a separate window without any side effects in the
808.
▲
by
aldanor
13y ago
Maybe VLC could use a limiter with a softer knee perhaps? Or a multi-band limiter for the explosions.
809.
▲
by
aldanor
13y ago
pypy is generally incompatible with CPython libraries -- most notable being plain vanilla numpy. There are ongoing attempts to port numpy to pypy (numpypy), but other than that you're just left with pure python and pure python librarie
810.
▲
by
aldanor
13y ago
Ditto for Sphinx. Thought I might mention http://www.readthedocs.org for hosting Sphinx docs if one is interested.
More ›