wyhaines
Kirk Haines
29 repositories
Veteran, Wyoming @newrelic
Polyglot, Passionate Ruby Guy (since 2001; former Ruby 1.8.6 maintainer). Distributed systems, internals, full stack, C.

csuuid.cr

This is a small UUID library that implements a chronologically sortable UUID.

  • 9
  • 1
  • 0
  • 7 days ago

Send.cr

This shard implements a usable dynamic dispatch function for Crystal code, modeled on the Ruby #send function of the same name.

  • 9
  • 1
  • 3
  • 7 days ago

splay_tree_map.cr

This is a Crystal implementation of a Splay Tree; which is a type of binary search tree that is semi-balanced and that tends to self-optimize so that the most accessed items are the fastest to retrieve.

  • 6
  • 1
  • 0
  • 22 days ago

bus.cr

It is sometimes useful to have a pubsub type message bus inside your software. This library implements a bus to send messages to interested subscribers. Those subscribers can reply to those messages, and are guaranteed that the reply will be routed back to the sender.

  • 5
  • 0
  • 0
  • 3 months ago

defined.cr

This is a very small shard that just provides a macro that can be used to see if a given type/constant is defined. The main use case would be for a library that might choose to do different things depending on whether another, optional library has been required or not.

  • 4
  • 1
  • 0
  • 7 days ago

tracer.cr

This library implements a method call tracing facility that can be used to generate either summary or detailed logs of method calls, or to inject arbitrary code execution into method calls.

  • 4
  • 0
  • 0
  • 7 days ago

git-index.cr

This tool makes a local database of git repositories, indexed by initial commit hashes.

  • 4
  • 0
  • 0
  • 3 months ago

opentelemetry-api.cr

The core of open telemetry instrumentation is the OpenTelemetry API/SDK. The initial aim of this shard is to implement the OpenTelemetry specification for metrics, traces, and logs.

  • 3
  • 0
  • 0
  • 23 days ago

for.cr

This tiny little shard implements a "for" loop for Crystal by leveraging macros.

  • 3
  • 0
  • 0
  • 3 months ago

ParseDate.cr

This is a small library that attempts to parse a wide variety of date formats with a single call.

  • 3
  • 0
  • 0
  • 6 months ago

apm.cr

This is an open source APM agent for Crystal. Initial development is targeting the OpenTelemetry spec for data exchange, but it may also support the New Relic specific protocol. It should, however, be usable with any provider that permits OpenTelementry ingest.

  • 3
  • 0
  • 0
  • 23 days ago

timeout.cr

This implements a very simple timeout method for Crystal. Use it to wrap code in a timeout, so that execution of that code can not continue forever.

  • 3
  • 0
  • 0
  • 4 months ago

hash_serializable.cr

The module provides a Hash::Serializeable module which, like JSON::Serializeable and YAML::Serializeable, can be mixed into a class to allow the class's ivars to be serialized out to a hash, and to allow a hash to be instantiated as an instance of a class.

  • 2
  • 0
  • 0
  • 3 months ago

alias_method.cr

Crystal does not provide a ready-to-use mechanism for creating method aliases, and the general Crystal code style recommendation is that one should avoid having multiple names that invoke the same method. However, there are times where creating method aliases is useful. This shard creates an alias_method macro that can be used to easily create method aliases which are functionally identical to the original method.

  • 2
  • 0
  • 0
  • 6 days ago

datapack.cr

You are building an application, be it web or something else. It has data -- images, CSS, JS, CSV files, whatever -- and you want to be able to easily bundle those into your compiled executable. This shard gives you a simple utility to add this data to your executable, access it, and manage it.

  • 2
  • 0
  • 0
  • 1 day ago

evita

A spike to play with some ideas surrounding a chat bot implementation.

  • 2
  • 0
  • 0
  • 4 months ago

NewRelic.cr

This is a binding to the New Relic C SDK, so that Crystal programs can add observability features with New Relic.

  • 2
  • 0
  • 0
  • 6 months ago

simple_irc.cr

This is a simple IRC protocol implementation. No bundled bot capabilities or anything fancy. Just the basics, made easy to use.

  • 2
  • 0
  • 0
  • 5 months ago
  • 2
  • 0
  • 0
  • 3 months ago

liquidcrystal

This is a port of the Liquid gem from Shopify, for the Crystal language. It aims to be as compatible as possible with the upstream source of truth that is the Shopify Ruby implementation of Liquid.

  • 2
  • 0
  • 0
  • 8 months ago

lockfile.cr

This shard implements a portable lockfile, for use with the Crystal Language.

  • 2
  • 0
  • 0
  • about 1 year ago

serf-handler.cr

This implements a port of the Ruby Serf Handler gem -- https://github.com/wyhaines/serf-handler -- as a library that can be used to easily build compiled, distributable handler binaries using the Crystal language.

  • 1
  • 0
  • 0
  • 7 months ago

TwitchEventSub.cr

This shard encapsulates logic and handling for interacting with the Twitch EventSub API.

  • 1
  • 0
  • 0
  • 5 months ago

time-ext.cr

This is a very small extension of the Time class for Crystal. It has been extracted from another project as it provides a small number of logical and useful extensions to Time.

  • 1
  • 0
  • 0
  • 7 days ago

nbchannel.cr

A NBChannel is a non-blocking channel. Normal Crystal channels block on send and on receive. The NBChannel will never block on send, and there are both blocking and nonblocking receive calls available. The channel should work both for single producer, single consumer scenarios, and for scenarios with multiple producers or multiple consumers.

  • 1
  • 0
  • 0
  • 7 days ago

apm-therelicans

This code is the code that was used for an article on how to build an APM system, written for therelicans.com.

  • 1
  • 0
  • 0
  • 3 months ago

analogger.cr

This is a port of https://github.com/wyhaines/analogger using Crystal.

  • 1
  • 0
  • 0
  • over 1 year ago

analogger-client.cr

This is the Crystal version of the client library for Analogger.

  • 0
  • 0
  • 0
  • over 1 year ago

minion-agent-client.cr

This is the Crystal implementation of the Minion Agent Client.

  • 0
  • 0
  • 0
  • over 1 year ago