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.
- Install the playground with nimble:
nimble install playground
- Run the playground:
playground
-
Open your browser at http://localhost:5000.
-
Enjoy.
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.
- 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.
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.
This project follows SemVer.
This project is under the MIT license.