magnus
Ruby bindings for Rust. Write Ruby extension gems in Rust, or call Ruby from Rust. (by matsadler)
tokenizers-ruby
Fast state-of-the-art tokenizers for Ruby (by ankane)
magnus | tokenizers-ruby | |
---|---|---|
13 | 2 | |
586 | 115 | |
- | - | |
8.8 | 7.5 | |
30 days ago | 12 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
magnus
Posts with mentions or reviews of magnus.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-11.
-
Regarding using multiple languages in one project
You can also use Rust to write an extension module that can be loaded into the Ruby interpreter, so that everything runs in the same process: https://github.com/matsadler/magnus
- Magnus β Write Ruby extension gems in Rust, or call Ruby code from a Rust binary
- Magnus 0.5 released (Library for writing Ruby gems in Rust)
-
Tried polars in Ruby
So while the Arrow C binding for the Ruby language is relatively well-developed, polars-df is not an Arrow C binding, but a binding to Polars implemented in Rust. magnus is used for the connection between Ruby and Rust. In fact, there is also a Ruby data frame that uses the Arrow binding, which is called RedAmber. But we are not talking about that now.
-
Ruby 3.2.0 Released
The template generated with bundle gem β-ext=rust uses the Magnus[1] library that provides a high-level friendly Rust wrapper over the Ruby C API, but you can also use rb-sys[2] which is lower level bindings direct to the Ruby C API.
[1]: https://github.com/matsadler/magnus
- 0.4.0 Release of Magnus. Write Ruby Gems in Rust, or Call Ruby from Rust
- 0.4.0 release of Magnus (Write Ruby gems in Rust)
- Magnus (bindings to Ruby) version 0.3.0
- Magnus (Rust library for writing Ruby gems) version 0.3.0
- Magnus: High level Ruby bindings for Rust
tokenizers-ruby
Posts with mentions or reviews of tokenizers-ruby.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-11.
-
Magnus 0.5 released (Library for writing Ruby gems in Rust)
tokenizers
-
Text generation with GPT-2 in Ruby
The tokenizers gem is written in Rust, so installation requires Rust. If Rust isn't available, blingfire can be used instead.
What are some alternatives?
When comparing magnus and tokenizers-ruby you can also consider the following projects:
rutie - βThe Tie Between Ruby and Rust.β
halton-rb - A Ruby library, written in Rust, for generating Halton sequences
CommonMarker - Ruby wrapper for the comrak (CommonMark parser) Rust crate
yrb - Ruby bindings for yrs.
wasmtime-rb - Ruby WebAssembly runtime powered by Wasmtime
rucaptcha - Captcha Gem for Rails, which generates captcha image by Rust.
ruby-rust-extension-benchmark - Benchmark Ruby extension using Rust (Helix, Ruru, Rutie, FFI) and C
selma - Selma selects and matches HTML nodes using CSS rules. Backed by Rust's lol_html parser.
blingfire-ruby - High speed text tokenization for Ruby
magnus vs rutie
tokenizers-ruby vs halton-rb
magnus vs CommonMarker
tokenizers-ruby vs yrb
magnus vs wasmtime-rb
tokenizers-ruby vs rucaptcha
magnus vs ruby-rust-extension-benchmark
tokenizers-ruby vs selma
magnus vs halton-rb
tokenizers-ruby vs wasmtime-rb
magnus vs yrb
tokenizers-ruby vs blingfire-ruby