|25 days ago||2 days ago|
|GNU General Public License v3.0 or later||GNU General Public License v3.0 or later|
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.
Ruby 3.1.0 Preview 1 released with new experimental JIT
4 projects | news.ycombinator.com | 9 Nov 2021
> I’m curious how the impact affects development, deployment, etc.
YJIT is pretty much transparent in production, if not it's likely a bug.
When we tried MJIT in production to compare it against YJIT, it causes lots of request timeouts on deploy, because the JIT warmup would take 10 to 20 minutes and it's much slower during that phase.
But YJIT warms ups extremely fast and with a much lower overhead, it's seemless on deploy.
The only thing you may need to tweak is `--yjit-exec-mem-size`, it defaults to `--yjit-exec-mem-size=256` (MB) which is not quite enough for larger apps.
As for development, it would work, but with code reloading enabled, you'd likely exhaust the executable memory allocation pretty fast, because for now YJIT doesn't GC generated code . It will come soon, hopefully before the 3.1.0 release, but that's one of the reason why it's not enabled by default.
YJIT: Building a New JIT Compiler for CRuby
3 projects | /r/ruby | 15 Oct 2021
Just want to temper expectations because YJIT is still new. But if you run into crashes or bugs, please open an issue with as much detail as you can: https://github.com/Shopify/yjit
Sorbet Compiler: An experimental, ahead-of-time compiler for Ruby
2 projects | /r/programming | 1 Aug 2021
You raised a point that the compiler only does a subset. That's actually what I would expect from a new project. I don't expect a full implementation to start. It takes time for a compiler to be mature enough to be general purpose. Here is another Ruby compiler in its infancy: https://github.com/Shopify/yjit.
YJIT: Building a New JIT Compiler Inside CRuby
We allocate our own chunk of executable memory and append/rewrite the end of it as we compile new blocks. We have our own in-memory assembler that's implemented here. It's x86 only right now, totally not portable, but over the course of the summer we're going to work on a backend that can open up the possibility of ARM64 support and some lower-level optimizations.
Yes. I put some suggestions here. I realize that not all of them are practical, but refactoring specific hot methods could make a difference.
Yes we are in touch with the Ruby core devs. They seem open to collaborating. k0kubun (working on MJIT) has contributed to the project: https://github.com/Shopify/yjit/pull/60
Tests Everywhere - Ruby
3 projects | dev.to | 23 Nov 2023
Ruby testing with RSpec
YJIT Is the Most Memory-Efficient Ruby JIT
It just dumps all the JIT-compiled code? I'd expect to see some kind of heuristic or algorithm there... LFU or something.
The internals of a JIT are essentially black magic to me, and I know the people working on YJIT are super talented, so I am sure there is a good reason why they just dump everything instead of the least-frequently used stuff. Maybe the overhead of trying frecency outweighs the gains, maybe they just haven't implemented it yet, or maybe it's just a rarely-reached condition.
Also for a practical tip on YJIT memory usage, note that there is a "--yjit-exec-mem-size" option, see https://github.com/ruby/ruby/blob/master/doc/yjit/yjit.md#co... for more details. (This command-line argument is mentioned in the paper https://dl.acm.org/doi/10.1145/3617651.3622982 but not in this blog post about the paper.)
At Heii On-Call https://heiioncall.com/ we use:
Not parent poster and do not have production YJIT experience. =)
My guess is that you would monitor `RubyVM::YJIT.runtime_stats[:code_region_size]` and/or `RubyVM::YJIT.runtime_stats[:code_gc_count]` so that you can get a feel for a reasonable value for your application, as well as know whether or not the "code GC" is running frequently.
GitHub and Developer Ecosystem Control
9 projects | dev.to | 28 Sep 2023
Part of the major userbase pull in GitHub revolves around hosting a considerable number of popular projects including Angular, React, Kubernetes, cpython, Ruby, tensorflow, and well even the software that powers this site Forem.
Ruby Outperforms C: Breaking the Catch-22
4 projects | news.ycombinator.com | 9 Sep 2023
The title is misleading, just like other commenters mentioned. Just check how much indirection "rb_iv_get()" has to make (at the end, it will call , which isn't "a light" call). Now, check generated JIT code (in a blog post) for the same action where JIT knows how to shave off unnecessary indirection.
We are comparing apples and oranges here.
A Tour of CPython Compilation
3 projects | dev.to | 4 Aug 2023
As with actual spoken languages, programming languages have their own grammar as well. I've you've read any RFCs for networking protocols you may have come across a variation of Backus–Naur form, commonly referred to as BNF. The HTTP protocol uses an augmented version of it for its standard. Other languages such as Ruby may even utilize a grammar file.
Everything about this Device is so good but I need to know if there is an easy way to delete duplicated games like almost 10K + is duplicated
2 projects | /r/RG353V | 12 Jul 2023
It relies on ruby and would be installed with ruby gems: gem install finddups TBH, I've only tested it with macOS. It should work with linux too, but I don't think it will work with windows.
Creating a Gem using Ruby C API (part 1)
2 projects | dev.to | 20 Jun 2023
But do not trust in me, see the repository of language!
Ask HN: What are some of the most elegant codebases in your favorite language?
37 projects | news.ycombinator.com | 17 Jun 2023
What are some alternatives?
Ruby on Rails - Ruby on Rails
advent-of-code - My solutions for Advent of Code
SimpleCov - Code coverage for Ruby with a powerful configuration library and automatic merging of coverage across test suites
CPython - The Python programming language
fastlane - 🚀 The easiest way to automate building and releasing your iOS and Android apps
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
programming-cryptopunks - Crypto Collectibles Book(let) Series. Programming (Crypto) Pixel Punk Profile Pictures & (Generative) Art - Step-by-Step Book / Guide. Inside Unique 24×24 Pixel Art on the Blockchain... [UnavailableForLegalReasons - Repository access blocked]
Crate - CrateDB is a distributed and scalable SQL database for storing and analyzing massive amounts of data in near real-time, even with complex queries. It is PostgreSQL-compatible, and based on Lucene.
llvm-project - The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
aoc-2020 - My solutions for https://adventofcode.com