Aw. I just thought of a new way: `int A=0,B=0,C=0,D=0,E=0,F=0; int main() { A = 4; F = A-0 ? A-1 ? A-2 ? A-3 ? A-4 ? (A = 6) : (F = 5) : (E = 4) : (D = 3) : (C = 2) : (B = 1); printf("%d\n", F); } `
The order is different, but it's exactly what the dude asked for.
That's a part of real trolling we can't really emulate here: the gradual reveal of new complications OP forgot to mention at first. Maybe with spoilers it could be possible.
@undergroundmonorail There's no need to test it. It's easy to observe that it's completely off spec.
On a related note, I'm slightly disappointed with the answer to my comment on the question. I was thinking of implementing the icosahedron by implementing its symmetry group as a presentation of A_5.
It currently 44 bits per second. The proof of concept it a little contrived as the clustering was trained using the source file but I was really only interested in how the output would sound... i.e. whether it would be noise. So on that basis it seems to be doing ok :P
This output was produced with 11 bits per sample, i.e. 4 samples per second so the training data is just under 2 meg. not an unreasonable download size. The training was taken from 5000 0.25 second samples of the original song. I will try training it over more varied sources to see how it fairs then :)
While looking through rosetta-stone, I discovered that there are two types of questions tagged with it:
The type intended by the tag: answers with many different answers in different languages. Each answer shows off the answerer's programming language multilingualism.
A single question is tagge...
@ProgramFOX Well it does incentivise people to try to solve a problem in their favourite language even if there is already a 0.5-character APL solution. For some interesting problems it can also be really nice to generate this rosetta-stone thing that you can compare how different languages approach the same problem (e.g. I really liked the Mandelbrot one).
I implemented my esolang Manufactoria in Java 8. Is there a good location I can post the code/jar file? It is ~14000 chars long.... For example, is github good? What is the best thing to do.
@Quincunx Both designing and implementing a language are things I still have to do/learn at some point, so you have my full admiration ;). Let me know if you put it on github.
@m.buettner Like I said, I didn't design this language. The game was the design. I simply came up with a translation to text. Implementations are fun. You should try it. I once created a BrainF*** -> Java compiler, in Java.
*Correction: I did design a language. Just not this one.
@Quincunx I'll certainly give it a go at some point, when I've got fewer other things on my schedule.
Wait, I did write a regex interpreter with quite a few features that could have easily been extended to the full ECMAScript flavour (and probably others, too). Not Turing complete but still a language. ;)