Hello
I am interested in websites similar to rosettacode.org or golf.shinh.org where solutions to simple tasks are posted in a variety of all-purpose languages.
Can you recommend any such websites that have not been posted to HN previously.
Here is a novice sample, using some languages I prefer:
task:
print urls from 0, incremented by 20; stop at 100
output:
http://example.com/?p=0
http://example.com/?p=20
...
http://example.com/?p=100
sh n=0;while true;do test $n -le 100||break;
echo http://example.com/?p=$n;n=$((n+20));done
k3 a:"http://example.com/?p=";`0:?{,/$(:[0=x!20;a,x;a,0])}'!120
spitbol ; x = 0
;a output = "http://example.com/?p=" x
; x = x + 20
; le(x,100) :f(end)s(a)
;end
fasm format ELF
section '.text' executable
public main
extrn printf
extrn _exit
main:
mov ebx,0
x:
push ebx
push msg
call printf
add ebx,20
cmp ebx,100
jnbe y
jmp x
y:
push 0
call _exit
section '.data' writeable
msg db "http://example.com/?p=%d", 0xA,0