Romain Ruetschi's Avatar

Romain Ruetschi

@romac.me.bsky.social

Hi! I am Romain (or Romac). At work, I strive to build correct and resilient distributed systems using Rust and formal methods. At home, I like writing mini-compilers and all sorts of software in Rust, Scala, Swift and Haskell.

88 Followers  |  930 Following  |  7 Posts  |  Joined: 20.11.2023  |  1.4871

Latest posts by romac.me on Bluesky

Preview
An Interactive Debugger for Rust Trait Errors Advanced type systems can cause bewhildering error messages and Rust's trait system certainly is no exception! In this paper we present Argus, an IDE extension for interactively debugging Rust traits,...

@maybevoid.com Have you seen this? cel.cs.brown.edu/blog/an-inte... Might be useful for debugging cgp errors

06.05.2025 07:49 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
-- WezTerm integration
vim.api.nvim_create_autocmd({ "BufEnter" }, {
  callback = function(event)
    local title = "nvim"
    if event.file ~= "" then
      title = string.format("nvim: %s", vim.fs.basename(event.file))
    end

    vim.fn.system { "wezterm", "cli", "set-tab-title", title }
  end,
})

vim.api.nvim_create_autocmd({ "VimLeave" }, {
  callback = function()
    -- Setting title to empty string causes wezterm to revert to its
    -- default behavior of setting the tab title automatically
    vim.fn.system { "wezterm", "cli", "set-tab-title", "" }
  end,
})

-- WezTerm integration vim.api.nvim_create_autocmd({ "BufEnter" }, { callback = function(event) local title = "nvim" if event.file ~= "" then title = string.format("nvim: %s", vim.fs.basename(event.file)) end vim.fn.system { "wezterm", "cli", "set-tab-title", title } end, }) vim.api.nvim_create_autocmd({ "VimLeave" }, { callback = function() -- Setting title to empty string causes wezterm to revert to its -- default behavior of setting the tab title automatically vim.fn.system { "wezterm", "cli", "set-tab-title", "" } end, })

Protip: To automatically change the Wezterm tab title to match the current Neovim buffer, add this to your Neovim config (code in alt) #wezterm #neovim

12.03.2025 12:46 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Flappy Bird Implemented in Typescript types The ultimate type-level trickery

Flappy Bird implemented in Typescript types by compiling type-level computations into bytecode and executing it on a VM

zackoverflow.dev/writing/flap...

#rust #rustlang #zig #ziglang #typescript

15.01.2025 08:24 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
diff.rs View what is changed between different versions of crates published on crates.io.

TIL about diff.rs, a web app for viewing source code diffs between two versions of a crate. Neat! #rust

11.12.2024 10:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Cursed Linear Types In Rust Inspired by Jack Wrenn’s post on Undroppable Types in Rust, I set out to see if it’s possible to create types that must be used exactly once. From my understanding, those things are called linear type...

Nice hack! geo-ant.github.io/blog/2024/ru...

I guess that's the closest we'll get to proper linear types for a while, due to reasons outlined in faultlore.com/blah/linear-...

27.11.2024 10:34 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

I fondly remember giving a Rust workshop at EPFL with a friend back in November 2014, shortly after discovering the language. The workshop itself didn't go so well as I didn't understand all the subtleties and implications of borrow checking and other stuff, but it was still fun πŸ˜… #rust #rustlang

23.11.2024 12:29 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Just realized that as of this month, I can now claim to have 10 years of Rust experience (but only 5 professionally)πŸ₯³ Whether or not I am good at it is a whole other question πŸ˜› #rust #rustlang

23.11.2024 12:29 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Hi! I am Romain (or Romac).

At work, I strive to build correct and resilient distributed systems using Rust and formal methods.

At home, I like writing mini-compilers and all sorts of software in Rust, Scala, Swift and Haskell.

23.11.2024 11:51 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@romac.me is following 20 prominent accounts