Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ufuk
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
One engine, many tools – Introducing Rubydex
(railsatscale.com)
4 points
by
ufuk
4mo ago
|
0 comments
2.
▲
New for Ruby 3.4: Modular Garbage Collection and MMTk
(railsatscale.com)
6 points
by
ufuk
2y ago
|
2 comments
3.
▲
by
ufuk
2y 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)
4.
▲
Prism (new Ruby parser) in 2024
(railsatscale.com)
23 points
by
ufuk
2y ago
|
1 comments
5.
▲
by
ufuk
3y ago
https://railsatscale.com/2023-06-12-truffleruby-in-shopify-c...
6.
▲
Linking Rust and C: Practicing Symbol Hygiene
(alanwu.space)
1 points
by
ufuk
4y ago
|
0 comments
7.
▲
by
ufuk
4y 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
8.
▲
by
ufuk
4y ago
You can see this chart and all the numbers and more at https://speed.yjit.org/ , which this chart was taken from.
9.
▲
by
ufuk
4y 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.
10.
▲
by
ufuk
4y ago
As far as I know, yes, it should. But I haven't tested it so I can't say for sure.
11.
▲
by
ufuk
4y 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 S
12.
▲
by
ufuk
4y ago
We'd already deployed a prerelease version and started serving all Shopify storefront requests with Ruby 3.2 earlier this week. Here is a Twitter thread from me about all the work that into this release from Shopify with respect to per
13.
▲
by
ufuk
4y 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.
14.
▲
by
ufuk
4y 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!
15.
▲
by
ufuk
6y 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
16.
▲
by
ufuk
6y ago
We have a lot of automation and infrastructure in place to give us that confidence. We have an extensive test suite of hundreds of thousands of tests, linting and static checks that run on CI, a deploy automation tool that automatically mer
17.
▲
by
ufuk
6y ago
For the runtime, there is not much dark magic. Each type that has an `extend T::Sig` has `method_added` hooks registered, which notifies Sorbet runtime whenever a method is defined on the type. When that `method_added` hook is called, Sorbe
18.
▲
by
ufuk
6y ago
This is a great way to use Sorbet and get its benefits without having to invest 100% into typing. Great example, thanks for sharing.
19.
▲
by
ufuk
6y ago
Ultimately, the goal is for Tapioca to replace all `srb rbi` tooling and `sorbet-rails`. Right now, we exclusively use Tapioca for gem RBIs and we don't use any `srb rbi` tooling at Shopify. That works perfectly fine, but you don'
20.
▲
by
ufuk
6y ago
Currently, no. On the contrary, since Sorbet syntax is pure Ruby, it needs a runtime component, so there is actually a small negative impact in performance at runtime. The reason why we cannot use types to make the interpreter do optimizati
21.
▲
by
ufuk
6y ago
There was definitely some general suspicion when we first introduced Sorbet. However, there were also some early adopters who didn't mind the syntax but really wanted the benefits. That's why we didn't push for types adoption
22.
▲
by
ufuk
6y ago
Like others have stated in the thread, Crystal is a different language that shares some its syntax with Ruby. Our aim is to keep our Ruby codebase but adopt static types gradually.
23.
▲
by
ufuk
6y ago
Happy to answer any questions here about our process, results or tools!
24.
▲
by
ufuk
6y ago
The second part of this two-part blogpost is here: https://shopify.engineering/adopting-sorbet
25.
▲
Static Typing for Ruby: Adopting Sorbet at Scale
(shopify.engineering)
155 points
by
ufuk
6y ago
|
70 comments
26.
▲
by
ufuk
8y ago
Great story, however, I am afraid, not at all relevant to this product. This Google Assistant feature is supposed to surface "solutions journalism" pieces where the article not only talks about the problems but also potential solu
27.
▲
by
ufuk
10y ago
"Pure"?
28.
▲
by
ufuk
11y ago
Well, somebody's got to do the thinking...
29.
▲
by
ufuk
11y ago
Author of the project here... Thanks for the visibility and all the comments. Feel free to ask me anything and/or submit PRs.
30.
▲
by
ufuk
11y ago
So pleased to hear that. I'd had enough of hunting around different sites trying to find and test different themes for Slack, so I built one as a weekend project. Enjoy.
More ›