Skip to main content

The Samarium Programming Language

Project description

Samarium

Samarium is a dynamic interpreted language transpiled to Python. Samarium, in its most basic form, doesn't use any digits or letters.

Here's a Hello, World! program written in Samarium:

Documentation on how to program in Samarium can be found here.

Installation

pip

pip install samarium

AUR

git clone https://aur.archlinux.org/samarium.git; cd samarium; makepkg -sirc or use your favorite AUR helper.

Using Samarium

You can run Samarium programs with samarium program.sm. samarium-debug may be used instead, which will first print out the intermediary Python code that the Samarium program is transpiled into, before executing it.

Short Long Description
-c <cmd> --command <cmd> Can be used to execute Samarium code from the string cmd,
directly in the terminal. cmd can be one or more statements
separated by semicolons as usual. Note that the last statement
of cmd will be printed if it does not end in a semicolon.
-h --help Shows the help message
-v --version Prints Samarium version

There is also a VSCode syntax highlighting extension for Samarium, which can be found here here. The source code can be found here.

Credits

Samarium was inspired by several languages, including brainfuck, Rust, Python and Java.

Special thanks to:

  • tetraxile for helping with design choices and writing the docs
  • MithicSpirit for making an AUR package for Samarium
  • DarviL82 for fixing some issues
  • Endercheif for making the documentation look fancy and helping with design choices

If you have any questions, or would like to get in touch, join the Discord server!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

samarium-0.3.1.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

samarium-0.3.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file samarium-0.3.1.tar.gz.

File metadata

  • Download URL: samarium-0.3.1.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.6.0

File hashes

Hashes for samarium-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5746d8bf76802efc15f51b5cb8e759653e58eebd12172c389ab4f8e6d1714f89
MD5 4dab7262504c8e676423c4042830607e
BLAKE2b-256 2a03bc1bad00282a991bbff48c710835967a07e58853bcb06ed283434bd5ccd5

See more details on using hashes here.

File details

Details for the file samarium-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: samarium-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.6.0

File hashes

Hashes for samarium-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 385dc42393ff40efcb7327e9f5a5d79b26145719cdf4c83f0437849e213ce87f
MD5 94c853e68d2cd3d0c879b99323d9764d
BLAKE2b-256 5bf1aac4185d57530eca484843491c1870b751f6fabe294c4eeda301cb02d495

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page