Better HN
topnewbestaskshowjobs
Log inSign up

jiryu

84 karma · joined Jul 10, 2012 (14y ago) · 14 submissions

I'm A. Jesse Jiryu Davis a software developer for MongoDB Inc. specializing in C, Python, and Tornado.

[ my public key: https://keybase.io/emptysquare; my proof: https://keybase.io/emptysquare/sigs/jUfaNijti8giFkhkT6N01aZ4ffhvH6ac_4E95qu2iKY ]

Submissions

comment 1y ago · link · parent

That's a really cool technique oggy, I don't think I've heard of anything exactly like it. If you haven't told the TLA+ community about it yet, I'm sure they'd like to learn about your approach, either on the mailing list[1] or at the next TLA+ conference[2] in 2026.

[1] https://groups.google.com/g/tlaplus

[2] https://conf.tlapl.us/home/

comment 5y ago · link · parent

I gave the presentation in the linked article, here's a written version of the presentation: https://emptysqua.re/blog/paxos-vs-raft/

I hope that the "Paxos vs Raft" debate can die down, now that engineers are learning TLA+ and distributed systems more thoroughly. These days we can design new protocols and prove their correctness, instead of always relying on academics. For example, at MongoDB we considered adopting the reconfiguration protocol from Raft, but instead we designed our own and checked it with TLA+. See "Design and Verification of a Logless Dynamic Reconfiguration Protocol in MongoDB Replication" for details: https://arxiv.org/pdf/2102.11960.pdf

comment 8y ago · link · parent

"Avoid instant messaging at all costs" is definitely good advice. I usually forget to take three breaths before answering there, but I usually remember before I answer an email. Plus, I have GMail's "undo send" feature enabled so I have a few more secrets to repent before my message cannot be untyped.

4.

How I've failed and succeeded mentoring young coders(emptysqua.re ↗)

1 points · by jiryu · 11y ago · discuss

5.

I fooled myself into thinking my code was 8x faster. Learning from failure.(emptysqua.re ↗)

1 points · by jiryu · 12y ago · discuss

comment 13y ago · link · parent

MongoDB, Inc. in New York City, Palo Alto, and worldwide. H1B welcome.

We make the open-source document database. Virtually all the software we make is open source. We solve very hard problems using C++, C, Java, Python, and a half-dozen other languages. I'm a Python programmer who's been working here for two years, it's the best gig I've had, and I've had many. Do you like coding, blogging, speaking at conferences, solving problems for customers, contributing to other people's open source projects? See the list of positions and apply here:

http://jobvite.com/m?3lb47gws

7.

New MongoDB feature for efficiently paging geo queries(emptysqua.re ↗)

9 points · by jiryu · 13y ago · 1 comment

comment 14y ago · link · parent

w00t!

comment 14y ago · link · parent

No - it can only use one for a given query. But a compound index like the ones I describe in the post can index many fields.

10.

Optimizing MongoDB Compound Indexes(emptysquare.net ↗)

46 points · by jiryu · 14y ago · 11 comments

comment 14y ago · link · parent

None, almost certainly -- if you have enough RAM to fit your working data set, then MongoDB's writes are just changing memory. If it does need to read data from disk before changing it, the new yielding architecture that others have mentioned will help prevent lock contention.

comment 14y ago · link · parent

One of the reasons DB-level locking is actually quite important is that the replication oplog is on the 'local' database and your data is on other databases -- so your application is no longer fighting with replication for the write lock.

13.

Refactoring Tornado Code With gen.engine(emptysquare.net ↗)

2 points · by jiryu · 14y ago · discuss

14.

How I Asynchronized a Synchronous Python Library (emptysquare.net ↗)

9 points · by jiryu · 14y ago · 1 comment