Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yoklov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
69 ms
·
631.
▲
by
yoklov
12y ago
Sure, but that rarely matters here, as artists are working on the assets.
632.
▲
by
yoklov
12y ago
Not much commercial game development goes on on github, which IIRC is the only way to use the github client. (Where I work we have a local gitlab.)
633.
▲
by
yoklov
12y ago
Some of these new sources of undefined behavior are quite concerning. Converting an enum to a value outside it's range is extremely common, as enums are frequently used as bitmasks and the like. The bit about optional will likely bre
634.
▲
by
yoklov
12y ago
Well, given that the original target for Go was C/C++ programmers, the stance on error handling makes perfect sense. Exceptions are arguably one of C++'s largest mistakes, and it requires careful thought to write code in a complet
635.
▲
by
yoklov
12y ago
>It was nice to be able to quickly get some stuff going and then realize "Oh wow, my program is slow." Then I learned how to use VBOs and shaders and eventually got a pretty good handle on how to work it all. Unfortunately this
636.
▲
by
yoklov
12y ago
> OpenGL 3.x certainly helped by consolidating a lot of stuff which was in extensions, but in my case its not really that good for me as I still have to put up with the land of OpenGL 2.x. Ha, where I work we still get support tickets ab
637.
▲
by
yoklov
12y ago
I don't disagree with what you're trying to say, but this is my line of work so I have a few nits, sorry. > these APIs are very thin abstractions over the actual assembly-level instructions sent to the graphics card If only thi
638.
▲
by
yoklov
12y ago
There's some good and bad advice here. Avoiding (or at least thinking about) branches, avoiding mallocs, and simplifying equations out by hand before you code them are all hugely worthwhile. Thinking about the memory usage access patte
639.
▲
by
yoklov
12y ago
Sorry if I've misunderstood you, but I can't imagine many/any programs (even games) which function, well, at all if random transistor error is introduced.
640.
▲
by
yoklov
13y ago
Thats what people typically market it as, but when you use it, it has mor in common with various GUI toolkits. Lots of windowing, and the like, but not much drawing. Not sure if that makes it a framework, though.
641.
▲
by
yoklov
13y ago
Alternatively, write most of it in C++ and allow it to be extended with components written in script, ECS style. Or something else. Honestly, having too much scrip is very much a thing to try and avoid. Perf (gc, etc), long term maintainabi
642.
▲
by
yoklov
13y ago
I'm pretty sure the Boehm GC isn't heap compacting. It at least didn't used to be, and if it is it works in some way I cannot fathom, as I'm not sure how you can compact the heap without changing the value of pointers, w
643.
▲
by
yoklov
13y ago
Not every API is that consistent. JavaScript's `XMLHttpRequest`, for example...
644.
▲
by
yoklov
13y ago
The big reasons for avoiding the STL are (in my experience) 1. Holdover from when STL implementations were buggy 2. Holdover from C 3. Avoiding exceptions it might throw if you compile with exceptions off 4. Many STLs are slow and unoptimiz
645.
▲
by
yoklov
13y ago
I don't have a strong opinion either way (I probably like snake case more, but use camel/pascal case basically everywhere) but this doesn't work as well when acronyms are involved. e.g. is it XmlParser or XMLParser? I'd
646.
▲
by
yoklov
13y ago
It's not really a VM then though, just a compiler. EDIT: Maybe also a runtime.
647.
▲
by
yoklov
13y ago
It's probably possible, but it's not really worthwhile. In the best case scenerio, it's the same amount of work as writing one in C++. The benefits and nice features of those languages would cancel out the drawback of lack of
648.
▲
by
yoklov
13y ago
It's LGPL though, which is too restrictive for some projects (especially as a static library).
649.
▲
by
yoklov
13y ago
Not that I disagree with the sentiment, but days is a bit much. If I'm that low level I'll probably take a look at the generated assembly, even if I think it is my fault. I don't think that's too uncommon either. It help
650.
▲
by
yoklov
13y ago
You basically split it up in a similar way that you'd use in an OO language, except you don't have inheritance and only have composition. Specifically, you break apart the logically distinct portions of your structs and you make t
651.
▲
by
yoklov
13y ago
Well, this can actually have a pretty significant effect on the feel of the game so depending on what kind of game you were prototyping, it might be worth it (though, your better off hardcoding a few cases of SAT than trying to get it worki
652.
▲
by
yoklov
13y ago
Because C++ is crappy, but doesn't really have any serious competitors within it's domain.
653.
▲
by
yoklov
13y ago
I'd be very annoyed if my compiler didn't turn the latter into the former on platforms where it was more efficient.
654.
▲
by
yoklov
13y ago
On mac, Cmd+Ctrl+Shift+4 will work with this for regions. If you hit space before selecting anything, you can select by window. This is nice, as I rarely want to capture my whole screen.
655.
▲
by
yoklov
13y ago
Lysp uses a lot of non-standard (and rarely implemented) extensions, and so would be very hard to use in most places. The author's own Maru ( http://piumarta.com/software/maru/ ) might be better suited for this
656.
▲
by
yoklov
13y ago
ChibiScheme ( https://code.google.com/p/chibi-scheme/ ) tries to be that. I've considered using it but have avoided it due to its relative newness and a few portability issues.
657.
▲
by
yoklov
13y ago
Unfortunately, Guile is both larger, and less portable than Lua. It's also licensed under the LGPL, which is harder (or impossible) to use in some environments than Lua's MIT-like license.
658.
▲
by
yoklov
13y ago
Well, these are green threads, if you need to do actual concurrency you should probably look elsewhere. And, lighweight looks like it refers to the minimal amount of code in the library. Its a handful of fairly short files, enormous by no s
659.
▲
by
yoklov
13y ago
Speaking as a C++ programmer, Rust appeals to me a great deal over Nimrod because you can turn off (or just not use) Rust's GC and still have memory-safe code. I believe you can turn off Nimrods GC as well, but you lose any guarantee o
660.
▲
by
yoklov
13y ago
No, but the Racket OO system is based on BETA's implementation of OO, and Racket has some actual users. There's definitely some interesting ideas there. For example, `inner` being the opposite of super (e.g. call the subclasses im
More ›