Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Let's say you and your friends wanted to figure out the best way to share toys so that everyone is happy.

There's a new method to doing that, pioneered by these Racket folks, called "Language Oriented Programming".

And what it means is that the first step to solve your problem is to create the simplest language you can think of to describe your problem.

So let's create a language where you can list everyone's toys like this "ballToy", "elsaToy", "blockToy". And then we can list all your friends like this "Adam", "Emily", "Maya". And then we can list feelings like "Happy", "Sad"...(going to skip the meat for brevity)...and then we rearrange these words until we get the program with the most Happys! And we've solved the problem using "Language Oriented Programming". We spent our time not on the computer language, but on creating a new simple domain specific language customized for our problem.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: