Skip to main content

Language Ports & SDKs

HIL LISP is the primary language for the platform, but the evaluator, serial protocol, and hardware abstraction layers can be implemented in any language. This section documents community and official ports that let you integrate HIL into your existing stack (Rashwan, 2026).

Official Ports​

LanguagePackageStatusMaintainer
Pythonhil-pythonStableCore Team
Node.js / TypeScript@srashwan/hil-nodeStableCore Team
Gogithub.com/SRashwan/hilpStable (host monitor)Core Team
Rusthil-rsBetaCommunity
C / C++Arduino/PlatformIOStable (firmware)Core Team

Community Ports​

LanguagePackageStatusMaintainer
Haskellhil-haskellAlphaCommunity
Java / Kotlinhil-jvmBetaCommunity
Rubyhil-rbAlphaCommunity
C# / .NETHilSharpBetaCommunity
SwiftHilSwiftAlphaCommunity
Luahil-luaAlphaCommunity

Choosing a Port​

By Use Case​

IoT Dashboards & Cloud Integration — Use Python or Node.js for rapid prototyping with rich library ecosystems for MQTT, HTTP, and WebSocket protocols.

Firmware & MCU Development — Use C/C++ for direct microcontroller programming, or Lua for lightweight scripting on ESP8266/ESP32.

Enterprise & Desktop Applications — Use Java/Kotlin or C#/.NET for cross-platform desktop tools with hardware integration.

Systems Programming & Performance — Use Rust or Go for memory-safe, high-performance host monitors and protocol bridges.

Functional Programming & Research — Use Haskell for type-safe, total-function hardware abstractions ideal for safety-critical systems.

Apple Ecosystem — Use Swift for iOS/macOS IoT dashboards with SwiftUI and Combine.

Protocol Compatibility​

Every port must implement the same serial wire protocol to communicate with HIL firmware:

ACTION TYPE PIN VAL1 VAL2|CRC\r
PortSerialMQTTTCP:9000Evaluator
Pythonpyserialpaho-mqttwebsocket-clientFull
Node.jsserialportmqttwsFull
Gogo.bug.st/serialpaho.mqttnet/rpcFull (reference)
Rustserialportrumqttctokio-tungsteniteFull
C/C++HardwareSerialPubSubClientWiFiClientFirmware-only
HaskellHSerialmqtt-hswebsocketsFull
JavaJSerialCommEclipse PahoJava-WebSocketFull
Rubyserialportmqtt-clientwebsocketPartial
C#System.IO.PortsMQTTnetSignalRFull
SwiftSwiftSerialSwiftMQTTStarscreamPartial
Luaserialmqtt (Lua)websocketTranspiler

Quick Start by Language​

Python​

from hil import Client, REPL

port = Client("/dev/ttyUSB0")
repl = REPL(port)
print(repl.eval("(READ A 0)"))

Node.js / TypeScript​

import { HilClient } from '@srashwan/hil-node';

const client = new HilClient('/dev/ttyUSB0');
const value = await client.eval('(READ A 0)');
console.log(value); // 512

Rust​

use hil_rs::{Client, Expr};

let mut client = Client::new("/dev/ttyUSB0")?;
let value = client.eval("(READ A 0)")?;
println!("{:?}", value); // Expr::Int(512)

Go​

client, _ := hil.NewClient("/dev/ttyUSB0")
result, _ := client.Eval(`(READ A 0)`)
fmt.Println(result) // 512

C/C++ (Arduino)​

#include <hil.h>

HILDevice dev(Serial);
void setup() {
dev.begin(115200);
int val = dev.analogRead(0);
Serial.println(val);
}

Flutter / Dart (Mobile App)​

import 'package:hil_app/hil_app.dart';

final client = HilClient(transport: BluetoothTransport());
await client.connect('HIL-DEV-001');
final result = await client.eval('(READ A 0)');
print(result); // 512

Build APK:

git clone https://github.com/SRashwan/hilp
cd hilp/hil-app
flutter pub get
flutter build apk --release

References​

Flanagan, D. (2020). JavaScript: The definitive guide (7th ed.). O'Reilly Media.

Go Authors. (2024). The Go programming language specification. https://go.dev/ref/spec

Ierusalimschy, R. (2022). Programming in Lua (4th ed.). Lua.org.

Koenig, A., & Moo, B. E. (2013). Accelerated C++: Practical programming by example. Addison-Wesley.

Lattner, C. (2014). LLVM and Clang: Advancing the LLVM ecosystem. LLVM Developers' Meeting.

Lipovača, M. (2011). Learn you a Haskell for great good! No Starch Press.

Matsumoto, Y., et al. (2024). Ruby programming language. https://www.ruby-lang.org

Matsakis, N. D., & Klock, F. S. (2014). The Rust language. ACM SIGAda Ada Letters, 34(3), 103–104.

Microsoft. (2024). C# language reference. https://learn.microsoft.com/en-us/dotnet/csharp/

Peyton Jones, S. (2003). Haskell 98 language and libraries: The revised report. Cambridge University Press.

Rashwan, S. (2026). HIL: Hardware-in-the-Loop LISP for IoT development. GitHub Repository. https://github.com/SRashwan/hilp

Thompson, S. (2019). Haskell: The craft of functional programming (3rd ed.). Addison-Wesley.

Van Rossum, G., & Drake, F. L. (2023). Python 3.12 reference manual. Python Software Foundation.