News for hackers. Stuff that matters.

ursus_bonum

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?

Re:The Eve programming language project is winding down on Wednesday January 24, 2018 @07:40PM (#16227757)
FlappyEve inspired my first "Tiny C Game", Flappy, now part of http://TinyC.games
Re:Oh shit, git: Getting myself out of bad situations on Monday December 18, 2017 @04:25PM (#15955659)
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.
Re:History of Emacs and vi Keys (2010) on Thursday May 18, 2017 @06:02PM (#14371480)
This just in: "P" ruled totally illogical for "paste" "V" remains totally logical though of course
Re:Emacs is sexy on Wednesday May 10, 2017 @06:15PM (#14312229)
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?
Re:Reinventing the Git Interface (2014) on Thursday March 30, 2017 @06:18PM (#13999398)
That's odd. gc shouldn't be collecting anything less than 2 weeks old by default.
Re:Reinventing the Git Interface (2014) on Thursday March 30, 2017 @06:07PM (#13999324)
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.
Re:Reinventing the Git Interface (2014) on Thursday March 30, 2017 @05:49PM (#13999188)
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.

Re:Reinventing the Git Interface (2014) on Thursday March 30, 2017 @05:19PM (#13998961)
This. By the time you get good enough at Git to make a reasonable GUI, you don't need/want it anymore.
Re:Text Editor Performance Comparison on Wednesday March 22, 2017 @03:41PM (#13934091)
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.

Re:Snakisms on Monday March 06, 2017 @04:50PM (#13806363)
Indeed.
Re:The Legend of Zelda: Breath of the Wild Review on Thursday March 02, 2017 @03:27PM (#13777861)
That game would have only been improved had down-thrust been available from the beginning.
Re:Bruce Schneier: 'The Internet Era of Fun and Games Is Over' on Wednesday November 23, 2016 @07:23PM (#13026934)
Or you're using Chrome.
Re:Classic IT short jokes collection on Thursday November 17, 2016 @05:38PM (#12982410)
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?

Re:The most elegant implementation of FizzBuzz on Wednesday October 26, 2016 @03:47PM (#12799808)
All I've learned is I can't stand any code called "elegant."
Re:Impossible Coin in Super Mario 64 on Monday October 24, 2016 @04:16PM (#12782447)
IIRC some of his other videos show how you can duplicate and move objects around in-game.
Re:The real Soylent sickness on Tuesday October 18, 2016 @04:11PM (#12738209)
Why is this written as though all of Silicon valley is behind Soylent? It's mildly insulting.
Re:Everything is fine with JavaScript on Tuesday October 04, 2016 @05:42PM (#12639742)
"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.

Re:Skype for Linux Alpha on Tuesday September 13, 2016 @06:24PM (#12492755)
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.
Re:Open Sourcers Race to Build Better Versions of Slack on Thursday March 17, 2016 @09:21PM (#11309155)
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]) {
                                 ^

Older »