@graceful-language/core
v0.6.0
Published
A simple dynamic programming language
Downloads
39
Maintainers
Readme
Graceful Language - Core
NOTE: In very early development stage. Primairly experimenting with a few ideas so use at your own peril.
A simple programing language created for the common person. This package contains the core minimal features of the language with the hope of building on top of that. Graceful has primarily been inspired by Lisp, Erlang, Forth and Javascript. However, it should be noted that languages like Blitz Basic, Python, Actionscript, Smalltalk, Eiffel, Lua, Ruby and many more have also played somewhat of a role in Graceful's design. The hope with Graceful is to be a simple language at it's core with a simple set of ideas to work with. From there the end user can build upon the language and tailor it to their own needs. Graceful has been primarily developed in the Javascript and Browser eco system so that it can easily be portable and shared with others. Hopefully as the langauge gets more stable it can be port to other environments as well.
Keywords
In the interest of keeping Graceful simple the desire is to reduce the total number of keywords in the core language. Currently here are the list of 8 keywords reserved by the language.
_list
- Creates a list of tag (symbolic) items. A list can be thought of like a JS literal object or associative array._item
- A base structure within graceful that holds metadata about the value or target referenced. It is the main generic type used by the language. Items contian data, info, temp, link metadata structures about the item._get
- Get a reference from a specified storage target._ignore
- Ignore the contained content. Useful for comments in code_log
- Output content to some display. The intention is that the host system implements this functionality._set
- Set a reference for a specified storage target._share
- Share a reference to a specific target. Think of this like a return statement in a function._write
- Capture the the contained contents as a string / list of character values or codes.
It is important to note that the language marks reserved keywords with a leading _
character. This is so that keywords can be re-mapped or aliased to some other keyword suited for the needs of the end user.
Concepts and Terminology
NOTE: To come in the future...
Examples
NOTE: To come in the future...
Resources
- "Stop Writing Dead Programs" by Jack Rusher (Strange Loop 2022)
- OSCON 2010: Rob Pike, "Public Static Void"
- Breaking Open: Erlang
- LISP in 100 Seconds
- Why LISP is The Language of Legends
- Stop Writing Javascript Compilers, Make Marcros Instead
- mal - Make a Lisp
- Symbolics Lisp Machine demo Jan 2013
- Yesterday's Computer of Tomorrow: The Xerox Alto - Smalltalk-76 Demo
- What have we lost?
- "We Really Don't Know How to Compute!" - Gerald Sussman (2011)
- The Unreasonable Effectiveness of Dynamic Typing for Practical Programs
- The broken promise of static typing
- You Might Not Need TypeScript (or Static Types)
- The TypeScript Tax
- Programming Language Keywords Count
- Why Isn't Functional Programming the Norm?
- Mordern C and What We Can Learn From It - Luca Sas - ACCU 2021
- Why Forth? Programming Language
- Easy Forth