this post was submitted on 27 Nov 2025
566 points (92.4% liked)

Science Memes

17443 readers
2864 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 10 points 5 hours ago* (last edited 4 hours ago) (3 children)
(* (+ 2 5) (- 8 5))

Hope some LISP can clear this up

Edit:

( + 2 ( * 5 ( - 8 5 ) ) )
[–] yboutros@infosec.pub 10 points 4 hours ago (1 children)

Is this a meme? Shouldn't it be

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

Damn you are right haha.

Mine evals to 21.

[–] merc@sh.itjust.works 1 points 2 hours ago

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

[–] Reginald_T_Biter@lemmy.world 1 points 4 hours ago (1 children)
[–] vala@lemmy.dbzer0.com 6 points 4 hours 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)

[–] merc@sh.itjust.works 2 points 2 hours 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.

[–] call_me_xale@lemmy.zip 2 points 4 hours ago (1 children)

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

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

Knowing is half the battle!

[–] Reginald_T_Biter@lemmy.world 1 points 4 hours ago

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