HNHacker News
TopNewBestAskShowJobs

ionelm

183 karma · joined December 2, 2012

submissionscomments
ionelm··on Python Hunter – a flexible code tracing toolkit
Hunter has now a bit of everything (process attach, variable diffing like in pysnooper, env var activation, breakpoints, thread support and an api to build stuff on top) but without going overboard with overenineering (like serialization, storage or sql). For most intents and purposes it should replace every other tracer tool.

There's also a work-in-progress cookbook with unusual stuff: https://python-hunter.readthedocs.io/en/latest/cookbook.html

ionelm··on Ubuntu 16.04 (Xenial Xerus)
Sorry, I meant "no one who replied to you knows what you're talking about". Still, that list don't tell much about potential breakages. Are you actually complaining about bash having too many features or are there actual breakages? Please illustrate with examples, not links to tedious changelogs and ad-hominems.
ionelm··on Ubuntu 16.04 (Xenial Xerus)
> For context: Bash is not available|installed everywhere, and has some inter-version weirdness.

Can you cite some sources here? No one knows what you're talking about.

ionelm··on Ubuntu on Windows
It doesn't. It's outdated and not free. This should be way more known: https://sourceforge.net/projects/vcxsrv/
ionelm··on Python 3 Is Winning Library Developer Support
Speaking of that, there's a nice tool to build the installer for you: http://pynsist.readthedocs.org/en/latest/
ionelm··on Rbenv 1.0.0
But technically no. Virtualenv is quite different, both in scope and approach. https://github.com/Deepwalker/pundler is more similar to bundler
ionelm··on Curio: A Modern Library for Reliable Concurrent I/O Using Python Coroutines
This is something quite similar to what I've worked on 8 years ago [1] although I gave up. I didn't have integration with other async frameworks/libs in mind from the beginning. I short, there weren't many things I could use it for. Plus it was slow - sure, there was no 'yield from' (PEP-380) back then.

It's interesting that David Beazley did it (he is certainly more qualified) but it's doomed if it doesn't play well with other libraries ...

[1] https://pypi.python.org/pypi/cogen

ionelm··on CPAN is 20
`easy_install` is not a library per se, it's a binary offered by setuptools.

> distutils was a fork of setuptools

This is incorrect. Setuptools is an extension of distutils (it patches and extends distutils to have additional functionality). Distribute was a fork of Setuptools that has been merged back into Setuptools.

Also, `pth` is not a installation method - it's merely a way to customize the import system. It's a very scary feature as it allows one to execute arbitrary code (that can reside in the `.pth` file) when import paths are being set up (when the `site` module is being initialized).

ionelm··on Gitfs
Video here: https://www.youtube.com/watch?v=LEJb1VZxRoE
ionelm··on How to destroy special collections with social media
It's amazing at what lengths people go with the theoretical arguments and personal conjecture.

Screens don't really have any black - the black you see is just a dark gray. The screens have limitations ...

Even if you'd have a very good screen, very few people go through the trouble of calibrating their monitors.

At the same time, no one can point to a scientific study of contrast choices over many types of screens and (mis)calibrations ...

PS. Screens are calibrated to ambient light - that compensates for the white being too white kind of problems.

ionelm··on Django Girls one year later
On that idea, there was a very interesting lightning talk at EuroPython 2015: https://youtu.be/Tt-R2KdQUFs?t=2772
ionelm··on Ask HN: I just got my Stackoverflow Python gold badge - is it worth anything?
> People who are saying, "It shows you have a lot of free time" are nuts.

Just a boss clearly incentivized to keep down his underlings. I think it's unreasonable to expect anything else from people with that sort of incentives.

ionelm··on Understanding Python metaclasses
It would be very interesting to hear how the object system looks (comparatively) in other languages.
ionelm··on Java for Everything
The argument can be made both ways. One can say that Python is better cause readability.

Many can give examples of successful or failed projects in both languages but it's just conjecture.

The only correct way to look at language choice, and the only objective one, is to use the language you are productive in. The best language is the one you master.

ionelm··on Hungary plans new tax on Internet traffic
> Also, it's very much likely that this is a deliberate distraction from the political conflict between the USA and Hungary that has emerged last week.

Strange theory. Have you considered they just need the extra money? Also, it wouldn't be a huge distraction anyway (from whatever) - I'm pretty sure they could invent more revolting taxes if they wanted to.

ionelm··on The State of Oregon vs. Oracle [pdf]
How is this not high-level corruption?

No public bidding process? Check. Favouring a vendor? Check.

In my eyes this lawsuit is a cover-up for a deal gone sour.

Jail whoever assigned this contract and this sort of failures will never happen again.

ionelm··on fork() can fail
Seems Python handles this correctly (by raising an exception):

    >>> resource.setrlimit(resource.RLIMIT_NPROC, (0, 0))
    >>> os.fork()
    Traceback (most recent call last):
      File "<ipython-input-7-348c6e46312a>", line 1, in <module>
        os.fork()
    OSError: [Errno 11] Resource temporarily unavailable
ionelm··on Sins of software development
I don't think many people would disagree that CSS/HTML have certain encapsulation deficiencies. But I think that less/sass just make you more efficient at writing unmaintainable stuff.

Shadow DOM and WebComponents solve this better by encapsulating styling and markup concerned with the same widget or object. Without those you still have styling concerned with different markup in the same place. You can use less/sass but it's not true encapsulation - you still have to pay attention that you don't break styling for unrelated stuff when changing styling. Thus the "unwanted pain".

ionelm··on Pyrasite: Tools for injecting code into running Python processes
It's basically this: attach with GDB, get GIL, run commands (your session), release GIL. This is pretty dangerous as the GIL release is not guaranteed.

This is why I wrote https://pypi.python.org/pypi/manhole - I couldn't afford hosing up (deadlocking) my processes, and it happen pretty often with pyrasite in my usecases. Have in mind that manhole is not that flexible as it uses different technique.

ionelm··on An underrated feature in Python 3
I don't think Jinja is a relevant example here - it's not something people usually write. While you take great care about the API and error handling most other people are sloppy and their code is hard to debug because they unknowingly cripple the tracebacks. That's why I like this feature just the way it is (an opt out, instead of explicit opt in) - cause it needs to cater for the 99% of the people who didn't even bother to reraise properly in Python 2.
ionelm··on An underrated feature in Python 3
What title would you like ? What's exactly hyped ?
ionelm··on Ask HN: Similar industry to the software industry?
Very interesting. Thinking about what you said, one could compare the software industry to the marketing industry:

- no accountability - marketing campaign with no effect, same as a bug, a unforeseen flaw

- lots of bullshitting

- scientific methods on deciding what practice is best still at infancy

ionelm··on Ask HN: Should I use Polymer for my next project?
I'm intrigued by your statement. When I read the word "orthogonal" I'm thinking of two key concepts:

* No functionality overlap in primitives

* Composability of primitives

How do Polymer and React as primitives fulfil said properties ? There's certain overlap in functionality. Composability is not guaranteed.

Did you mean to convey a different idea by "orthogonal" ?

ionelm··on Ask HN: Does anyone else feel like Google is pushing polymer too much?
What does have Polymer have to do with Google's services ? What did you really mean ? Your concerns are not very clear.
ionelm··on Brick. Webfonts that look good
Is this http://awesomescreenshot.com/00f2i1es53 a bug? The "t" doesn't have same bottomlime. Screenshot was taken on firefox. It's pretty jarring imho.
ionelm··on Redesigned Python.org
Can you fix this too http://awesomescreenshot.com/0432do7d8f ?
ionelm··on Django Debug Toolbar 1.0 beta released
I suppose it's not that hard [1] to write a logging filter to display SQL just like devserver does but without all that monkeypatching ?

[1] http://blog.ionelmc.ro/2013/12/10/adding-stacktraces-to-log-...

ionelm··on Developer and Power Users Tool List for Windows
I'm surprised AltDrag[1] didn't make it in the list. It's incredibly useful !

[1] http://code.google.com/p/altdrag/

ionelm··on Why GNU grep is fast (2010)
Older submission here: https://news.ycombinator.com/item?id=1626305
ionelm··on That Guy with a Thousand Inconsequential Objections
I would say it's highly unprofessional to name and shame in a workplace - regardless of how captious That Guy is. You'll end up having bigger problems if you start doing that (low morale for instance).

Rather bad advice to say "don't be That Guy" when you actually have leadership issues and you can't convince your underlings on the execution. Sounds familiar?

Page 1 of 2Next →