21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 11y ago · link · parent
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
comment 11y ago · link · parent
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
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
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
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
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
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
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
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
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
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.
5240.
What No One Told You About Z-index (2012)(philipwalton.com ↗)
3 points · by rtpg · 11y ago · discuss
comment 11y ago · link · parent
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
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
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
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
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
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