|
|
@@ -6,9 +6,9 @@
|
|
|
|
|
|
**Gravity** is a powerful, dynamically typed, lightweight, embeddable programming language written in C without any external dependencies (except for stdlib). It is a class-based concurrent scripting language with modern <a href="https://github.com/apple/swift">Swift</a>-like syntax.
|
|
|
|
|
|
-**Gravity** supports procedural programming, object-oriented programming, functional programming and data-driven programming. Thanks to special built-in methods, it can also be used as a prototype-based programming language.
|
|
|
+**Gravity** supports procedural programming, object-oriented programming, functional programming, and data-driven programming. Thanks to special built-in methods, it can also be used as a prototype-based programming language.
|
|
|
|
|
|
-**Gravity** has been developed from scratch for the <a href="http://creolabs.com" target="_blank">Creo</a> project in order to offer an easy way to write portable code for the iOS and Android platforms. It is written in portable C code that can be compiled on any platform using a C99 compiler. The VM code is about 4K lines long, the multipass compiler code is about 7K lines and the shared code is about 3K lines long. The compiler and virtual machine combined add less than 200KB to the executable on a 64 bit system.
|
|
|
+**Gravity** has been developed from scratch for the <a href="http://creolabs.com" target="_blank">Creo</a> project in order to offer an easy way to write portable code for the iOS and Android platforms. It is written in portable C code that can be compiled on any platform using a C99 compiler. The VM code is about 4K lines long, the multipass compiler code is about 7K lines and the shared code is about 3K lines long. The compiler and virtual machine combined add less than 200KB to the executable on a 64-bit system.
|
|
|
|
|
|
## What Gravity code looks like
|
|
|
|
|
|
@@ -57,30 +57,30 @@ func main() {
|
|
|
* multipass compiler
|
|
|
* dynamic typing
|
|
|
* classes and inheritance
|
|
|
-* higher order functions and classes
|
|
|
+* higher-order functions and classes
|
|
|
* lexical scoping
|
|
|
* coroutines (via fibers)
|
|
|
* nested classes
|
|
|
* closures
|
|
|
* garbage collection
|
|
|
* operator overriding
|
|
|
-* powerful embedding api
|
|
|
+* powerful embedding API
|
|
|
* built-in unit tests
|
|
|
* built-in JSON serializer/deserializer
|
|
|
* **optional semicolons**
|
|
|
|
|
|
## Special thanks
|
|
|
-Gravity was supported by a couple of open source projects. The inspiration for closures comes from the elegant <a href="http://www.lua.org" target="_blank">Lua</a> programming language; specifically from the document <a href="http://www.cs.tufts.edu/~nr/cs257/archive/roberto-ierusalimschy/closures-draft.pdf">Closures in Lua</a>. For fibers, upvalues handling and some parts of the garbage collector, my gratitude goes to <a href="http://journal.stuffwithstuff.com" target="_blank">Bob Nystrom</a> and his excellent <a href="https://github.com/munificent/wren">Wren</a> programming language. A very special thanks should also go to my friend **Andrea Donetti** who helped me debugging and testing various aspects of the language.
|
|
|
+Gravity was supported by a couple of open-source projects. The inspiration for closures comes from the elegant <a href="http://www.lua.org" target="_blank">Lua</a> programming language; specifically from the document <a href="http://www.cs.tufts.edu/~nr/cs257/archive/roberto-ierusalimschy/closures-draft.pdf">Closures in Lua</a>. For fibers, upvalues handling and some parts of the garbage collector, my gratitude goes to <a href="http://journal.stuffwithstuff.com" target="_blank">Bob Nystrom</a> and his excellent <a href="https://github.com/munificent/wren">Wren</a> programming language. A very special thanks should also go to my friend **Andrea Donetti** who helped me debugging and testing various aspects of the language.
|
|
|
|
|
|
## Documentation
|
|
|
The <a href="https://marcobambini.github.io/gravity/#/README">Getting Started</a> page is a guide for downloading and compiling the language. There is also a more extensive <a href="http://gravity-lang.org">language documentation</a>. Official [wiki](https://github.com/marcobambini/gravity/wiki) is used to collect related projects and tools.
|
|
|
|
|
|
## Community
|
|
|
-Seems like a good idea to make a group chat for people to discuss about Gravity.<br> [](https://gitter.im/gravity-lang/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
|
+Seems like a good idea to make a group chat for people to discuss Gravity.<br> [](https://gitter.im/gravity-lang/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
|
|
|
|
## Contributing
|
|
|
Contributions to Gravity are welcomed and encouraged!<br>
|
|
|
-More information are available in the official [CONTRIBUTING](CONTRIBUTING.md) file.
|
|
|
+More information is available in the official [CONTRIBUTING](CONTRIBUTING.md) file.
|
|
|
* <a href="https://github.com/marcobambini/gravity/issues/new">Open an issue</a>:
|
|
|
* if you need help
|
|
|
* if you find a bug
|