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 What's your C migration plan?
And yet, this still ignores the rather amusing fact that the more libraries and VMs and whatnot in between you and the computer hardware, the more chances your program will suffer a security hole because of a mistake in one of those libraries. Not too long ago someone found a bug in PHP that would cause it to go into an infinite loop if you put in a wrong number. These kinds of things happen, so if your going to write secure code, the only thing that will save you is being really good at writing secure code on whatever platform you are choosing to write code for. The only thing that changes is the types of security holes you have to worry about. Instead of buffer overflows, you have to know that function x does x and in some cases function y is more secure but only if there's a solar eclipse, etc. The higher level language you use, the more complexity the system has, which increases the possible security flaws even as the languages reduces other security flaws. The end result is simply that any given language will move the problem around, not actually solve it.
blackhole··on What's your C migration plan?
Changing languages will not save you from security holes, only change the kind of mistakes you have to worry about. Only knowing how to write secure code can save you from security holes. You cannot ignore how computers work, no matter how many layers of abstraction and libraries you pile on in an effort to shield yourself from reality.
blackhole··on Anti-Patent Trolling Patent
From the description of the patent: "The inventor and the assignee of this patent have no intention of applying the techniques described herein offensively but instead intend to use the patent defensively to discourage patent trolls and the like from extortionist practices."
blackhole··on The State of the Art is Terrible
Every now and then I decide I don't like being a programmer anymore. And then I remember its the only thing I'm good at.
blackhole··on When TDD Fails
This gets complicated in a graphics engine where the only place you can tell something has gone wrong is after the image shows up in the wrong place. It would help a lot for the majority of cases, though.
blackhole··on When TDD Fails
That would be fantastic if I didn't write everything in C++
blackhole··on When TDD Fails
I'm currently building a test framework for my graphics engine, and have run into the exact problems described in this post. A graphics engine, by design, must be able to do millions of different things that are created by the interaction between relatively few methods, none of which can go wrong at any time. One of my new features is probably buggy, but attempting to brute force test border conditions requires tens of thousands of tests because of all the interacting elements, any two of which could interact in just the wrong way to blow something up. It gets even more ridiculous when you have precision bugs, where only certain numbers in certain ranges in certain cases will explode. Testing that using inputs is impossible.

This occurs so often and with such regularity I am now convinced that everything I write is riddled with bugs that I will probably never find without beta-testing in real-world scenarios, plus many more bugs I will simply never find because they never come up.

A much better design would be a test platform that analyzes the assembly structure to pinpoint actual edge cases in the code itself, which could then be used as a guide for finding bugs instead of relying on hundreds of thousands of test cases.

blackhole··on The world economy is heading towards a black hole unless bold action taken
I am continuously amused by people vehemently arguing about topics they have almost no expertise in and thinking whatever insane batshit theory they have is better than a PhD doctorate's advice.
blackhole··on Size is the best predictor of code quality
The fact that this is apparently not painfully obvious is almost as pathetic as the fact that people actually try to use it to justify programming languages that reduce the lines of code instead of learning how to write code that isn't terrible. A giant, bloated codebase written in erlang is still a giant, bloated codebase.

That isn't to say erlang or any other language isn't worth learning (they are), its just that no language can save you from bad programming.

blackhole··on The Problem of Vsync
Running an input thread side-by-side only partially solves the problem by simply increasing the chances that a key hit will be detected before the render is completed. Unfortunately, most input detection, by necessity, is done near the start of the render loop. Consequently, the vast majority of the render time will still be spent with most of the inputs locked in, resulting in little to no reduction in input lag. I should also note that windows really, really hates it when you try to do this.
blackhole··on The Problem of Vsync
This is a complicated issue that has already been discussed on a previous submission: http://news.ycombinator.com/item?id=2711231
blackhole··on The Problem of Vsync
5hoom is correct - the problem is the technique. Simply put, if you don't want any input lag, you have to IMMEDIATELY render to the screen, which by definition will cause tearing. The windows DWM does not have this problem, but judging from a large number of presentation API functions I toyed around with in the DirectX9 Ex, they are probably using a very low level flipping technique available to the operating system to eliminate the input lag. I have not been able to find anything concerning how they manage this and if I could utilize it for a fullscreen game, nor have I investigated whether openGL implements a working triple buffer system (mostly since I can't use it... yet). The real question here isn't whether it affects Linux, its a question of whether Linux provides an alternative technique (presumably via openGL) that can be utilized by a game developer.
blackhole··on So you want to be a video game programmer? - The Specs
While a lot of people inevitably dislike these kinds of high-and-mighty accusations of superficiality, as an aspiring video game programmer whose sole goal in life is to have the maximum positive impact on humanity possible, I have given this much thought. I have a rather interesting combination of analytic and artistic talents that can only be fully taken advantage of in the context of a game and its engine. I have looked at other industries, but in all of them they only utilize a subset of my abilities. In my attempt to optimize my impact to the absolute maximum, I have come to the conclusion that making games is what I am best at doing, and I must use this to push forward society in any way possible, even if it is only to give people a spark of hope when the world seems to be eating itself alive.

Sometimes, games are the most useful thing one could ever work on.

blackhole··on Large-scale Amazon EC2 Outage
This really isn't a problem if you aren't storing anything sensitive, especially if you aren't even paying for it.
blackhole··on On Hacking (or Why We Need Security Ratings)
I am convinced that something will have to happen, and I agree that the insurance deal sounds promising. Companies will be forced to have good security if they want good insurance.
blackhole··on On Hacking (or Why We Need Security Ratings)
So why, then, do you think that incentives that have nothing to do with the average consumer are sufficient? The average consumer is still helpless here. They simply cannot know if a company has good security or not, especially if its new - like a startup. The end result is that most of them assume that all security is bad. We have seen this before, repeatedly, and its even showing up in the comments of HN: http://news.ycombinator.com/item?id=2671441

People keep asking if good security is even practical. Security experts know it is, but nobody else does. If the incentives you describe were actually working, we would be properly assigning blame to bad security, instead of everyone simply asking if good security is even possible.

blackhole··on On Hacking (or Why We Need Security Ratings)
But there's no incentive to implement these fixes. Unless the market can figure out the difference between good security and bad security, people will just assume all security stinks and there will be no improvement. This is what has been happening.
blackhole··on The GPL Sucks
No, because the LGPL prevents using the actual code in your program. The idea is to have a license that requires only the program source in question to be released when it is modified, and for it to be released under the same license. In this way, the program and all its modifications must remain usable by both open-source and proprietary programs. The LGPL permits converting code to GPL, which deliberately prevents modifications from being used by proprietary programs. Even when this is removed, it still specifically prohibits any sort of static linking or usage of any of its code inside a proprietary application. One has to use a dynamic DLL link, which flat out doesn't work for any template-based or inline'd C++ functions and is a very confusing legal mess.
blackhole··on The GPL Sucks
I would appreciate it if you had actually read my blog post where I spend a paragraph explaining why the LGPL doesn't solve this problem :)
blackhole··on The GPL Sucks
I don't know why you say I champion the BSD license, I only used it as an example. I have never used the BSD license, for the very reasons you just stated - it is at odds with what I want the program's code to be used for.

These terms are not contradictory. Anyone can use and distribute the code for whatever purpose, and any changes made to the code must be made available to the open source community, just like the GPL, except now only that part of the program must be released as source code, and the unrelated portions of the program are free to remain proprietary. This isn't incompatible, and it isn't the GPL.

blackhole··on This Guy Has My MacBook
Well this makes me feel safe while going to the UW. </sarcasm>
blackhole··on Linux 3.0-rc1 is here
http://www.xkcd.com/178/
blackhole··on Poll: Do you support software patents?
An effective business model does not require patents, because by the time someone copies your idea well enough to be a threat, you've already come up with a better way to do it. Trying to make a business out of inventing one thing has never worked - you stay in business by inventing things faster than your competitors.
blackhole··on Ask HN: Why Am I In College?
The CS department rejected someone with a 3.7 GPA. I have a 3.4 GPA and scored so high on the AP exam I was exempted from both introductory courses. Their "standards" are exactly the problem here - I'm learning a lot from all of my classes simply by reading a textbook I can check out from the library, and I've taught myself everything I know about programming. Why should I subject myself to unreasonable standards for no benefit? Leveraging a situation only benefits you if it doesn't waste your time.
blackhole··on Ask HN: Why Am I In College?
I've been working on this project for almost 3 years and have finally gotten to a point where I'm close to getting a finished product, so no, it's not a matter of commitment. College financials are not a concern (and my grades are very good, the CS department is just anal). I can make a quality product, but shipping it and making money off of it is what's up in the air.

You are correct in that it is entirely possible for me to do both college and startup at the same time, I just don't want to be carrying a 5 pound rock with me on a marathon if I don't need it.

← PreviousPage 6 of 6