News for hackers. Stuff that matters.

tdrd

I'm surprised Reviewable[0] hasn't come up in this discussion. It does a great job of allowing stacked code reviews and even handles rebases nicely; the reviewer sees the diff between commit #1 and commit #1' (prime = after rebase).

CockroachDB[1] has been using it since very early in the project.

[0] https://reviewable.io/

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

Re:iTerm2 beta adds Python API on Sunday March 24, 2019 @10:06AM (#19476397)
Maybe so folks could build web UIs to interact with a local instance? Can't do raw TCP/UDP from a web browser.
Re:How Judea Pearl Became One of AI's Sharpest Critics on Saturday May 19, 2018 @06:32PM (#17110078)
OP was quoting.
Re:The Cult of the Root Cause on Saturday May 19, 2018 @06:26PM (#17110050)
The examples in this article are all straw men; where's the compelling specific case where 5 whys lead to some demonstrable mistake?

Nothing to see here.

Re:GCC 8.1 Released on Thursday May 03, 2018 @03:55PM (#16989320)
Author of [0] here.

Sadly, those benchmarks (at the bottom of the thread) were done with a GCC that already included all the GCC 8.1 bells and whistles - results were unchanged under 8.1.

So it's still _really_ slow.

Re:Twirp: A new RPC framework for Go on Wednesday January 17, 2018 @11:43AM (#16169353)
Lots of comments here about lack of JSON support in gRPC - while that's true, it's relatively easily to bolt on using grpc-gateway (https://github.com/grpc-ecosystem/grpc-gateway).

Here's how we did it in CockroachDB: https://github.com/cockroachdb/cockroach/blob/24ed8df04719a1...

The supporting code (protoutil) is https://godoc.org/github.com/cockroachdb/cockroach/pkg/util/... and https://godoc.org/github.com/cockroachdb/cockroach/pkg/util/....

Re:Reusable and type-safe options for Go APIs on Sunday October 22, 2017 @03:14PM (#15528400)
The downside to this solution is that the concrete option types are exported. I believe it's possible to return unexported types from exported functions, which would solve this, but that golint complains about that pattern.

Have you suggested this to the etcd maintainers?

Re:Explain Shell on Wednesday March 29, 2017 @10:58PM (#13992509)
Really solid. I fed it a recent nasty line from our Makefile: https://github.com/cockroachdb/cockroach/blob/4aeef50/build/...

Looks like it doesn't deal with subshells, but otherwise it did reasonably well.

http://explainshell.com/explain?cmd=find+.+-name+*.pb.cc+%7C...

Re:CockroachDB beta-20161013 on Thursday February 16, 2017 @12:00PM (#13661479)
[Cockroach Labs employee]

In addition to being extremely precise, TrueTime is explicit about error in its measurements.

In other words, a call to TrueTime returns a lower and upper bound for the current time, which is important for systems like Spanner or CockroachDB when operations must be linearized.

In effect, Spanner sleeps on each operation for a duration of [latest_upper_bound - current_lower_bound] to ensure that operations are strictly ordered.

Your suggestion might improve typical clock synchronization, but still leaves defining the critical offset threshold to the operator, and importantly leaves little choice for software like CockroachDB other than to crash when it detects that the invariant is violated.

Re:Introducing Cloud Spanner, a Global Database Service on Tuesday February 14, 2017 @12:20PM (#13645175)
Doesn't seem possible to use this yet. No client libraries and no samples: https://cloud.google.com/spanner/docs/tutorials

Have they documented the wire protocol? I couldn't find it.

Re:Runners’ brains may be more connected, research shows on Saturday December 24, 2016 @10:01AM (#13250007)
It's not even clear that this is about running. They compared runners to sedentary individuals; this sounds like another "exercise is good" conclusion to me.
Re:Enriching Log Messages Using Go Contexts on Thursday December 15, 2016 @06:25PM (#13189667)
Cockroach Labs employee here - the implementation only uses a single context key, so traversing the context linked list is only necessary when the context in hand is a derivative of the annotated context (e.g. obtained via WithTimeout or WithCancel), which is relatively uncommon in practice.

https://github.com/cockroachdb/cockroach/blob/6b0698f/pkg/ut...

Re:Disassembling Sublime Text on Sunday December 04, 2016 @06:41PM (#13102396)
This presumes that MS tracks the fact that you've opted out of tracking, which is not obviously the case.
Here's the landing from the webcast video on youtube https://youtu.be/L0bMeDj76ig?t=2300
(employee here)

It seems to me that your use-case does not require locking specifically - you just want to make sure no concurrent transactions can clobber your "update A".

As mrtracy explained, such overlapping transactions are linearizable in CockroachDB, so this invariant is preserved without the need for explicit locking.

Re:Show HN: Better code review for GitHub on Friday March 25, 2016 @04:41PM (#11362541)
This appears to hammer GitHub's API pretty aggressively. I attempted to import https://github.com/cockroachdb/cockroach and a few hours later my API limit is exceeded.

Seems bad.

Re:Encryption is a necessity on Sunday February 21, 2016 @03:31PM (#11146346)
One of my old co-workers said it best: "Dear @SpaceX and @NASA security teams: please don't sign your firmware, in case a space gardener ever needs to bust out a hex editor."

[0] https://twitter.com/nathanmccauley/status/650450050724708356

Re:151-byte static Linux binary in Rust on Sunday January 11, 2015 @06:10PM (#8871712)
...is it documented anywhere? where?
Don't see the problem here. He did not intimidate, falsify evidence, or otherwise violate due process.

His job is (was) to uphold the law, not his boss' moral code.

Re:It's "locking" if it's blocking on Friday December 28, 2012 @11:42PM (#4981155)
Obviously there's no avoiding this, but the author writes in the context of high-level code where OS-provided locking mechanisms are available. Why are we discussing this in a low-level (or embedded, where every ounce of performance matters) context?
Re:It's "locking" if it's blocking on Friday December 28, 2012 @11:24PM (#4981109)
This is a good academic post, but why are we still writing mutable-shared-state concurrent code?

Either of message-passing concurrency and data immutability would trivialize the problems discussed here.

Re:Google Nexus 4 goes on sale in US/Canada on Tuesday November 13, 2012 @12:24PM (#4779184)
The bumper case is also now showing "Coming soon". https://play.google.com/store/devices/details/Nexus_4_Bumper....

I wonder if they took the merchandise down while they work on the load issues.

This paper is from 2008. Where is this being used?
Re:How I made Stripe as easy to use as Paypal in 5 days on Friday October 19, 2012 @10:17PM (#4676151)
Why does stripe need to out-compete this? They still get their cut.
Re:iOS6 breaks long polling on Friday September 21, 2012 @01:09AM (#4552410)
Chrome on iOS uses safari's layout engine (because Apple doesn't allow dynamic code generation) but the network stack is Chrome's.
Re:Why is Dart keeping certain cruft from other languages? on Sunday September 16, 2012 @06:03PM (#4530537)
I can feel myself getting dumber reading this discussion. Christoph Husse is a donkey.