News for hackers. Stuff that matters.
Re:Enterprise Piet by jpadvo on Thursday October 25, 2012 @03:11PM (#4699014)
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

Re:Enterprise Piet by nuclear_eclipse on Thursday October 25, 2012 @04:34PM (#4699434)
The most obvious "useful" ability of Piet comes in calculating Pi: 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."

Re:Enterprise Piet by regehr on Thursday October 25, 2012 @06:09PM (#4699809)
Reminds me of this old obfuscated C contest entry:

http://www.cise.ufl.edu/~manuel/obfuscate/pi.c

Re:Enterprise Piet by jberryman on Thursday October 25, 2012 @09:52PM (#4700481)
I 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

There's some other amazing stuff there.

Re:Enterprise Piet by richy_rich on Friday October 26, 2012 @04:28AM (#4701348)
Whilst 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.
Re:Enterprise Piet by raganwald on Thursday October 25, 2012 @05:13PM (#4699610)
Did anyone notice the Brainfuck interpreter written in Piet? The mind re-boggles... Or repurposes it as an Enterprise Workflow DSL