Get the latest tech news

OpenAI is good at unminifying code


I was curious about how a component was implemented in a minified JavaScript file and used ChatGPT to reverse engineer the component.

It deals with generating some dynamic text content, presumably ASCII art or some kind of visual effect using characters from a predefined set. This part of the code imports some common Math functions ( floor, abs, and min) and defines two sets of characters, stored in O5. It calculates the number of columns ( s) and rows ( o) based on the window size and then fills the div with characters generated by the eT function.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of OpenAI

OpenAI

Photo of unminifying code

unminifying code

Related news:

News photo

OpenAI, Anthropic Agree to Work With US Institute on Safety Testing

News photo

OpenAI in talks to raise funding that would value it at more than $100 billion

News photo

OpenAI reportedly in talks to close a new funding round at $100B+ valuation