News for hackers. Stuff that matters.

ionelm

Re:Python Hunter – a flexible code tracing toolkit on Friday July 12, 2019 @08:00AM (#20420029)
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

Re:Ubuntu 16.04 (Xenial Xerus) on Friday April 22, 2016 @08:17AM (#11548535)
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.
Re:Ubuntu 16.04 (Xenial Xerus) on Friday April 22, 2016 @07:21AM (#11548326)
> 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.

Re:Ubuntu on Windows on Thursday March 31, 2016 @02:23AM (#11395349)
It doesn't. It's outdated and not free. This should be way more known: https://sourceforge.net/projects/vcxsrv/
Re:Python 3 Is Winning Library Developer Support on Thursday March 10, 2016 @07:41AM (#11258815)
Speaking of that, there's a nice tool to build the installer for you: http://pynsist.readthedocs.org/en/latest/
Re:Rbenv 1.0.0 on Saturday December 26, 2015 @09:57PM (#10796207)
But technically no. Virtualenv is quite different, both in scope and approach. https://github.com/Deepwalker/pundler is more similar to bundler
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

Re:CPAN is 20 on Monday August 17, 2015 @08:48AM (#10072590)
`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).

Re:Gitfs on Thursday August 13, 2015 @08:49AM (#10053718)
Re:How to destroy special collections with social media on Monday August 03, 2015 @04:54AM (#9994526)
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.

Re:Django Girls one year later on Sunday August 02, 2015 @04:31AM (#9990156)
On that idea, there was a very interesting lightning talk at EuroPython 2015: https://youtu.be/Tt-R2KdQUFs?t=2772
> 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.

Re:Understanding Python metaclasses on Tuesday February 10, 2015 @02:47PM (#9029416)
It would be very interesting to hear how the object system looks (comparatively) in other languages.
Re:Java for Everything on Sunday November 30, 2014 @09:43PM (#8679242)
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.

Re:Hungary plans new tax on Internet traffic on Thursday October 23, 2014 @05:26AM (#8497314)
> 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.

Re:The State of Oregon vs. Oracle [pdf] on Monday August 25, 2014 @03:46AM (#8220943)
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.

Re:fork() can fail on Wednesday August 20, 2014 @04:31PM (#8204418)
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
Re:Sins of software development on Tuesday August 19, 2014 @10:21AM (#8197397)
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".

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.

Re:An underrated feature in Python 3 on Tuesday August 05, 2014 @07:53PM (#8140200)
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.
Re:An underrated feature in Python 3 on Tuesday August 05, 2014 @10:08AM (#8136933)
What title would you like ? What's exactly hyped ?
Re:Ask HN: Similar industry to the software industry? on Wednesday July 16, 2014 @09:23PM (#8045530)
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

Older »