HNHacker News
TopNewBestAskShowJobs

rgarcia

1,350 karma · joined April 7, 2009

Co-founder & CTO at Kernel (S25)

previously the same at Clever (S12)

https://github.com/rgarcia

https://www.raf.xyz

submissionscomments
rgarcia··on Amazon Ramps Up $13.9 Billion Warehouse Building Spree
They pay their delivery people. They're a competitor to Amazon in that they've traded the operational cost of warehouses for the risks associated with crowdsourcing (quality control, etc.). Amazon probably perceives the risk of crowdsourcing as too high, or at the very least it's outside of their operational "comfort zone".
rgarcia··on Rewriting a large production system in Go
Re: figuring out the signature of functions or the definition of structs, I've found godef useful: http://godoc.org/code.google.com/p/rog-go/exp/cmd/godef

The Go emacs mode has godef-jump (C-c C-j) and godef-describe (C-c C-d): http://golang.org/misc/emacs/go-mode.el

rgarcia··on An Introduction to Node's New Streams
In many stream pipelines you don't care about the order of the data. You just have a bunch of unordered input data that you need to transform as fast as possible.

Go's channels [1] let you essentially construct loosely-typed streams. The channel's type lets you be as opinionated as you want about what should/shouldn't be passed within the "stream" (interface{}, []byte, string, MyAwesomeType, etc.). If you use buffered channels you have "backpressure". You can use > 1 core by using goroutines.

[1] http://golangtutorials.blogspot.com/2011/06/channels-in-go.h...

rgarcia··on An Introduction to Node's New Streams
The new node streams API is nice, but for processing a lot of data like this we've found them unsuitable for a few reasons:

1) objectMode is considered an abomination by most of node-core[1], so if you're putting anything other than a string or a buffer through a stream, you're "doing it wrong" (I disagree, but I also am not a node maintainer).

2) If you want to process data in parallel you're out of luck, since Writable handles writes one at a time. We've created some workarounds but I'm not super happy with them [2].

3) Once you jerry-rig Writable/Transform to run in parallel, you're stuck with one core. We've also created a workaround for this [3].

We've started moving towards go's channels because of all these issues.

[1] https://github.com/joyent/node/pull/4835

[2] https://github.com/Clever/writable-stream-parallel https://github.com/clever/understream

[3] https://github.com/Clever/async-forkqueue

rgarcia··on This Is What One Half Second of High Speed Trading Looks Like
Acting on public information, milliseconds before anybody else - which helps everybody else about as much as insider trading does.

"They can do it faster, therefore it must be illegal."

Acting on trading information gleaned from "bid stuffing" (making and canceling orders really quickly) - which helps everybody else about as much as front running does.

The only people that notice this behavior are...other people capable of doing this behavior. Why should it matter to you, the long-term investor, the trading tactics computers employ at the millisecond scale?

Detecting the presence of large trades about to go through or going through and capitalizing on the price movements they cause - i.e. imposing a tax others making large trades in the stock market

This happens in any market at any timescale. Everyone capitalizes on trends.

rgarcia··on This Is What One Half Second of High Speed Trading Looks Like
I believe minimax is responding to the article, which is quite clearly making the classic "it's too complicated" critique of HFT.
rgarcia··on The Ivy League Was Another Planet
100x this. I went to a high school in a suburb of Chicago that essentially was a feeder school into local/state colleges. The idea of leaving the state or even the surrounding area did not even cross the mind of most people in my class. I ended up applying to most of the same "safe"/surrounding schools that my friends did, but also reached and sent applications to a few very selective schools. When I got accepted into Harvard I thought, great, how is my family going to pay for this? We submitted our financial aid paperwork, and it ended up being cheaper for me to go Harvard than any of the state schools in Illinois.

It seems generally true that as the quality of the university increases, the financial resources it has at its disposal also increase. Many schools seem to be investing this into financial aid, but I wonder if that's generally true across the board. Also, I think no matter what it will take time to shed the stereotype that elite schools are for the economically elite. This is a major reason I think there isn't as much awareness about the vast amounts of aid that these schools give to students.

rgarcia··on Zuck, Bill Gates, Jack Dorsey In Short Film To Inspire Kids To Learn How To Code
It's turtles all the way down. I love LCD, but here are examples of things James Murphy lifted:

the fall telephone thing: http://www.youtube.com/watch?v=vEOtckaZtLg#t=0m36s pretty distinctive way to say "i'm tapped" used in movement: http://www.youtube.com/watch?v=o6MIChyCBAU#t=0m43s

in general his vocal style and delivery alternate between mark e smith from the fall and brian eno. really not a bad thing in my book, but still not entirely original.

homosapien by peter shelley: http://www.youtube.com/watch?v=2HwmO_GZfzI sounds like the basis of north american scum: http://www.youtube.com/watch?v=Jmm14g4cAFc

there's also the more than passing similarity between somebody's calling me: http://www.youtube.com/watch?v=wRCAuao67F4 and iggy pop's nightclubbing: http://www.youtube.com/watch?v=G3OaMZojJRg

all i want http://www.youtube.com/watch?v=A6BYCcy5aeo is pretty much bowie's heroes.

rgarcia··on Probability Theory — A Primer
If this kind of stuff interests you, you should check out the lecture videos from Harvard's Stat 110: http://stat110.net. Prof. Blitzstein is hilariously nerdy but still has a very clear presentation style (he had kind of a cult following back when I took the course [1]). If video isn't your thing, the article here is basically the first few chapters of the textbook [2].

[1] http://www.youtube.com/watch?v=iAwS7vzvLnY http://www.youtube.com/watch?v=TQvVLhWOiis

[2] http://www.amazon.com/First-Course-Probability-7th-Edition/d...

rgarcia··on Show HN: One curl command issues next-day ACH deposit
Someone should integrate this with Splitwise and solve bill/rent/etc. splitting once and for all.
rgarcia··on How to terminate your worst enemy's Dropbox account for only $795
The overhead of maintaining separate Dropbox accounts is pretty high IMO. There's no easy way to switch between accounts on the desktop client, an I'm pretty sure there's no way to be logged in to multiple accounts.
rgarcia··on How to Write your own Minesweeper AI
Has anyone done an analysis that computes probabilities without brute force enumeration? Probabilistic decisions in Minesweeper are interesting, but this algorithm left me kind of disappointed.
rgarcia··on AWS SDK for Node.js (Preview)
Even if there are already about twenty AWS libraries on NPM, this is a welcome addition. One nasty part of the Node.js ecosystem is the elevated risk that the owner of a library you depend on goes AWOL. For some reason (maybe the low barrier to publishing with github + npm) this risk is incredibly high with Node.js libraries. So it's nice to see AWS put their weight behind this.

It's also nice to see a language-specific library that doesn't layer on a bunch of opinions/abstractions on top of the underlying HTTP API. Makes it a lot easier to grok, debug, and leverage existing documentation.

If there's anyone from AWS trolling these parts...will there ever be support for Node.js in Beanstalk?

rgarcia··on Google Drops Pricing On Cloud Storage by 20%
The competition Google is putting up in this space reminds me of a Ben Horowitz quote from Startup School (paraphrased):

You have to have a 10x better product to beat established competition.

Compute Engine has a long way to go to be 10x better than AWS. For most (including me) it's not just about storage and CPU units, it's things like VPC, SES, IAM, etc.

rgarcia··on Show HN: Status page for Balanced - Payments for Marketplaces
It'd be cool to see something like this built on top of the Pingdom API. https://www.pingdom.com/services/api-documentation-rest/#Res...
rgarcia··on RethinkDB: An open-source distributed database built with love over three years
At Clever we do this with mongo + mongoose. Mongoose is janky in places but it's great for type safety and migrations like you describe.
rgarcia··on MongoDB Gotchas and How To Avoid Them
The solution is simple; use a tool to keep an eye on MongoDB, make a best guess of your capacity (flush time, queue lengths, lock percentages and faults are good gauges) and shard before you get to 80% of your estimated capacity.

Any recommendations for such a tool?

rgarcia··on Ask HN: What are some good EC2 tutorials for programmers?
AFAIK Beanstalk doesn't support node...is this in the works?
rgarcia··on Travis Shrugged
I agree, but it begs the question: is there a point at which the damage you can inflict with a single bad transaction makes some central authority necessary? e.g. if every 20th car I sell on eBay is a lemon, I still have a 95% rating. If I'm a driver on Uber/Lyft/Sidecar and every 20th person I leave in a ditch I still have 4.75 stars.

Obviously regulation isn't meant to stop outright crime like this, but I think it's meant to guarantee a minimum level of service so that the distribution of outcomes has a reasonable lower bound.

rgarcia··on Travis Shrugged
The pro-Disruption argument goes like this: In a digitally connected age, there’s absolutely no need for public carriage laws (or hotel laws, or food safety laws, or… or…) because the market will quickly move to drive out bad actors. If an Uber driver behaves badly, his low star rating will soon push him out of business.

Well-said. This is the point of view I've come to agree with, so I was eager for the counterpoint. But then came this:

It’s a compelling message but also one with dire potential consequences for public safety, particularly for those who can’t afford to take a $50 cab ride to Whole Foods.

What? We're talking about Uber Taxi, not the black car service. In theory Uber Taxi should lower the cost of a cab since there's presumably less overhead. What I really want to see is a bigger discussion about government regulation being forced out by tighter feedback loops, which is the main point of contention I see with things like Uber, Sidecar, etc.

rgarcia··on Clever (YC S12) Lands $3M, Now In 2000 Schools
Typical cost of a SIF integration is well out of the budget for all but the largest districts in the country. From what we've seen it typically takes 6+ months to do a full implementation (faster if you hire some consultants). Clever is free and takes 5 minutes. From that perspective it makes a lot of sense for schools.

From the perspective of a software company, something like SIF adds needless additional costs. Want to plug into SIF? Get certified: http://www.sifinfo.org/us/sif-certification.asp. API docs? Support? Good luck finding that.

The reality is that most of the standards you're talking about are free money for high-priced consultants.

rgarcia··on Clever (YC S12) Lands $3M, Now In 2000 Schools
Thanks for the comment, pflats. We've seen our fair share of ugly SISes!

Clever actually isn't an SIS, though--we provide an API/integration layer that sits on top of the SIS.

We think SISes are great at a lot of things (state reporting, for example). Providing a nice interface for developers is not one of those things.

rgarcia··on Show HN: P2P Marketplace for renting stuff
Some honest feedback, FWIW...

What's your plan to get users? A large part of the success from other asset-sharing services is due to the fact that they initially chose a vertical (Airbnb: apartments, Getaround/RelayRides: cars) and made a small number of people in that vertical incredibly happy. Generalizing to "all things" has the advantage of making your target audience/market bigger, but also seriously risks making the average experience worse for a couple of reasons: (1) you're constrained to keeping the interface generic enough for "all things", and (2) by not targeting a vertical, demand/supply becomes much less targeted, meaning you need a large user base for the marketplace to be useful.

rgarcia··on Vic Gundotra reports Google+ passing 100,000,000 monthly active users
I'm really curious how they measure "active". For example, recently I've noticed that when I initiate a video chat in gchat it forces me to use a hangout on Google+. Does this make me an active Google+ user?
rgarcia··on Dropbox dives into CoffeeScript
Really they should just use underscore:

    @originalStyle = _(@element.style).pick ['top', 'left', 'width', 'height']
rgarcia··on Watch High-Speed Trading Bots Go Berserk
That's the x-axis.
rgarcia··on Watch High-Speed Trading Bots Go Berserk
Anyone know what the y-axis measures? The original Nanex source doesn't label it either[1].

[1] http://www.nanex.net/aqck/2804.HTML

rgarcia··on FundersClub (YC S12) Wants To Bypass VC And Let You Invest In Startups
There's a difference between the "crowd" in crowdfunding and accredited investors. pg was probably talking about the former.
rgarcia··on OS X Mountain Lion available on the Mac App Store
Same here. I was able to get it to work via the answer here: http://stackoverflow.com/questions/9329243/xcode-4-4-command...
rgarcia··on Show HN: Hulu With Me (Firefox/Chrome add-on + Node)
How does it work with ads? For example, if I get a 30s ad and the other person gets a 60s ad, does it still sync up?

I watch shows like this (on hulu, hbo go, netflix) w/ my SO fairly often and one thing I found with hulu is that oftentimes our videos get out of sync due to minor glitches here and there, e.g. we'll sync up after the end of a commercial break, but by the next commercial break we're out of sync by 5+ seconds. Just something to keep in mind...

← PreviousPage 2 of 6Next →