Content Warning

This is not a SFW instance. NSFW communities will be tagged, and efforts will be made to keep SFW communities clean, but proceed at your own comfort level.

Mop Lemmy FYI
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@suppo.fi to Programmer Humor@programming.dev · 22 days ago

Forth

message-square
4
link
fedilink
2

Forth

cm0002@suppo.fi to Programmer Humor@programming.dev · 22 days ago
message-square
4
link
fedilink

https://xkcd.com/3277/

alert-triangle
You must log in or register to comment.
  • otacon239@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    22 days ago

    This
    great
    is
    one
    +
    +
    +
    !

    • davidgro@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      21 days ago

      Thisgreatisone! ?

      If the operands go the other way, I suppose:

      oneisgreatThis!

      • otacon239@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        21 days ago

        The stack doesn’t quite work like that. They would get added like this:

        This > buffer
        great, is, one > stack

        Then, each + pulls the latest off the stack and operates.

        First + would pull ‘one’ as it’s the most recent on the stack.

        This page does a good job of explaining: https://www.geeksforgeeks.org/dsa/introduction-to-stack-data-structure-and-algorithm-tutorials/

        Edit: you can also see this reflected in the Alt-text:

        I NOTATION POLISH REVERSE ❤️
        
  • Chais@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    22 days ago

    But just to nitpick, wouldn’t this parse into “Forth ❤️ I”? Which is to say, aren’t the operands in the wrong order?

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.78K users / day
  • 3.8K users / week
  • 5.22K users / month
  • 5.26K users / 6 months
  • 1 local subscriber
  • 33K subscribers
  • 151 Posts
  • 1.52K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.20
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org