HN user

deletes

2,329 karma

HN fix your downvoting problem...

Posts30
Comments656
View on HN
www.google.com 12y ago

Multiple Pivot Sorting Algorithm Patent

deletes
2pts0
www.schneier.com 12y ago

RAGEMASTER: NSA Exploit of the Day

deletes
7pts0
www.datagenetics.com 12y ago

Running in a Marathon (and Tanks)

deletes
3pts0
twitter.com 12y ago

Elon Musk testifying before US Senate Appropriations Subcommittee on Defense

deletes
2pts0
translate.google.com 12y ago

Inside the presidental residence of Viktor Yanukovych, the president of Ukraine.

deletes
28pts9
www.datagenetics.com 12y ago

Newton and Pepys

deletes
2pts0
www.twitch.tv 12y ago

Twitch Plays Pokemon (Enter button inputs via chat)

deletes
1pts0
www.blog.radiator.debacle.us 12y ago

An alternate history of Flappy Bird: "we must cultivate our garden."

deletes
5pts0
www.gemfruit.com 12y ago

King Candy Crushes Developers, The Saga

deletes
177pts43
www.gamasutra.com 12y ago

The UK's porn filter is blocking the latest League of Legends update

deletes
3pts1
www.rockpapershotgun.com 12y ago

King ARE Trying To Candy-Crush The Banner Saga

deletes
2pts0
www.ludumdare.com 12y ago

Ludum Dare 28 Winners

deletes
1pts0
cynagen.com 12y ago

Steam Machines in the wild (with links)

deletes
1pts0
telepathwords.research.microsoft.com 12y ago

Telepathwords, password strength estimator

deletes
3pts0
twitter.com 12y ago

Falcon 9 GEO Transfer Mission - Watch LIVE starting at 5:25 ET

deletes
1pts0
www.spacex.com 12y ago

Falcon 9 GEO Transfer Mission

deletes
10pts1
www.spacex.com 12y ago

Falcon 9 GEO Transfer Mission - 5:00pm EST

deletes
5pts0
www.youtube.com 12y ago

Magnus Carlsen wins game 9, needs a draw to become World Champion 2013

deletes
3pts0
www.schneier.com 12y ago

Security Tents

deletes
26pts13
penny-arcade.com 12y ago

Using game theory at Satan’s dinner party

deletes
2pts0
www.youtube.com 12y ago

Falcon 9 demo flight, including a shot of the 1st stage initiating reentry

deletes
1pts0
www.youtube.com 12y ago

Star Wars: Despecialized Edition v2.5

deletes
4pts2
www.washingtonpost.com 12y ago

Successful launch for Antares rocket; Cygnus spacecraft on way to space station

deletes
1pts0
www.spacenews.com 12y ago

Falcon 9 demo

deletes
3pts0
www.transparencynow.com 12y ago

The Meaning of The Truman Show

deletes
2pts0
datagenetics.com 12y ago

Rotating Images

deletes
355pts44
www.youtube.com 12y ago

Hacking applied to Speedrunning, Half Life:Opposing Force

deletes
2pts2
twitter.com 12y ago

John Carmacks 2013 Keynote

deletes
3pts0
www.datagenetics.com 13y ago

How far can you overhang blocks?

deletes
288pts40
penny-arcade.com 13y ago

Why Valve let two fired engineers keep its secret augmented reality project.

deletes
1pts0

I was curious about this as I have never done any such testing, so I wrote a simple c program.

The object was a struct with a size of a typical game object( 100B ), then I trashed the memory by doing a lot of malloc/free using the size of the object. The two tests were one with an array of objects( contiguous array ) and the other an array of pointers to objects which were allocated separately. Then I iterated over the object doing some very simple operation( just enough to access it, and identical for each object ) and timed this. And of course I trashed the memory some more for each time.

The time taken ratio is:

array of objects : array of pointers to objects

1 : 1.189

The second test is identical except I made some extra effort to make sure that every object in array of pointers was not adjacent to any previous one in memory:

array of objects : array of pointers to objects

1 : 2.483

The difference got much smaller once the operation on each object became more time consuming.

Frames per seconds is better in almost every way. When you use it to watch movies it is better since a normal human understands seconds but not what a frame is. In gaming, frame times usually vary quite a lot, and the average, which is fps, is the important part.

HN got really trigger happy in the last few weeks.

That part of the comment only is partially correct, and not was even the main point of my comment; what I really meant was that it doesn't belong in windows, and the main point was that the code is not portable.

Doesn't run correctly under windows. The code relies on the system call "stty cbreak", which is linux specific.

'stty' is not recognized as an internal or external command, operable program or batch file.

I would love to read comments instead of downvotes. Where am I wrong?

Seriously, what are they waiting for. I'm not a teenager anymore, but If this was a serious app I would totally go catch a few, granted as a joke. And kids would go crazy over this, every single one already has the pokedex( smartphone ), that basically has all required capabilities.

Comment on the blog that got deleted:

I did a similar test in C and have gotten very similar results. When N is around 4000 the trashing version starts to differ substantially. A 3x difference can already be seen when N is 1000.

This means if your program is running on two threads over different parts of the matrix, every single iteration requires a request to RAM.

I'm skeptical over this part, I have tried to replicate this behavior but was unsuccessful. Even though cores are sharing L3, I doubt that a thread will overwrite the entire cache on every iteration.

This is exactly the reason they responded. By changing the code quietly, they would implicate themselves. An official PR statement like this is obligatory.

What is more probable, that they a lying, or that the random generator generated not a single code that matched, which is very(!) improbable by itself, but two codes that belong to the same account, generated at the same iteration.

I think for Carmack the situation is the same as when Id was acquired by Zenimax. So for anyone curious just look what happened then. He doesn't care, as long he can work on the stuff he wants to and he left Id because he couldn't do that( work on VR ). If he leaves Facebook, the reasons will be similar.

It is very easy to win. You shouldn't be able to select 2 or 4. The decision should be random and that would be fair like the original.

The easiest solution is to have just one 2 on the table, then spam 4 in corners.

Best( lowest ) score: 1684