Plang is a modern programming language written in natural language.
Join our community on Discord | Follow us on Twitter | Youtube channel
Plang is a programming language written in natural language.
Plang is a new type of programming language that provides various features over other operation programming languages. It has built in Identity, built in database, built in messaging, solves syncing between device, and more.
Plang provides the developer with features that he already is familiar with such as variables, condition and for statements as well as powerfull standard library, and language is easily extendable.
Plang provides increased security and privacy to both developer and users of their application, for free as in beer.
This is an example of how effienct it is to written in plang.
Following is executable code
CreateUser
- Make sure %password% and %email% is not empty
- Hash %password%, write to %hashedPassword%
- Insert into users, %hashedPassword%, %email%
- Post, create user in MailChimp
Bearer %Settings.MailChimpApi%
%email%
- Create bearer token from %email%, write to %bearer%
- Write %bearer% to web response
These 6 steps replace over 100+ lines of C#/Java/Typescript code, or if you do clean code programming, dozens of files
Tip
You do not create user in this way in Plang, it is much simpler. This example is only provided for familiarity.
Caution
Heads up: Building code costs money Each code line incurs usually between $0.01 - $0.07 fee via LLM. The payoff? Exceptional efficiency gains. You can choose to use Plang service(simpler) or OpenAI(cheaper). Using Plang service supports the project
Set up Plang on your system. Download Plang from the download page and follow our Installation Guide.
Explore plang's capabilities and start building today. For initial steps and guidance, see Getting Started with plang.
Explore plang's features and capabilities:
- Basics for everybody
- Development Environment (IDE): This is where you write your code. Makes sure to setup your development environment.
- Rules: The basic rules to follow when writing plang code.
- Basics for beginners
- Variables: Learn about
%variables%
in plang and how to use them. - Conditions: Understanding
if
statements and conditional logic in plang. - Loops: Explore how to go through a list of data
- Date & Time: How you work with
%Now%
, the date and time of the system
- Variables: Learn about
- For everybody
- Advanced
- Identity: What is Identity and why is it so important
- Private keys: What private keys are in the system and where are they stored.
- Settings: How to store and use settings in your app such as API keys and other sensitive data.
- Building your code: How does the builder take your intent and convert it to executable code.
- Builder Lifecycle & Events: Sequence of operations when building plang and build events
- Runtime Lifecycle: Sequence of operations when running plang
- Runtime Events: Learn about event-driven programming in plang.
- Performance: What is the perfomance of plang?
- Modules: Learn how to extend the language. Discover the different modules available in plang and their capabilities.
- Services: Learn how flexible the plang language is, e.g. using the db engine of your choice, your own caching service and more.
- Use OpenAI API key or Local LLM: Shows how to use OpenAI API directly instead of PLang LLM service. Discusses status of local LLM
- Supported LLM: List of supported LLMs
- Reserved keywords: See list of reserved keywords in the language
- Developing the plang language
- Help create PLang: Information on how to help with development of plang programming language.
- Examples of actual apps
- List of apps at https://github.com/PLangHQ/apps
- Doc builder - This doc is built with plang
- Static content generator - plang.is website is built using plang
Plang comes with a wide range of features including:
- Intuitive syntax (just natural language, with some rules)
- Powerful standard library
- Built-in Identity
- Efficient error handling
- Efficient cache handling
- Built-in Messaging system
- Built-in Database
- Dependency injection
- User privacy
- Verifiable code
- Local storage of your data
- Sync between devices
- User is in control the UX
- Programing in your native tongue
- Security at another level, eliminating most problems we have today
You can read the "paper" I wrote while developing plang. It goes into detail about the language and thoughts.
Join our community of contributors! Learn how you can contribute on GitHub.
At version 0.1.
- Creator: @ingig
- Contributors: See the list of contributors
Special thanks to everyone who has developed an open source project that plang uses. ❤️
plang is available under LGPL version 2.1. Details are in our LICENSE.
Go to the discussion board, find us on Discord or follow us on Twitter or email plang@plang.is