Welcome to EverybodyWiki ! Nuvola apps kgpg.png Sign in or create an account to improve, watchlist or create an article like a company page or a bio (yours ?)...

Ring (programming language)

From EverybodyWiki Bios & Wiki
Jump to navigation Jump to search




Ring
Ringlogo transparent.png
ParadigmMulti-paradigm: object-oriented, imperative, functional, procedural, reflective, declarative, natural language programming
Designed byMahmoud Fayed
DeveloperThe Ring Development Team
First appearedJanuary 25, 2016; 3 years ago (2016-01-25)
Stable release
1.10 / January 25, 2019; 6 months ago (2019-01-25)
Typing disciplineDynamic, weak
Implementation languageC (primarily; some components C++)
OSLinux, macOS and Microsoft Windows
LicenseMIT License
Filename extensions.ring, .rh, .rform
Websitehttp://ring-lang.net
Influenced by
Lua, Python, Ruby, C, C#, BASIC, QML, xBase, Supernova

Ring is a dynamically typed, general-purpose programming language. It can be embedded in C/C++ projects, extended using C/C++ code and/or used as a standalone language. The supported programming paradigms are imperative, procedural, object-oriented, functional, meta, declarative using nested structures, and natural programming. The language is portable (Windows, Linux, macOS, Android, etc.) and can be used to create console, GUI, web, game and mobile applications. [1][2] [3][4] [5][6]

History[edit | edit source]

In 2009, Fayed tried to implement some ideas related to Natural Language Programming, In 9 months he created a minor domain-specific language called Supernova that focus on User interface (UI) creation, then he realized the need for a new language that are general-purpose, practical and can increase the productivity of creating natural languages. [7] [8] [9]

  • In November 2011, the idea of the new language was conceived.
  • In Sept. 2013, the design and the implementation was started.
  • In April 2015, the language name was selected.
  • In May 2015, the compiler was implemented.
  • In Sept. 2015, the documentation was done.
  • In January 25, 2016 , Ring 1.0 was released.
  • In October 6, 2016, Ring 1.1 was released.
  • In January 25, 2017, Ring 1.2 was released.
  • In May 15, 2017, Ring 1.3 was released.
  • In June 29, 2017, Ring 1.4 was released.
  • In August 21, 2017, Ring 1.5 was released.
  • In November 30, 2017, Ring 1.6 was released.
  • In January 25, 2018, Ring 1.7 was released.
  • In June 25, 2018, Ring 1.8 was released.
  • In October 6, 2018, Ring 1.9 was released.
  • In January 25, 2019, Ring 1.10 was released.[10][11]

The Ring Team used to provide a new release of Ring on January 25th, in the same day as the Egyptian revolution of 2011.

The language name is inspired by The Lord of the Rings (film series), "One ring to rule them all". [12][13][14][15]

Goals[edit | edit source]

The vast majority of computer owners are only users, and only a fraction develop software themselves. programming has the image that it is difficult. One of the many initiatives to remove that image is PWCT, which stands for Programming Without Coding Technology. Although visual programming environments are generally limited in their capabilities and mainly aim to show the user the concepts of programming, you can make almost anything with PWCT. Of course, that doesn't happen after a few minutes. [16] The Ring programming language is developed using PWCT and is designed for developing the next version of the PWCT software. [17][18][19][20] Also PWCT could be used in introducing programming concepts.[21][22]. The project started in Dec. 2005 and support designing applications through visual programming then generating the source code, the software support code generation in many programming languages. [23][24]

The general goals behind Ring: [25] [26]

  • 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.

Examples[edit | edit source]

Hello World program[edit | edit source]

The same program can be written using different styles. Here is an example of the standard "Hello, World!" program using four different styles.

The first style:

see "Hello, World!"

The second style:

put "Hello, World!"

The third style:

load "stdlib.ring"
print("Hello, World!")

Another style: similar to xBase languages like Clipper and Visual FoxPro

? "Hello, World!"

Change the Keywords and Operators[edit | edit source]

Ring support changing the language keywords and operators.

This could be done many times in the same source file, and is useful for

  • Customizing the language based on different needs like using the favorite style or porting Legacy code written in other languages

Translate Ring keywords to Japanese

ChangeRingKeyword  See 手紙を出す
ChangeRingOperator + そして
改行 = nl
します。 = :します。

手紙を出す "こんにちは、世界" そして 改行 します。

ChangeRingKeyword 手紙を出す See // キーワードの復旧
ChangeRingOperator そして     + // 演算子の復旧

Translate Ring keywords to Arabic

ChangeRingKeyword  See إطبع

إطبع "Hello, World!"

ChangeRingKeyword إطبع See 

Use style similar to the Pascal programming language

ChangeRingKeyword func function
ChangeRingKeyword see  write
begin = :begin

function main
begin
    write("Hello, World!");
    return 0;
end

ChangeRingKeyword function func
ChangeRingKeyword write see

[27] [28] [29][30] [31][32]

Implementation[edit | edit source]

Ring programs are not interpreted directly from the textual Ring file, but are compiled into bytecode, which is then run on the Ring virtual machine. The compilation process is typically invisible to the user and is performed during run-time, but it can be done offline in order to increase loading performance or reduce the memory footprint of the host environment by leaving out the compiler. Ring version 1.10 is implemented in approximately 20,000 lines of C code. [33] [34] [35]

The implementation code in C is not written directly using a Text editor. The Compiler and the Virtual Machine are designed using Visual Programming through the Programming Without Coding Technology software then the C code is generated. [36] [37] [38] [39] [40] [41] [42]

Extensions[edit | edit source]

The following are extensions that can be used immediately after the installation of the full installation version (with a file size of about 203 MB for Ring 1.10). Since these are officially provided and maintained on the Ring side, the users are not bothered by library dependencies that may cause problems in other languages, and there is a concern that they can not be used suddenly even if there are destructive language specification changes.

The extensions are implemented in approximately 500,000 lines of C and C++ code.

[43] [44] [45] [46]

Also Ring comes with libraries written in Ring itself, some of these libraries are related to web and game development.

Library Name Description
Standard Library General Classes and functions.
Web Library Simple framework for developing web applications using the MVC design pattern.
Game Engine Support developing 2D Games for Desktop and Mobile using Declarative Programming based on Allegro and LibSDL
Natural Library General-Purpose Natural Language Programming Library.
Trace Library A library for debugging applications.
Type Hints A library for adding type hints to functions.
Big Number Library Support arithmetic operations on huge numbers.
Fox Ring Library Contains functions similar to Visual FoxPro.

[47][48][49]

Applications[edit | edit source]

Ring is distributed with over 40 applications written in the language.

Some of these applications are

[50] [51] [52]

Tools[edit | edit source]

Ring is distributed with a Standard IDE that contains the next tools (written in Ring itself)

[53] [54] [55] [56] [57] [58]

Also Ring is distributed with extensions for the next code editors.

[59] [60]

Documentation[edit | edit source]

Ring is distributed with documentation written using Sphinix (2116 pages for Ring 1.10).

Also there is Japanese translation (unofficial).[61] [62] [63]

Popularity[edit | edit source]

Ring had a rapid rise and fall in popularity as measured by the TIOBE Programming Community Index. In February 2018, Ring broke into the top 50 for the first time. As of June 2019, Ring holds position in the top 100 on the TIOBE index. It's not easy to know how many users of a free open source software like Ring, because it's distributed through many websites like Sourceforge and GitHub, but some links from Sourceforge indicates 40 thousand downloads. Also Ring source code and visual source is distributed with the Programming Without Coding Technology software (21 million downloads). [64] [65][66]

Criticism[edit | edit source]

Ring critics [67] assert that:

  • The list index starts from 1, which messes up indexing math.
  • Dynamic typing, coupled with weak typing is the straight way to lots of bugs.

See also[edit | edit source]


Others articles of the Topic Free and open-source software : PureScript, Wikimedia Foundation, CookXml, Twisted (software), Gimmie, CryptoNote, GENESIS (MD software)
Some use of "" in your query was not closed by a matching "".Some use of "" in your query was not closed by a matching "".

References[edit | edit source]

  1. Omar Selim (January 2018). "The Ring programming language Review" (PDF). BIMArabia Magazine.
  2. Hany Salah (11 January 2016). "Ring: A New programming language". youm7.com. youm7.
  3. RosettaCode (12 June 2019). "Ring Samples (RosettaCode)". rosettacode.org. Rosetta_Code.
  4. Wikibooks (12 June 2019). "Ring Book (Wikibooks)". en.wikibooks.org. Wikibooks.
  5. Lea Karam (25 February 2017). "New programming languages that grab my attention!". In Agile web and app development.
  6. Ilya Bubnov (12 December 2017). "5 languages for 5 years". geekbrains.
  7. Ring Team (January 2019). "Ring Language - Frequently Asked Questions (FAQ)". Ring Team.
  8. Fayed (April 2010). "Supernova programming language". Code_Project.
  9. Omnia (December 2011). "Supernova language by Egyptian programmer". Youm7.
  10. G link Solutions Team (28 January 2019). "The evolution of the Ring programming language". glinksolutions.vn. GlinkSolution.
  11. Ring Team (25 January 2019). "Ring Reference" (PDF). ring-lang.net.
  12. Muslim Researchers Team (2016). "Ring: A new programming language made in the middle east". Muslim Researchers Magazine.
  13. Ahmed Hassouna (23 August 2017). "Ring Course (over 200 videos)". YouTube.
  14. Alaa Mohamed (15 June 2016). "Ring Course (over 100 videos)". YouTube.
  15. Quora (13 October 2018). "What programming languages have, in your opinion, a dumb name?".
  16. Computer Total Magazine (7 October 2018). "Free software: the best freeware from October 2018 - Includes (You can make almost anything with PWCT)". Computer!Totaal.
  17. Mones Hawas (23 November 2016). "Using Ring to Develop PWCT 2.0". youm7.com. youm7.
  18. Fayed, Al-Qurishi, Alamri, Aldariseh (22 March 2017). "PWCT: visual language for IoT and cloud computing applications and systems - Talk about designing Ring to develop PWCT 2.0". ACM.CS1 maint: Multiple names: authors list (link)
  19. Ring Team (January 2016). "Ring Language - Motivation". Ring Team.
  20. PWCT Team (June 2019). "PWCT Project (Used to develop Ring)". PWCT Team.
  21. AMBASTHA S (October 2014). "What's In This Month's DVD? Electronics For You". EFY Group.
  22. Chin, Jerry M. et all (2013). "A String Search Marketing Application Using Visual Programming" (PDF). e-Journal of Business Education and Scholarship of Teaching.
  23. AL-AALEM Magazine (November 2008). "Programming Without Coding Technology Review" (PDF). AL-AALEM the Scientists Magazine, Issue No. 116, Page 26.
  24. Naglaa Elsayed (2009). "Programming Without Coding Technology - Innovative Project (offline source)" (PDF). Al_Gomhuria.
  25. Naveen Verma (14 Aug 2018). "Ring Programming Language: What Do You Need To Know?". Medium (website).
  26. Mones Hawas (29 May 2018). "Progress in developing PWCT 2.0 using Ring". youm7.com. youm7.
  27. Rubin Liu (28 December 2017). "Different styles for writing Hello World program in the Ring programming language". codeproject.com. Code_Project.
  28. Roshan Ali (4 June 2018). "Ring programming tutorial". YouTube.
  29. Amr Essam (12 December 2017). "Amr Essam Tutorials". ribdev.
  30. Sara Hamdy (12 December 2017). "Sara Hamdy Tutorials". ringprogramming4arab.
  31. Fayed (9 October 2016). "Syntax Flexibility in the Ring Programming Language". codeproject.
  32. Ring Team (25 January 2016). "Syntax Flexibility Ring". Ring Team.
  33. Ring Team (14 June 2019). "Ring Features". GitHub.
  34. Ring Team (14 June 2019). "Ring Reference - Command Line Options". GitHub.
  35. Fayed (14 June 2019). "Ring Compiler and Virtual Machine source code (MIT License)". GitHub.
  36. Open Source Developers (13 June 2019). "Ring source code (MIT License)". GitHub.
  37. Fayed (15 March 2018). "General-Purpose Visual Language and Information System with Case-Studies in Developing Business Applications". Cornell University.
  38. Hend Al-Khalifa (29 February 2008). "Free Open Source Visual Programming Language". Al Riyadh (newspaper).
  39. Fayed (11 May 2017). "using visual programming to implement the Ring compiler and virtual machine" (PDF). King Saud University.
  40. "PWCT download statistics from Sourceforge". Sourceforge. 14 June 2019.
  41. Khaled Almesahuge (17 June 2010). "Useful open source projects - Programming Without Coding Technology". Al Riyadh (newspaper).
  42. FOP (23 May 2018). "Introducing Programming Without Coding Technology". YouTube.
  43. Open Source Developers (14 June 2019). "Ring Extensions". GitHub.
  44. Open Source Developers (14 June 2019). "libcurl - Bindings". cURL.
  45. Majdi Sobain (2 May 2017). "Squares Puzzle using RingAllegro". codeproject.com. Code_Project.
  46. RingWinCReg Team (2017). "RingWinCReg Extension Documentation". RingWinCReg.
  47. Open Source Developers (15 June 2019). "Ring Libraries written in Ring itself". GitHub.
  48. Fayed (11 August 2017). "Using the Natural Language Programming Library (NLPL) in the Ring Programming Language". codeproject.com. Code_Project.
  49. Fayed (12 October 2016). "Natural Language Programming in the Ring Programming Language". codeproject.com. Code_Project.
  50. Open Source Developers (15 June 2019). "Ring Applications written in Ring itself". GitHub.
  51. Etqan Company (25 September 2018). "Gold Magic 800 Game by Etqan Company". Steam (software).
  52. Etqan Company (25 September 2018). "Developing the Gold Magic 800 Game using Ring". Etqan Company.
  53. Ring Team (16 June 2019). "Using Ring Notepad". Ring Team.
  54. Ring Team (16 June 2019). "Using Ring Form Designer". Ring Team.
  55. Ring Team (16 June 2019). "Distributing Ring applications using Ring2EXE". Ring Team.
  56. Ring Team (16 June 2019). "Using the Ring Package Manager". Ring Team.
  57. Open Source Developers (15 June 2019). "Ring2EXE written in Ring itself". GitHub.
  58. Open Source Developers (15 June 2019). "Ring Package Manager (RingPM) written in Ring itself". GitHub.
  59. Open Source Developers (16 June 2019). "Extensions for Code Editors to support Ring". Ring Team.
  60. Open Source Developers (15 June 2019). "Editor extensions for the Ring language". GitHub.
  61. Sphinix Team (25 January 2019). "Ring documentation uses Sphinix". Sphinx (documentation generator).
  62. Ring Team (25 January 2019). "Download Ring documentation (PDF File), 2116 pages". Ring Team.
  63. OSDN (25 January 2019). "Unofficial Japanse translation for Ring documentation". OSDN.
  64. TIOBE (2 March 2018). "TIOBE Index, Ring in Top 50 programming languages according to TIOBE Index". www.tiobe.com. TIOBE_index.
  65. "Ring download statistics from Sourceforge". Sourceforge. 12 June 2019.
  66. "PWCT download statistics from Sourceforge - Ring source code and visual source is distributed with the PWCT". Sourceforge. 3 July 2019.
  67. Ciklum (12 December 2017). "New Programming Languages – A Hype Or Reality?". ciklum.com. Ciklum.

External links[edit | edit source]


This article "Ring (programming language)" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Ring (programming language). Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.


Compte Twitter EverybodyWiki Follow us on https://twitter.com/EverybodyWiki !