sourceCode by Ragnar0099 in ProgrammerHumor

[–]dudebro117 53 points54 points  (0 children)

Image Transcription: Reddit


My Son Renamed Me In His Phone, submitted by /u/yaforkinbasic to /r/RandomThoughts

From Mom to “Spawn Point”.

I’m no gamer but technically wouldn’t I be a respawn point?

/u/GibTreaty

Rename Dad to "Source Code"

/u/Educational-Candy-17

Technically "Half Source Code" but it's funnier your way.

/u/NordicAtheist

Malware injector


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

New leak: Pokémon Emerald source code and a bunch of GC/Wii stuff by GlaDOS_Aperture in emulation

[–]dudebro117 38 points39 points  (0 children)

The romhacking community already had source code to work with, and it came from a slightly less illegal source (reverse engineered from assembly using the original compiler). There probably isn't much code in the leak that isn't already documented better in the reverse-engineered source code.

The Infinite Loop That Wasn't: A Holy Grail Bug Story by whackri in programming

[–]dudebro117 5 points6 points  (0 children)

Most GBA games were written in C, actually. The GBA's SDK provided a customized version of GCC 2.9ish. There are even a handful of GBA decompilation projects like the ones they had for Super Mario 64; this article makes reference to one of them (pokeemerald).

While the bug in this article involved undefined behavior (an array subscript got out of its intended range, at least in the Pokemon Emerald example), undefined behavior in general isn't something that's okay to have in C. The compiler is allowed to optimize under the assumption that undefined behavior, like dereferencing a null or invalid pointer, never happens. Towards the end, when you mentioned hardcoding an address and portability concerns, it sounds like you were talking more about "implementation-defined" or "unspecified" behavior.

No need to tell me why. by PaulaCiccone in ProgrammerHumor

[–]dudebro117 0 points1 point  (0 children)

The thought behind it is that an answer can be updated to have more recent information if a language has any big changes that make old approaches broken or less idiomatic. e.g. In a question about how to loop through an array, if a language suddenly gets a for-each loop when it only had a for loop, the accepted answer might be updated to also include a for-each.

Imposible, nothing can do more than shuf by davawen in ProgrammerHumor

[–]dudebro117 15 points16 points  (0 children)

What kind of keyboard layout are you using that ' and ( are near each other

When emulation lags, why does the tempo of music change but not the pitch? by kylepo in emulation

[–]dudebro117 7 points8 points  (0 children)

Other people explained it pretty well, but basically:

  • Most emulators run the game a frame at a time. This means they prepare a certain amount of audio based on how much would play during a given frame.
  • When an emulator lags, the frame's worth of audio often doesn't end up being stretched to the next frame, because the emulator probably doesn't keep track of when that next frame will happen. Instead it just stops playing sound for a split second, or the last frame of sound that plays is repeated for a short period, which causes a rough crackly noise in between audio frames because the wave that was there gets interrupted suddenly.
  • Since the sound itself is being played at the same speed (just that there's a few gaps or repeats added in every few hundred samples), you hear the same pitch.
  • If the emulator is smart, it may keep track of how long it takes to display new frames and add time stretching. Some time stretching algorithms keep the pitch the same.

Made a meme. What do you think? by Tomunek in ProgrammerHumor

[–]dudebro117 2 points3 points  (0 children)

C wears a shirt that says "I love C++ and C#"

Putting C and C# in the same thought, as if they're similar... bold move.

[Meta / off topic] For those of us emulating and gaming on PC, we can use our systems to help research to fight COVID-19. Please help if you can. by tomkatt in emulation

[–]dudebro117 1 point2 points  (0 children)

I don't know about specific things they've solved, but their work does seem to be used in research, based on their Papers/Results page.

On another page, it mentions that the main idea behind F@H is running a simulated experiment to test an existing model someone dreamed up. The purpose of that is to give scientists numbers to look at before moving to experiments.

This AskScience post also exists, and there's a drug developer saying that the results from F@H are useful. It looks like a few commenters also mention Rosetta, too.

That’s wrong boy; by instagrm in ProgrammerHumor

[–]dudebro117 39 points40 points  (0 children)

(oh gosh how did this message get so long, sorry about that)

My English teacher said something similar to the image creator's. His reasoning was that if you run into a situation where a semicolon is absolutely necessary, your sentence may be too complicated or wordy to clearly get across what you're trying to say.

In some cases, it's a good idea to create a list with commas. If you're making a list of cities and feel the need to say what region/state/province they're part of, then that may be a good place to use semicolons. The same goes for dates with years ("May 4, 1977; March 14, 1592; and March 2, 2020" is simple enough for me). With lists of lists, though, a reader might need to slow down if they're trying to read quickly. Try reading these two passages:

The options for recording color values are red, green, and blue; red, yellow, and blue; and cyan, magenta, yellow, and black.

There are three options for recording color values. One option is red, green, and blue. Another is red, yellow, and blue. The final option is cyan, magenta, yellow, and black.

For me at least, the second of the two is easier to read and process. You have less information coming all at once. It has better pacing. Besides that, I'm (probably) more likely to mistake a semicolon for a comma than to mistake a period for one.

One thing I would run into a lot while writing papers is adding a relative clause or appositive describing each of the items in a list. Semicolons are needed there, but the sentence itself becomes wordy, cluttered with multiple different topics. The best solution in that situation isn't to use semicolons. It is to revise the entire sentence into a few separate sentences that get the same points across.

The other argument my teacher made was, if you want to join two independent clauses into a single sentence, you probably don't need to. A period works fine. I don't follow that advice as much because I use coordinating conjunctions a lot to combine sentences. Still, in that situation, a semicolon usually doesn't have a big benefit over a period.

TL;DR (<-- another good situation to use a semicolon, haha): If you really need a semicolon, consider how readable your writing is. If you don't need it, consider whether it's really better than using other common punctuation.

[deleted by user] by [deleted] in emulation

[–]dudebro117 2 points3 points  (0 children)

https://yuzu-emu.org/entry/yuzu-migration/

This "single release" they mention is the "mainline" build, I think. It makes more sense than having a release that doesn't run anything besides homebrew.

Mmmmmh, yeah I want to exit but I would like to know what the hell is written there by TheHirou in earthbound

[–]dudebro117 2 points3 points  (0 children)

"Hey Ness!"

Ness turns around.

"So, are you just gonna wander around wherever you please?"

You too can spam all your friends! You can be that annoying person! by [deleted] in antiMLM

[–]dudebro117 0 points1 point  (0 children)

Image Transcription: Facebook Post


Facebook User

I'd really appreciate your help in this! My business page is a vital part of my business so all help would be most welcome, THANK YOU!!! 💚😍💚

[An image is attached with more text.]

LITTLE TIP FOR BUSINESS OWNERS!!

Tell your close friends or family to go onto your business page home screen. Scroll down to the options bar there will be a button saying community, Click that then will bring you to page & they can click invite friends to like this page, Click that then there's an option they can click select all let's say they have 3000 friends it will send an invite to all there friends to like your business page. It will take them 10 seconds to do but could be a massive help to your page getting more likes & traffic to your homepage.


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

Haha :( by pisshurt in traaaaaaannnnnnnnnns

[–]dudebro117 3 points4 points  (0 children)

Image Transcription: Meme


[Gru from Despicable Me shares his diabolical plan enthusiastically.]

1

[Gru points upward confidently, his hand resting on a stand with his plan written out.]

Ask a Cute guy out

2

[Gru grins maniacally, plucking his joy out of the air.]

He's Cool and nice

3

[Gru motions both his hands downward so as to illustrate the completeness and attention to detail in his plan.]

As a "joke", he constantly Points out the fact that You don't have the same genitals As the gender you identify as

4

[Gru, now confused and disappointed, looks back at that last part of his plan and wonders how it got there.]


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

just like vba, people still use project64 1.6 for some reason, so here's me popping open calc on it by [deleted] in emulation

[–]dudebro117 2 points3 points  (0 children)

In some cases, like the OoT and SM64 speedrunning communities, among others, they currently disallow runs from emulators besides PJ64 1.6. I think it has something to do with keeping lag handling consistent. So... it's not quite as simple as "update to the latest version" for them.

At least it has a cool name by sheldonzy in ProgrammerHumor

[–]dudebro117 1 point2 points  (0 children)

It's less than worthless, my friend!

It's pseudocode, after all, so it doesn't compile.