Ryan Johnston

@ryjo
27 Followers
63 Following
295 Posts
Information Scientist
Talk to me about Rules Engines, low powered computing solutions, or cats
#programming #coding #rulesengines
Websitehttps://ryjo.codes
I've got a very small example if you want to see a pure C implementation at this gist: https://gist.github.com/mrryanjohnston/3a619ca356d69a9026dd75d23da6e51e
ezpzPubSub

ezpzPubSub. GitHub Gist: instantly share code, notes, and snippets.

Gist

BTW, mqueue is really cool if you've not had a chance to mess around with it. It gives you a queueing system that works at the Kernel level. It lets you send messages between processes (IPC) and is pretty freakin' fast.

Effectively it creates a file in your file system (prefixed with `/dev/mqueue` on my system) that your processes can publish and reach messages to/from.

Just added a GitHub action to my CLIPSmqueue repo[1] that runs the full test suite when new commits are pushed. Seeing that little green checkmark next to the commit message is so satisfying.

[1]https://github.com/mrryanjohnston/CLIPSmqueue

#programming #coding #github #CLIPS #mqueue #rulesengines

Took a break from my next biggest CLIPS library (tm) to add some more functionality to clipsruby. Now not only can you call Ruby from within CLIPS, but you can call CLIPS Deffunctions from within your Ruby application!

https://rubygems.org/gems/clipsruby
https://github.com/mrryanjohnston/clipsruby

#programming #coding #ruby #CLIPS #C

clipsruby | RubyGems.org | your community gem host

I put together another CLIPS library, this time for SQLite. Run SQL queries from within your CLIPS rules engine!

https://github.com/mrryanjohnston/CLIPSQLite

#rulesengine #CLIPS #coding #programming #C #SQLite #SQL

I'm on a roll lately! I just made the CLIPSX11 and CLIPS1wm repos public. The first is a wrapper library around X11, the second is a window manager written using the former. Check them out:

https://github.com/mrryanjohnston/CLIPS1wm
https://github.com/mrryanjohnston/CLIPSX11

Now back to my other side project 🤯🤓

#programming #coding #linux #CLIPS

Today I published a JSON parser written in COOL, CLIPS's Object Oriented Language: https://github.com/mrryanjohnston/COOLJSON

This is the culmination of a few years of learnings and plenty of failed attempts along the way. Feels good to get something working finally :)

#programming #rulesengines #JSON #coding

GitHub - mrryanjohnston/COOLJSON: Parsing JSON using CLIPS's Object Oriented Language, COOL!

Parsing JSON using CLIPS's Object Oriented Language, COOL! - mrryanjohnston/COOLJSON

GitHub

Ever wanted to try CLIPS but didn't want to compile it yourself? Or maybe you just prefer to run things from Docker? I added a repo on Docker Hub so that you can!

https://github.com/mrryanjohnston/clips-docker

Simple run this to get a CLIPS repl:

docker run --rm -it mrryanjohnston/clips

Easy!

#CLIPS #coding #Docker

GitHub - mrryanjohnston/clips-docker: CLIPS in a docker container

CLIPS in a docker container. Contribute to mrryanjohnston/clips-docker development by creating an account on GitHub.

GitHub

Just published my next CLIPS-based project: Tour of CLIPSraylib!

https://ryjo.codes/tour-of-clipsraylib.html

It provides a textarea with CLIPS code in it, and it lets you run that code, rendering the program to the canvas element on the same page using raylib.

#programming #coding #raylib #clips #gamedev #wasm

ryjo.codes - Tour of CLIPSraylib

An introduction to CLIPSraylib, a way to write raylib in CLIPS.

I created a new example in CLIPSraylib! Behold: multiple stateful animated sprites that have independently controllable framerates.

Besides the original "scarfy" animation by Eiden Marsal, I drew the other sprites in Aseprite! It's an awesome program for creating animated pixel art. Give it a looksee if you haven't had the chance to do so.

#gamedev #programming #pixelart #aseprite