@jaytechsolutions/jts-go
v2.0.2
Published
JTS GO - The easiest programming language to learn. Development Kit v2.0.2 with fixed try/catch, dict/list/string methods, and scanner bug fixes.
Maintainers
Readme
JTS Development Kit v2.0.0
What is JTS GO?
JTS GO is a programming language designed for absolute beginners. If you've never written code before, this is where you start.
- Python-like syntax — readable, indentation-based
- Object-Oriented Programming — classes, methods, inheritance
- Dynamic typing — no need to declare variable types
- Built-in ML/AI — tensors, matrices, activation functions
- Web Development — HTTP server support
- Simple toolchain — one command to run your code
- Compiled to bytecode — fast execution via a virtual machine
Quick Start
Install via npm
npm install -g @jaytechsolutions/jts-goThen run any .jts file:
jts hello.jtsUpdate
jts --updateHello, World!
print("Hello, World!")Save as hello.jts and run:
jts hello.jtsLanguage Features
Variables
# Dynamic typing
name = "JTS GO"
version = 2.0
is_awesome = true
nothing = nil
# Type-annotated declarations
int age = 25
string greeting = "Hello"
float pi = 3.14
bool active = true
list numbers = [1, 2, 3]
var x = 42
print(name)Object-Oriented Programming
# Define a class
class Animal
func init(self, name)
self.name = name
end
func speak(self)
print(self.name + " makes a sound")
end
end
# Create an instance
a = new Animal("Dog")
a.speak() # Dog makes a sound
print(a.name) # Dog
# Inheritance
class Dog extends Animal
func bark(self)
print(self.name + " barks!")
end
end
d = new Dog("Rex")
d.speak() # Rex makes a sound (inherited)
d.bark() # Rex barks! (own method)Functions
func greet(name)
print("Hello, " + name + "!")
end
func add(a, b)
return a + b
end
print(add(3, 4)) # 7Lists
nums = [1, 2, 3, 4, 5]
print(nums[0]) # 1
append(nums, 6)
print(len(nums)) # 6Control Flow
# If/Else
if score >= 90
print("A")
else
print("B")
end
# While loop
i = 0
while i < 5
print(i)
i = i + 1
end
# For loop
for i in 0 to 10
print(i)
endML/AI Functions
# Tensors
t = tensor([1, 2, 3, 4, 5])
print(t)
# Matrices
m1 = matrix([[1, 2], [3, 4]])
m2 = matrix([[5, 6], [7, 8]])
result = matmul(m1, m2)
print(result)
# Activation functions
print(sigmoid(0)) # 0.5
print(relu(-5)) # 0
print(relu(5)) # 5
# Loss functions
print(mse([1, 2, 3], [1.1, 2.2, 3.1]))Web Development
# Create and start an HTTP server
server = http_server(8080)
http_start(server)Math Functions
print(sqrt(16)) # 4
print(math("sin", 3.14159)) # ~0
print(math("floor", 3.7)) # 3
print(math("abs", -42)) # 42String Conversion
print(str(42)) # "42"
print(str(true)) # "true"
print(str(nil)) # "nil"Built-in Functions
| Function | Description |
|----------|-------------|
| print(value) | Output a value to the console |
| input(prompt) | Read user input (auto-detects type) |
| len(value) | Get length of a string, list, tensor, or matrix |
| type(value) | Get the type of a value |
| append(list, value) | Add an element to a list |
| number(string) | Convert a string to a number |
| str(value) | Convert a value to a string |
| math(func, x) | Math functions (sin, cos, tan, sqrt, abs, log, exp, pow, floor, ceil, round) |
| sqrt(x) | Square root |
| tensor(data) | Create a tensor from a list |
| matrix(data) | Create a matrix from nested lists |
| matmul(a, b) | Matrix multiplication |
| sigmoid(x) | Sigmoid activation: 1 / (1 + e^(-x)) |
| relu(x) | ReLU activation: max(0, x) |
| mse(predicted, actual) | Mean squared error loss |
| http_server(port) | Create an HTTP server |
| http_start(server) | Start the HTTP server |
| http_request(url) | Make an HTTP request |
Toolchain
| Command | Purpose |
|---------|---------|
| jts file.jts | Compile and run a JTS GO program |
| jtsc file.jts | Compile to bytecode only (.jbc) |
| jtsvm file.jbc | Run a compiled bytecode file |
| jts --update | Update JTS GO to latest version |
Documentation
Read the full language guide: JTS GO Learning Guide
License
Proprietary Software — Copyright (c) 2025–2026 JayTechSolutions. All Rights Reserved.
You may: Install, use, and run JTS GO for personal or commercial purposes.
You may NOT: Copy, modify, reverse-engineer, redistribute, or develop competing languages from the source code.
See PROPRIETARY_LICENSE for full terms.
For permissions beyond this license, contact: [email protected]
