Skip to content

Instantly share code, notes, and snippets.

@ConorOBrien-Foxx
Created January 20, 2017 02:12
Show Gist options
  • Save ConorOBrien-Foxx/f97235f758a3cd6906abd577be7b9587 to your computer and use it in GitHub Desktop.
Save ConorOBrien-Foxx/f97235f758a3cd6906abd577be7b9587 to your computer and use it in GitHub Desktop.
888 byte Hello World in JavaScript
s=((C=f=>g=>(...a)=>f(g(...a)))&&(H=a=>[...a])&&(v=c=>a=>new(c)(a)))(Set);S=n=>[n,n].map(e=>e.map?e[1]:e).map((e,i)=>e.slice(...s([i,1])));O=J=e=>n=>(e+[])[n];p=h=>!(h&(1<<31)|!h);G=global;h=(f=[][1])=>(c=+[])=>(f+[])[c];E=s=>h(s)(+[]);R=H=>L(H).reverse();s=C((d=".",Z=x=>x))(C(H)(s));D=f=>()=>C(Z)(f);Y=(f,n)=>a=>p(n)?f(Y(f,~-n)(a)):a;L=H;T=(n,i,k=n)=>p(i)?T(n+k,--i,k):S(n)[++[[]][+[]]];f=(M=J)(![]);q=W=>Y(D,W);j=q(2)(E);w=0;X=d=>O=G[(U=x=>x[t](i*z*i+z+z-w++))(16465174322)];r=C((A=h(F=(()=>G)[c=`constructor`]),F)(b=[921631607,1061308,1160108].map(e=>e[t=`${o=(I=++i/0+[])[z=3<<1]}oS${i&&o}r${I[z/=2]}ng`]((2<<2<<2)+~-i)+[(T(A(2<<2),2)+d)[i]||[]],i=0).join``).bind({[z^i]:-192.3,[z-2]:402.4,[o+E(p)+I[z]+E(E)]:E(R)+f(2*2)+T(f(2),2)+J(c)`1`+j`````${j}`+A(2<<2)+E(q)+J(q?c:s)(J(z&~i)|1)+M(!+[])(1<<2>>2<<0)+f(2),[[14,2,3,6].map(A).join``]:640,y:420}))(X)();O[U(22288)](r+E(X)+M(p)(15));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment