gptlang  by forrestchang

GPT-4-implemented programming language for ease of use and readability

Created 2 years ago
342 stars

Top 80.8% on SourcePulse

GitHubView on GitHub
Project Summary

This repository presents GPTLang, an experimental, high-level, interpreted programming language designed for ease of use and readability, intended for both beginners and experienced programmers. It aims to explore the creation of a programming language using GPT-4, offering a simple syntax, diverse data types, and built-in functions.

How It Works

GPTLang is conceptualized and defined through natural language prompts, with the intention of being interpreted by GPT-4. The project includes a Python implementation (gptlang.py) that is still under development. The language features include variable declarations (VAR), functions (FUNC), conditional logic (IF/ELSE), loops (LOOP), arrays, user-defined types (TYPE), and basic I/O (PT(), LEN()).

Quick Start & Requirements

  • To use GPTLang, copy and paste the language definition from the README into ChatGPT.
  • The Python implementation (gptlang.py) is available but marked as "WIP" (Work In Progress).
  • No specific hardware or software prerequisites are listed for the ChatGPT-based usage.

Highlighted Details

  • Demonstrates implementations of common algorithms like Selection Sort, Quick Sort, and the Knuth-Morris-Pratt (KMP) algorithm in GPTLang syntax.
  • Features include explicit type declarations (e.g., VAR message:str), array indexing, and user-defined types.
  • Supports implicit line joining using backslashes and basic exception handling with TRY/EXCEPT.

Maintenance & Community

  • The project is maintained by forrestchang.
  • No community links (Discord, Slack) or roadmap are provided in the README.

Licensing & Compatibility

  • The repository does not explicitly state a license.

Limitations & Caveats

  • The primary method of interaction is via ChatGPT, which is experimental and may have performance or consistency issues.
  • The Python interpreter is explicitly marked as "WIP," indicating it is not production-ready.
  • No formal testing or benchmarking is presented.
Health Check
Last Commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
0 stars in the last 30 days

Explore Similar Projects

Starred by Didier Lopes Didier Lopes(Founder of OpenBB), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
3 more.

DeepSeek-Coder-V2 by deepseek-ai

0.3%
6k
Open-source code language model comparable to GPT4-Turbo
Created 1 year ago
Updated 11 months ago
Feedback? Help us improve.