rspec-core
Rustler

rspec-core | Rustler | |
---|---|---|
6 | 37 | |
1,233 | 4,433 | |
- | 0.9% | |
8.6 | 8.6 | |
3 months ago | 15 days ago | |
Ruby | Rust | |
MIT License | Apache License 2.0 |
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.
rspec-core
-
Metaprogramming in Ruby: Advanced Level
That being said, the code and documentation for rspec is generally clear and descriptive, making it a fantastic repository for learning about metaprogramming techniques. In rspec-core/lib/rspec/core/dsl.rb, for example, the implementation is spelled out in code comments.
- Relishapp is down, anyone knows what happened?
-
Anyone have any good Ruby repos that showcase best practices?
Something like that. You almost certainly want to use bundler because it's pretty much the easiest way to add 3rd party libs to your app. (Read more about bundler). Tests aren't an absolute requirement but are a generally considered to be an important part of ruby (and rails) culture. They can be difficult to learn in the beginning, but get easier with practice -- start soon and practice often! (Good rule of thumb: test any public methods of your objects that you define, at a minimum -- a guide. There's also relishapp, which seems to be down at the moment?)
-
It's legos all the way down
Take this small excerpt[9] from rspec-core of the describe public api:
-
When not to use instance variables in RSpec
From what I understand RSpec creates a class per spec (e.g. #) and it stores the instance variables (defined in the before :context DSL) on the RSpec::Core::ExampleGroup class on class level. The RSpec::Core::ExampleGroup is the parent class of the spec classes.
From the RSpec docs
Rustler
-
Pulumi W̶a̶s̶m̶/̶R̶u̶s̶t̶ Gestalt devlog #7
Currently, Pulumi Gestalt supports C and Wasm/Rust. Next week, I'll be working on native Rust support, which will also pave the way for other languages like Dart and Erlang.
-
Ask HN: What is the best way to learn Erlang?
Yep, I think you'd be hard-pressed to find the actual Elixir code be the bottleneck in a real-life application. But if you do encounter that, you can use something like Rustler[0] for the CPU-intensive bottleneck, as Discord did[1] while working on a data structure they needed. Slow DB queries are something else to look out for.
[0] https://github.com/rusterlium/rustler
[1] https://github.com/discord/sorted_set_nif
-
AI Toolkit: Give a brain to your game's NPCs, a header-only C++ library
For performance intensive tasks, you could rely on Rust NIFs, there is this great project: https://github.com/rusterlium/rustler
My last project with Elixir was using Elixir merely as an orchestrator of static binaries (developed in golang) which were talking in JSON via stdin/stdout.
-
Building Apps with Tauri and Elixir
From the moment we discovered Tauri, we really felt like this was the perfect fit. The API is really solid, the configuration files are minimal and easy to understand, and the usage of Rust makes it way easier to add new functionalities and think about interesting ways of interoperating with Elixir via the Rustler library.
-
Async Rust Is A Bad Language
Elixir/Rust is the new Python/C++, and Rustler makes the communicating between the 2 languages super easy: https://github.com/rusterlium/rustler
-
Why elixir over Golang
Rustler is so awesome for this. Write Elixir NIFs in Rust? Yes, please!
- Is RUST a good choice for building web browsers?
-
Why do you enjoy systems programming languages?
But really, I would suggest thinking about what you want to build before "how" or "with which tool" - one of the signs of a person becoming a good engineer is having an array of tools at their disposal and being able to choose a correct tool for the correct task. Rust also excels in integrating with other languages - with JS via WebAssembly (a bit of self-promotion, for example), with Elixir via Rustler, with Python via PyO3 and PyOxidizer, etc. So you absolutely can start writing a frontend app with JS, or a distributed system with Elixir, or a data processing/ML app with Python and use Rust to speed up critical parts of those. Or, in reverse, you can start with Rust & add new capabilities to whatever you're building, that being a frontend, a resilient chat interface, or an ML model.
-
PasswordRs 0.1.0 released (Rust NIF for password hashing)
I created a elixir (wrapper) library to generate password hashes. Other Elixir libraries use a C NIF to generate password hashes. This libary uses a Rust NIF (using Rustler) and the Rust libraries the generate the different hashes. Additionally this library uses RustlerPrecompiled so you don't need to have a Rust compiler installed to use this library. It supports argon2, scrypt, brypt and pbkdf2.
- Elixir and Rust is a good mix
What are some alternatives?
rspec-mocks - RSpec's 'test double' framework, with support for stubbing and mocking
gleam - ⭐️ A friendly language for building type-safe, scalable systems!
ex_vec - re-creating rust's `vec!` macro in elixir
nifty - helpful tools for when I need to create an Elixir NIF .
factory_bot - A library for setting up Ruby objects as test data.
crate-deps
Devise - Flexible authentication solution for Rails with Warden.
hsnif - Tool that allows to write Erlang NIF libraries in Haskell
rspec-rails - RSpec for Rails 7+
dplyr - dplyr: A grammar of data manipulation
rspec-expectations - Provides a readable API to express expected outcomes of a code example
duckdb-rs - Ergonomic bindings to duckdb for Rust
