Patrick S. Barrett



cosock is a from-scratch built in pure Lua coroutine runtime that offers (nearly) a full LuaSocket API. This allows existing code written against LuaSocket, to be cooperatively scheduled with other code written just using the blocking LuaSocket API.

Most importantly it allows you to write libraries against the blocking LuaSocket API, doing all your testing and development without the use of cosock, and then simply use cosock.asyncify("mymod") in place of require("mymod") without modifying the code itself and have it execute asynchronously, blocking only the coroutine it's running in.



tokio-coap is a low-level CoAP library written in Rust for Tokio. Because it is built on tokio it uses fully async interactions. It is built to be as simple to use as possible.

tokio-coap is still a work in progress, and hasn't seen much love while I've been busy with work. Though, I have some new ideas that I've played around with, but haven't published anywhere that I think will make for a really nice interface.



On hold, see tokio-coap.

Bronze is a CoAP library and framework written in Rust and loosely modeled after the Iron web framework. It is currently under development but already provides features comparable to most basic CoAP libraries.



PicoCoAP is an incredibly light weight CoAP message serialization and deserialization library.



libexosite coap is an implementation of a CoAP client that wraps Exosite's CoAP API. It uses PicoCoAP for message processing and internally implements all behaviors required for both standard and observed requests, handling all message reliability and message routing.



Stock Faces

Stock Faces is a collection of free (CC0) images of faces, intended to be used for avatars in UI mockups. It has a front end single page app written in Elm and a backend server written in Rust.

Backend Source Frontend Source

Virgil - Static Site Generator

The site you are reading right now is a static site generated by scratch-built static site generator written in Rust that I've called Virgil.


Notes to Self

A simple service hosted on Heroku, again using the Tornado framework. It allows you to create notes in markdown for saving. Notes can be organized by a tagging system.

See it in Action Sign in with "” and ”demo”, or create your own account)



A Pebble watchapp that finds your location and lists nearby MetroTransit bus stops and the real-time arrivals at the selected stop. Written in C and JavaScript.

Full Source Code Available:

3D Printers

I built, what I believe was, the first RepRap Mendel in the US and one of the first in the World. I previously built and/or maintained the Mahtomedi High School FabLab's 3d printers which includes: a MakerGear Mosaic, a PP3DP Up!, and a Projet 3d printer. Currently, I'm being lazy and printing things on my almost unmodified Hatchbox Alpha, but may at some point finish building my Mendle90.