Paweł Świątkowski

This is the account mostly for my Ruby-related activity. For Elixir/BEAM see katafrakt@genserver.social

Paweł Świątkowskikatafrakt@ruby.social
2025-06-23

@bbatsov it's a language server, I think the entry bar is high enough and Rust would not be such an issue. I agree on feature parity argument though.

On the other hand, Elixir is much smaller community and it has/had 3 language servers, each with its own strenghts and weaknesses. Perhaps it's not that surprising that Ruby also want to have 3 😛

Paweł Świątkowskikatafrakt@ruby.social
2025-06-23
Paweł Świątkowskikatafrakt@ruby.social
2025-06-23

The (messy) code behind putting #Hanami action in the browser via WASM:

codeberg.org/katafrakt/hanami-

#Ruby

Paweł Świątkowski boosted:
Sean Collinscllns@ruby.social
2025-06-22

A key part of we’re doing with @hanami is letting you write your apps as Plain Old Ruby! Sure they are libraries, but their API’s are quite small, and simple to reason about.

Even dependency injection via `include Deps[…]` looks strange at first but the conventions are so simple to learn, and yanno, it’s entirely optional!

You wouldn’t pull in a Gem that adds 300+ methods to a class, but that’s what inheriting from ActiveRecord::Base does

Paweł Świątkowskikatafrakt@ruby.social
2025-06-21

... and a short video

Paweł Świątkowski boosted:
Ivan Reesespiralganglion
2025-06-21

Hey Germans, please come up with a word that means "the fear of typing `return` vs `shift-return` because you don't know which inserts newline and which sends the message"

Paweł Świątkowskikatafrakt@ruby.social
2025-06-21

With amount of stubbornness that surprised even me, I made it work, lol.

Hosted temporarily on a cheap VPS, as I don't want to fall into Netlify trap, and the WASM file is quite large (50MB).

BEHOLD!

test.katafrakt.me/hanami-wasm/

Paweł Świątkowski boosted:
Sean Collinscllns@ruby.social
2025-06-21

“I personally grew and learned the most as a programmer when I decided it was time to stop using Rails… I needed to try something different because I felt I had sort of stagnated as a developer.” - @timriley on @rooftop

Same!

rooftopruby.com/2108545/episod

Paweł Świątkowski boosted:
Sean Collinscllns@ruby.social
2025-06-21

“Building a sustainable alternative to Rails in the Ruby ecosystem… is going to be really essential to Ruby’s survival.” - @joeldrapper talking about @hanami on @rooftop podcast

rooftopruby.com/2108545/episod

Paweł Świątkowskikatafrakt@ruby.social
2025-06-21

Earlier today I listened to a podcast where @palkan was talking about running Rails on WASM in the browser. And I thought: "how hard can it be to run #Hanami that way?"

Turns out it's quite hard when you don't know anything about Ruby WASM 😛

I was able to get a simple action (just hanami/controller) up and running, but then some dependency hell opened up when I added hanami/validations.

Paweł Świątkowskikatafrakt@ruby.social
2025-06-20

@remi on the bright side, this is your space and you can do whatever you want there, even abandon ideas after two posts 🙃

Paweł Świątkowskikatafrakt@ruby.social
2025-06-20

@remi I had similar idea once. I created a separate section/content type called "quick notes" which is not listed from anywhere and contains a warning on the top.

Here's an example: katafrakt.me/quick/contesting-

But I only ever wrote two of these 😛

Another attempt was to separate "blog posts" from "articles" and "tutorials", first one being rough and personal by default, second one much more edited and polished. But that also never took off.

Paweł Świątkowski boosted:
James SweetingCrazyBlue
2025-06-20

I've now been using Pika (from @goodenoughllc) for the past 6 months! relativenostalgia.com/posts/6-

Paweł Świątkowski boosted:
Steven G. Harmssgharms@techhub.social
2025-06-09

BLOG POST:

Ruby Gem Naming: The Art of Delightful Obscurity

stevengharms.com/posts/2025-06

I was thinking about how much I loved working in Ruby as I made my 2nd major career pivot about a decade ago. And I remembered the exuberant humor of the #Ruby community and so I went digging through old transcripts and found this wonderful bit with @JEG2 et al.

"JAMES: [A] lot of languages, you have your extensions or whatever, your libraries being called something like XML::Parser, or whatever where it’s very self-descriptive. In Ruby, we don’t like that. We like the creative..."

Paweł Świątkowski boosted:
2025-06-03

You can now become a patron of Hanami, Dry and Rom! This is as big a launch as any we’ve done.

Please consider supporting our work. We’re just getting started. Together we can build a healthy, diverse future for Ruby.
ruby.social/@hanami/1146195453

Paweł Świątkowskikatafrakt@ruby.social
2025-06-03

Someone made a PR to my repo with the Ruby extension in Zig and now it can run against the current Zig version. Results are still in the same range, 233x faster on my machine.

github.com/katafrakt/zig-ruby

#ruby #zig

Paweł Świątkowskikatafrakt@ruby.social
2025-05-31

@caius oooh, that was my first version I think

Paweł Świątkowski boosted:
Edge Case ℭɑⅈᵤˢcaius@ruby.social
2025-05-31

17 years ago Ruby 1.8.7 was released ruby-lang.org/en/news/2008/05/

Feels like both yesterday and a lifetime ago 👻 1.8 compatible code still looks modern, although many changes since then of course.

Paweł Świątkowskikatafrakt@ruby.social
2025-05-28
irb(main):001> t = Time.now
=> 2025-05-28 13:06:36.143684 +0200
irb(main):002> t.utc
=> 2025-05-28 11:06:36.143684 UTC
irb(main):003> t
=> 2025-05-28 11:06:36.143684 UTC
Paweł Świątkowskikatafrakt@ruby.social
2025-05-28

@Ryanbigg reminds me of the fact that utc method from Time is mutating @solnic

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst