[HN Gopher] JavaScript was Brainfuck all along
       ___________________________________________________________________
        
       JavaScript was Brainfuck all along
        
       Author : artbit
       Score  : 30 points
       Date   : 2024-02-02 19:56 UTC (3 hours ago)
        
 (HTM) web link (medium.com)
 (TXT) w3m dump (medium.com)
        
       | artbit wrote:
       | JavaScript type coercion allows for some really obscure
       | transformations, that make it look like BrainFuck.
        
       | makeworld wrote:
       | https://jsfuck.com/
        
         | artbit wrote:
         | Hah! That's awesome. I wasn't aware of it.
         | 
         | But yeah, it's not a new idea really. Even my original article
         | was written, over a decade ago:
         | https://blog.djordjeungar.com/post/2011-09-13-obscure-javasc...
        
       | kderbyma wrote:
       | I have used this on some coding challenges when you try to get
       | the shortest answer or oneliner.
        
       | klyrs wrote:
       | Hard mode: write a nontrivial program the intersection of
       | javascript and brainfuck (no characters except []+-,.<>), which
       | does the same thing in both languages.
        
       | hyperhello wrote:
       | Doesn't TypeScript let you build things like this right in the
       | static types?
        
       ___________________________________________________________________
       (page generated 2024-02-02 23:01 UTC)