/nim-playground

A interactive website and server that allow you to easily play with and explore the Nim programming language.

Primary LanguageJavaScriptMIT LicenseMIT

nim-playground

Interactive server/website that gives you an editor allowing you to easily play with the Nim language.

You can execute Nim code right in your browser, and see the output, or compiler errors. The history of your executed code is saved in browser localStorage.

You should run the playground yourself on your local computer. It only takes two commands to install and launch it.

Get started

  • Install the playground with nimble:
nimble install playground
  • Run the playground:
playground

Bug Notice

As of September 2023, you may encounter the following error when launching the playground:

SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault

This issue originates from the httpbeast library, which is a dependency of jester. For further information, refer to this GitHub issue.

Quick Fix

  • Run the playground:
nimble run -d:useStdLib
  • Compile the playground:
nimble build -d:useStdLib

The flag -d:useStdLib directs jester to use std/asynchttpserver instead of httpbeast.

Security notice

The playground is NOT intended for public hosting / being available publicly, since any user could wreak havoc on the running machine (delete files, etc).

Only use it locally, behind a firewall.

Additional information

Versioning

This project follows SemVer.

License.

This project is under the MIT license.