lemmy.onlylans.io
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sphks@jlai.lu to Programmer Humor@programming.dev · 3 个月前

< :-( >

jlai.lu

external-link
message-square
46
link
fedilink
855
external-link

< :-( >

jlai.lu

Sphks@jlai.lu to Programmer Humor@programming.dev · 3 个月前
message-square
46
link
fedilink
  • Deebster@infosec.pub
    link
    fedilink
    arrow-up
    20
    ·
    3 个月前

    I wonder if you could write a valid program in two different languages using this technique.

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      41
      ·
      3 个月前

      You can do it with any language where whitespace doesn’t matter and Whitespace

      • 𝕊𝕞𝕒𝕔𝕜𝕖𝕞 𝕎𝕚𝕥𝕥𝕒𝕕𝕚𝕔 🇵🇸@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        3 个月前

        That’s what I use to show people the exact message I sent before. It gets around any app that doesn’t let you send blank messages. I have it saved on my clipboard for this

        • 𝕊𝕞𝕒𝕔𝕜𝕖𝕞 𝕎𝕚𝕥𝕥𝕒𝕕𝕚𝕔 🇵🇸@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          3 个月前

    • Natanael@slrpnk.net
      link
      fedilink
      arrow-up
      22
      ·
      3 个月前

      Absolutely, that’s a polyglot file

      • vrek@programming.dev
        link
        fedilink
        English
        arrow-up
        34
        ·
        3 个月前

        Not quite this exact case but I love showing people https://github.com/mame/quine-relay

        It has 128 languages, it starts with ruby which prints out its own source code in Scala, then the Scala program executes to generate the next source code, repeat for 128 languages and eventually returns to the original ruby code.

        For extra fun, look at the source code on a large monitor.

        • Arthur Besse@lemmy.ml
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          1
          ·
          3 个月前

          amazing! it’s great to see that is still being maintained after so many years.

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: [email protected]

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.

  • 2.01K users / day
  • 3.74K users / week
  • 7.83K users / month
  • 16.9K users / 6 months
  • 1 local subscriber
  • 32.9K subscribers
  • 2.51K Posts
  • 98K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org