this post was submitted on 27 Nov 2025
694 points (91.2% liked)

Science Memes

17762 readers
1456 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] vala@lemmy.dbzer0.com 19 points 3 weeks ago* (last edited 3 weeks ago) (3 children)
(* (+ 2 5) (- 8 5))

Hope some LISP can clear this up

Edit:

( + 2 ( * 5 ( - 8 5 ) ) )
[–] yboutros 20 points 3 weeks ago (1 children)

Is this a meme? Shouldn't it be

( + 2 ( * 5 ( - 8 5 ) ) )
[–] vala@lemmy.dbzer0.com 7 points 3 weeks ago

Damn you are right haha.

Mine evals to 21.

[–] Reginald_T_Biter@lemmy.world 1 points 3 weeks ago (1 children)
[–] vala@lemmy.dbzer0.com 8 points 3 weeks ago (3 children)

This is called "prefix notation". The operator comes before the operands and every expression goes in parentheses.

For instance you could write:

(+ 1 2 3 4)

Which would evaluate to 10.

This syntax is from a family of programming languages usually called LISP.

https://en.wikipedia.org/wiki/Lisp_(programming_language)

[–] call_me_xale@lemmy.zip 2 points 3 weeks ago (1 children)

I understand prefix notation, but you got the order of operations wrong...

[–] vala@lemmy.dbzer0.com 6 points 3 weeks ago (1 children)
[–] call_me_xale@lemmy.zip 4 points 3 weeks ago

Knowing is half the battle!

[–] Reginald_T_Biter@lemmy.world 2 points 3 weeks ago

Awesome thanks for explaining that. That's cool as hell.

[–] merc@sh.itjust.works 2 points 3 weeks ago

Also, you can use this for more than just arithmetic. The first thing in the list is the name of the function, and everything else is something that you pass to the function. So you could instead write

(plus 1 2 3 4)

Which would be like plus(1, 2, 3, 4) in other kinds of programming languages.

[–] merc@sh.itjust.works 1 points 3 weeks ago

So, if 2 5 8 5 - × + is "RPN" does that mean that the LISP version is Polish Notation?