1,377 karma · joined Apr 26, 2011 (15y ago) · 616 submissions
I'm actually ehsanul (http://news.ycombinator.com/user?id=ehsanul) here on HN, but I switched Google accounts.
comment 14y ago · link · parent
comment 14y ago · link · parent
Also, the STEPS project in general (read the progress reports): http://www.vpri.org/html/writings.php
They talk about "active" or "runnable" maths. The programming languages they create aim to basically mirror mathematical expressions. This in turn makes the programming stack much smaller and easier to comprehend.
comment 14y ago · link · parent
And I hope your last sentence there was just tongue in cheek. :)
comment 14y ago · link · parent
http://en.wikipedia.org/wiki/Ad_hominem
But for the record I did not, in any way, mean to suggest that natep was lesser in any way. But I do think there's an arrogance to him schooling me on how things work on HN given our relative positions.
I think it's pretty clear to everyone reading this thread who's being arrogant.
comment 14y ago · link · parent
A lot of work there has been done in completely replacing the entire current software development stack with something more reasonable (in terms of size/bloat and design). They aim for a full system (frontend user apps to the metal) in under 20,000 lines of code. Check it out. Quite the alternative to C, and everything.
comment 14y ago · link · parent
Though, I think I've heard pretty much all the complaints against JavaScript, many of which are addressed by using something like CoffeeScript.
comment 14y ago · link · parent
Perhaps there shouldn't be as much friction to install a game as going to a web page, but you can't deny that installing a game is currently not nearly as streamlined and easy as clicking a link. Even though it could be, or even should be. The main issue is that you have to wait to install the full game. A WebGL game would instead just download the minimum required to play the first level, and get you started playing the game ASAP.
The other thing though about a game being tied to a link is that it becomes a part of the web. Others will link directly to the actual game, rather than a page that lets you download/install the game natively. This ease of sharing is what makes it really powerful to have an in-browser game. The web is simply the ultimate form of distribution. It also seems less invasive compared to installing - you are not making any changes to your computer. Just close the web page, and it's gone (ignoring cookies/cached files). Whereas a native game will create all sorts of shortcuts and basically embed itself into your system. This is more of a perception problem with "installing" in the eyes of the average consumer.
comment 14y ago · link · parent
Surely that shows that there is an issue with multi-threaded programming being prone to bugs rather than parallelism in general? It seems to me like many of the people advocating parallelism as the future of software believe we have to invent better ways to manage that parallelism as well, current methods (particularly threading) being deficient. For example, see Guy Steele's work on Fortress. [1]
[1] http://www.infoq.com/presentations/Thinking-Parallel-Program...
comment 14y ago · link · parent
Since all we get is TCP right now though, you can take advantage of that at least and easily do things like send deltas instead of absolute positions, and even things that depend on reliable order of transmission (which you can't rely on if it were UDP), in order to reduce bandwidth use.
comment 15y ago · link · parent
comment 15y ago · link · parent
It doesn't need a vacuum, but it does help. They don't seem to mention why.
comment 15y ago · link · parent
Anyways, the whole problem with trying to become a billionaire is that it's really a lottery. Sure, someone determined could probably earn a few million through effort alone, but becoming a billionaire requires a special mix of smarts, hard work, and luck. Mostly luck, disproportionately so. You can't just will yourself to earn billions.
comment 15y ago · link · parent
Nit-picking here, but I suppose tansey meant "If the h-ratio is smaller", rather than "greater", since you'd want to ignore upvotes from those who upvote honeypots too much, rather than flag them too much.
comment 15y ago · link · parent
comment 15y ago · link · parent
Anyways, you're right, with lots of assets it probably is a much better way to organize sprites into spritesheet. I just never did anything on that scale. 45 animation frames? Sheesh, I'm happy if I can get 5 or 6. :)
comment 15y ago · link · parent
comment 15y ago · link · parent
Well, if you're using dom-based animation, spritesheets also work better for animations since it's much faster to adjust background-image-position in a div, compared to just replacing the background-image.
comment 15y ago · link · parent
I genuinely have no idea how I can improve the quality of the code in this.
I won't jump to conclusions, but this attitude is kind of indicative of the Dunning-Kruger effect (http://en.wikipedia.org/wiki/Dunning-Kruger_effect) being at play, especially given that you seem to be blaming browser makers for your game crashing.
Even the very best programmers can think of ways to improve the quality of their code. In fact, they're more likely to find problems in their own code - that's part of why they're the best.
In any case, assuming you aren't suffering from the Dunning–Kruger effect, can you mention what attempts you've made to narrow down the problem?
Have you tried disabling parts of the game (like rendering for example) to see if the browser still crashes? That would be a simple, albeit tedious, way of narrowing down where the problem is. Come up with a minimal crash case.
If you find a legitimate problem across all 4 browsers, then you can use that minimal case to demonstrate the problem and file a bug report. Or, more likely, you'll figure out what's wrong in your code this way and fix it.
comment 15y ago · link · parent
nookie here mentions memory use, so why don't you use the profiler in Chrome's web developer tools to find the memory leak (assuming there is a memory leak, as nookie implies). I believe they have some tools to help you in that regard.
comment 15y ago · link · parent
565.
Finderr: Get exact searches back on Google without quotes(finderr.org ↗)
2 points · by ehsanu1 · 15y ago · discuss
comment 15y ago · link · parent