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.
Examples
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 statementsseparated 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!
Metadata
Release files for samarium 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| samarium-0.6.2.tar.gz | 41.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| samarium-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 89.0 kB
Release files / samarium-0.6.2.tar.gz
| Download URL | samarium-0.6.2.tar.gz |
|---|---|
| Size | 41.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
690ed88647edf344458fc779a074ada91caf0504bf432f8d2bb8dc44f46ebc3a
|
|
BLAKE2b-256 checksum How to use checksums |
0bf3df5ea9c84a014e758ec46c8cc5e0c32189922f9e1ef197a8e5d727b610a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.8.18 Darwin/23.5.0
|
Release files / samarium-0.6.2-py3-none-any.whl
| Download URL | samarium-0.6.2-py3-none-any.whl |
|---|---|
| Size | 47.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6e5a41f35c9c685b2fa503efaee87b6a415cff06dd2068589a91eefedd0f536
|
|
BLAKE2b-256 checksum How to use checksums |
7be806bc1c19d3be30022c5058076c24ca3b5af5e2c1a405e02dbee392fd88f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.8.18 Darwin/23.5.0
|