<- Back
Comments (96)
- hans_castorpThis reminds me of "Creators admit Unix, C hoax" (e.g. https://www.gnu.org/fun/jokes/unix-hoax.html)> We stopped when we got a clean compile on the following syntax: for(;P("\n"),R--;P("|"))for(e=C;e--;P("_"+(*u++/8)%2))P("| "+(*u/4)%2);
- sharktheoneTC39 member here; There are a lot more ways in JS to call a function without parenthesis. The first thing to come to my mind is Symbol.isConcatSpreadable or Symbol.iterator which works in multiple places
- nathellI love this. This is a fun hack, but the article also hearkens back to pre-LLM days when people were still interested in _code_.
- ameliusI want to put the called function after the arguments: (((x)f)g)h So I can see exactly the order in which things happen, from left to right. As opposed to: f(g(h(x))) where I have to read backwards.
- MattCruikshankI want to write a super pedantic book showing every way I can think of to move data from here, to there. In the same program, or between programs.Global variable.Parameter to a function.Pass a functor/lambda, get the value.Environment variable.Registry.File.Store it in a ping response.VRAM texture that you write and then read.Database.REST server.I'm pretty sure I could come up with a thousand ways.But... why? Why do I want to write this book? Why has it been on my mind?
- jlhawn> without parentheses> \x28> \x29does this not count as using parentheses?
- CrendKingNot gonna work on Firefox, since according to the doc, Error.prepareStackTrace is an optional API and only implemented by V8.
- airtnpCould this be used in obfuscation? We should try to apply it and see if LLM can deobfuscate it.
- pardsOff topic: This website looks like a ransom note
- TheSilvaObject.prototype.message='alert\x281337\x29';Array.prototype.toString=Error.prototype.toString;Error.prepareStackTrace = Function;const x = new Error;x.valueOf=x.stack;+x; Well, that's a mouthful! So many years and JavaScript still can do the most amazing, weird, awesome, scary, obscure, and sexy things in the world of coding.
- semiquaverJavaScript is so cursed.
- aktenlageWhat's the purpose of the +x at the end?
- shevy-javaIt is called ... Ruby.(Though, parentheses are sometimes needed due to ambiguity. But by and large, the lispy legacy has been overcome already.)
- CoalitionOfPity[flagged]
- CreepyHunterX[flagged]