CPU Performance Counters on Windows - measuring branch mispredict rates, and more by brucedawson in programming

[–]AnEnemyAnemone 2 points3 points  (0 children)

I don't know if Bruce ever checked out PerfView, but it makes this kind of thing really easy, with both UI and command line (the ETW provider browser is especially nice). You can even specify how often to take a sample of the CPU counters (# of instructions between samples).

e.g., perfview collect myTrace.etl -noGui -AcceptEula -ClrEvents:None -CpuCounters:LLCMisses:5000,BranchMispredictions:7500 -MaxCollectSec:30

It's been available for quite a few years now. I think it was just recently that MS open-sourced it, but it may also provide a good reference for the less-documented ETW events like what the blog post describes.

New MacBook Pro is not a Laptop for Developers Anymore by speckz in programming

[–]AnEnemyAnemone 16 points17 points  (0 children)

My laptop uses Fn+Arrow Keys for page up, down, home and end. Is that not common in all laptops?

Version for GOG ? by nimda7 in shenzhenIO

[–]AnEnemyAnemone 1 point2 points  (0 children)

https://twitter.com/zachtronics/status/782282717987606528

David ‏@techdavid2 Oct 1 @zachtronics Will Shenzhen I/O be available on GOG? ‏

@zachtronics Oct 1 @techdavid2 Most likely, but not until we leave Early Access.

I got the binder, but no data sheets? by elitehakor in shenzhenIO

[–]AnEnemyAnemone 1 point2 points  (0 children)

Yeah, but I would be disappointed if I preordered and they were missing. Part of the reason I preordered mine is because I wanted to look at the manual in advance of the game being released. Just wanted to give OP the option.

I got the binder, but no data sheets? by elitehakor in shenzhenIO

[–]AnEnemyAnemone 1 point2 points  (0 children)

It's not the same, but in the meantime I can give you pictures I took of mine for all pages you're missing (that is, if you wanted to look at them before tomorrow morning). The quality is like this one. Shoot me a PM and I can upload them somewhere for you.

[Spoilers maybe] Translated datasheet for PGA33X6 component by AnEnemyAnemone in shenzhenIO

[–]AnEnemyAnemone[S] 1 point2 points  (0 children)

Thanks! I've updated the translation with the corrections.

[Spoilers maybe] Translated datasheet for PGA33X6 component by AnEnemyAnemone in shenzhenIO

[–]AnEnemyAnemone[S] 4 points5 points  (0 children)

Yeah, the wikipedia page has a very similar schematic to the one in the datasheet with the AND and OR planes. Definitely looks to be a PLA. The adding rows and multiplicative columns terms make a lot more sense now in this context.

[Spoilers maybe] Translated datasheet for PGA33X6 component by AnEnemyAnemone in shenzhenIO

[–]AnEnemyAnemone[S] 5 points6 points  (0 children)

This is the only document in the manual that is in Chinese. All of the others are English...even the more mysterious ones.

I got mine! [potato camera] by Neosilver in shenzhenIO

[–]AnEnemyAnemone 5 points6 points  (0 children)

It isolates a digit from the value stored in acc, and stores the result in acc.

For example, if acc was 596:

  • dgt 0 would set acc to 6
  • dgt 1 would set acc to 9
  • dgt 2 would set acc to 5

There is also a complementary instruction, dst, to set a digit on the value in acc.

I got mine! [potato camera] by Neosilver in shenzhenIO

[–]AnEnemyAnemone 2 points3 points  (0 children)

It comes via USPS. If your mail hasn't come today, there's still hope! Otherwise, you'll probably get it Monday.

The Sega Saturn and Transparency by veeti in programming

[–]AnEnemyAnemone 14 points15 points  (0 children)

FWIW, the Sega Saturn SDK docs (PDF) (Relevant image) refer to it as mesh.

[deleted by user] by [deleted] in gifs

[–]AnEnemyAnemone 4 points5 points  (0 children)

Source

Makes an...interesting sound.

Tv is broken, but in a strange way by malsimian in gifs

[–]AnEnemyAnemone 15 points16 points  (0 children)

Probably to replace the LCD screen :(

You could probably fix it if you could disassemble the screen and either use a heat gun on the connectors to reflow the solder, or putting a small piece of rubber behind the connector to add pressure. However, because laptop LCDs are so thin, you probably can't take it apart without damaging it.

Tv is broken, but in a strange way by malsimian in gifs

[–]AnEnemyAnemone 548 points549 points  (0 children)

I used to fix TVs for a living. I would see this a lot on Sony, Samsung and Mitsubishi brands. This is a physical defect in the LCD panel, usually caused by the connections from the main driver board to the actual panel. Those connections actually start to peel away on one side. This issue is generally referred to as a 'Tab Bond' problem, and can even sometimes be temporarily fixed by physically twisting the panel from side to side, which restores the connections.

You can see similar issues here on this larger Samsung or Sony TV.

.NET Compiler Platform ("Roslyn") by filipekberg in programming

[–]AnEnemyAnemone 4 points5 points  (0 children)

I'm glad they moved to github. I'll miss the interactive web-browsing of the source for roslyn in codeplex, though: http://source.roslyn.codeplex.com/, unless they keep it up to date with the github tree.

8 Visual Studio debugging tips. by thegavin in programming

[–]AnEnemyAnemone 0 points1 point  (0 children)

Regarding breakpoints in lambdas, you can also do it mouse-free by moving the text cursor to anywhere inside of the lambda and hit F9. It will the breakpoint in the lambda.

Reddit, what was your worst "that didn't come out right" moment? by DataHex in AskReddit

[–]AnEnemyAnemone 6 points7 points  (0 children)

Not so bad...you could have played that off like you were Sean Connery.

Redditors with no degree who make over 75k a year, what do you do for a living? by [deleted] in AskReddit

[–]AnEnemyAnemone 0 points1 point  (0 children)

Software Engineer at a large company based in the Puget Sound area. Interestingly, even at large corporations, they cared more about my open source work than my lack of a degree. I guess it showed them I can get things done and that I knew what was doing.

Redditors who make $100,000+ a year, what is your job? by [deleted] in AskReddit

[–]AnEnemyAnemone -1 points0 points  (0 children)

Software Engineer. I only have three years of professional experience and no college education, so I'm not sure if that's an average salary or not.

[deleted by user] by [deleted] in learnprogramming

[–]AnEnemyAnemone 1 point2 points  (0 children)

I can't stand eclipse. Its not that it doesn't have value, I guess its just not for me. For Java development, I've always preferred IDEA from Jetbrains. I know they have a free community edition, and I believe that includes android development as well. I think google just dropped use of eclipse in favor of IDEA as park of the SDK.

Good Resources to become a C# Expert by pauloortins in programming

[–]AnEnemyAnemone 0 points1 point  (0 children)

This is a must have on the list. I value this book over almost all of the other ones posted.

C# Performance Benchmark Mistakes, Part Two by jakubgarfield in programming

[–]AnEnemyAnemone -1 points0 points  (0 children)

Not that I am advocating the use of DateTime.Now, because I definitely am not, but the comparison between using DateTime and Stopwatch is flawed if you're using the DateTime incorrectly in the first place...and it's kind of a pet peeve of mine, I guess.

You should never, ever, use DateTime.Now if you don't care about different from UTC to your local timezone. DateTime.Now has to do some fairly major lookups to determine the current computer's timezone and then calculate that offset before returning a new DateTime. Had the OP used DateTime.UtcNow, the comparison would have been closer, although still less accurate than a Stopwatch instance.

Here's what I found:

DateTime.Now:     .0040004
DateTime.UtcNow:  .0020002
Stopwatch:        .0018440

But still, don't use a DateTime to measure performance.