Better HN
topnewbestaskshowjobs
Log inSign up

Sauliusl

236 karma · joined Feb 13, 2014 (12y ago) · 8 submissions

Submissions

comment 9y ago · link · parent

Neat!

OP, how does this compare to scikits.bootstrap [1] feature/performance-wise?

[1] https://scikits.appspot.com/bootstrap

2.

Scientist says researchers in immigrant-friendly nations can't use his software(news.sciencemag.org ↗)

4 points · by Sauliusl · 11y ago · discuss

3.

London HIV clinic accidentally reveals hundreds of patients' identities(theguardian.com ↗)

3 points · by Sauliusl · 11y ago · discuss

4.

Beyond Bar and Line Graphs: Time for a New Data Presentation Paradigm(journals.plos.org ↗)

1 points · by Sauliusl · 11y ago · discuss

comment 12y ago · link · parent

This would be one of the approaches to use if you wanted to squeeze the last pieces of performance out of this class. I would recommend using Cython for this though.

The problem with both of these approaches is that, well, use this too often, however, and you suddenly realise you are not really coding in Python anymore.

Also, correct me if I'm wrong, overuse of tricks like these is one of the key reasons why we cannot have nice things like PyPy for all modules.

comment 12y ago · link · parent

Not sure why I put an "interpreter" there when C is compiled, of course, I fixed this now.

Again, this does not change the fact that structs and dictionaries are very different data structures.

comment 12y ago · link · parent

Author here:

There is a difference between C/C++, but for the purposes of this article it does not matter -- the point I am trying to make is that you would not use a hash table in any of them, would you?

The exact times are kind of pointless indeed, all what matters are the ratios. C benchmark would probably be as well. What I was trying to show was that your runtime comparisons are not necessarily comparing the same things.

8.

Why Python Runs Slow, Part 1: Data Structures(lukauskas.co.uk ↗)

244 points · by Sauliusl · 12y ago · 162 comments