A language with interpreter and compiler: silk flexibility with network level versatility!
Project description
Netbyte
Byte code, rope flexibility with versatile networking.
About
Netbyte is a compiled intermediary language, with a compiler and virtual machine, written for Python. It has a slightly Lisp-inspired syntax, with an Assembly/Batch-like statement flow logic, and is quite flexible. Most of the things you can do in Python, you can do with binary files and Netbyte.
Its flexibility comes from the fact it can store anything in two forms:
-
Python objects - Instruction, Operation, Function, etc.
-
Binary compiled code, the target of the compiler, and what the interpreter runs. This is what should be sent by sockets when sending instructions, not pickled Python objects.
It is not meant to be used as a direct language. Like Neko, it is meant to be used as a compilation target, but, unlike Neko, the compiled binary code is merely an architecture, so that you can make hierarchies out of it.
For example, we can have a Python dictionary; let's say it's just a
list of functions used by specific objects (actors) or other functional
attributes and items of a network game, where each entry has a key
name, and its value is a list of Instructions, which compiled string —
netbyte.Netbyte().compile(*instructions)
— can be transferred around
with TCP, and stored into other people's function lists using
netbyte.Netbyte().read(binary_code)
, so that everyone knows what instructions
to run if a certain function X is called on an object MyObject
.
For more examples, check the Programs folder.
How to Use?
You will need Python 3 to be able to use Netbyte.
To install, run:
pip install -U git+https://github.com/Gustavo6046/Netbyte.git
To set up the Standard Library directory, run:
stdlibdir.bat
To compile a program, run:
python -m netbyte compile input.nbc [output.nbe]
To execute, run:
python -m netbyte run input.nbe [arguments - see Stdlib/args.nbc or Programs/printfile.nbc]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Netbyte-0.1.6.3.tar.gz
.
File metadata
- Download URL: Netbyte-0.1.6.3.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c0dca5622e3c24464283499bd6730e6465ef5a44ccdc7e18991ea321f28961 |
|
MD5 | fcc2c16262d95666e51d73f5252ce288 |
|
BLAKE2b-256 | a8145b65f0ff73fa8173444d1c9d3791428d1c0120d189d7df9d7ebcc37473dd |
File details
Details for the file Netbyte-0.1.6.3-py3-none-any.whl
.
File metadata
- Download URL: Netbyte-0.1.6.3-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0915028d620d69634c75154465c7c70aaa96d4688e9932e8d917b668bd8b0c3 |
|
MD5 | c6a833111f56e7d20882643d59779b1a |
|
BLAKE2b-256 | eb72bd5d6a4bfd63b8a54e9c5dbba3ec23cc8dd9e7a735e96335ea69d2bc4073 |