Better HN
topnewbestaskshowjobs
Log inSign up

kchandra

60 karma · joined Mar 10, 2017 (9y ago) · 11 submissions

Submissions

comment 3y ago · link · parent

Yes, absolutely. I worked there about 7-8 years ago and at the time it was considered a "retirement home" in Silicon Valley.

comment 3y ago · link · parent

The problem can be solved in two different directions - accepting fewer immigrants or building more housing (perhaps both for some stretch of time to ensure that citizens can afford housing and build families).

Long-term though I don't see a way for the Anglosphere to thrive unless immigration increases, given low birth rates.

3.

Debugging Catastrophic Backtracking for Regular Expressions in Python(krishnanchandra.com ↗)

2 points · by kchandra · 3y ago · discuss

comment 3y ago · link · parent

And indeed, the author mentions exactly this:

> An engineer with no such customer awareness and instead an incessant obsession with optimizing everything that can be optimized, might try to optimize for speed… when it’s likely the consumer cares more about: cleanliness, energy rating and capacity.

comment 9y ago · link · parent

1. Redis is atomic, so we use the SETNX operation to ensure that only one write succeeds.

2. We have HLLs in Redis, so we just issue a PFCOUNT and store the result of that in Cassandra as an integer value. We don't use counters in Cassandra.

comment 9y ago · link · parent

Pretty much, yeah.

comment 9y ago · link · parent

Yup! That's the plan, just won't be available for now.

comment 9y ago · link · parent

Yup! Just bear in mind that since the feature is only open to mods and OPs, the API is similarly restricted.

Also I'm a big fan of your blog, really have enjoyed reading your analyses on reddit data over the years.

comment 9y ago · link · parent

Not at the moment, but we might do that in future.

comment 9y ago · link · parent

Hey folks, I'm the author of this blog post. I'll mainly be answering questions in /r/programming about this but I'll try to get back to HN later in the day.

11.

View Counting at Reddit(redditblog.com ↗)

13 points · by kchandra · 9y ago · 7 comments