Gems on the interwebs – luakernel, stb, and me
Posted: June 1, 2015 Filed under: Musings | Tags: archives, bytecode, internet, interwebs, library, lua, public domain Leave a commentSince the day of their inception, the interwebs have been a tremendous ‘resource’ to mankind. Sharing academic papers… cat videos!! Endless amounts of shopping, and who can ever do without pop-up ads!
Well, I have actually found very interesting things on the interwebs of late, particularly related to coding. There’s almost nothing under the sun which has not been coded to date, or can’t be used as a building block to code up the next big thing.
Interesting people and tidbits I’ve looked at in the past year:
Karl Malbrain – Tons of interesting stuff related to data structures in particular
Sean Barrett – Tons of stuff from truetype font rendering to image reading/writing
Bob Jenkins – Hashes, random, math, physics, just all around good stuff
There are plenty more interesting libraries out there in the world. These few stand out because they’re not libraries. They’re not a part of some big grand platform. They just plain standalone pieces of code which tend to be useful as learning tools. The other thing that stands out is their liberal licensing. There’s nothing worse than that monkey hand in the gourd moment when you’ve found some great piece of code to borrow from, and then you realize it’s a GPL’d thing, which is enough to curdle the strongest of milks.
I favor public domain, MIT, Apache, WTF, licensing myself because if you’re going to share, then share… Otherwise, keep it to yourself.
I the Lua world, I’ve run across some gems lately that have been very interesting.
Reuben Thomas – lua-stdlib : Perhaps the most useful thing out of this library is the std.optparse routines. They allow you to easily specify, and then parse the arguments you pass to your program. That takes care of an amazingly annoying set of routines (getopt, optind, optarg, argc, argv…) which are extremely buggy for me, and error prone. There are other gems and techniques in this library which make it a real treasure trove to the Lua developer.
Eric R. Schulz – luakernel Wait, what? A kernel for x64 which boots into a Lua runtime? Well, ok, embedded Lua did that a long time ago, but this seems like something I can easily approach. I’ve got to add my graphic library to this thing so that I can boot into a Lua kernel, and party on with my killer graphics. So, Lua kernels from tiny devices such as the ESP8266, to higher end x64 machines. Not bad for the little language that could.
I’m just constantly amazed at how, after slaving away at something for a while, I’ll stumble across a gem on the internet which solves the exact problem I was after, or comes close enough to make me feel like I need to leverage that work, rather than start from scratch.
The best thing to do as a developer, is to get in the habit of looking out, leveraging, building your own treasure chest of tools, so that you can create that next big thing even quicker and more robustly than before.
Now I’m going to have to make a project of getting luakernel on one of my tired old boxes, so that I can host my graphics library, and develop the UI code (including full trutype support) even further.