News for hackers. Stuff that matters.
Re:Groot Programming Language by michh on Saturday January 31, 2015 @04:58PM (#8978245)
Even though I got a laugh out of it, I propose we change the definition of esoteric programming languages to require more creativity from their designer than reimplementing brainfuck with different tokens for the operators.
Re:Groot Programming Language by aortega on Saturday January 31, 2015 @06:27PM (#8978495)
Is not based in brainfuck, its a turing machine, and both look that way because any less instructions are not enough for programming a digital computer.
Re:Groot Programming Language by Retra on Saturday January 31, 2015 @06:43PM (#8978529)
Converting from groot to brainfuck requires simply a 1-1 command translation. It doesn't matter if these are turing machine operations, the point is that there is nothing 'esoteric' about writing down what a turing machine does using a language that everyone already knows.

If I rewrote C to use BEGIN and END instead of { and }, then that's not inventing an esoteric language, but new syntax for an existing language.

Re:Groot Programming Language by tel on Saturday January 31, 2015 @08:56PM (#8978876)
The type of abstract syntax trees of this language and brainfuck are isomorphic. There are lots of definitions of what a "Turing Machine" is. If we take the one on Wikipedia as canon it isn't the same as this.

In particular, a Turing Machine is a model while both Brainfuck and Groot are languages. It's easy to see how each of these languages is directly translated into a Turing Machine model (providing them a choice of semantics). Indeed, due to their isomorphism we need only translate one of them to have a faithful translation of the other "for free".

Better yet, Brainfuck and Groot both have a privileged semantic model which is more or less identically a Turing Machine (except Brainfuck merely specifies that the tape is at least 30,000 bytes long and Groot mentions site not at all while Turing Machines are explicitly infinite).

So, they're really closely related to a Turing Machine but honestly separate things more closely related to one another (via isomorphism) than to TMs directly (via semantic mapping).

Re:Groot Programming Language by sxp on Saturday January 31, 2015 @10:48PM (#8979095)
You only need one instruction for a computer: http://en.wikipedia.org/wiki/One_instruction_set_computer
Re:Groot Programming Language by guard-of-terra on Saturday January 31, 2015 @05:10PM (#8978285)
This. Flagged the submission.
Re:Groot Programming Language by ihuman on Saturday January 31, 2015 @05:46PM (#8978381)
Why are you flagging this? Flagging is for topics that are "spam or offtopic."
Re:Groot Programming Language by guard-of-terra on Saturday January 31, 2015 @05:57PM (#8978409)
Is it on topic?
Re:Groot Programming Language by mtrpcic on Saturday January 31, 2015 @06:35PM (#8978510)
Somebody wrote a new language/turing machine based off of pop culture, I'd say that's pretty on-top for HackerNews.
Re:Groot Programming Language by jlouis on Saturday January 31, 2015 @08:54PM (#8978873)
So, by your point of view, I should be able to submit the "Moo!" or "Ook!" esoteric languages which are exactly like this one?

I find Groot to be entirely uninteresting. Look up Homespring or Flip :)

Re:Groot Programming Language by dragonwriter on Saturday January 31, 2015 @11:09PM (#8979132)
> So, by your point of view, I should be able to submit the "Moo!" or "Ook!" esoteric languages which are exactly like this one?

Yes, and they'd be on-topic. Though Zombie [0], from the same creator as Ook!, is probably more interesting.

[0] http://www.dangermouse.net/esoteric/zombie.html

Re:Groot Programming Language by MichaelAza on Saturday January 31, 2015 @04:51PM (#8978214)
I propose a law of esoteric langauges:

If there exists, in popular culture, a character with a comically limited vocabulary (e.g. Groot, The Librarian in Discworld) then there shall be a Brainfuck variant based on its vocabulary. (In our example, Grootlang and Ook)

Re:Groot Programming Language by samstokes on Saturday January 31, 2015 @05:25PM (#8978329)
Supporting evidence: https://github.com/mikar/hodor
Re:Groot Programming Language by plumeria on Saturday January 31, 2015 @06:17PM (#8978470)
That gives us one language for every Pokemon (i.e pika pika, pik pikachu, pikachuuu, pikachu!)
Re:Groot Programming Language by mathgeek on Saturday January 31, 2015 @08:20PM (#8978767)
Arguably you're only counting the lower bounds. There are many Pokémon that have at least two different languages (based on English and Japanese names).
Re:Groot Programming Language by jackmaney on Saturday January 31, 2015 @08:31PM (#8978803)
That's easy.

Now, automating that by putting enough NLP together to scan social media and news sites to classify popular characters with a comically limited vocabulary and automatically generate a Brainfuck variant based upon said character's vocabulary? That's the hard part... ;)

Re:Groot Programming Language by gyardley on Saturday January 31, 2015 @05:03PM (#8978265)
I've never really understood why Groot stopped being able to say more than his name - he could talk just fine until 2008 or so:

http://13thdimension.com/wp-content/uploads/2014/07/acstarlo...

(On the other hand, the fully-talking character was a bit of a jerk, so perhaps it's better this way.)

Re:Groot Programming Language by elechi on Saturday January 31, 2015 @07:10PM (#8978583)
It's a size thing. When he's big, his vocal cords are too stiff to really sound like anything other than 'I am Groot'.

But, to be fair, the earlier version is based on Groot being a monster, a villain. They re-imaged a lot of the Guardians of the Galaxy to have a more proper spaced based origin.

Re:Groot Programming Language by mwsherman on Saturday January 31, 2015 @05:29PM (#8978345)
It doesn’t have generics.
Re:Groot Programming Language by tel on Saturday January 31, 2015 @11:52PM (#8979209)
Generics would hamper its speedy compilation time.
Re:Groot Programming Language by JoelHobson on Saturday January 31, 2015 @06:15PM (#8978465)
As long as I can implement a webserver in it.
Re:Groot Programming Language by marvy on Saturday January 31, 2015 @06:51PM (#8978546)
You can't (at least not without non-portable extensions), but you can write cgi scripts.
Re:Groot Programming Language by Sir_Cmpwn on Saturday January 31, 2015 @06:49PM (#8978541)
Yet another brainfuck with different tokens. Can we show some more creativity?
Re:Groot Programming Language by leonatan on Saturday January 31, 2015 @06:22PM (#8978480)
Re:Groot Programming Language by rejschaap on Saturday January 31, 2015 @09:47PM (#8978977)
Had a look at the code because I also happen to be playing around with Rust. The author seems to be struggling with strings and borrowing/lifetimes like the rest of us. Between splitting to words and tokenizing, there are probably 3 copies of the input string in memory.
Re:Groot Programming Language by athenot on Saturday January 31, 2015 @04:57PM (#8978237)

  i am Groot
(i.e. +1 for the effort)
Re:Groot Programming Language by boothead on Saturday January 31, 2015 @05:12PM (#8978292)
It's missing the essential keyword "We". I'd submit a patch but I'm too drunk right now.
Re:Groot Programming Language by jedberg on Saturday January 31, 2015 @05:52PM (#8978395)
The last line of the spec (or near it at least).
Re:Groot Programming Language by jejones3141 on Saturday January 31, 2015 @05:13PM (#8978293)
"Groot" is Dutch for big; until I followed the link, I was wondering if it were actually about C++. (OTOH, that would be "grootste", wouldn't it?)
Re:Groot Programming Language by bitwize on Saturday January 31, 2015 @08:19PM (#8978765)
Even though his usual working language is Smalltalk, I'm sure Cees de Groot would appreciate. :)
Re:Groot Programming Language by GavinB on Saturday January 31, 2015 @04:57PM (#8978240)
I would think "We are Groot" would be better as the command to accept one byte of input.
Re:Groot Programming Language by drivingmenuts on Saturday January 31, 2015 @05:30PM (#8978348)
Someone needs to (not me, I'm an idiot) a VM to run it on called "Diesel".
Re:Groot Programming Language by n72 on Saturday January 31, 2015 @05:04PM (#8978266)
I refuse to use this unless it has a javascript compiler.
Re:Groot Programming Language by aortega on Saturday January 31, 2015 @06:24PM (#8978485)
Just want to point that this is just the basic instructions of a Turing machine, therefore this language is complete and equivalent to any other Turing-complete language.
Re:Groot Programming Language by danschumann on Saturday January 31, 2015 @04:46PM (#8978204)
it looks pretty enterprise ready
Re:Groot Programming Language by kr0 on Saturday January 31, 2015 @04:58PM (#8978244)
_ => boom
Re:Groot Programming Language by nawitus on Saturday January 31, 2015 @05:13PM (#8978296)
Meh. Good effort, I guess.
Re:Groot Programming Language by failed_ideas on Saturday January 31, 2015 @07:00PM (#8978557)
I'm not sure why this is on hn. The creation of a programming language using a stupid syntax has been done, and has been done better. This adds nothing to the space, and it's the useless language equivalent of hello world. Good for you, you made your first hello world that is completely useless. But my hello world doesn't end up on hn, and nor should this.
Re:Groot Programming Language by klibertp on Saturday January 31, 2015 @10:56PM (#8979112)
You're probably not, but you sound as if you're just jealous... You could phrase your comment better.

On topic: I too don't think "another brainfuck interpreter" is very interesting, but I enjoyed sort-of-a-compiler for brainfuck implemented here: https://www.hashcollision.org/brainfudge/ by Danny Yoo. You can get something out of even the most useless of examples sometimes :)

Re:Groot Programming Language by failed_ideas on Sunday February 01, 2015 @09:34AM (#8979962)
I'm immensely jealous of anyone who has that much free time. I guess as a show-hn, I'm all for this. Someone wants to do this, then it's their art or stress relief and they're doing it for fun. But as a news submission, I don't feel this adds anything other than it's association with a popular movie. BrainFudge however, I really like.