HNHacker News
TopNewBestAskShowJobs

rohansingh

1,471 karma · joined January 15, 2012

@rohansingh

[ my public key: https://keybase.io/rohansingh; my proof: https://keybase.io/rohansingh/sigs/FYqfP0wJErPun-vsVRQ2fAEqahFzGh-6AGFTFN5MRYE ]

submissionscomments
rohansingh··on Are We in the Middle of a Programming Bubble?
Insane work hours also reduces demand for workers, though. If it's a norm in an industry for employees to work 80 or 90 hours, an employer might hire fewer people than if folks only worked 40 hours.
rohansingh··on Nasa's Voyager 2 probe 'leaves the Solar System'
Voyager 2 was launched a couple weeks before Voyager 1. They are pretty much the same.
rohansingh··on Advent of Nim
Rumor is that Espressif is actually working on LLVM support.
rohansingh··on Advent of Nim
Yeah, I tried --gc:none. After some playing around, I ended up with:

  --gc:stack
  --header:"nim.h"
  --os:standalone
  --noMain
  --genDeps
In the end I got Nim code to run and was able to do a "hello world". As a hack I also used -d:android to trigger some conditionals that reduced the reliance on various dependencies. But it wasn't enough to be usable, and it was a bit unfortunate to have to do that.

Looking at those projects you linked though, clearly I didn't try hard enough! Great to see that people have had success.

rohansingh··on Advent of Nim
I tried to use Nim in an embedded context (ESP32). Since one of the bullet points is that it "compiles to C", I thought it'd be a good option.

In practice, even once I was able to compile basic Nim, there were a lot of glibc and other POSIX dependencies for any of Nim's standard libraries, some of which weren't available in ESP-IDF.

That's totally fair, but many of those dependencies aren't available when compiling to JS either, though, so I was surprised. In the end, delving into the code I found that a lot of stuff was gated behind the equivalent of "platform=JS" switches throughout the stdlib. It seemed like adding support for another platform would be a major pain.

This was all preliminary investigation and I didn't reach out to the Nim community, so perhaps I missed something. Maybe this kind of portability isn't even a goal for Nim. It would definitely be nice to have, though.

rohansingh··on Every Byte of a TLS Connection Explained and Reproduced
Beautiful. A few years ago, were implementing some TLS handshake stuff at Spotify (https://github.com/spotify/ssh-agent-tls) to be able to use your SSH key as a client-side cert for HTTPS connections.

The first couple drafts took forever to figure out, and I got a bunch of stuff wrong. This guide would've saved a ton of time back then.

rohansingh··on The mean age of high-tech founders is 43, economists say
I almost agree with the poster above, but I think it's less about the languages than high-value skills or specializations. As long as you're defining yourself by a language, you're more limited than someone who's known for expertise in some specialty.

Examples include distributed systems, realtime software, embedded programming, network programming, etc.

rohansingh··on Facebook Tools Are Used to Screen Out Older Job Seekers, Lawsuit Claims
Not making a judgement either way, but just a heads-up— there's actually no federal prohibition against discriminating on the basis of youth. Age discrimination laws only work in one direction.
rohansingh··on How 2 M.T.A. Decisions Pushed the Subway into Crisis
From a moral standpoint, it's definitely wrong to punish drivers for signal issues, and we should stop doing that.

However, if drivers all started going at the normal speed and regularly tripping broken signals, it would absolutely destroy the system. When a train's emergency brake is tripped, it takes tens of minutes to reset it and get the train going again. If that was happening at every faulty signal on a daily basis, the system would grind to a halt.

Really the only fix is dealing with the signals. But that's extremely difficult because they haven't been regularly maintained and are very old. Most of them use mechanical timing systems and other insane things that nobody has built parts for. There's no particular reason to believe that "changing them back" would go any better than the botched rollout of the initial change.

rohansingh··on How 2 M.T.A. Decisions Pushed the Subway into Crisis
The L train is actually the one train with fully upgraded signals, and no track sharing with other trains. Probably for that reason, it also has the highest on-time percentage of all trains.
rohansingh··on Earthsea – A Rival to Tolkien and George RR Martin (2015)
I think if this person finds the quippy dialogue in Oathbringer off-putting, then they are going to absolutely hate Reckoners.
rohansingh··on Spotify files for its IPO
As an engineer who accepted an offer from Spotify in 2011, worked there until last year, and am still holding on to a good portion of my grant... it's mixed.

From both my experience and that of folks I've spoken with, the last year or two has been quite good for us. That said, you're probably much better off financially if you accepted an offer from a FAANG-type company around the same time and stuck with them.

rohansingh··on Have Smartphones Destroyed a Generation?
https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headline...

> Betteridge's law of headlines is one name for an adage that states: "Any headline that ends in a question mark can be answered by the word no."

rohansingh··on Facebook in talks with publishers on supporting subscription models
If you have Prime, I think the Washington Post subscription offer of 6 months free and then $3.99/month after that is a very reasonable value.
rohansingh··on Robinhood stock trading app confirms $110M raise at $1.3B valuation
You can use Quantopian to write a Python script that trades on a live Robinhood portfolio. Their target audience is algorithmic traders, but I've written a simple script that just rebalances my portfolio among a small set of index funds each day. Pretty simple to do and completely free.

I'll try to do a blog post when I get the chance.

rohansingh··on A proof-of-concept of a vulnerability in custom shell prompt scripts
Really? As far as I can tell, the `git_current_branch` function in `lib/git.zsh` is fine.
rohansingh··on Rookie Doctors Will Soon Be Allowed to Work Up to 28 Hours Straight
These 28-hour shifts are unique to healthcare in the United States.
rohansingh··on Ask HN: Why does 'View Source' issue a new HTTP request?
It's not the prefix/scheme that's important, it's the fact that it's a new tab.
rohansingh··on Workman Keyboard layout
It's completely doable. Took me a little bit of fumbling to use QWERTY again after learning Dvorak, but it's easy to pick back up and do both.
rohansingh··on Spotify moves its back end to Google Cloud
To be fair, the presentation that that article is using as a reference for Spotify's infrastructure was from 3 years ago, and during most of the presentation I talked about what was wrong with how we were doing things.

How we do things is quite different now. Check out my DockerCon 2014 presentation or our tech blog for details.

rohansingh··on VMware Confirms Layoffs as It Prepares for Dell Acquisition
Just one data point, but at Spotify we have almost all our stuff deployed in our data centers. ~10K machines, all bare metal, barely any virtualization, in a handful of sites.

It's just cheaper and easier for us to have a lot of hardware racked and stacked and then spin it up as needed without having to worry about virtualization. Experience for our devs is pretty much the same whether they're provisioning a bare metal machine as it would be for a VM.

rohansingh··on After Silicon Valley, Stockholm produces highest number of “unicorns” per capita
You can't really do a straight up comparison like that. The median salary for a software engineer in Stockholm is somewhere around $50K or $60K. Based on that, the rent situation in Stockholm is quite dire, and availability is atrocious.
rohansingh··on Owning materials from an asteroid now legal in United States
Yes, previous law and treaty has generally established that there are no private property rights, ownership, or sovereignty in space.
rohansingh··on Large Companies Game H-1B Visa Program
That's the median income for folks over 65. Most of whom are retired. I'm not sure why you didn't post the median incomes listed right above that:

  Median Income 25-44	$78,810
  Median Income 45-64	$80,875
rohansingh··on Two-thirds of the world's population under 50 have herpes
This article is about the HSV-1 virus that causes cold sores, not genital herpes. It has nothing to do with being "attractive" or "interesting".
rohansingh··on What Happens When You Enter the Witness Protection Program?
> The program also works with doctors and school administrators to transfer medical records and report cards; Shur recounts that he refused several requests to improve a child’s grades.
rohansingh··on New Initiatives for Lyft Drivers
Sweden, Norway, Finland.
rohansingh··on For San Francisco Cab Drivers, Once-Treasured Medallions Now a Burden
Why should the loss be spread around? There are a number of rights and privileges you can purchase from the government, which are an investment risk. You go into them with a hope of profit and accept a risk.

For example, if I pay for rights to drill for oil somewhere and oil becomes obsolete, should I be reimbursed by my competitors?

The upside potential of one of these medallions was unlimited. After buying it once, you could use it to make an unbounded amount of money. Part of that is accepting the risk that it might make no money. Otherwise you're asking the rest of society to subsidize a private interest.

rohansingh··on S/party/hack like it's 1999
FTA:

> Hint: > 'less' doesn't interpret escape sequences unless the -r switch is used, > so stop aliasing it to 'less -r' just because there's no colored output.

Instead you can just use `less -R` which allows colored output but doesn't interpret any other escape sequences.

rohansingh··on Windows 10 “steals” your bandwidth
With Spotify, the aim was low latency. If you click on a song, it should start playing immediately. There's no such requirement for software updates.

Back when the only data center was in Stockholm, the only way to meet latency requirements was P2P. Now that we're a grown-up company we've disabled that and use CDN's instead.

← PreviousPage 5 of 10Next →