Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yoklov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
421.
▲
by
yoklov
11y ago
Just out of idle curiosity, what's a more reasonable rate?
422.
▲
by
yoklov
11y ago
I don't think this was done for the purpose of optimization. Usually this happens when you want to add support for one small change, and its easier to get a small patch in vs a big one. Its not really the classic case of premature opti
423.
▲
by
yoklov
11y ago
I used to think SSAO looked fine until I implemented it. Now it sticks out like a sort thumb and one of the first things I do when I play a game is I turn off the SSAO in the graphics settings.
424.
▲
by
yoklov
11y ago
I'm not really qualified to speak as to its statistical properties, but I've used this generator a couple times. The biggest downside I ran into is that it requires 64 bit numbers even for the 32 bit RNG, which means its very simp
425.
▲
by
yoklov
11y ago
I'm a game developer who has used flash in the past, and does HTML5 mostly now. HTML5 without WebGL doesn't match the functionality offered by flash, even for just 2D content. HTML5 with WebGL runs fairly poorly on a lot of machin
426.
▲
by
yoklov
11y ago
This is the biggest issue IMO. Seeing flash go the way of DOS and etc. would be very sad.
427.
▲
by
yoklov
11y ago
Java Applets are hard to run on many machines (apple machines are especially bad in this respect), even for technically skilled users. It would be very sad to see this become the state of all the old flash games/animations.
428.
▲
by
yoklov
11y ago
It's been a while but I'm pretty sure the issues here only happen in extremely contrived edge cases. Not to say they aren't big deals or to downplay them, but I don't think even that would catch them reliably. Not withou
429.
▲
by
yoklov
11y ago
A separate but more important issue is that you still have two copies of any global state managed by/contained within that library in memory. That is basically guaranteed to lead to bugs.
430.
▲
by
yoklov
11y ago
And Digg lost for several reasons, but one of them wasn't that it moved too slow. More the opposite, really. They released a buggy version too soon, when the users were already angry and considering leaving.
431.
▲
by
yoklov
11y ago
Not sure this is the answer (I actually doubt it), but possibly because Make works poorly, and requires painful setup on Windows?
432.
▲
by
yoklov
11y ago
> "In Smalltalk, everything happens somewhere else." - Adele Goldberg Am I the only one that thinks this sounds like a maintenance nightmare? I don't understand how this could ever be a good thing.
433.
▲
by
yoklov
11y ago
Because printf is just a function, and doesn't have access to the type information at the call-site.
434.
▲
by
yoklov
11y ago
Never used Go, but I've written a lot of C in the past and I think the point you're missing is that they probably intend for you to use a special purpose data structure when a map or slice doesn't fit your needs. When it'
435.
▲
by
yoklov
11y ago
Well, if they fired her at this point, I doubt anybody would believe that was the reason. Not that I have an opinion on the subject of what reddit should do.
436.
▲
by
yoklov
11y ago
The thing definitely looks out of place, and isn't nearly as convincing as the scenery, but I imagine that in real-time it would be quite convincing.
437.
▲
by
yoklov
11y ago
Long compile times and bloated binaries do come with the platform for C++, but (with experience) you get pretty good at minimizing both of those with little effort. This also tends to lead to a fairly clean dialect of C++ (closer to C), and
438.
▲
by
yoklov
11y ago
You'll still have more than if you had used an array, due to the low information density (2 extra pointers / node).
439.
▲
by
yoklov
11y ago
Well, repainting at 30 or 60fps is going to heat up a lot of computers, demanding graphics or not. Although you're probably right that it's mostly a Unity Linux support issue. My understanding is that Unity Linux support is mostly
440.
▲
by
yoklov
11y ago
IIRC TIS-100 is implemented using Unity, which doesn't really give you a lot of leeway as to when you update and render (e.g. you choose a framerate and it renders and updates your objects at that rate). Admittedly, since most of the t
441.
▲
by
yoklov
11y ago
I'm not really well informed here, but I'd guess that he means how the animations, visual effects, Ui, etc. actually look and behave, rather than new specs. One thing I've noticed several times is that in chrome, many CSS ani
442.
▲
by
yoklov
11y ago
It's older than Rails, I remember the interpreter being described as magic in SICP. It was mentioned as such several times over the course of the book, and was somewhat thematic. Until, of course, the final chapter (or was it the chapt
443.
▲
by
yoklov
11y ago
No, but that does sound like it could be an interesting article.
444.
▲
by
yoklov
11y ago
Really? I frequently hear people spend time on projects and have the outcome be 'fuck that, never again' or similar. I don't think that's uncommon, unless I'm misunderstanding you.
445.
▲
by
yoklov
11y ago
Sure, malloc/free are slow, but in realtime code (and probably embedded too, but I've never worked there) you allocate out of arena to get around that. Suddenly your memory allocation routine is a pointer addition, and you don&#
446.
▲
by
yoklov
11y ago
I know you're joking, but it's pretty much infeasible to test the kind of bugs typical in games using automatic testing. So much is content driven, and the state space is far too large. Even for stuff that's fairly testable,
447.
▲
by
yoklov
11y ago
> didn't account for pixel density of the display You can easily tank the framerate if you account for this. At best, it should be an option in the video settings (if you're going to have them).
448.
▲
by
yoklov
11y ago
Yes. Does it matter? It depends. If you're writing a game in python, you're going to have a bad time. Yes, I know CCP does it, but from what I've heard their engine is C++, and even then it's been a long, uphill battle.
449.
▲
by
yoklov
11y ago
In game programming you want it to be 0 as often as you want it to be 1 (or really, less often). Just write a safeDiv function that takes an argument for what the result should be if the denominator is zero.
450.
▲
by
yoklov
11y ago
Its easier and cheaper to both write and interpret a pure data api. A pure data api is going to be more easily compressible, more performant, and easier to specify (since execution state or time never enters into the picture). It also avoi
More ›