Status | |
---|---|
MacOS X | |
Ubuntu Linux |
The Ring is an Innovative and practical general-purpose multi-paradigm scripting language that can be embedded in C/C++ projects, extended using C/C++ code and/or used as standalone language. The supported programming paradigms are Imperative, Procedural, Object-Oriented, Functional, Meta programming, Declarative programming using nested structures, and Natural programming. The language is portable (Windows, Linux, Mac OS X, Android, etc.) and can be used to create Console, GUI, Web, Games and Mobile applications. The language is designed to be Simple, Small, Flexible and Fast. Its Dynamic Language (Dynamic Typing and Weakly Typed) that compile the source code to byte code then execute it by the Ring Virtual Machine, which is integrated with the Ring Compiler in one program. The first version of the language (around 100,000 lines of C/C++/Ring code) is released on January 25th, 2016.
The language is simple, trying to be natural, encourage organization and comes with transparent and visual implementation. It comes with compact syntax and a group of features that enable the programmer to create natural interfaces and declarative domain-specific languages in a fraction of time. It is very small, fast and comes with smart garbage collector that puts the memory under the programmer control. It supports many programming paradigms, comes with useful and practical libraries. The language is designed for productivity and developing high quality solutions that can scale.
The language is designed for a Clear Goal
-
Applications programming language.
-
Productivity and developing high quality solutions that can scale.
-
Small and fast language that can be embedded in C/C++ projects.
-
Simple language that can be used in education and introducing Compiler/VM concepts.
-
General-Purpose language that can be used for creating domain-specific libraries, frameworks and tools.
-
Practical language designed for creating the next version of the Programming Without Coding Technology software.
#Build from source code
git clone http://github.com/ring-lang/ring.git
Install homebrew (follow the directions on homebrew's homepage).
brew install unixodbc mysql-connector-c allegro qt52
cd ring/src
./buildclangcomplete.sh
cd ../extensions/ringallegro
./gencode.sh
./buildclang.sh
cd ../ringqt
./gencode.sh
./buildclang.sh
cd ../../bin
sudo ./install.sh
cd applications/rnote
sudo ring rnote.ring
The next screen shot for the SuperMan Game (Developed using Ring)
To run the stars fighter game from the terminal
cd ../../ringlibs/gameengine
ring loadgame1.ring
To run the Flappy Bird 3000 game
ring loadgame2.ring
To run the SuperMan game
ring loadgame3.ring
git clone http://github.com/ring-lang/ring.git
cd ring/src
./installdep.sh
sudo ./buildgcccomplete.sh
cd ../extensions/ringallegro
./gencode.sh
./buildgcc.sh
cd ../ringqt
./gencode.sh
./buildgcc.sh
cd ../../bin
sudo ./install.sh
cd applications/rnote
sudo ring rnote.ring
git clone http://github.com/ring-lang/ring.git
MySQL : https://dev.mysql.com/downloads/connector/c/
LibCurl : https://curl.haxx.se/libcurl/
OpenSSL : https://www.openssl.org
Allegro 5 : http://liballeg.org/download.html#windows
Qt 5.5 : https://download.qt.io/archive/qt/5.5/5.5.1/
You can quickly install MySQL, LibCurl, OpenSSL and Allegro libraries
from this link : https://sourceforge.net/projects/ring-lang/files/Ring%201.0/libdepwin.zip/download
Then extract and copy the libraries folders to Ring/libdepwin
cd ring/src
buildvccomplete.bat
cd ../extensions/ringallegro
gencode.bat
buildvc.bat
cd ../ringqt
gencode.bat
buildmingw32.bat
cd ../../bin
install.bat
Hit "windows key".
Type "Edit the System environment variables"
Select "Advanced" tab.
Click on "Enviroment Variables..."
Double click on "Path"
Add at the end the new path separated by semicolon.
;C:\Ring\Bin
cd applications/rnote
ring rnote.ring
The Ring programming language is designed using the PWCT visual programming tool (http://pwct.org) and you will find the visual source of the language in the folder "visualsrc" - *.ssf files and the generated source code (In the C Language) in the src folder and the include folder. The next screen shots demonstrates how to visually modify the Ring Compiler and Virtual Machine (VM) then generate the C code.
The next screen shot from the ring_vm.ssf file (Generate ring_vm.c and ring_vm.h)
The next screen shot from the ring_list.ssf file (Generate ring_list.c and ring_list.h)