Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 11y ago · link · parent

Love a gif version I saw of this recently, so fascinating.

I think this would be neater if it had a small text field, where you could put in a JS function, and it would do an approximate fourier series based off of a segment of the function.

Kind of feel like someone should make a page that fully explains all the levels of this graphic:

- the circles let you graph f(x)=a*sin(nx+phase) (cosine on the horizontal projection)

- attaching the circles is the same as adding, so you actually have a way of drawing out the first parts of a fourier series

- any periodic function can be represented through all these spinning circles

comment 11y ago · link · parent

>And of course, if competitors appear you can just locally give away machines.

And then face anti-trust suits by the government

Disaster averted again by 20th century economic policies!

comment 11y ago · link · parent

The "overpopulation until the end" myth is completely debunked by the demographic curves of many different developed countries (Germany, Italy, Russia, Japan to name some). I think the common assumption is that the population of nations as they develop taper off eventually.

comment 11y ago · link · parent

You say penny-pinching, but not all companies can afford the office space for all their employees from the get-go.

At least where I work, we do get an implicit understanding of when it's quiet time, and when it's discussion time. Unfortunately the understanding isn't always in sync, but we're most of the way there.

comment 11y ago · link · parent

There is the third option that rarely gets discussed. No subscription service succeeding in dominating the market entirely.

Alternatively, a two-track system, where subscription services are consistently behind on popular hits, and artists hit record services first.

comment 11y ago · link · parent

The trickiness comes when you have to write these mocks, and whether the mocks are based off of correct assumptions.

Granted, Haskell's type system goes a long way to helping with that (often a function of type A -> B only has a handful of possible definitions given sufficiently complex types A and B), but it's still worth using actual production-use code paths when feasible.

EDIT: Where I work, we have a large amount of tests, but we have pretty much never deployed an instance of our application without having every test pass.

The idea of having 100% of your tests pass is a lot easier when it's the default, and when you're doing more continuous integration.

If you're using a language like Haskell, your business logic will already be pretty separate from the ickiness of the IO layer, so most of your tests will be deterministic and nice by default.

If you're using a messier language... well there's a lot of test suites out there. If you're using something that's mainly Django/Rails-y stuff, you don't have many excuses not to be 100% passing by default. Most major frameworks/languages offer extensive mocking tools and the like to avoid non-determinent behavior in tests.

comment 11y ago · link · parent

>Apple's board and management have a fiduciary responsibility to pay only the tax they actually owe.

This does not mean they have responsibilities to build as many legal (last I checked, my iPod was not designed by Apple in Ireland) fictions as possible to lower their tax burden.

Apple's corporate status does _not_ absolve them of the ethics of their decision.

That said, getting the laws changed would be more useful.

comment 11y ago · link · parent

Very true. It's one of those topics where people don't even start with the same axioms and definitions, so the discussion goes nowhere.

Personally, I was on the other side of the fence, until the constant evidence of the extreme suffering a large segment of the population goes through in prison convinced me that we're accomplishing immense amounts of harm this way.

comment 11y ago · link · parent

Sure, but in that case just take their money away. At least then the punishment is in the same unit of measurement as the crime, and the risk can be compared better. Locking someone in a cell seems excessive (and excessively costly).

comment 11y ago · link · parent

The "why haven't any bankers been thrown in jail" trope has been repeated fairly often on both sides of the aisle.

Now here, "Most liberal" might be just talking about people still within mainstream thinking. Though many talk about not throwing people in jail for things like Marijuana, few talk about reducing sentences for non-drug related crimes (and pretty much no discussion on reducing it for violent crimes as well).

comment 11y ago · link · parent

I'm more and more convinced that this is a cultural problem in the US. The idea of "serving out justice" seems to override any compassion for people.

People always talk about throwing bankers in jail for the crisis, but why would you wish all this suffering on anyone? Denying freedom for someone for years. Especially considering the multitude of studies showing that extended incarceration _does not work as a deterrent_.

We should be ashamed, a country with this sort of penal system cannot declare itself to be a bastion of civil rights.

comment 11y ago · link · parent

can that brine be used for other things? This might sound silly to a knowledgeable person, but isn't salt worth something?

If the infrastructure is available, it would be interesting to force things like watering lawns with only water from something like a desalination plant.

comment 11y ago · link · parent

But if it's a hobby, why not do fun things? It's not like this is "Get a career in programming the hard way".

comment 11y ago · link · parent

This looks like a great idea, and I imagine the execution will be great.

Personally, though, I find no excitement in building a log searching tool. Something a bit more magical (I think something involving web scraping or markov chains would be interesting) would probably entice people to move forward much more.

Not that this tool wouldn't be useful, just that if I look at the end result, it doesn't give me the want to build it.

comment 11y ago · link · parent

No it wasn't, it was creating cesspits of hate when left to itself. Considering the amount of good communities on that website, the last thing I would want is for it to be overrun by such negativeness.

comment 11y ago · link · parent

Exactly. The primary issue with H-1B is that it's attached to the company. As a nation, it's in our interest to pull in people with (supposedly) unique skills, and to incentivize them staying in the country.

If the visa is not attached to the company, then the wage deflation effect will be much more minor. After all, the visa holder could just go to the company next door and get a higher wage if the initial company tries to pay too low a salary.

comment 11y ago · link · parent

I think the switching costs are there

Especially if you have no domain knowledge in running a paywalled website, you could end up getting charged an insane amount of money by some consultants to set it up for you.

comment 11y ago · link · parent

Why does it suck that they use Kickstarter? It's validating the idea, and helps to confirm that the market exists.

Despite Shenmue's critical acclaim, it's not certain that the market exists. For comparison , Yakuza 1 and 2 (Yakuza is basically a spiritual successor to Shenmue in many ways) only sold 30k and 50k in the US market.

comment 11y ago · link · parent

This is such a great example. I used to have like 1 or 2 snickers a day, then noticed that it was basically 100% of my daily recommended saturated fat intake in a single bar.

Snickers bars are one of the worst things you can put in your body.

5240.

What No One Told You About Z-index (2012)(philipwalton.com ↗)

3 points · by rtpg · 11y ago · discuss

comment 11y ago · link · parent

It seems they moved to github for development a while back (May), but have moved binary downloads away from SF now.

comment 11y ago · link · parent

It's possible to make freemium without wait timers. See Hearthstone, League of Legends.

I don't see freemium disappearing anytime soon.

comment 11y ago · link · parent

On Instagram, the choice to share to facebook shows up before you actually upload the image. But the image still is saved to your phone's gallery.

So he could have thought he finished everything and in fact not have done anything.

Though rereading it, it did show up on Twitter...

comment 11y ago · link · parent

the counter to lateral thinking nowadays is power efficiency. Imagine underclocking the iphone 6 processor to 1st gen iphone screens. I image you'd get quite a bang for your buck on that one.

Though I am a big proponent of lateral thinking in general, for battery powered devices the optics change a little I think.

comment 11y ago · link · parent

It's a factor, but there are many other factors involved.

In the first QE rounds by the US after the 2008 recession hit, money was being printed to basically end up in bank's coffers, but lending didn't go up correspondingly, so the actual amount of money in circulation didn't really change.

I think the big reason for the link being weaker than expected is that it's the money actually in circulation ( in the "being used" sense) that matters, not the amount of money in existence. It's all just numbers, after all, and if you're not doing anything with them, it's the same as if it doesn't exist.

comment 11y ago · link · parent

Hey, turns out I actually live in Japan, and have been here for the most recent round of QE.

The value of the yen has dropped something like 33% compared to the dollar (went from $1 = 100 to $1 = 140 in the past 3 years) but yearly CPI increases have never hit above 2 or 3 percent.

Prices have gone up, but mainly due to the sales tax increase, not due to QE. Considering that CPI is almost definitionally linked to inflation, I feel that it's a pretty good indicator of lack of real inflation.

comment 11y ago · link · parent

What you're saying doesn't hold up empirically. And like they say, if it doesn't hold up in practice, how should we accept it as theory

comment 11y ago · link · parent

This is false. Japan has been doing QE long before we have, and is fine (actually they weren't even able to get inflation for a very long time).

Printing money doesn't necessarily mean inflation is going to happen. There are so many factors involved, and the fact of the matter is the market cares about other things more than supply.

comment 11y ago · link · parent

it's 50 years, which is functionally equivalent in the insanity. Imagine if you had to pay 50 years of taxes upfront

comment 11y ago · link · parent

I also think it's an extremely simple question, but only if you've ever taken a data structures class.

Turns out a lot of people in our industry don't! I have a Computer Engineering degree, and know this stuff mainly due to this being my hobby (and having tried out for the IOI in high school). But there are former classmates who are only vaguely aware of these data structures, because they never got any exposure to them despite writing real programs.

I don't think there's a super strong argument that most computer engineers need to know much of anything about base data structures. There are so many other concepts that are more important to writing and deploying useful software (especially in the enterprise world) that at no point involve writing complex data structures. Data structures (or rather, knowledge of the internals) are much more domain specific than some of us would like to admit, especially in the age of RoR and Unity. There are many more design patters more important to know about than being able to implement quicksort (it took 6 years for researchers to write the first bug-free implementation!)

Google does it because they can. They're probably filtering out a lot of people who treat code as prose rather than a technical manual though. Which is probably why Google libraries look the way they look.

The biggest surprise for me is how many game programmers don't know about this stuff. It seems like the sort of stuff you'd run into pretty quickly

1
174175176
225