HNHacker News
TopNewBestAskShowJobs

blackhole

4,418 karma · joined February 1, 2011

Angry Programmer Bunny: https://erikmcclure.com

[ my public key: https://keybase.io/erikmcclure; my proof: https://keybase.io/erikmcclure/sigs/7L587gG8sECiKPJ7-eL8FW4vCwNQahTkYT60jtaExKE ]

submissionscomments
blackhole··on Problems Raytracing Doesn't Solve
Storing triangles in a super efficient data structure is precisely what I mean by traversing the scene. Do you really think that's a free operation when you have billions of triangles inside a data structure that must be dynamic by nature? You hit all sorts of arcane memory issues. I hit the same thing just developing a basic kd-tree for 2D culling.

The approximation algorithms I pointed out are exactly how raytracing is done backwards, but actually still must use a combination of camera rays and light source rays in a stocastic method in order to determine a path from the camera to the light source. Brute force raytracing is, in fact, just shooting out rays from the light sources. That's obviously inefficient, which is why we have the backwards lighting attempts, as discussed in the article.

Raytracing stars is not as simply as you think, not when you can visit them. They can no longer be point sources at infinite distance because the object itself is not infinitely far away, so you therefore can only substitute an infinite light source in when its essentially a point, which gets really nasty when you are dealing with entire galaxies as light sources, and if it isn't you must deal with all the lighting effects in between.

Materials are the most important part of computer graphics. If you don't think this, you have absolutely no idea what you are talking about.

blackhole··on Investigating ray tracing, the next big thing in gaming graphics
Ray-tracing as it currently stands will never dominate computer graphics, because it is essentially brute force. Progress is being made in reconstructing a scene out of a very noisy, low sampling rate [1], which is a much better indication of the future direction of raytracing, where a series of advanced prediction and reconstruction algorithms are used to efficiently render scenes, rather than simply throwing more hardware at the problem.

[1] http://www.tml.tkk.fi/~samuli/publications/lehtinen2012siggr...

blackhole··on Programmers Must Take Vitamin D
Taking supplements without assessing what your current daily intake of Vitamin D is can be dangerous; it is surprisingly easy to go over the recommended dosage, and there is such a thing as overdosing on vitamins [1]. You don't just get Vitamin D from the sun - it is also present in eggs, some seafood, and certain fortified dairy products. Because of this, you may not need to take a daily supplement at all. Programmers are at an increased risk for vitamin D deficiency, but you should ALWAYS examine your diet to assess your current vitamin D intake before deciding to take a supplement.

[1] http://www.consumerreports.org/cro/magazine/2012/09/10-surpr...

blackhole··on What Work is Really For
If my job is to do what I'd do in my free time anyway, it doesn't matter. I'm not happy if I play games all day, I'm happy when I build something other people want to use. I'm happy when I solve problems. I'm happy when I make something that entertains others.

Work is the result of people being unable to find what makes them both happy and productive.

blackhole··on H - The surprising truth about heroin and addiction
And yet, the exact same argument applies to alcohol and alcoholics. So, why take the risk of drinking and becoming an alcoholic? For some people who are genetically predisposed to alcoholism, this is exactly what prevents them from drinking, even though it's still legal. Yet, this small chance of being an alcoholic doesn't prevent anyone else from drinking alcohol, so why should it prevent people from doing drugs? It seems as though we run under the foolish assumption that being an alcoholic "isn't as bad", without realizing just how bad alcoholism can get. Double-standards like this are the entire point of the article.
blackhole··on Steve Yegge: Notes from the Mystery Machine Bus
Of course, said careful analysis of specific problem domains is then thrown around with wild abandon in an attempt to influence totally unrelated issues, causing confusion and havoc for years to come.
blackhole··on Education is Our Generation's Big Problem. Let's Fix it.
While I strongly support educational reform, I should point out that it is not just higher education, it's also high school, middle school, elementary school, kindergarten, and daycare. Every single aspect of the entire educational system down to the time spent on kids when they're too young to speak properly is broken. Consequently, fixing this is not as simple as having an online university, but I agree that the solution is very likely to be some sort of private, for-profit company, simply because that's the only feasible catalyst.
blackhole··on Show HN: My weekend project using the Soundcloud API
This sadly doesn't make me want to code, it makes me want to compose music. Curses!
blackhole··on The Web Is Unsustainable
I feel like domain names are difficult to find not because they are really being used up, but rather because there is no system governing them. What if we treated domains like trademarks, so if you don't use it, or stop using it, someone else who is using it can take the domain from you?

The thing is, this is also a problem for company names, and product names, and... well just about everything involving names. Almost everything is running out of names. We need to do a better job of recycling old names if any of this is going to be sustainable across any market.

blackhole··on Sal Khan responds to critic
Meanwhile public school teachers teach math without understanding the subject at all, and we question whether or not Khan is doing a better job? I'm pretty sure he can do a better job than teachers regurgitating the textbook.
blackhole··on FoundationDB: A new generation of NoSQL database
This very badly needs proof that it is, in fact, ACID compliant. Incredible claims require incredible evidence.
blackhole··on Tiled Shadow Maps
Even if you moved the polar coordinate shift to the hardware, you're doing pixel ray operations on the texture, followed by rasterization. I do vertex operations only, which are vastly fewer in number even in a worst case scenario, and then rasterize that. I'm willing to bet that even if we implemented this on the CPU, my algorithm would still be significantly faster and more accurate. Furthermore, your algorithm would struggle to take into account soft shadows, which actually become a noticeable problem in certain situations in large tilemaps when you have very large light radii.

I think the polar coordinate transformation trick is really cool, but I feel like this is the wrong use for it. This is essentially a solved problem using polygons in 2D lighting engines already - to make it work for tiles, you simply scale down and back up to map to tiles.

I have to admit I'm sorely tempted to implement this in WebGL just to see what happens.

blackhole··on Tiled Shadow Maps
My own approach to this problem would be to consider each tile as a square polygon, then simply project the vertices outward from the light source. Then you take the resulting triangles and rasterize them on to an image scaled such that each pixel represents a tile and use antialiasing (or simply rasterize them on to an image 8 times as large as you need it and scale down, which is essentially the same thing). This gives you roughly the same end result, but would allow you to hardware accelerate almost every single aspect and avoids all the artifacts of shadowmapping. Notably, by restricting each polygon to a square, the projection could be done entirely as a vertex shader, without requiring geometry shaders. This would likely be vastly more efficient due to taking advantage of hardware acceleration.
blackhole··on Microsoft Internship
Oh, definitely. He doesn't give a damn about how anyone is supposed to do anything and is convinced he's going to "change the world" or something stupid like that. Clearly a bad influence.
blackhole··on Microsoft employee on stack ranking and its 'most universally hated exec'
I am truly amazed that I wanted to work for this company at one point.
blackhole··on Torchlight art assets stolen, used in iOS game Armed Heroes
Re-usable assets are not the answer. Procedural generation of assets using re-usable blueprints under creative commons to enable rapid generation of unique variants of an existing object are the answer. Combine this with more powerful editing tools with the ability to mold blueprints together, and the uniqueness, creativity and soul of an artistic vision can be preserved while drastically decreasing development time.
blackhole··on Nvidia Hacked
All this does is guarantee you do it wrong.
blackhole··on The Curse of Bullshit
I've been aware of this almost my entire life. My group of friends has never fallen into this trap. When we ask each other, "how are you", and things aren't going well, we expect an appropriate response. When we can tell that things aren't going well, we'll dig deeper, we'll try to get each other to say whats wrong.

When I am in a grocery store, I know the cashier doesn't give a rats ass about how my day went. I know they simply want me gone as fast as possible with as little fuss as possible. I've learned to answer "good" and to say "thank you" all in an effort to smooth things over so I can get out of there quickly. Business relationships are conducted with professionalism and respect, delicately crafted to avoid emotion or conflicts of interest.

But when I write things on my blog, I tell people when things aren't going ok. I talk about everyone and everything I have issues with. I talk about everything that's wrong with everything else. Twitter knows when I'm depressed. Facebook knows when I'm having a bad day. When I'm out talking with my friends, there is no bullshit, and no talking about the weather. When I end up not talking to someone for months, or even years, I still consider them my friend. I make friends with people because of who they are, not because of what they say.

As Micah here points out, just because certain extroverts insist that something is "normal" does not make it correct.

blackhole··on When Even Crashing Doesn’t Work
EnableCrashingOnCrashes is one function in my utility library that really, really shouldn't exist.
blackhole··on Salted Password Hashing - Doing it Right
Because you are technically supposed to use $2y$ which ensures you are not using the broken implementation that was fixed in 2011. Of course if you are using a newer php installation $2a$ will be identical to $2y$ so it's just a disambiguation, just as $2x$ is used to identify hashes generated using the broken implementation.
blackhole··on Salted Password Hashing - Doing it Right
Well then the article is saying don't use $2a$ and then saying "oh but use this framework which also uses $2a$", which is terribly inconsistent. It should discuss when and where $2a$ could potentially be a problem.
blackhole··on Salted Password Hashing - Doing it Right
Do you realize that the phpass framework you recommend uses $2a$, even though you say not to use that?
blackhole··on Visual Studio 2012 will build apps that can run on XP
I have to admit I am honestly surprised that Microsoft actually listened to it's customers on this issue. However, the wording in the post makes it a bit vague on whether the compiler itself will simply also target XP, or if there will be some project flag to make it compatible with XP.
blackhole··on Why You Need To Hire Great Developers
This article is operating on an assumption that you let any given developer access your entire codebase. By partitioning developers into certain projects, you can isolate bad developers and move them into less harmful positions, while moving the majority of your great developers into critical infrastructure areas. There are ways to handle this that do not include missing out on good developers.
blackhole··on [dead]
I remember reading about this several years ago. Granted its x86 assembly and it was a long time ago, but its still insane.
blackhole··on This page crashes Internet Explorer, even version 9 and 10.
I accidentally created another bug that also crashes every single version of internet explorer. It's related to putting a filter: progID into an element modified by javascript.
blackhole··on Nvidia PR Responds To Torvalds' Harsh Words
Then I have sadly been on the wrong side of town for my entire life, because that is what my experience has been across countless diverse communities.
blackhole··on Nvidia PR Responds To Torvalds' Harsh Words
Do you know what my entire experience with the programming community has been? It has been every single asshole in a mile-radius telling me I am an idiot for some ridiculous reason that serves only to demonstrate how utterly retarded they are and how little they understand about my profession. I've had networking programmers try to tell me I'm writing my graphics engine wrong. It would be comical if it wasn't so incredibly aggravating.

So until other programmers stop being giant assholes, I find the rhetoric surrounding Linus' impoliteness to be ridiculous at best, and hypocritical at worst. Linus is simply doing what is necessary to get brick-headed morons to listen to him.

blackhole··on Greatest Ideas in History
The explanation of Godel's incompleteness theorem is extremely bad in this post. It simply states that a logical system that is consistent can't prove everything, and if it ever does prove everything it can only do so by being inconsistent. Likewise, a logical system cannot be used to prove it's own consistency. Basically it just means if you want to prove that a logical system is consistent, you need to use a more powerful logical system, and you can't formulate a consistent logical system that proves everything. It has absolutely goddamned nothing to do with failing, unless you consider a logical system only succeeding when it has proven everything in the universe, including its own consistency, which is just silly. We don't NEED to do that. His theorem is of extreme importence in proofs and mathematics, because it means that one can't prove that math is consistent using math, but it has nothing to do with computer programs /crashing/. That is a gross misinterpretation.

It's made worse because all computer programs COULD crash simply because they are implemented on imperfect devices. But this has nothing to do with Godel's theorem, it has to do with physical limitations. Saying Godel's theorem proves all programs eventually crash is like saying Einstein's relativity is why time moves slower when you're bored.

blackhole··on Of course this company is for sale
Many people start companies to make money. Other people start companies to build dreams.
← PreviousPage 4 of 6Next →