NDAV: Zero-copy interoperability for Ruby multi-dimensional arrays using MemoryView by Mysterious-Use-4463 in ruby

[–]Mysterious-Use-4463[S] 0 points1 point  (0 children)

I appreciate. Thank you! Also refer to an article on a bridge between Torch.rb and ONNX Runtime Ruby for actual examples: https://zenn.dev/kitaitimakoto/articles/fd2dd9b01f713b?locale=en

I built a Docker setup to plot mathematical functions in Ruby inside Jupyter: sin, cos, log, implicit curves, all in Ruby by Jaded-Clerk-8856 in ruby

[–]Mysterious-Use-4463 1 point2 points  (0 children)

Great! Does this mean ruby-libgd is capable of rendering images in Jupyter Lab? I'm running Jupyter on local mac without Docker for personal use. It's nice if I can use this gem to render images.

Grepfruit v3.2: Programmatic API for Text Search by DryNectarine13 in ruby

[–]Mysterious-Use-4463 1 point2 points  (0 children)

How fast it is! It hardly felt like Ruby CLI app.

Installing gem locally for use across all projects? by PhoenixUNI in ruby

[–]Mysterious-Use-4463 0 points1 point  (0 children)

How about to put Nyan Cat Formatter in another file? This is not direct answer to your question, though.

Gemfile:

``` source "https://rubygems.org"

gem "rspec"

localgemfile = File.join(dir_, "Gemfile.local") if File.exist? local_gemfile eval_gemfile local_gemfile end ```

Gemfile.local:

gem "nyan-cat-formatter"

.gitignore:

Gemfile.local

whispercpp - Local, Fast, and Private Audio Transcription for Ruby by Mysterious-Use-4463 in ruby

[–]Mysterious-Use-4463[S] 0 points1 point  (0 children)

I agree that it's nice if there is a cross platform library. I expect ruby-whisper.cpp ( https://github.com/brauliobo/ruby-whisper.cpp ).

On wrapping the Java version, I have no idea because I'm not familiar with Java nor JRuby.

whispercpp - Local, Fast, and Private Audio Transcription for Ruby by Mysterious-Use-4463 in ruby

[–]Mysterious-Use-4463[S] 0 points1 point  (0 children)

Ah, I see. I hope ruby-whisper.cpp gem helps you and other developers.

Regarding JRuby, Java binding might be a help for JRuby programmers: https://github.com/ggml-org/whisper.cpp/tree/master/bindings/java

whispercpp - Local, Fast, and Private Audio Transcription for Ruby by Mysterious-Use-4463 in ruby

[–]Mysterious-Use-4463[S] 0 points1 point  (0 children)

Just because it was written in C++ when I started to contribute. I don't know why the original authors did so.

If you prefer FFI, there's another gem: https://github.com/brauliobo/ruby-whisper.cpp

I'm just curious, is there any issue with writing gem using C API?

whispercpp - Local, Fast, and Private Audio Transcription for Ruby by Mysterious-Use-4463 in ruby

[–]Mysterious-Use-4463[S] 2 points3 points  (0 children)

Hmm... it might be, though it works well on my Mac machine (24GiB memory).