HNHacker News
TopNewBestAskShowJobs

coleifer

2,485 karma · joined November 3, 2009

submissionscomments
coleifer··on I don't understand Python's Asyncio
On what are you basing your statement that multithreading in Python is insanely inefficient? Despite the fact that the GIL prevents multiple threads from running in parallel, using multiple threads can give you a huge boost if IO is your bottleneck.

I think that it's irresponsible to make a blanket statement like this, because there are many use-cases for multiple threads in Python. Sure, one of the obvious ones (parallel processing) doesn't work, but besides that threads can be extremely useful.

I'm also unclear on what you mean by "no such thing as thread-local data" when there is `threading.local()` that does exactly that.

Lastly, I don't think multiprocessing was created as a workaround for threading per-se. Rather it was a workaround for the global interpreter lock.

coleifer··on Soylent halts sales of its powder as customers keep getting sick
You're laying the schadenfreude on a bit thick, don't you think?
coleifer··on Ask HN: What are the best personal project websites you've seen?
Finally, someone with taste!

These are great examples. Clean and user-friendly. They invite the visitor to spend some time reading, and display the articles using familiar conventions. Nice work!

To contrast with the top 2 comments...just look at all the tacky animations, cheesy special effects, massive headshots. Clearly the people had nothing to say so they decided to bedazzle the fuck out of their sites in the hopes that no one noticed.

coleifer··on Ask HN: What are the best personal project websites you've seen?
The size of the headshot on personal websites exhibits a strong correlation (P=0.01) with narcissism.
coleifer··on Vim for Humans
Oh, "for humans"... It was cool when requests came out and it made sense to the audience (Python people familiar with the standard library). But it gets applied to so many things these days that it's just corny. I suppose most people using it intend to convey a folksy, whimsical, self-conscious style. It's supposed to make the content seem approachable.

The folks behind the "Head First!" series seem to understand the appeal of making content approachable. So did the creators of the "For Dummies" series. Hell, Reagan used jelly beans.

It feels dishonest, somehow. Just call it a vim book, or whatever.

coleifer··on Show HN: SummitDB – In-Memory NoSQL DB
http://engine.so/ -- quite a nice list of small, fast, in-process databases.
coleifer··on The cost of forsaking C
You're right, I could have tried harder to express my disagreement without resorting to "newspeak" or "memespeak". Duly noted with apologies to the commenter and for lowering the discourse.
coleifer··on Ask HN: Those making over $1K/month on side projects, what did you make?
I'm one of the cocreators of readthedocs.org, in the interests of improving this free platform, what features does docsapp provide that aren't available on rtd?
coleifer··on Daydream – Google VR
What the hell do you think you're going to be doing? You'll be parked on the couch.
coleifer··on Appropriate Uses for SQLite
You probably were holding write transactions open for the duration of the request/response cycle, which is guaranteed to get you in trouble.
coleifer··on The Metaprogrammer
To put it another way, I'm saying "The captain of the ship is as different from the guy swabbing the deck, as the executive is from the average employee". The captain's calling the shots on where the ship goes, the captain is aware of what the whole crew is doing, etc, etc.
coleifer··on It’s Tough Being Over 40 in Silicon Valley
I had you and then I lost you? I don't think I ever had you, Mr. Great Candidate. I'm glad you feel so comfortable in your own skin that, despite your obvious superiority, the rejection of the little twerps doesn't keep you down.

Clearly I never had you.

coleifer··on Startup accused of scamming employees scrubs its online presence
Well said, thanks for taking the time to put yourself in my shoes, and to also share with me how my comment hurts the community. I'll try harder to keep things on the up-and-up.
coleifer··on It’s Tough Being Over 40 in Silicon Valley
My parents and my friends' parents are all nearing retirement age, and I've been surprised by the profound differences in their responses to the realization that they are becoming old.

It seems clear to me that age is just a state of mind. Some people act old and are cautious fucks that recoil from change. Others try very hard to appear as if they "get it", though they obviously don't, and the fact that they're trying so hard ends up looking pathetic to me.

Then there are the ones who don't give a fuck, and they are the best. I think they're the ones who are truly the wisest, and their vitality is infectious, they don't "seem" old.

My point is this: if you're 40 years old and are all butthurt that no Silicon Valley company wants to hire you, your butthurt only proves that the company was right not to hire you in the first place.

coleifer··on Log Structured Merge Trees
I wrote some python bindings to the sqlite4 lsm store:

http://lsm-db.readthedocs.io

coleifer··on We’re pretty happy with SQLite and not urgently interested in a fancier DBMS
Not the poster, but I did some benchmarks with embedded databases and Python if you're interested in completely useless, unscientific data:

http://charlesleifer.com/blog/completely-un-scientific-bench...

coleifer··on We’re pretty happy with SQLite and not urgently interested in a fancier DBMS
Where was the useful information? I don't like negative comments as much as the next person, and have written many posts about Sqlite...

I'm glad the author of beet uses Sqlite, but to use a client/server database system would be ludicrous!

It's not that I am trying to hate on the guy, he had good intentions and wanted other people to listen up.

At the end of the day, though, dudes just another dev who made a reasonable decision. Bfd.

coleifer··on We’re pretty happy with SQLite and not urgently interested in a fancier DBMS
Batching inserts, wrapping the batches in transactions, waiting til after to add indexes: best way to go.
coleifer··on We’re pretty happy with SQLite and not urgently interested in a fancier DBMS
I have written several "Use Sqlite!" posts that have made the rounds on hackernews... reading this watered down post, which is devoid of any new, surprising or usable info, it strikes me that repping SQLite has achieved meme status.

If you want tangible info you can actually use, read sqlites documentation. There's a wealth of information there.

Here are some of posts, for the Python crowd:

http://charlesleifer.com/blog/five-reasons-you-should-use-sq...

http://charlesleifer.com/blog/using-the-sqlite-json1-and-fts...

http://charlesleifer.com/blog/my-list-of-python-and-sqlite-r...

coleifer··on SQLite: The art of keeping it simple
Regarding concurrency, the folks at Oracle welded sqlites front-end onto berkeleydb. Since bdb does page-level locking you can potentially see much greater concurrency with the bdb implementation.
coleifer··on SQLite: The art of keeping it simple
I like to think of it as a thought experiment with some working code attached.
coleifer··on SQLite: The art of keeping it simple
It's public domain, so no license necessary. The blessing is awesome though.
coleifer··on SQLite: The art of keeping it simple
Succinctly, sqlite3 uses database locks for write transactions. This means only one writer can exist at a time, limiting concurrency.

Secondly, sqlite is an embedded database and doesn't have a separate server process.

coleifer··on SQLite: The art of keeping it simple
sqlite4 is completely different from sqlite3. The design is interesting in its own right but it's for a completely different product.
coleifer··on GitHub contribution graph can be harmful to contributors
Who cares, this is some real 4chan bait if you ask me.
coleifer··on NPM and Left-Pad: Have We Forgotten How to Program?
> author of over 600 modules on npm

Nope.

coleifer··on The Phoenix Is Not Burnt Out, It Is Just Rebooting
Narcissist
coleifer··on Show HN: SimpleSQLite – Python library to simplify the SQlite database creation
Seems somewhat of a poor man's peewee, which in turn is a poor man's sqlalchemy. (Author of peewee here)
coleifer··on Python Patterns (2013)
Ackkkk I'm actually rewriting it currently to try and ameliorate the cruft that's crept in since the 2.0 rewrite. I want to say "But wait! If you read the code in a couple weeks it'll be so much better!"
coleifer··on Python Patterns (2013)
It's my pleasure! And thank you for the wonderful libraries, talks, and who could forget those snippets.
← PreviousPage 14 of 17Next →