Live data from Hacker News

Writing a triple polyglot script

nkanaev.github.io

11–20 of 21 posts

Re: Writing a triple polyglot script

#11

If you love this, you're going to positively squee at Poc||GTFO, if you haven't read it yet: https://www.alchemistowl.org/pocorgtfo/ I mean, does HN filter out PoC||GTFO release announcements or something? I seem to remember there being mention that it might've hit the filter list ..

Nope, that exact link has been posted 22 times on HN: https://hn.algolia.com/?q=https%3A%2F%2Fwww.alchemistowl.org...

Re: Writing a triple polyglot script

#12

If you love this, you're going to positively squee at Poc||GTFO, if you haven't read it yet: https://www.alchemistowl.org/pocorgtfo/ I mean, does HN filter out PoC||GTFO release announcements or something? I seem to remember there being mention that it might've hit the filter list ..

Nope, that exact link has been posted 22 times on HN: https://hn.algolia.com/?q=https%3A%2F%2Fwww.alchemistowl.org...

Haha, nice tool, good fu.

Re: Writing a triple polyglot script

#13
post #9

For something more ridiculous, feel free to check out this 281 language Polyglot: https://codegolf.stackexchange.com/questions/102370/add-a-la...

These programs are absolutely insane and completely out of control. I feel like I read a chapter of the Necronomicon.

Thank you for posting this, it's brilliant! Now to look at a tree or something until I can identify which way is up again.

Re: Writing a triple polyglot script

#15
Ah, this reminds me of the time I encountered a polyglot "config file" in the wild in a university autograding system.

Instead of being parsed, it was `import`-ed and `include`-d in Python code and Makefiles. It had a `.py` extension so it took me a while to figure out why everything was breaking when I added some Python code in it. All in all, a very cursed setup.

Re: Writing a triple polyglot script

#17
post #9

For something more ridiculous, feel free to check out this 281 language Polyglot: https://codegolf.stackexchange.com/questions/102370/add-a-la...

Direct link to the answer holding the 281 language one:

https://codegolf.stackexchange.com/a/198810/71130

Each language was added by a distinct answer, each answer building on the work of all the previous ones. The community teamwork in building such a monstrosity is beautiful.

Re: Writing a triple polyglot script

#18
This is one of the vanishingly small implementations of fizz buzz posted online that don’t have separate paths for fizzbuzz cases than for fizz and buzz cases.

Usual solve is %3 = fizz, %5 = buzz, %15 = fizzbuzz ...

If you change 3 or 5, you now have to go edit 15 too, does that not seem like a problem?

Nicely done.

Re: Writing a triple polyglot script

#19
post #15

Ah, this reminds me of the time I encountered a polyglot "config file" in the wild in a university autograding system. Instead of being parsed, it was `import`-ed and `include`-d in Python code and Makefiles. It had a `.py` extension so it took me a while to figure out why everything was breaking when I added some Python code in it. All in all, a very cursed setup.

There's some production code at my work that relies on a file being parsable in two languages
Post reply on HN