ursus_bonum
ursus_bonum on Hacker News
This looks like a lot of complexity up front with no foreseeable payoff.
Why are we implementing a whole dynamically allocated stack for states before doing anything domain specific?
How many states could you possibly be expecting to have in a full game? 3? 12? 100? The examples of states were like the menu, action screen, and pause screen. So it sounds like very few. Drop the realloc'ing and free'ing and just statically allocate N states and be done with it. Save this complexity for something that really needs it.
Plus are you going to free the stack any time other than when you quit the app? I doubt it. The OS will free everything for you when you quit so there's no reason to waste time on that either.
The code so far looks like mostly a waste of time.
This is clearly explained at the beginning of the article.
Google would have stepped on Octocat's neck and blown its pretty little head off.
Microsoft will either low-key torture it to death or leave it alone. Who's to say?
I use git in this particular way, and if you do anything different you are WRONG AND BAD or you have IMPURE MOTIVES!
I think I'll just hold my breath until the next Apple embarrassment.
Hmm yeah. Maybe censorship isn't the best weapon to use against Nazis.
This just in:
"P" ruled totally illogical for "paste"
"V" remains totally logical though of course
This satire is a little too subtle for me, assuming this isn't real.
This precisely. What is going on in here? This story has nothing to do with Twitter banning certain accounts, so why is half the discussion about that?
That's odd. gc shouldn't be collecting anything less than 2 weeks old by default.
That's fine but the article doesn't mention any popups. It just makes it sound like all of this will happen in the background without bothering the user.
This is such a classic example of not thinking things through.
The graphical manipulation stuff sounds cool until you think about what happens when it causes merge conflicts. I mean the graph stuff is still cool but it does very little for the hard problems.
The automatic committing for WIP and "magic" pushing/fetching sounds cool until someone switches branches and accidentally commits 3.1TB of junk files they left lying around and it automatically syncs to EVERYONE else on the project.
People complain now that Git is "too complex" just wait until it's automagically doing shit like that.
This. By the time you get good enough at Git to make a reasonable GUI, you don't need/want it anymore.
Me too. vim -u NONE is a life saver.
/me waits for someone to say we shouldn't have 3GB xml files in the first place, like I don't know that already.
That game would have only been improved had down-thrust been available from the beginning.
Two strings walk into a bar.
The first string says, "I'll have a rum and coke."
The second string says, "Same here.#uu6€^My¥ZZ~~0◀<bell><bell><bell><tab>000x[,_5"
And the first says, "Sorry, my friend here's not null terminated."
Maybe compilers shouldn't have stupid extensions that make it possible to crash/hang the compiler?
Yeah but if I floss regularly my gums stop bleeding when I poke at them.
What more do I need?
All I've learned is I can't stand any code called "elegant."
IIRC some of his other videos show how you can duplicate and move objects around in-game.
Why is this written as though all of Silicon valley is behind Soylent? It's mildly insulting.
"is the problem with the technology, or is it the unnamed antagonist with that judgmental snark?"
Um yeah. I thought that was the point? No one seriously thinks it's Javascript's fault that there are a lot of frameworks and stuff. It's the culture around it.
I'm terrified to install this b/c the crusty old Skype-for-Linux already works fine, whereas my up-to-date Skype-for-Windows doesn't work at all.
The only problem I have with my Roomba is guests always freak out "Isn't it going to fall down the stairs?!?"
Other than that it works quite well.
How does it know if I'm driving, or merely a passenger? This seems impossible.
I don't know why people think Slack is any good to begin with. It's fine at first but the more people use it the more unwieldy it gets.
Email's pretty crappy but at least with email I get small, contained threads of conversation that can be searched and organized easily. Slack is like having a few giant never-ending email threads. It's horrible.
And there's still no voice.
FWIW I compiled this with gcc 4.9.3 -O3 and got:
satd.c:7:29: warning: iteration 15u invokes undefined behavior [-Waggressive-loop-optimizations]
for (dd=d[k=0]; k<16; dd=d[++k]) {
^