A TCP chat server and client implemented in Ura — a compiled, statically-typed language with Python-like syntax.
curl -L https://raw.githubusercontent.com/mohammedhrima/ura-lang/main/build/ura -o ura
chmod +x ura
git clone https://github.com/mohammedhrima/ura-lib ura-lib./ura <file.ura> # compiles and runs — executable named after source file
./ura <file.ura> -o app # custom output nameOpen two terminals:
Terminal 1 — start the server:
./ura basic/server.ura # compiles to ./server and runs it
# Listens on port 17000Terminal 2 — connect a client:
./ura basic/client.ura # compiles to ./client and runs it
# Connects to localhost:17000Type messages in either terminal and they will be echoed to the other side.
basic/
server.ura TCP server (accepts one client, bidirectional messaging)
client.ura TCP client
utils.ura Shared networking utilities (SockAddr, logging helpers)
cmd/
server.ura Command-based server variant
client.ura Command-based client variant
utils.ura Shared networking utilities (SockAddr, logging helpers)
Ura is a compiled language that targets native code via LLVM. Source: github.com/mohammedhrima/ura-lang