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:

"Hello, World!"!;

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. The source code can be found here.

Credits

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

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, helping with design choices, and adding partial Python Interoperability

If you have any questions, or would like to get in touch, join my 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.5.1.tar.gz (34.7 kB view details)

Uploaded Source

Built Distribution

samarium-0.5.1-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samarium-0.5.1.tar.gz
  • Upload date:
  • Size: 34.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.16 Darwin/22.4.0

File hashes

Hashes for samarium-0.5.1.tar.gz
Algorithm Hash digest
SHA256 0791d674c38cb3f315c5d788ec9f970be3d3c1b7ad4125cee3b51b363db80703
MD5 3e2574e001d2d819602795b021ebb91b
BLAKE2b-256 faa6beddc49a95f5d0107cf097ccb8d90e9c6fe939d58e338d882652bb7c77b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: samarium-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.16 Darwin/22.4.0

File hashes

Hashes for samarium-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0f1756c54886195554f2e821b2e4a426fc3c43c0b71cd8da98b624d633b751e
MD5 40d96ab0b99adb9413259e5071beeef4
BLAKE2b-256 af6e93a2d0f8174ac9d6a60ecdf81d79cf1a368f1cee13769d67afa691bc135b

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