"ChatGPT, make a new programming language"

"ChatGPT, make a new programming language"

Creating a New Programming Language

In this section, the speaker discusses creating a new programming language called Swift Script. They discuss key features such as static typing, optional chaining, pattern matching, immutability, async/await, enhanced module system and error handling.

Key Features of Swift Script

  • Swift Script is a modern high language and versatile programming language inspired by JavaScript.
  • It enforces static typing reducing runtime errors and improving code safety.
  • Optional chaining allows access to nested properties without worrying about null or undefined values.
  • Pattern matching allows for more expressive and readable code when handling complex data structures.
  • Immutability ensures that once an object is created it cannot be changed.
  • Async/await simplifies asynchronous programming by allowing developers to write asynchronous code that looks like synchronous code.
  • Enhanced module system provides better organization of code into reusable modules.
  • Error handling helps developers identify and handle errors in their code.

Creating a Swift Script Interpreter

  • To run a Swift Script file, an interpreter or compiler is needed. The speaker explains how to create one using Python as an example language.
  • The speaker modifies the interpreter to accept script files instead of just simple arithmetic expressions.

Example.swiftscript File

  • The example.swiftscript file currently can only be a plain arithmetic expression but needs to be modified to accept Swift Script code.

Updating and Implementing Multiplication Division

In this section, the speaker discusses updating and implementing multiplication division in the interpreter's functionality.

Interpreter Functionality

  • The speaker expands the interpreter's functionality to support variables, loops, functions, and more.
  • An updated version is provided that includes these features.

Testing the Interpreter

In this section, the speaker tests the interpreter to see if it can handle various tasks.

Unexpected Errors

  • The speaker encounters unexpected errors while testing the interpreter.
  • Despite encountering errors, they are impressed with how much work Chad GPT has done for them.

Examining Code

  • The speaker advises examining the code generated by Chad GPT to learn new things.
  • They caution against blindly copying and pasting code without understanding it.

Handling Errors in Chad GPT

In this section, the speaker discusses handling errors encountered while using Chad GPT.

Unexpected Identifier Error

  • The speaker encounters an unexpected identifier error while testing their Swift script file.
  • They try to fix it by continuing where they left off but still encounter issues.
  • They advise working through errors one function at a time.

Extending to Loops and Conditionals

In this section, the speaker mentions that extending the current topic to loops and conditionals will require more work on the viewer's part.

Additional Work Required

  • Extending the current topic to loops and conditionals requires more work on the viewer's part.
  • The responsibility of doing additional work lies with the viewer, not with chat GPT.

Conclusion

In this section, the speaker concludes by thanking a commenter for suggesting the topic and encourages viewers to leave suggestions in the comments.

Thank You and Goodbye

  • The speaker thanks a commenter for suggesting this topic.
  • Viewers are encouraged to leave suggestions in the comments.
  • The video ends with music playing in the background.
Video description

Asking ChatGPT to create a new programming language for me. ๐Ÿ‘€ *Gear I use:* https://www.amazon.com/shop/alexziskind โ–ถ๏ธ How to get Copilot FREE - https://youtu.be/Ybo1qq1ZcFE โ–ถ๏ธ github gave me a BEAST for coding - https://youtu.be/vPigsZ-zk1g โ–ถ๏ธ M1 MacBook Air Running Visual Studio and Xamarin for Mac - https://youtu.be/bH1MV1U3I28 โ–ถ๏ธ Apple M1 vs Intel Core i9 and .NET Performance - First Look - https://youtu.be/u6NlyUSGmmU โ–ถ๏ธ Apple M1 vs Intel i9 JavaScript Nx Workspace Install and Build Speed Comparisons - https://youtu.be/RD6qELOBr5U Sign up for GitHub wait lists: https://github.com/features/preview Copilot-x: https://github.com/features/preview/copilot-x โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โค๏ธ SUBSCRIBE TO MY YOUTUBE CHANNEL ๐Ÿ“บ Click here to subscribe: https://www.youtube.com/@azisk?sub_confirmation=1 โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” ๐Ÿ“ฑLET'S CONNECT ON SOCIAL MEDIA ALEX ON TWITTER: https://twitter.com/digitalix โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” โ€” #programming #gpt4 #chatgpt