ufuk

Joined 15 years ago

Karma
192
Submissions
42
Member since
Jun 8
[ my public key: https://keybase.io/ufuk; my proof: https://keybase.io/ufuk/sigs/mVZNfziXZYT8kZNF9Uq_fOYFJas_kS-mN4WONe2IBsg ]
View on Hacker News

Recent submissions

Comment · 1 year ago
This post describes the new modular garbage collection feature in Ruby 3.4: The ability to override Ruby's GC at runtime. We also introduce our first concrete alternative GC implementation, based on the Memory Management Toolkit (MMTk).
Comment · 3 years ago
Comment · 3 years ago
That's not correct:

    $ podman run -it -e RUBYOPT="--yjit" ruby:3.2
    irb(main):001:0> puts RUBY_DESCRIPTION
    ruby 3.2.0 (2022-12-25 revision a528908271) +YJIT [aarch64-linux]
    => nil
Comment · 3 years ago
Comment · 3 years ago
10% less time for the same amount of work, since we are measuring the total response time of the workload in question and looking at median (p50), p90 and p99 numbers.
Comment · 3 years ago
As far as I know, yes, it should. But I haven't tested it so I can't say for sure.
Comment · 3 years ago
It is not a dumb question at all. At Shopify we use chruby since it is lightweight and less opinionated. However, devs never really have to use chruby directly, since our in-house `dev` CLI tool can install the Ruby version any project at Shopify specifies and configure `shadowenv` to set the right env variables to use it.
Comment · 3 years ago
Comment · 4 years ago
You do realize that market cap is not real money, right? That's like saying that an average American who earns 30K USD/year over 33 years will earn 1M USD and thus they should be considered a millionaire.
Comment · 4 years ago
This is a great first step to making dependencies more secure in the Ruby ecosystem. Congrats to the whole team for getting this done!
Comment · 6 years ago
I am afraid that is a shared concern for what Tapioca is doing as well. There are ways of mitigating that concern, by, for example, lifting all static methods on a model to be methods on the collection proxy in RBI files. This is certainly doable, and we are less interested in the correct signatures for such methods than having the method definitions in place, in the first place. On the other hand, we also have some Sorbet feature ideas that we want to experiment with where we might be able to annotate that a certain type delegates all missing methods to another type, for example.

This is indeed a problem in our codebase as well, and so far our team has been suggesting that people add shim (i.e. manual) RBI definitions for the methods that they find are missing from the types they've expected them on. This is a good stop-gap measure to solve a problem that is not very common with an easy solution to implement.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton