Forgot your password?
typodupeerror

Comment: Insertion + Merge (Score 1) 195

by neonleonb (#46379833) Attached to: Ask Slashdot: How Do You Sort?

First, I construct medium-size piles via insertion sort. That works great as long as there are few enough things that I can spread them all out and see where to insert new ones. Once that gets crowded, I stack that into a pile and put it aside. Repeat until every document is in a sorted stack.

Then I merge-sort the stacks.

All in all, I find it a reasonably efficient method.

Comment: Re:GIL and true parallelism (Score 2) 242

by neonleonb (#44613407) Attached to: Interviews: Q&A With Guido van Rossum

I take your point; Python isn't the tool for proper threading.

Nevertheless, I think your claim that "people who need threads are already using other technologies" isn't true. I think people keep butting up against that need as their projects grow, and it forces them to (painfully) move away from Python. I think Python could better serve those users with good parallelism.

Comment: GIL and true parallelism (Score 4, Interesting) 242

by neonleonb (#44608537) Attached to: Interviews: Q&A With Guido van Rossum

The main thing that keeps Python from being really useful for my projects is the Global Interpreter Lock (GIL). I would love to write Python for my data-intensive code, but it is impossible to get really good parallelism with Python; the multiprocessing library isn't a magic fix because then I have to move all my data back and forth between processes.

When, if ever, should I expect to be able to use Python to do parallel data processing? What is the priority for this, and what would need to be done to make thread-level parallelism possible?

Comment: Re:I switched to cash (Score 1) 86

by neonleonb (#41928657) Attached to: Bank Puts a Billion Transaction Records Behind Analytics Site

Sorry, *Fjandr* specified tip.

I think you're right that paying in cash is usually the best option, if for nothing else than relieving the business of the credit card fee. But I also think that "tipping in cash" implies tipping in cash on top of a credit card payment, usually for tax avoidance, and that's what bothers me.

Comment: Koss Plug (Score 1) 448

by neonleonb (#40305527) Attached to: Ask Slashdot: Best Headphones, Earbuds, Earphones?

I really like the Koss Plug series (e.g. http://www.amazon.com/Koss-Plug-In-Ear-Headphones-Black/dp/B00001P4XA). I'm not sure they meet your stringent audio requirements, but I think they sound fine, they're cheap, they fit in your ear comfortably, and they provide a good amount of sound isolation--enough that I feel I can safely listen when riding the train.

Their biggest issue is that because they're really *in* your ear, you can hear when the cord bangs against things. I don't mind, but you may. But for $12, you can pick up a pair and decide what you think.

news: gotcha

Working...