38 ms·
Rockstar: A programming language where programs are also song lyrics
- Joeboy 8y agoYears ago I worked on an ecommerce website that followed the "idiomatic variable names" recommendation. All (I mean literally all) the variables were called things like 'gunsandroses', 'meatloaf' etc. I don't know if they did it that way in the first place for shits and giggles or if they did an obfuscation pass at the end, but I didn't find that it assisted maintainability.
- laumars 8y agoAt highschool went through a phase of naming them after fish. It started as a joke but quickly because an obsession. But after a few months even I found it impossible to maintain and this was just personal highschool projects. I can't imagine trying to maintain larger and more complex code bases which have been developed by a team of people.
- laumars 8y ago> But why? > Mainly because if we make Rockstar a real (and completely pointless) programming language, then recruiters and hiring managers won't be able to talk about 'rockstar developers' any more. > Also 'cos it's kinda fun and any language based on the idea of compiling Meatloaf lyrics has to be worth a look, right? > Also we can make stickers. Who doesn't want a sticker on their laptop saying 'CERTIFIED ROCKSTAR DEVELOPER'? They had me at the recruiters point. And honestly I've heard a lot worse reasons for more serious languages.
- qznc 8y agoMaybe we should create more languages called Agile, Senior, Expert, Lead, Ninja, 1 Mio Dollar, Ivy League, Full Stack, etc
- cdancette 8y agoAnd '10 x'
- philipov 8y agoFull Stack, a language where the only data type is a stack.
- colejohnson66 8y agoWe just need someone to make a derivative of Forth.
- jakobloekke 8y agoThis is pure genious!
- deleted 8y ago[deleted]
- i_made_a_booboo 8y ago"Mainly because if we make Rockstar a real (and completely pointless) programming language, then recruiters and hiring managers won't be able to talk about 'rockstar developers' any more" Hahahahaha I love you for this. Easiest path to becoming a certified Rockstar developer. This is so we'll thought out and hilarious. You've earned my number one spot for best esoteric programming language. It used to be Chef where the programs make recipes and someone made a program that output hello world but actually was real instructions for baking a cake. They then baked the cake. But this? Oh the sky is the limit with this !
- voicedYoda 8y ago2.0 will be called "Star Ninja".
- rossdavidh 8y agoThe phrase "that's so crazy it just might work", is very rarely true, but if we actually got behind this and spread the news, we might actually be able to annoy HR and management enough to purge "rock star" from dev job postings.
- deleted 8y ago[deleted]
- arethuza 8y agoThe version number scheme should start from "10X" as well....
- deleted 8y ago[deleted]
- brightball 8y agoI have such a strong desire to learn this now...
- tutfbhuf 8y ago"and completely pointless" or one could also say pointfree
- time0ut 8y agoThis is epic. Time to write a hello world and update LinkedIn. "Genuine Rockstar Developer, 2018-". Please make and sell the laptop stickers. I'll buy a dozen.
- dalbasal 8y agoIt seems possible that 1980s power ballads were programs all along. I'm going to run "Mr. Crowley" as soon as these guys release a compiler. Pretty sure a hot AI hologram will pop out of my IBM Compatible's antenna.
- db48x 8y agoWhy wait? You should be able to simulate one by hand in fairly short order.
- i_made_a_booboo 8y agoThat's what she said.
- zrobotics 8y agoBut not without being a certified Rockstar dev, and they haven't printed the stickers yet.
- kinleyd 8y agoI'd be keen to see what 'Crazy Train' does.
- fogetti 8y agoHAHAHAHAHA! This is funny! :D It's pure genius. And I would love to be a certified rockstar developer.
- pge 8y agothis reminds me of when I was learning to write fortran code for the navy around 1990. My rookie debugging method was to insert print statements throughout the code, but instead of printing something informational I would put 80s song lyrics. When I ran the program (which calculated fluid flow around submarines), it would print the lyrics to a song. Wherever the song stopped was where my code was failing.
- Yhippa 8y agoThe sample code is kinda fun to read.
- nneonneo 8y agoSadly this isn’t implemented yet; it’s going to take a real rockstar developer to build a formal grammar, parser and runtime (I imagine the easiest thing to do will be to map the language onto e.g. JavaScript, much like what TypeScript does). The language has some conceptual similarities with Shakespeare, for instance; Shakespeare also has a poetic way to specify numbers based on adjectives with positive and negative sentiment. Shakespeare is fully implemented and used occasionally for comedic effect in programming contests; see http://shakespearelang.sourceforge.net/report/shakespeare/shakespeare.html http://shakespearelang.sourceforge.net/report/shakespeare/sh... for a rundown of the actual language.
- yoda_sl 8y agoNow each team of rockstar developers will have to find a really good name!
- cs702 8y agoLove it. LOVE IT. However, it's missing one tiny little bitty thing: goes to 11 How come "goes to 11" is not a reserved sequence of keywords?
- bitofhope 8y agoI feel the need to arrange that fizzbuzz into an actual song.
- projectramo 8y agoidea: a Meta language where all the keywords are read from a file (text, json etc) So you could sub out the words and make your own style of language. The obvious one is Ninja but you could knock out other ones as people come up with them. You could have a Halloween language etc. Btw, instead of “continue”, rockstar should use “and on and on”
- sixstringtheory 8y agoTo start, a good one to use as a template might be LOLCODE [0], which is hilarious on its own. [0]: https://lolcode.org https://lolcode.org
- jimmux 8y agoI'm going to need a variation of Rockstar with more brooding darkness and satanic references for system programming. I.e. closer to metal.
- jsgo 8y agoImpressive error handling. I accidentally typed !love as a property and it returned back “you give !love a bad name”
- redsymbol 8y agoMy bittersweet tragic morning: 0) Check hacker news 1) Read about Rockstar. Get more and more excited 2) Go to download/build the interpreter/compiler/whatever 3) It's not implemented yet? I can't write Rockstar code RIGHT NOW?! NOOOOOOOOOOOOOOOO
- amelius 8y agoThey're still looking for a rockstar developer to implement it ;)
- BoppreH 8y agoIt's now available, just waiting for merge: https://github.com/dylanbeattie/rockstar/pull/27 https://github.com/dylanbeattie/rockstar/pull/27 On a completely unrelated note, I have to reevaluate my life choices.
- zebraflask 8y agoThis is just fantastic.
- jsawruk 8y agoI think unit tests should be written as corresponding MIDI files: lyrics = code, music = tests.
- dbwest 8y agoOk guys, I'll write the readme, you just go and write the language.
- BoppreH 8y agoI created the missing interpreter! https://github.com/dylanbeattie/rockstar/pull/27 https://github.com/dylanbeattie/rockstar/pull/27 It's hackish and hard to read and full of bugs, but it can run FizzBuzz, so Rockstar is a real language now. If the pull request gets accepted I'll add "certified Rockstar developer" to my CV.
- mohitmun 8y agoconsider creating separate repo? This looks real awesome. checkout JS implementation here. https://github.com/wolfgang42/rockstar-js https://github.com/wolfgang42/rockstar-js
- BoppreH 8y agoThis is a very simple language and I don't intend to work on it long-time. I prefer to think of it as a donation to the language designer.
- oliverevans96 8y agoAwesome! FizzBuzz example in idiomatic Rockstar from the repo: Midnight takes your heart and your soul While your heart is as high as your soul Put your heart without your soul into your heart Give back your heart Desire is a lovestruck ladykiller My world is nothing Fire is ice Hate is water Until my world is Desire, Build my world up If Midnight taking my world, Fire is nothing and Midnight taking my world, Hate is nothing Shout "FizzBuzz!" Take it to the top If Midnight taking my world, Fire is nothing Shout "Fizz!" Take it to the top If Midnight taking my world, Hate is nothing Say "Buzz!" Take it to the top Whisper my world
- jVinc 8y agoLooking for Rockstar developer. Entry level position, must have 5 years experience developing in Rockstar.
- deleted 8y ago[deleted]
- biscuit314 8y agoHere is my attempt to create (compose?) Fibonacci(25): Tommy was a kindle Jane was gasoline Put Tommy over Jane into the fire Put the fire into the daydream Knock the daydream down away takes time If time is nothing Give back time The nightmare was over Build the nightmare up If time is the nightmare Give back time Put time without the nightmare into my world Put time without the fire into yours Put away taking my world into the daylight Put away taking yours into the night Give back the daylight with the night Put the daydream into my love ever is so rock Until my love is stronger than ever Put away taking my love into the night Whisper the night Build my love up