HNHacker News
TopNewBestAskShowJobs

irfansharif

1,122 karma · joined June 14, 2016

irfansharif.io/blog
submissionscomments
irfansharif··on CockroachDB 1.0
there's a second part to this presentation[1] running cockroachdb across 16 (!) cloud vendors.

[1]: https://www.youtube.com/watch?v=nBXXLNIwAoo

irfansharif··on CockroachDB 1.0
Hmm, I'm not sure I completely understand your question or your source of confusion here but unless I'm grossly misunderstanding what you're stating I think we might be conflating a couple of different subjects here. I'm happy to discuss this further over e-mail (up on my profile now) to clear up any doubts on the matter (to the best of my limited knowledge).
irfansharif··on CockroachDB 1.0
Not mysql, but we've tested and recommend the Ruby pg driver and the ActiveRecord ORM[1] (CockroachDB supports the PostgreSQL wire protocol). It should be 'plug and play' insofar as you simply point to any node in the running cluster when setting up ActiveRecord::Base.establish_connection.

As for our backup story, our doc page[2] on the subject should shed more details.

[1]: https://www.cockroachlabs.com/docs/build-a-ruby-app-with-coc...

[2]: https://www.cockroachlabs.com/docs/backup.html

irfansharif··on CockroachDB 1.0
You might find our post[1] on atomic clocks, rather having to do without them, partially interesting.

[1]: https://www.cockroachlabs.com/blog/living-without-atomic-clo...

irfansharif··on CockroachDB 1.0
We have an comparison page[1] that might potentially be what you're looking for.

[1]: https://www.cockroachlabs.com/docs/cockroachdb-in-comparison...

irfansharif··on Uber CEO Plays with Fire
I had revoked unroll.me permissions right after via google connected apps & sites, amusing that in order to delete your unroll.me account[1] you'd have to give them the very same permissions again.

[1]: https://unrollme.zendesk.com/hc/en-us/articles/200165526-How...

irfansharif··on The SQL layer in CockroachDB
while there is an explicit delineation between the internal `kv` package[1] and the overarching `sql` one[2], your specific concern regarding a query optimizer is not strictly an isolated component at this moment in time. query optimizations, last I checked, was not an explicit pre-processing stage but rather done so when constructing the AST representation of the query with each node being an `iterator` as described in the Volcano Evaluation System paper[3]. there was some work underway to move towards an intermediate representation[4] to go through the standard query optimizations, no context into how far along this effort is.

[1]: https://github.com/cockroachdb/cockroach/tree/master/pkg/kv

[2]: https://github.com/cockroachdb/cockroach/tree/master/pkg/sql

[3]: https://paperhub.s3.amazonaws.com/dace52a42c07f7f8348b08dc2b...

[4]: https://github.com/cockroachdb/cockroach/pull/10055

irfansharif··on Why MIT Switched from Scheme to Python (2009)
this was posted here a few weeks ago but for posterity [1][2] is an HTML5 and EPUB3 version of SICP with 'SVGs, mathematical markup with MathML and MathJax, embedded web fonts, and syntax highlighting'. there's a PDF version[3] from the same author with decent typesetting. additionally I came across [4], SICP in an interactive textbook form with editable code fragments.

[1]: https://github.com/sarabander/sicp

[2]: http://sarabander.github.io/sicp/

[3]: https://github.com/sarabander/sicp-pdf

[4]: https://github.com/zodiac/isicp

irfansharif··on Ask HN: Which companies have the best blogs written by their engineering team?
in my biased opinion, the Cockroach Labs, Inc. blog[1] (the team behind cockroachdb/cockroach[2]) fares pretty well.

[1]: https://www.cockroachlabs.com/blog/

[2]: https://github.com/cockroachdb/cockroach

irfansharif··on A monoid is a category, a category is a monad, a monad is a monoid
Philip Wadler published this paper[1] titled 'Monads for functional programming' that serves as a good introduction on the subject and is very accessible. It is enumerated through with concrete examples such as 'error handling' using Monads and maintaining 'state' via the State Monad.

[1]: http://homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/ba...

irfansharif··on A monoid is a category, a category is a monad, a monad is a monoid
just to note this talk briefly alludes to another subject, the Curry–Howard isomorphism, something Philip Wadler had similarly given a talk about at Lambda Days (2016) titled 'Propositions as Types'[1] (slides [2] and the video recording[3]).

[1]: http://www.lambdadays.org/lambdadays2016/philip-wadler

[2]: http://www.lambdadays.org/static/upload/media/14562260715188...

[3]: https://youtu.be/aeRVdYN6fE8

irfansharif··on Programmers are most likely to work from home
> humbleMouse
irfansharif··on Iosevka – A Typeface for Code, from Code
it isn't exactly, lowercase 'i' differs very slightly. closer to Monaco Style in that respect.
irfansharif··on Open Source License Business Perception Report
Kyle Mitchell's blog is an excellent source for the intersection between copyright law and software. Some of his recent interesting posts were on the MIT License[1], his takes on 'open source'[2] and on the ubiquitous LICENSE file[3].

[1]: https://writing.kemitchell.com/2016/09/21/MIT-License-Line-b...

[2]: https://writing.kemitchell.com/2016/05/13/What-Open-Source-M...

[3]: https://writing.kemitchell.com/2016/05/13/License-from-Who.h...

irfansharif··on Gryadka is not Paxos, so it's probably wrong
that was a great talk, thank you for sharing!
irfansharif··on Building a Database System in Academia
Andy Pavlov's course offering 15-721 Advanced Database Systems at CMU is publicly available through recorded youtube lectures, the spring 2017 offering [1] and the spring 2016 one [2].

[1]: https://www.youtube.com/playlist?list=PLSE8ODhjZXjYgTIlqf4Dy...

[2]: https://www.youtube.com/playlist?list=PLSE8ODhjZXjbisIGOepfn...

irfansharif··on Beautiful Online SICP
perhaps only tangentially related but recently I began noting down beautiful typefaces I come across, the two used here are Inconsolata LGC and Linux Libertine O. do you guys have favorites?
irfansharif··on ComDB2: Bloomberg’s Highly Available Relational Database System [pdf]
The section you're referring to is the work underway to increase write performance, which is currently bounded by the master node's ability to process bplogs (an internal structure used to detect write-write conflicts).

re: 'the application level has to handle [sharding]', the table partitioning described in this section is merely a conceptual model 'assigning' masters to what are presumably non-overlapping row ranges in order to increase write throughput (writes/reads will be processed via that specific master). The behaviour of the system still resembles a single node database, this is alluded to intermittently throughout.

(also CRDB is the preferred acronym for CockroachDB haha, source: interning there)

irfansharif··on ComDB2: Bloomberg’s Highly Available Relational Database System [pdf]
I spoke to Mark Hannum (one of the authors of the paper) recently, it's slated for a release in either this quarter or the next.
irfansharif··on In search of a simple consensus algorithm
yup, I've been closely following Heidi's work for some time now - non-intersecting consensus groups, still hoping someone beats me to a Go implementation so I don't have to. +1 for Adrian Coyler's blog, constantly amazed at the sheer volume and depth of his analyses.
irfansharif··on In search of a simple consensus algorithm
It is my understanding that the motivation in seeking out consensus algorithms with strong leaders (or equivalent) as opposed to horizontally weighted peer-to-peer ones is due to the performance penalty imposed by the latter in the general case. Structuring the protocol to be a dissemination from the 'leader' node down to the followers as opposed to a bottom-up approach fares better when your leader is long-lived, circumventing the cost of determining 'consensus' every single time. It's readily apparent that this would lend to a performance penalty in the pathological case, as is demonstrated here, when the leader node is taken down repeatedly - but I'm skeptical if this is true for workloads that systems like coreos/etcd, cockroachdb/cockroach were intended to handle.
irfansharif··on Ask HN: What are some examples of good code?
I've found the google/leveldb[1] source code to be immensely educational, authored by Jeff Dean and Sanjay Ghemawat. A relatively tiny codebase at that, used virtually everywhere and the basis for facebook/rocksdb[2].

[1]: https://github.com/google/leveldb

[2]: https://github.com/facebook/rocksdb

irfansharif··on Tech Interview Torture Chamber
due to timing constraints I had to most recently end my search at google's host-matching stage, I do wish the process didn't feel so one-sided. oh well, perhaps next time.
irfansharif··on Id Software Programming Principles
> "Write code that is easy to delete, not easy to extend."
irfansharif··on Reflecting on one very, very strange year at Uber
ditto, Uber's job postings on our internal school board are avoided like the plague.
irfansharif··on CockroachDB beta-20161013
what's wrong with being an exterminator?
irfansharif··on CockroachDB beta-20161013
I'm disappointed with the commentary here, I for one would think the discussions around building a distributed system with the consistency guarantees claimed here would be far more interesting than the name of said system.
irfansharif··on Designing a Business Card in LaTeX
> Do note that I have a LaTeX PDF style CV as well, but it's not linked in the article (nor available online).

any particular reason why? i for one would love to see it.

irfansharif··on Better SQL joins in CockroachDB
design documents within the repo itself (under docs/RFCs [0]) actually do well to capture some of the past implementation details/rationale and future directions CockroachDB is planning to take. in my (very biased) opinion they've gone out of their way to keep everything as transparent as possible.

[0] - https://github.com/cockroachdb/cockroach/tree/master/docs/RF...

irfansharif··on Beringei: A high-performance time series storage engine
general note on when companies open source non-trivial projects but squash all pre-release commits, not being able to dig though implementation history and change logs make it difficult to jump in despite the code being publicly visible.

Context: initial commit with 277,989 additions [0].

[0] - https://github.com/facebookincubator/beringei/commit/17a6c2d...

← PreviousPage 3 of 4Next →