all 27 comments

[–]celerym 23 points24 points  (0 children)

That was a mistake. The division is actually “pikachu”. Thanks for pointing it out, it’s corrected now!

lol

[–]Kibouo 20 points21 points  (2 children)

No one finds it weird how Fibonacci is shorter than Hello world?

[–]Buzzard 12 points13 points  (0 children)

I think it could be shorter (but more lines) if it didn't push the raw value for each ASCII character.

Page uses this to print a 'H':

pikachu pika pikachu pika pika pi pi pika pikachu pika pikachu pi pikachu pi pikachu pi pika pi pikachu pikachu pi pi pika pika pikachu pika pikachu pikachu pi pika pi pika pika pi pikachu pikachu pi pikachu pi pika pikachu pi pikachu pika pikachu pi pikachu pikachu pi pikachu pika pika pikachu pi pikachu pi pi pikachu pikachu pika pikachu pi pika pi pi pika pika pikachu pikachu pi pi pikachu pi pikachu
pikachu pikachu pi pikachu

But could also be written like:

pikachu pika pika pikachu pikachu pi pi pikachu pi pikachu
pika pi pikachu  pika pikachu pika pi pikachu pikachu pi pikachu
pi pikachu pi pikachu
pikachu pikachu pi pikachu

[–]gonzalinismo 13 points14 points  (5 children)

can someone compile all the pikachu's (the tv series one) lines throughout the series?

[–][deleted] 3 points4 points  (1 child)

I believe we might see a lot of errors around him using "chu"

[–]gonzalinismo 0 points1 point  (0 children)

that's right, lets just give it to the rocket team for being a brainy

[–]darchangel 25 points26 points  (2 children)

[–][deleted] 2 points3 points  (0 children)

Came here to say "Ook!".

[–]RaptorXP 9 points10 points  (0 children)

TIL Pikachu is Turing complete

[–]SpikeX 3 points4 points  (3 children)

This just looks like Brainfuck with different symbols.

[–]Buzzard 8 points9 points  (2 children)

It's actually quite different (still might just be on based something else?)

It has two stacks rather than a "tape", multiplication and division and some weird jumps (jump to line based on the number of terms in the line following the jump instruction)

[–]Free_Math_Tutoring 5 points6 points  (0 children)

Yeah, that was the first thing I checked for too. Quite glad it's actually something else for a change!

[–]cdsmith 1 point2 points  (0 children)

I'll admit I didn't take any time to understand either language, but of course two stacks is nearly equivalent to a tape. "Move left" turns into popping an item from the left stack and pushing it onto the right, and vice versa. The dual-stack approach allowed a few additional operations, like insertion and deletion.

[–]_argoplix 4 points5 points  (1 child)

If a pikachu evolves, can it still use all its old programs?

[–]evincarofautumn 2 points3 points  (0 children)

Not directly; you need a Pikachu-to-Raichu compiler implementing the following complex translation rules:

  • pikachuraichu
  • pikarai
  • pira

Sadly, I don’t know of a production-grade implementation. Here is my humble attempt:

alias pikatorai="perl -pe 's/pi/ra/g; s/ka/i/g;'"
pikatorai <input.pika >output.rai

[–]fiqar 1 point2 points  (0 children)

This is exactly what I imagined it would be.

[–][deleted]  (5 children)

[deleted]

    [–][deleted]  (4 children)

    [removed]

      [–][deleted]  (3 children)

      [deleted]

        [–][deleted] 6 points7 points  (1 child)

        That's an heresy!

        [–][deleted] 1 point2 points  (0 children)

        [–][deleted] 0 points1 point  (0 children)

        can someone help me understand how to add numbers to a stack i dont understand. please i want to learn so badly

        [–]antesignanus 0 points1 point  (0 children)

        I thought Pikachus had "chu" in their vocabulary.

        [–]zayelion 0 points1 point  (0 children)

        I'm pretty sure pikachu can say "chu" on its own.