Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yoklov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
64 ms
·
571.
▲
by
yoklov
12y ago
Chandler Carruth's CPPCon talk [0] this year was also great (surprisingly, as I had a fairly low opinion of most of the others). It wasn't better than Mike Acton's [1], but I suspect that it was more actionable for most devs.
572.
▲
by
yoklov
12y ago
> See my response... That's very interesting, and would definitely solve a lot of the problems with hot-reloading code. >> There are many different versions of lisp, some of them are used for scripting, but most implementation
573.
▲
by
yoklov
12y ago
That's a pretty ridiculous use case. I'd think if you wanted to make a change this drastic, having to reload the game wouldn't be a huge deal. I mean, you'd want to make sure everything up to the point you were at still
574.
▲
by
yoklov
12y ago
The big downside with this is that you can't use function pointers or addresses to static memory (which means need to be careful with e.g. string literals). This is a pretty heavy restriction, and is too much of a limitation for a lot
575.
▲
by
yoklov
12y ago
This isn't really a good comparison at all. Game developers make around 10-20k less than a typical software engineers salary. That's still far more than a lot of lines of work. Maybe what you're saying is true if you'r
576.
▲
by
yoklov
12y ago
I used to take Ritalin, and it had serious negative effects on me after a while. When it would wear off I would become depressed and unable to do anything until the next morning when I would take it again. Since then I've been diagnose
577.
▲
by
yoklov
12y ago
> That is your opinion Well, it's not really an opinion though. Unless everybody had a perfectly equal standard of living (which sounds vaguely Harrison Bergeron-esque) there will always be a lower class, even if they have a rathe
578.
▲
by
yoklov
12y ago
That's a fairly compelling argument, but I definitely have had times where I wished for a numpad on my Macbook, mainly so that I could play games that required them (I went through a few months where I played through several traditiona
579.
▲
by
yoklov
12y ago
Really? You don't think they'd want to be able to show their friends? Mobile might be an artificial use case or a premature optimization, but it is solved with his choice of JS.
580.
▲
by
yoklov
12y ago
> ... a Scheme implementation with as many and as complete of a selection of libraries as Python. It's not quite the same size, but the Racket standard library is fairly close in size to pythons. It also has better GUI support, IIRC
581.
▲
by
yoklov
12y ago
Ah, the note at the top of http://luajit.org/sponsors.html had made me think he was not.
582.
▲
by
yoklov
12y ago
If you're going to move to a static language, I'd recommend Go over Java or Scala. Especially if you like duck typing (it has a static flavor of duck typing). I haven't used it for anything nontrivial (you can pry C from my c
583.
▲
by
yoklov
12y ago
My understanding is that LuaJIT isn't really under active development anymore. It does seem like it would be hard to add the 5.3 features to LuaJIT without compromising on efficiency, but given how clever Mike Pall is, I'd suspect
584.
▲
by
yoklov
12y ago
My guess is that this would still be a bottleneck in practice. LuaJit has a similar feature, and Mike Pall has said several times that if you care about performance, you're almost certainly better off using 100% Lua, because calling in
585.
▲
by
yoklov
12y ago
This makes a lot of sense, and makes me appreciate the choice more (although my gut feeling was that it was a good idea).
586.
▲
by
yoklov
12y ago
Well, it's harder to grep, for one (although far from impossible).
587.
▲
by
yoklov
12y ago
Examples != a game, and given that scenario, I would recommend trying to make a game at this point, but I'll leave it be. And that's fair. I didn't think this way until after working in industry for a while, and my code from
588.
▲
by
yoklov
12y ago
Honestly, it sounds like you are over-engineering this... Forgive me if I'm wrong, but the impression I'm getting here is that you're writing the engine before the game. Never do this. Just don't. What you should do inst
589.
▲
by
yoklov
12y ago
I'm a game developer and I don't use inheritance a lot, and when I do use it it's almost never for virtual dispatch. (I wouldn't mind it being added to Rust, but I don't expect I would use it). Anyway, if you'r
590.
▲
by
yoklov
12y ago
Depending on what you're doing its still frequently better than Win32 (which has an extremely broad range of API and documentation quality), or linux (which is just downright screwy at times). Although all bets are off if you're i
591.
▲
by
yoklov
12y ago
Part of it would be done on a shader (mainly the visual portion, like the glowing and whatnot) but I think most of the effect would need to be done on the CPU. You might be able to make it work with clever usage of geometry or tesselation s
592.
▲
by
yoklov
12y ago
For those who are curious, Part 1 of Chandler Carruth's Pass Manager talk is avaliable here: https://www.youtube.com/watch?v=rY02LT08-J8 (slides: http://llvm.org/devmtg/2014-04/PDFs/Talks
593.
▲
by
yoklov
12y ago
The macro usage might look daunting but most of it is pretty typical for libraries without platform dependancies (lots of compiler dependant config and shims for missing libraries). Look for "BEGIN PUBLIC API" for the stuff you&#x
594.
▲
by
yoklov
12y ago
Even indie games can benefit a lot from components, and a basic component-entity system is very easy to implement. Make component and entity classes, give the entities a list of components, put the update method in the component, and put mo
595.
▲
by
yoklov
12y ago
Not if you need them versioned.
596.
▲
by
yoklov
12y ago
Caveat: I'm not a rendering engineer (though I do work in game development), so my knowledge might be a bit out of date or imperfect. It's very clever, and leads to pixel-perfect shadows. the other main technique used to do real t
597.
▲
by
yoklov
12y ago
`-ffast-math` is a double-edged sword. It can frequently optimize away stuff like NaN checks and the like, breaking code that uses NaN as a missing value. This, specifically, has bitten me before, but there are certainly other areas that it
598.
▲
by
yoklov
12y ago
Probably because until relatively recently, MS has not open sourced very much or any software, whereas Apple has a number of notable open source projects (LLVM/Clang, Webkit/JSCore, ...). OS X is also build on open source software
599.
▲
by
yoklov
12y ago
I think his point was that the standard (even C11) leaves a great deal of implementation-specific behavior. C++11 has the same problem (as it has the same implementation specific behavior as C), but the standard library allows you to avoid
600.
▲
by
yoklov
12y ago
The biggest downside of display: table and friends is performance. Changing any CSS or DOM properties will basically cause a full page (!) relayout and repaint on a lot of browsers (especially mobile safari).
More ›