Message from JavaScript discussions

May 2019

— Which is a function you can call

— 

All together:

const X = x => x(x => y => z => x(z)(y(z)))(x => () => x);

const main = X(X(X(X(X))))(X(X(X(X)))(X(X(X(X(X))))(X(X(X(X(X))))(X(X(X(X))))(X(X(X(X)))))))(X(X(X(X(X))))(X(X(X(X)))(X(X(X(X)))))(X(X(X(X(X))))(X(X(X(X))))(X(X(X(X))))));

main(1)(x => x + 1); // 2

— X will have the same definition for every program

— And main is encoding your lambda calculus code

— Any computation / algorithm can be encoded this way

— JSFuck 2.0

— Welcome

— What, ok, I’m just processing it.
I was wondering that, how do you go from lambda calculus to numbers.

Message permanent page

— But you just solved it

— Well, no numbers are involved here

— The 1 and x => x +1 is just an example function

— You can put whatever you like