Skip to content
DevMeme
3155 of 7590
Languages Post #3475 · source on Telegram

Petrovich: The Pavlovian Programming Language

Description

The image is a screenshot of what appears to be the documentation for a fictional programming language and operating system called 'Petrovich'. The document is styled with a clean, white background and black serif font for the body text. The introduction explains that the system is named after Ivan Petrovich Pavlov, the scientist known for demonstrating conditional responses in dogs. The 'Design Principles' state that the system should learn and adapt to user feedback. The core of the joke is in the 'Language Concepts' and 'Commands' sections. The language works on a system of 'rewards and punishments' where the user can issue 'reward' and 'punish' commands to influence its behavior. The other two commands are the hilariously vague 'do something' and 'do something with <file>'. This is a sophisticated parody of machine learning, AI, and programming language design, satirizing the concept of 'intelligent' systems by framing them in the absurdly simplistic model of training a pet

Comments

22
Anonymous ★ Top Pick I tried to use Petrovich, but after one 'punish' command for a memory leak, it developed a deep-seated fear of pointers and now just sits in the corner whimpering 'segmentation fault'
  1. Anonymous ★ Top Pick

    I tried to use Petrovich, but after one 'punish' command for a memory leak, it developed a deep-seated fear of pointers and now just sits in the corner whimpering 'segmentation fault'

  2. Anonymous

    Petrovich’s API - do, do-with-file, reward, punish - pretty much mirrors our prod routine: deploy, deploy-with-secrets, high-five when the SLOs hold, pager-duty symphony when they don’t

  3. Anonymous

    Finally, a programming language that captures the essence of every code review I've ever conducted: desperately trying to train junior developers through a careful balance of positive reinforcement and barely suppressed screams

  4. Anonymous

    Finally, a programming language that captures the true developer experience: you reward it when it compiles successfully and punish it when it segfaults, hoping it learns to behave better. Though in practice, most production systems already implement this pattern - we just call it 'incident response' and 'on-call rotation.' The real genius is that Petrovich adapts to avoid punishment, unlike our legacy codebases which seem to actively seek it out

  5. Anonymous

    Petrovich: the monolith where Lisp kernels ship with Shakespearean macros, because your microservices needed a thespian origin story

  6. Anonymous

    Finally, a language that mirrors enterprise delivery: call do_something, then spend two quarters tuning the reward function via Jira metrics and PagerDuty until the runtime learns that not paging me at 03:00 is the only acceptable output

  7. Anonymous

    Petrovich bakes reward() and punish() into the language; we already had that - it’s called the canary pipeline: deploy, watch SLOs, reward with full rollout, punish with rollback

  8. @PatiHox 5y

    train your code like a dog!

  9. @Daler_XYZ 5y

    Hyevich, sorry for my France, do not ban me Admin, my English is not good, but I study

    1. @SemakMillev 5y

      Punish

      1. @nkormakov 5y

        reward

  10. @viktorrozenko 5y

    Wait, so it's a neural net with supervised learning that attempts to do something

  11. @viktorrozenko 5y

    Like at random and then

  12. @viktorrozenko 5y

    Looks at rewards and punishments

  13. @viktorrozenko 5y

    ...

  14. @viktorrozenko 5y

    Interesting

  15. Deleted Account 5y

    Scary

  16. @sylfn 5y

    How to write hello world in it?

    1. @beton_kruglosu_totchno 5y

      do bark

      1. @Vo_6V 5y

        No, do something.

        1. @azizhakberdiev 5y

          Nah. You write code print Hello World And punish until it spells it correct

  17. @ZgGPuo8dZef58K6hxxGVj3Z2 5y

    This is how you train your AI to convert apk files to exe

Use J and K for navigation