Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fabioz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
fabioz
4y ago
Just as a note, the way that Python stores the items isn't always 4 bytes per char, it depends on the actual string contents. I think that https://rushter.com/blog/python-strings-and-memory/ is a nice referen
32.
▲
by
fabioz
4y ago
I must say that I definitely don't like the gevent monkey-patching myself -- I prefer to just use the different APIs, although yes, that can end up in a blocking call when there should be none, but that hasn't been a problem I
33.
▲
by
fabioz
4y ago
Well, whenever you add threads to the mix (native or virtual threads) if you don't design for it, I don't think things pan out properly (but I guess that I agree that if someone designed with native threads going for virtual threa
34.
▲
by
fabioz
4y ago
Well, https://github.com/python-greenlet/greenlet has been available for quite some time in Python (gevent probably being its most used flavor). Note that it it actually predates the async/await approach which was
35.
▲
by
fabioz
4y ago
Well, https://github.com/python-greenlet/greenlet has been available for quite some time in Python (gevent probably being its most used flavor). i.e.: just because it's not in the standard library doesn't mea
36.
▲
by
fabioz
4y ago
My 2c: not all therapies are the same... I recommend you start with a professional that works with `Cognitive Therapy` (from what I've heard it's one of the more recent therapies and its practices are based on evidences -- that&#x
37.
▲
by
fabioz
5y ago
Well, I wouldn't say that it'll slowly die given that there are many workarounds one can use to use multiple processors for CPU-heavy workloads even when the GIL is present (such as releasing it in native extensions or using multi
38.
▲
by
fabioz
5y ago
Yes, but Jython and IronPython (which were the only implementations that I know of that effectively didn't have a GIL) were much slower in general, didn't work with native extensions and were always lagging a lot on the supported
39.
▲
by
fabioz
5y ago
Internally the library has a "quantity type", which defines for a given quantity all the given conversions that are valid in the database and a "category" which is used so that you can create subsets of units which you w
40.
▲
by
fabioz
5y ago
I'd like to point to a separate library for dealing with units: Barril https://github.com/ESSS/barril Docs at: https://barril.readthedocs.io/en/latest/ While it does have support for cre
41.
▲
by
fabioz
5y ago
I'm a long time user of FF. I really don't like the UI changes in this upgrade, but setting: "browser.proton.enabled" to false "browser.uidensity" to 1 (while using the `System Theme`) Seems to have done the tr
42.
▲
by
fabioz
5y ago
I must say I've just spent quite some time looking at both PEPs and discussions and I'm strongly in favor of PEP 563 right now... it does improve the performance of typed modules substantially (which is a big downside for me in ty
43.
▲
by
fabioz
5y ago
Well, this particular change (PEP 563) is IMHO actually striving for improved static typing and better performance, so, I guess they're in sync with that. -- PEP 649 would undo those performance improvements and possibilities of improv
44.
▲
by
fabioz
6y ago
Ha, I'm just working on integrating the `pydev.debugger` code reloading into `debugpy` (so that the code reloading from the PyDev debugger will be available for Python-VSCode debugger users too). The in-memory reloading (which may be s
45.
▲
by
fabioz
6y ago
I personally enjoy using https://github.com/google/python-fire nowadays. -- it's probably not the most flexible tool, but IMHO it's the one with the best API: fire.Fire(obj) and everything else is taken care
46.
▲
by
fabioz
6y ago
The real problem (which is solved by conda) is that pypi doesn't solve dealing with non-python packages well (say, compile scipy and make all related native packages communicate well). This is a huge issue for people dealing with scien
47.
▲
by
fabioz
6y ago
I guess that there are many tools for environments now... my personal choice is using conda (I actually start with miniconda and download what I need from conda-forge). It provides the needed isolation, you can get lots of packages without
48.
▲
by
fabioz
7y ago
My experience is different here... changing to Dvorak + changing mouse to a trackball in the left hand (along with a MS ergonomic keyboard) made a world of difference for me. I can currently code a whole day without feeling anything... comi
49.
▲
by
fabioz
8y ago
Personally, I think that refactoring Python is straightforward (and many refactorings you need to do are much simpler and easier to do without breaking existing APIs -- doing refactorings in Java usually needs changing much more code even f
50.
▲
by
fabioz
8y ago
Cython is a pretty good Python to C compiler and in its latest release is using type annotations... the thing is, you shouldn't need to compile your whole program (compiling is really slow and interpreted Python is fast enough for most
51.
▲
by
fabioz
8y ago
Yeap, it's pretty easy (see: https://github.com/rocky/python-uncompyle6 ), although note that if you're worried about decompiling, instead of using an obfuscator, using something as Cython or Nuitka to compile
52.
▲
Python with PyDev on Visual Studio Code
(pydev.blogspot.com)
2 points
by
fabioz
9y ago
|
0 comments
53.
▲
by
fabioz
9y ago
I find that people doing these claims have seldomly really worked in large Python codebases... Personally, I find it pretty workable in Python with a big codebase (but you have to respect the rules like having a good test suite -- you chang
54.
▲
by
fabioz
10y ago
http://www.pyvmmonitor.com also provides a nice visual profiler.
55.
▲
CPython 2.7.x performance over time
(speedtin.com)
2 points
by
fabioz
11y ago
|
0 comments
56.
▲
TextMate bundles on Eclipse
(liclipse.blogspot.com)
1 points
by
fabioz
11y ago
|
0 comments