Rubygem-rubyinline

Jul 20, 2023

Inline::C allows you to embed C/Ruby directly in ruby scripts

Ruby Inline is an analog to Perl’s InlineC. Out of the box, it allows you to embed C/++ external module code in your ruby script directly. By writing simple builder classes, you can teach how to cope with new languages fortran, perl, whatever. The code is compiled and run on the fly when needed.

Using the package_inline tool Inline now allows you to package up your inlined object code for distribution to systems without a compiler read Windows!

FEATURES/PROBLEMS

  • Quick and easy inlining of your C or C++ code embedded in your ruby script.
  • Extendable to work with other languages.
  • Automatic conversion between ruby and C basic types o char, unsigned, unsigned int, char *, int, long, unsigned long
  • inline_c_raw exists for when the automatic conversion isn’t sufficient.
  • Only recompiles if the inlined code has changed.
  • Pretends to be secure.
  • Only requires standard ruby libraries, nothing extra to download.
  • Can generate a basic Rakefile and package up built extensions for distribution.

See also https//github.com/seattlerb/rubyinline



Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler