3 ms·
This is hilarious, of course, but it also points to some really interesting languages. Turns out that fungeoid is an actual category of fascinating experimental
by jpadvo 14y ago
This is hilarious, of course, but it also points to some really interesting languages. Turns out that fungeoid is an actual category of fascinating experimental / toy / joke languages. Obviously Piet is not particularly useful in the real world, but thinking about languages like this has got to be good for a programmer's mind.
For example, try thinking about what kinds of things this language would be useful for. Or if a similar visualization for an existing language would be useful. Unlock your mind and let it roam...
In case you didn't click the link in the article [1], here's part of what Wikipedia has to say:
"A funge is an esoteric programming language which models its programs as metric spaces with coordinate systems (often, but not necessarily, Cartesian) and which execute instructions located at points in their program space by moving an instruction pointer (a position vector which indicates the currently executing instruction) through that space."
[1] http://en.wikipedia.org/wiki/Funge#Funges http://en.wikipedia.org/wiki/Funge#Funges
- nuclear_eclipse 14y agoThe most obvious "useful" ability of Piet comes in calculating Pi: http://www.dangermouse.net/esoteric/piet/samples.html http://www.dangermouse.net/esoteric/piet/samples.html Of note from the sample program, emphasis mine: "... this amazing program which calculates an approximation of pi literally by dividing a circular area by the radius twice. ... Naturally, a more accurate value can be obtained by using a bigger program."
- regehr 14y agoReminds me of this old obfuscated C contest entry: http://www.cise.ufl.edu/~manuel/obfuscate/pi.c http://www.cise.ufl.edu/~manuel/obfuscate/pi.c
- raganwald 14y agoDid anyone notice the Brainfuck interpreter written in Piet? The mind re-boggles... Or repurposes it as an Enterprise Workflow DSL
- jberryman 14y agoI implemented befunge, and one of the challenges is figuring out whether your implementation is buggy or the test program you're using is. Luckily I found that some insane person had written this incredible test suite: http://users.tkk.fi/~mniemenm/befunge/mycology.html http://users.tkk.fi/~mniemenm/befunge/mycology.html There's some other amazing stuff there.
- richy_rich 14y agoWhilst testing PowerShell for an employer I write a bf implementation in it. I was stumped for a while when I couldn't get one of the examples from wikipedia to run until I noticed that the code in the wiki article was broken. Correcting the article was probably my greatest contribution to computer science.