Monday, November 04, 2024

Replit: Web IDE + AI

Replit – Build software faster

Replit is an AI-powered software development & deployment platform for building, sharing, and shipping software fast.

Adam Bosworth Post | LinkedIn

"I’ve had something I want to build for a while but was too busy to try and didn’t have any good programmers available to do. I asked Replit to do it. The experience was staggering. It was as though I were managing a group of smart engineers. For the first time I really didn’t have to look at the code. And what I think would normally have taken a week or more of concerted effort just a year ago was accomplished in an hour and exceeded my expectations. Most tellingly on every error I could describe easily what was incorrect and it promptly and correctly fixed all errors before moving on to the next task.
At the end of the hour I had a fully fledged python web app deployed in the cloud and I hadn’t been a dev op or programmer once."

Replit originally was only a REPL. However, the Ace editor was eventually implemented, allowing for editing of programs as well. In 2017, Replit switched to the Monaco code editor, the same editor used in Visual Studio Code. Due to issues with mobile support, the code editor was switched to CodeMirror over 2021 - 2022.[12] This decision was met with backlash and criticism from the Replit community, which eventually calmed down after bugs and major issues were addressed.

Pricing - Replit


Sunday, November 03, 2024

Fractals

Zooming in a Mandelbrot Fractal by a Ratio of 10^227 - YouTube

Experiments with Google

Fractal - Wikipedia

In mathematics, a fractal is a geometric shape containing detailed structure at arbitrarily small scales (infinite zoom-in)




Saturday, November 02, 2024

AI book: The Singularity Is Nearer by Ray Kurzweil

 Amazon.com: The Singularity Is Nearer: When We Merge with AI eBook : Kurzweil, Ray: Kindle Store

"The noted inventor and futurist’s successor to his landmark book The Singularity Is Near explores how technology will transform the human race in the decades to come

Since it was first published in 2005, Ray Kurzweil’s The Singularity Is Near and its vision of an exponential future have spawned a worldwide movement. Kurzweil's predictions about technological advancements have largely come true, with concepts like AI, intelligent machines, and biotechnology now widely familiar to the public.

In this entirely new book Ray Kurzweil brings a fresh perspective to advances toward the Singularity—assessing his 1999 prediction that AI will reach human level intelligence by 2029 and examining the exponential growth of technology—that, in the near future, will expand human intelligence a millionfold and change human life forever."



eval(), exec() in Python, JavaScript

eval - Wikipedia


Python exec() Function

The exec() function executes the specified Python code.

The exec() function accepts large blocks of code, unlike the eval() function which only accepts a single expression

x = 'name = "John"\n print("Hello, " + name)'
exec(x)

x = 'print("2+3=", 2+3)'
eval(x)

Python Built-in Functions


JavaScript eval() Method

eval() - JavaScript | MDN

console.log(eval('2 + 2'));

// Expected output: 4