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


OpenAI API: REST or SDK


Can I call OpenAI Assistants APIs without using the provided SDKs? - API - OpenAI Developer Forum

Yes, there are official SDKs, non-official SDKS, and good old fashioned REST requests. There are even examples of making requests like throughout the OpenAI API documentation