I couldn't find one online, so here's a fairly trivial challenge: write a quine in WebAssembly text format (there's actually at least one in Wasm binary format).

(Edit: the suggested post is probably the right place for this question, but so far that post does not seem to have a quine in Wasm.)

  • \$\begingroup\$ Welcome to Code Golf! You'll need to have a scoring criterion for this challenge, typically code-golf (for the shortest quine someone can find). You'll also probably want to specify if cheating quines are allowed (ones that read their own source in some way). \$\endgroup\$ Dec 16, 2022 at 18:56
  • \$\begingroup\$ @mousetail OP hasn't specified a scoring criterion. If it's non-code-golf, or the requirements differ in some way specific to the language, this could end up being not a dupe. \$\endgroup\$ Dec 16, 2022 at 18:56
  • 1
    \$\begingroup\$ In general we don't allow duplicates of existing question but specified for a specific question. Any valid answer here would be a valid answer there. \$\endgroup\$
    – mousetail
    Dec 16, 2022 at 18:57
  • \$\begingroup\$ @mousetail the post does not seem to answer my question, I could not find a quine in Wasm there. The scoring criteria are however what I'm after as well so it's probably a more appropriate thread for this, too. Is there a way to request a quine there in a specific language? I full well understand I could write one myself, but I'm not quite up to it. \$\endgroup\$
    – jr78
    Dec 16, 2022 at 19:12
  • 1
    \$\begingroup\$ One way to request an answer on an existing challenge would be to start a bounty--but you'd need to earn 75 reputation first, and there's a good chance that the bounty would expire without anyone attempting it. We don't have a lot of people here who golf in WebAssembly, unfortunately. \$\endgroup\$
    – DLosc
    Dec 17, 2022 at 1:24


Browse other questions tagged or ask your own question.