kojix2

kojix2 @kojix2

About: Ruby & Crystal & Bioinformatics

Location:
Japan
Joined:
Jan 17, 2019

kojix2
articles - 48 total

Embedding the Crystal Compiler in Your Program

Introduction The Crystal compiler can be used as a library. This document explains how to...

Learn More 0 0Aug 9

Easily Visualize Debian Package Dependencies with debtree

Introduction Sometimes you might want a quick and easy way to visualize and understand...

Learn More 0 0Aug 8

Writing SIMD in Crystal with Inline Assembly

Introduction In this article, we explore how to write SIMD instructions—SSE for x86\64 and...

Learn More 0 0Aug 7

Building Portable Crystal Binaries on macOS with GitHub Actions

Overview If you’ve ever tried to share a Crystal tool you built, you may have noticed that...

Learn More 1 0Jul 21

Writing Inline Assembly in the Crystal Programming Language

Introduction When you want to make your code run significantly faster, or just want to...

Learn More 3 0Jun 20

Building My First Web App with the Help of AI

Introduction Since the beginning of 2025, AI agents have made dramatic progress. We're now...

Learn More 3 0Mar 23

Wombat - Syntax Highlighting with Rust's Bat Called from Crystal

Introduction Hello! Have you heard of the command-line tool bat, written in Rust? bat...

Learn More 5 0Jan 16

Scan Your Linux Disk and Visualize It on Mac with GrandPerspective

Introduction GrandPerspective is a useful disk space visualization tool for Mac. Have you...

Learn More 0 0Jan 13

One-Liner for Finding Typos

Let's Find Those Typos typos. typos --format brief --color always | ruby -e 'puts...

Learn More 0 0Oct 29 '24

How to Fix the 'argp.h' Not Found Error on macOS

When compiling a Linux-oriented tool written in C/C++ on macOS, you might encounter the following...

Learn More 1 0Jul 24 '24

Mixing FFI, Fiddle, and C Extension in Ruby

Introduction If you're working with Ruby and need to invoke a function written in C...

Learn More 3 0Oct 26 '23

Using Ruby with Conda🐍

There might be cases where you want to install and use Ruby with Anaconda or Miniconda. Normally, you...

Learn More 7 0Apr 24 '23

Calling Deepl's API from the Crystal language

As the title suggests, recently, ChatGPT is becoming popular. However, ChatGPT is more accurate in...

Learn More 0 0Mar 27 '23

Calling the ChatGPT API interactively from Crystal language

require "http/client" require "json" require "colorize" struct PostData include...

Learn More 4 0Mar 9 '23

Calling OpenAI API from Crystal Language

If you want to use OpenAI API from Crystal Language, you can use the following code. (Note that you...

Learn More 0 1Mar 7 '23

Act like a cat! - Calling the OpenAI API from Ruby

I heard that ChatGPT API has been released. You can call it easily from Ruby. I wrote a mini...

Learn More 2 0Mar 2 '23

Tried Polars in Ruby

Polars is a data frame in the Rust language using Apache Arrow Columnar Format. polars-ruby is the...

Learn More 10 0Jan 20 '23

Meld, a GUI tool for diffing, in the Age of ChatGPT

This article was translated into English by ChatGPT. The original post is here. Convenient...

Learn More 0 1Jan 19 '23

Show a Tanuki with Samtools!

↑ Tanukis (raccoon dogs) at Obihiro Zoo (Wikimedia)     __,-─-、__    (〆-─-ヽ)     ( ´・ω・` ) <...

Learn More 1 0Oct 18 '22

UMAP clustering in Ruby

Introduction Uniform Manifold Approximation and Projection (UMAP) is a well-known...

Learn More 3 0Oct 12 '22

Text generation with GPT-2 in Ruby

Introduction Many people think that accessing AI from languages other than Python is too...

Learn More 7 2Sep 25 '22

YOLOv7 object detection in Ruby in 10 minutes

Young people these days don't do Ruby. So I am writing this note about YOLOv7 in Ruby. Since there...

Learn More 7 0Jul 27 '22

Fast multi-core installation of Ruby gems with C extensions

It's easy. Simply set the environment variable GNUMAKEFLAGS or MAKEFLAGS. export...

Learn More 3 0Jul 14 '22

💎 `eval` in Crystal language! Anyolite 🟢🔴 is amazing...

There is no eval in the Crystal language. If you had to use eval in the Crystal language, you would...

Learn More 12 0Jun 12 '22

How to define exceptions in Ruby C extension library

introduction In the Ruby language, exceptions are defined by inheriting...

Learn More 9 0May 13 '22

Create shared library symbolic links when crystal interpreter does not work in crystal 1.4.0

When I run crystal i on Ubuntu impish, I get the following message. librt.so is missing libdl.so is...

Learn More 5 0Apr 16 '22

Create Github Pages in the mint language

When executing the mint build command, several options need to be added. See:...

Learn More 7 1Apr 15 '22

I built my Crystal language tool with Github Actions and added the deb created by checkinstall to the release page...

Distributing tools created in the Crystal language People use the Crystal language for...

Learn More 6 0Mar 8 '22

ffi-bitfield - read/write bit fields with Ruby-FFI

Bit field for Ruby-FFI

Learn More 3 2Jul 27 '21

Installing c2ffi on Ubuntu

Installing c2ffi on Ubuntu

Learn More 0 0Feb 18 '21