Recent submissions

Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
I'm doing it in K2 this year (a language that has a single data structure: a vector). If you can do it in K2, you can do it in Go.
Comment · 1 year ago
You can put a window that covers the bottom half of the content the defaults to all assaults being allowed also has a way to customize which assaults you would like. It shouldn't be possible to uncheck necessary assaults for the website might not work.
Comment · 1 year ago
Can't this be solved to some sort of DP way of solving the sub problem?

Do the payout between 0 and 1 as the percentage of the amount.

With a range of 1 to 1 to pay off is obviously one

With a range of 1 to 2 the payout is .5

At three values it becomes more interesting. There are two strategies for the candidate either a binary search for the endpoints.

At four values you still have one level of binary search possible but after that it devolves down to the two value problem.

At five values. If the interviewer thinks the candidate would choose binary search and it becomes too too value problems on each side after removing the middle element.

There's definite problems with this but I wonder if he's already possible pay off matrix

Comment · 1 year ago
I hate that. It turns the problem into one of those lateral thinking puzzles we were told some basic information and then the answer winds up being something totally wildly different. It wasn't being very random in the end not being very productive
Comment · 1 year ago
Does anybody else always read this as Hyrule's Law?
Comment · 1 year ago
I took cs61a at Berkeley as my very first computer science class I couldn't program I never tried to so scheme was my first language.

My ta told me that everybody should take the class twice when you first come in and when you're graduating.

When you first take it especially if you know other languages like C at the time you don't get the full depth of the problems you're given a great introduction and you think you understand everything but you don't realize the depth of complexity. Message passing the metacircular evaluator, continuations as the basis of all flow control, etc

You think they are neat tricks that you understand the curriculum because you can do the homework you don't understand how those neat tricks are really the basis of everything else you'll do.

When you're graduating you've had time to go through all your classes you realize just how foundation was principles are and you get so much more out of the book.

Well I didn't take the class a second time I need help grade and TA for a couple semesters.

I work as a quant developer and in trading now and even though my field has nothing to do with that I still think it's the basis of me as a developer.

Comment · 2 years ago
I thought the Branch Target Predictor on x64 was global, not local, and it has to kick in before decode so even direct branches can be mispredicted. Branch prediction is 2 parts - the conditional predictor and the target predictor. The conditional predictor is actually per 64 byte instruction block (so if you have a few branches consecutively they share branch predictor entries and can step on each other. the target predictor uses a global history and needs to happen very early to keep the front end fed.
Comment · 2 years ago
CH definitely has more installations. not sure about which pulls in more revenue. KDB installations will run you $250,000/yr on the low-end for just the software license. Not sure how that compares.
Comment · 2 years ago
Read that link. The BLS says "yes we try to adjust for the substitution, but really we are trying to calculate a basic level of satisfaction:

> In January 1999, the BLS began using a geometric mean formula in the CPI that reflects the fact that consumers shift their purchases toward products that have fallen in relative price. [It continues by saying it allows substitution withing categories and not between categories.]

This is exactly what I was saying. It has become a cost of living index, not a measure of inflation anymore. The hedonic adjustments can be laughably hand-wavy (it is a very difficult problem on how you measure inflation when using CPUs -- the real answer is you shouldn't and CPI's basked is a bad bad way to do it). That FAQ is always pretty funny and defensive (a lot of "give us a break -- it doesn't really affect anything much").

> Even for people who don't own their home, new york has rent control, which provides similar inflation protections compared to owning a home.

This is one of the huge issues. (1) Not sure if you live near NYC, but ask any new yorker about how much rent control has helped -- the answer is usually pretty low. don't have a heart attack looking at this rental rise in the last 5 years https://comptroller.nyc.gov/reports/spotlight-new-york-citys...

However that isn't the important part - rent control shouldn't effect measures of inflation -- this is precisely why CPI is bad. You can't legislate away inflation, you mere push the money around and prices rise asymmetrically but you still have the fundamental issue that CPI no longer even tries to measure -- too many dollas chasing too few goods. So you stop some of using those dollars on housing -- they just bid of something else instead.

CPI is a terrible horrible very bad measure of inflation. Its been that way since the 70s at least when the concept was turned on its head.

Comment · 2 years ago
You're making a couple mistakes on this.

The first is you're using the Nationwide averages as opposed to the regional numbers for New York where a lot of these increases are much greater than on the nation.

The second thing is the way it includes housing is by using a thing called the owners imputed rent. And what that does is it tries to back out the rental from a housing unit. The problem is in New York City rent has been rising way faster than that.

30 is the cpi's consistently underestimated a number of its own provisions because of the way it does hedonics and substitution. It basically says that while meat might have risen 50% people switch to fish now and it uses in lower value for inflation.

The CPI over the last 30 years have been so massively game it's almost useless anymore

Comment · 2 years ago
kdb+ isn't in there either, and that is more important than CH I think. KDB is boring, just uses a placeholder. I think it might be because these two do it in a boring fashion.
Comment · 2 years ago
I thought if I shook him enough, he'd stop crying. I was kind of right.
Comment · 2 years ago
If it's in the footer, then I'm pending to the columns out of the question it seems without moving the footer.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton