yyny
  • Member for 7 years, 6 months
  • Last seen more than a week ago
  • Alphen aan den Rijn, The Netherlands
Showcase of Languages
77 votes

Brainfuck Factoid: Brainfuck (Also known as brainf*ck) was a experimental esoteric language for creating the smallest turing-complete language interpreter ever, created by Urban Müller, and is ...

View answer
KOTH: A world-wide pandemic
7 votes

PureBot (Haskell) PureBot hates one thing: Side effects! It will try to handle all side effects, and if everything goes well, it will reduce the amount of side effects produced by the outside world. ...

View answer
Distance between two points in n-dimensional space
6 votes

Haskell, 46 bytes d :: Floating c => [c] -> [c] -> c d a=sqrt.sum.map((^2).uncurry(flip(-))).zip a Haskell, 35 bytes (By @nimi) d :: Float c => [c] -> [c] -> c d a=sqrt.sum....

View answer
Spell out the Revu'a
6 votes

Brainfuck, 40 bytes My console doesn't support Right-to-Left characters, but I don't think it will work :c ++++++++++>,[>,]<[<]>[[<+>-]<[<]>[.>]>] Ungolfed: ++++...

View answer
Obfuscated Hello World
5 votes

C (79*12=948) Using no strings or characters, and only the number one. I was a little creative with the bitshifts and subtractions to make them fit onto at 80x12 console. Ask me in the comments if ...

View answer
Eat the Chocolate Bar
4 votes

Haskell, 101 bytes Haskell has never been great for code golfing... b="\n|__|__|" h=" ____\n " f 1=h++" |__|" f 2="_______"++b f 3=h++"__|__|"++b f n=f(n-2)++b f _=""

View answer
Spell out the Revu'a
2 votes

My console doesn't support Right-to-Left characters, but I don't think it will work :c C, 105 bytes (3th entry) m[2<<9];i;j;k;main(){while((m[i++]=getchar())<0);for(;j<i;j++,putchar(10))...

View answer
Spell out the Revu'a
2 votes

My console doesn't support Right-to-Left characters, but I don't think it will work :c C, 74 bytes (2nd entry) char m[2<<9];i;main(){do{m[i]=getchar();printf("%s ",m);}while(m[i++]>0);} ...

View answer
Base-2 integer logarithm of 64-bit unsigned integer
2 votes

TI-30XB - 19 (Instructions) I won't actually participate in this contest with the following codes, but I found out this clever solution for my TI-30XB calculator: log(x)/log(2)+10^12-10^12. First of ...

View answer
Eat the Chocolate Bar
1 votes

C, 104 102 bytes f(x){x?x%2?printf(" ____\n%3s|__|\n",x<2?"":"__"):puts("_______"):0;for(x/=2;x>0;x--)puts("|__|__|");} Maybe I can use some printf trickery to improve this... Apparently I ...

View answer
Like a quine, but not
1 votes

Haskell Recursion can be tricky at times. let s = "let s = " ++ show s ++ " in putStrLn s" in putStrLn s

View answer
The Smart Person's Mirage
1 votes

Whitespace Sadly, StackOverflow seems to ignore spaces (Those whitespace haters!). Anyway, I've replaced all spaces with S, all tabs with T and all linefeeds with L: SSST L LSSST LSSSS LSSST LTTSS ...

View answer
Write a brainfuck translator
1 votes

Lua - 319 + 21 = 340 This is most likely the shortest code of all, but it doesn't accept input, so it is kinda cheaty. I got a idea for another version with input, see the end of this comment. ...

View answer
Let's make Diet Haskell
0 votes

C, 308 or 339 bytes #include <ctype.h> #define p putchar f(s,e,c,i,l)char*s,*e,*c;{i=1,l=40;if(*s++==l){p(l);for(c=s;i;i+=*c==l,i-=*c==41,i+*c==45&&p(44),c++);p(41);}for(;s<e;s=c){...

View answer
Why isn't it ending?
0 votes

Lua Totaly boring, but I thought it was still interesting: -- Example of stack overflow using recursion -- Function foo: this function will call itself forever: foo(foo(foo(foo(foo... function foo() ...

View answer
Heaps of trouble
-1 votes

Lua - 275 (Already lost :D) function f(s)return loadstring(s)end;f(([[a=f"_{}"b=f"t={...}&sort(t)_t"c=f"z={...}_f('x={'..&concat(z[1],',')..','..&concat(z[2],',')..'}&sort(x)_x')()"d=...

View answer
Why isn't it ending?
-2 votes

C++ - Lame Yay I is pro C++ I learnt for loop real quik now lets make cool program that print 1 to 10 cuz I am awesome and totaly did not chose C++ just cuz C doesnt allow for loop. #include <stdio....

View answer