Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Emulator NES

Name: Anonymous 2011-12-11 12:09

Name: Anonymous 2011-12-11 12:16

It's very nice.

Name: Anonymous 2011-12-11 12:32

Stop crossposting things from /r/programming (to which you should ``return''!) to /prog/.

Name: Anonymous 2011-12-11 12:33

>>3
is nice... I'm sharing...

Name: Anonymous 2011-12-11 12:38

Another software written by religious nutcase.

Name: Anonymous 2011-12-11 12:44


>>5
>Or so I believe.

Name: Anonymous 2011-12-11 13:43

Hijacking this thread because this shite site is broke as fuck

What the flying fuck is wrong with my C++ string compare?


//Stem word
string stemWord(string word)
{
    const int word_len = word.length();
    string stems[4] = {"ing","ed","er","s"};
    string temp = "";
    bool isStem;

    if (word_len > 4)
    {
        for (int i = 0; i < 4 || isStem == false; i++)
        {
            if (word.compare(word_len - stems[i].length(), stems[i].length(), stems[i]) == 0)
            {
                for (int x = 0; x < diff; x++)
                {
                    temp[x] += word[x];
                }

                word = temp;
            }       
        }
    }

    return word;
}


The word I'm sending to the is "testing," and this method is supposed to remove the stem (eg. "ing") and return the resulting stemmed word.

According to the MSDN's shitty "still, blahblah.." example (http://www.cplusplus.com/reference/string/string/compare/) this should work perfectly fine.

Name: Anonymous 2011-12-11 15:32

>>7
It's coded wrong.

Name: Anonymous 2011-12-11 16:37

dat hebrew

Name: Anonymous 2011-12-11 16:56

Oh god is that FrozenAutist? Because he's also using that u8 hungarian bullshitation.

Seriously, what the hell? why would you clutter your code like that

Name: Anonymous 2011-12-11 17:11

>>10
FrozenZob uses Microsoft Word as an IDE and recommends a non monospaced serif font for coding. He gives a lot of perfectly good faggot reason to do this everytime he floods the front page.

Name: Anonymous 2011-12-11 18:14

He should try Java or COBOL next time.

Name: Anonymous 2011-12-11 19:14

>>5
He's like another tdavis, except less autistic.

Name: Anonymous 2011-12-11 19:25

>>13
BTW, where is tdavis?

Name: Anonymous 2011-12-11 19:33

>>13
And a jewish nutcase, instead of a christian nutcase

Name: Anonymous 2011-12-11 19:35

>>15
Also: What I don't understand is why these kind of people are always borderline retarded.

Can't you just be a genius without being a retard?

Name: Anonymous 2011-12-11 20:53

>>1
why the fuck didn't he use javascript? is there something wrong with it?

Name: Anonymous 2011-12-11 22:51

This is fake.  I don't really know what "fake" means, exactly, in this context...  but what I can tell you is that this isn't a video of a guy who just sits down and cranks out an emulator in 30 minutes (or whatever the supposed timespan is).

For starters, there is a bunch of non-text shit that's just pasted in as strings in the first video -- see the "Ins()" function for an example.  There's nothing wrong with using raw byte data to get shit done, but it's shitty to act like "hey, you know, I just typed


  t("!  !! ! !!   !! !   !! ! !      !!  !   !  ! ! !/"),
  t("!! ! !!   !! !   !! ! !      !!  !   !  ! ! ! ! /"),
  t("!  !! ! !!   !! !   !! ! !      !!  !   !  ! ! !/"),
  t("!! ! !!   !! !   !! ! !      !!  !   !  ! ! ! ! /"),
  t("!  !! ! !!   !! !   !! ! !      !!  !   !  ! ! !/"),
  t("!! ! !!   !! !   !! ! !      !!  !   !  ! ! ! ! /"),


because I'm a fucking genius and I have the internal ROM of the NES memorized just for kicks.

Second, as the video progresses, he stops caring about making it look non-fake, and you can see that every single line is typed at exactly the same speed, no typos, no backspacing...

My best guess is that he found some emulator code and used a script or a tool to just dump one character at a time while screen-capping.  It may be an editor he wrote, or maybe not, but who cares.  He's a cocksucker for pretending that he's a guy who just sits down at his computer and pulls an emulator out of his ass because he's just so fucking hax3r.

Name: Anonymous 2011-12-11 22:56

>>18
Ah, I see he has a FAQ explaining how the video was made.  I'll never actually read it, but I'm sure there's a disclaimer about it not actually being typed in the video.

It's still bullshit because why the fuck would someone post a video of their code being piped into a screen-cap, except to make it look like you are some kind of mega-autist coder?

Ulillillia is vastly superior to this fake cockbag.

Name: Anonymous 2011-12-12 3:46

>>18
You're a fucking moron. Those lines of text have nothing to do with a NES ROM, it's a reconstruction of the 6502 CPU circuit as sequences of look-up tables used for multiplexing and demultiplexing. Using strings as a more condensed alternative to byte/integer arrays is perfectly valid. You obviously have zero experience with practical ISA design and digital circuits. Go fuck yourself!

Name: Anonymous 2011-12-12 3:51

>>17
Javascript is shit. The web browser is a platform for retards.

Name: Anonymous 2011-12-12 3:56

dubz

Name: Anonymous 2011-12-12 4:58

The thing i learnt from that video was that you can be a professional on any OS. He's using DOS, but joe, SDL and opengl, knows his libraries and switches graphics modes on the fly (gotta be a cool TSR)

Name: Cudder !MhMRSATORI!FBeUS42x4uM+kgp 2011-12-12 5:45

>>18,19
If he actually wrote code at the speed of the video, he would be typing (and thinking) at around 600WPM.

It's still bullshit because why the fuck would someone post a video of their code being piped into a screen-cap, except to make it look like you are some kind of mega-autist coder?
Exactly.

Name: Anonymous 2011-12-12 6:58

>>20
it's a reconstruction of the 6502 CPU circuit as sequences of look-up tables used for multiplexing and demultiplexing.
C/C++ sucks so much, you have to use external DSL and write a parser even for a simple emulator?

Name: Anonymous 2011-12-12 7:01

And these !! ! doesnt look exceedingly maintainable either.
"!  !! ! !!   !! !   !! ! !      !!  !   !  ! ! !/"

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-12 8:04

>>25
Such software in Lisp would be slower and will consume more memory.
If you like, try writing such an emulator in Lisp.

Name: Anonymous 2011-12-12 8:06

>>27
Such software in Lisp would be slower and will consume more memory.
because x86 was designed to run C/C++ code, not Lisp.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-12 8:08

>>28
There will be clear performance difference: no one would be using the Lisp version. It would be simply too slow and bloated.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-12 8:14

>because x86 was designed to run C/C++ code
because every architecture today was "designed to run C/C++" code it supposedly runs the fastest.
Find any (modern) architecture where you can buy chips which run some non-asm language faster than C
Thats right:you can't, because all of them from the smallest micro-controller to the supercomputing networks prefer to work with C or at least Fortran(for math).

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-12 8:16

Chips "optimized for C" are all architectures. Even your obsolete Lisp machines, if given a proper, non-braindamaged C compiler would produce the fastest code in C.

Name: Anonymous 2011-12-12 8:19

Yea he probably took some hours

`
A) No, it's not sped up. But the input is pre-choreographed. The computer
   implements the choreography, as well as designs a part of it.
   It is a TAS, except I'm not speedrunning; I'm just aiming for
   15 minutes and to utilize it in the most entertaining manner.
   My typing speed is not the focus of that video; it is not even
   being presented except in a small part of the 2/2 video.
   The focus is in the source code.

Name: Anonymous 2011-12-12 8:19

>>30
IF billion of flies eat shit, it must be good.

>>31
Prove it, faggot.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-12 8:22

>>33
How would i prove it? By writing a C compiler for an obsolete architecture no one in their right mind would use?

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-12 8:28

For the record the current Lisp machines are  DEC Alpha RISC, and RISC C compilers are the fastest thing on the road.

Name: Anonymous 2011-12-12 8:30

>>35
Your answer shows that you're out of viable arguments. I will interpret it as your surrender.

Name: Anonymous 2011-12-12 8:30

>>34
Your answer shows that you're out of viable arguments. I will interpret it as your surrender.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-12 8:31

The argument is Lisp machines in the current form are RISC machines, and C is fastest on both CISC and RISC.
Case closed.

Name: Anonymous 2011-12-12 8:34

>>38
The argument is that your mother in her current form is a fat whore, and she is fastest on sucking cocks.
Case closed.

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-12 8:35

>>39
Your answer shows that you're out of viable arguments. I will interpret it as your surrender.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List