HNHacker News
TopNewBestAskShowJobs

plq

1,366 karma · joined April 2, 2010

github.com/plq ext-hn@burakarslan.com
submissionscomments
plq··on NetBeans 7.4 – New and Noteworthy
Netbeans' Python support was quite nice as well -- so nice I kept a separate Netbeans 6.9.1 just to keep Python support. However, it was never ported to Netbeans 7 and upwards.

Sadly, that version is too old now. With no git and svn 1.7+ support, it's become just another text editor. I hope the Python plugin gets ported to this new version!

Its C++ support is also great, but a bit opinionated. I remember I wasn't able to get its cmake plugin to make out-of-source builds for example.

plq··on Wine 1.6 Released With 10,000 Changes
FWIW, I'm playing blu-ray stuff just fine on Gentoo Linux using VLC, with booming HDMI sound.
plq··on Russian Proton Rocket crashes Seconds after Launch
This rocket was carrying three of the GLONASS (the Russian GPS) satellites, very bad news.

The RBTH has some more footage: http://rbth.ru/news/2013/07/02/proton-m_rocket_with_glonass_...

plq··on PostgreSQL 9.3 Beta 1 Released
FWIW, we try very hard to not write any check constraints and do any such validation at the protocol level, before the request even hits the authn/authz layer. (Spyne makes it easy ! http://spyne.io)
plq··on PostgreSQL 9.3 Beta 1 Released
I'd love to see plan locking. I've read many horror stories where Postgres just by itself took an application down because its query planner decided to execute a particular query using seqscans because some statistic somewhere went above a certain threshold.
plq··on Reasons Not to Stretch
When I was playing water-polo (10+ years ago), we always did some mild stretching (a couple of moves repeated maybe 10x) after a 20-min jog session and some body-weight exercises, right before getting into pool. We were said that trying to stretch "cold" muscles was just destructive.

It's curious to see this brought up as novelty.

plq··on Backbone.js v0.9.10 Released
I've been using qooxdoo for a while. It lets you write cross browser js like you write qt. Worth checking out.
plq··on Regexper: Beautiful regexp visualizations
No, it's called a finite state machine ;)
plq··on It's like JSON. but fast and small.
From an API perspective, msgpack is indeed quite similar to json (at least for python) -- it was quite easy to reuse existing json machinery for integrating into spyne. I'm not aware of anybody using Spyne with msgpack though.
plq··on Microsoft and Skype to axe world's most popular IM client early 2013

    Skype client should be axed instead.
I'm guessing they're doing this because it'd be much harder to bolt Skype's VoIP engine to Messenger.
plq··on PostgreSQL array field with Django
I'm working on a similar thing for Spyne. It's not fully working (nor released) yet but tests are here: https://github.com/arskom/spyne/blob/master/spyne/test/test_...

Basically, complex objects can be stored as json and xml as well as using one-to-one, one-to-many and many-to-many table configurations. Native postgres arrays are also in the to-do list, but probably won't make it in time for 2.9.

plq··on How SQLite is tested
In case anyone wants to read more about skip scans, here's the link: http://docs.oracle.com/cd/B10501_01/server.920/a96533/optimo...
plq··on JQuery++
I'm not sure what you mean by "fixing" javascript's OO implementation, but I guess you could have a look at qxoo, qooxdoo's oo engine re-packaged as a standalone project.

https://github.com/fjakobs/qxoo/

plq··on Valve Says "Yes" To Steam Linux This Year
I guess this means I should start looking at BSD as my primary desktop OS :)
plq··on Is it possible to become 'excellent' at both design and coding?
First, know thyself. If you don't have talent, or you do but can't stand hunting that race condition for days, or can't obsess on the tone of green that will convey that company's corporate identity better, you will fight an uphill battle for skills that others master much more easily.

That said, I'd say that the general advice goes like this: If you want to work in a corporate environment with lots of managers to report to, specialize as much as you possibly can. That's "knowing everything about nothing" as my adviser in grad school used to say. Companies with a high number of employees tend to prefer specialists. They of course need people with a high range of skills in upper layers of management, but you won't get there first thing you set your foot through the door, it'll take you years.

But if you'd rather work in a start-up environment, or just be your own boss, you need to know everything from the tradeoffs of apache vs nginx to which css tags render differently in Firefox and Webkit.

That's more a lifestyle choice, in my opinion. You can get successful both ways.

plq··on Google's Python style guide
> Never use catch-all except: statements, or catch Exception or StandardError, unless you are re-raising the exception or in the outermost block in your thread (and printing an error message). Python is very tolerant in this regard and except: will really catch everything including Python syntax errors. It is easy to hide real bugs using except:.

What kind of SyntaxErrors are cought by the except: handler? Not all, I presume:

  try:
    a b
  except:
    pass
This fails with SyntaxError on Python 2.7.2 on my machine.
plq··on Sweden’s New Gender-Neutral Pronoun
Finnish, (and Estonian), Hungarian, Japanese and Turkish (which includes the dialects spoken in Anatolia, Azerbaidjan (whose people speak almost the same language that the Persian Azeris speak), Kazakhstan, Uzbekistan, Turkmenistan, Kyrgyzstan, Tajikistan and the Urumqi region of China) are sister languages. To my knowledge, all of them have gender-neutral pronouns. (And actually I'm pretty sure about Anatolian Turkish :))
plq··on About 33 bits
> There are only 6.6 billion people in the world, so you only need 33 bits (more precisely, 32.6 bits) of information about a person to determine who they are.

I think you should count the dead as well. But then, 33 bits ~= 8 billion, which should still be enough, I guess.

plq··on FTP Must Die
> Also don't forget that rsync does not overwrite a remote file until it's completely uploaded.

which is really troublesome when you're transferring a big file and the target doesn't have enough space for a second copy of that particular file. I, for one, would prefer that "feature" to be optional.

plq··on A Spellchecker Used To Be A Major Feat of Software Engineering
spell checking for languages that sport a high rate of agglutination where you can't (feasibly) enumerate every possible form of a stem is still a major feat. languages like turkish, finnish and hungarian are prime examples of this.
plq··on Sites that pushed JavaScript to the limit
works for me in firefox 8 on linux.
plq··on ISO C is increasingly moronic
> Reserving a namespace and not having a mechanism to enforce it was a massive fail on the part of the standards committee.

How do you expect the compiler to enforce the "identifiers that begin with two underscores are reserved for use by the implementation" rule? Some things just belong in the documentation.

plq··on Unfortunate Python
I was surprised to see "copy" there. I'd agree that deepcopy (and its friends like pickle) could be tagged with a big "use with care" sign, but especially when one can implement __copy__ to control exactly how shallow copies are made, I don't think it's a problem at all.
plq··on Thoughts on Python 3
Yes, porting to Python 3 is more cumbersome than it should be. Yes, some of the decisions (like crippling the byte types, or implicitly changing behavior based on environment variables) turn out to be bad decisions, but it still sounds like there's already some work towards fixing these. As more and more people gets to work with Python 3, that seems normal to me. As we know, "There are only two kinds of programming languages: those people always bitch about and those nobody uses." It seems to me that Python 3 has started to get its healthy dose of bashing, and that's a good thing.

As for my anectodal experience with 2to3: I've recently been working on porting rpclib to Python 3. After skimming the diffs it produced for a simple `2to3 src/rpclib` call, I chose to ignore most of the transformations it applies.

Replacing commas in except statements by the "as" keyword or adding parentheses where missing work just fine. But wrapping every call to dict.keys() inside a list() call? That's bold.

Once 2to3 is tamed[1], I think the code it generates can be maintained. Certainly beats having to get the current exception from sys.exc_info.

[1]: https://github.com/plq/rpclib/blob/master/2to3.sh

plq··on The single most useful Emacs feature
I thought StackOverflow was done with such poll-type questions? I was sorry to see the "Best Programming Comics" question go.
plq··on Poll: HN readers, where's your residence?
Okay, where would you put Turkey here? Europe or Asia? We're not totally Middle-Eastern, nor totally European. In fact, if you believe there's a cultural cliff between the Middle East and Europe, Turkey is that cliff, which makes it a cradle of contradictions and thousand-year-old battles.

Lacking the option to vote twice, I'd imagine the HN crowd from Turkey would consider themselves closer to Europe.

The time zone database, however, has this:

    d243875439adb3b667e82af04ad8be63  /usr/share/zoneinfo/Europe/Istanbul
    d243875439adb3b667e82af04ad8be63  /usr/share/zoneinfo/Asia/Istanbul
which is twice more "accurate" than whatever vote I'd cast on this poll :)

edit: Ah, turns out one can cast two votes. Anyway...

plq··on Show HN: elegant open-source pastebin server (node.js & redis)
ha! wrong thread. please disregard this comment, can't seem to delete it.
plq··on Show HN: elegant open-source pastebin server (node.js & redis)
Unless I'm missing something, you've made your tracker practically unsearchable. How do you plan to cope with that?
plq··on X86's Days as a Consumer Microarchitecture are Numbered
There are many reasons why the current status quo won't change so soon and an important one is because ARM still lacks 64-bit addressing. Servers have long made the jump to 64-bit, so has most of the consumer-grade computers.

Without 64-bit support from its competitors, Intel doesn't have much to fear, especially in the datacenter space, where performance per watt is a powerful selling point.

plq··on X86's Days as a Consumer Microarchitecture are Numbered
> Quad core machine with a million gigs of ram for email and a web browser?

Sure, web browsers nowadays do much more than rendering html. It's actually among the most complex software package that your computer runs. Especially the high amounts of memory do not go to waste for a heavy web user.

← PreviousPage 11 of 13Next →