Samuel Williams

478 Followers
55 Following
582 Posts
"A candle loses nothing by lighting another"
Websitehttps://www.codeotaku.com
Githubhttps://github.com/ioquatix
LocationNew Zealand
@godfat it’s hard to discuss here and may be relevant to others.
@godfat please make a bug report 
@jardo @cllns Regarding optional positional arguments, they are basically impossible to parse reliably, so they are not supported. In principle you could do it, but it would be non-deterministic depending on what you have installed so a command that works one day might stop working later because an optional positional argument is now interpreted as a command.
@jardo @cllns Regarding output of `true`, bake prints true because that method returns true. This is the new default output handling. If you don't want to print anything, `return nil`.

@joeldrapper Awesome, great demo! Thanks for showing how the HTML works! The Live gem generates random names like what you've done but also allows the user to override them.

How do you create the initial shadow root for the user's template/content? Is it using a <template> tag or something else?

Leveraging Falcon and Rails for Real-Time Interactivity

Great performance talk suggested by @ioquatix in Ruby core chat https://m.youtube.com/watch?v=r-TLSBdHe1A
"Performance Matters" by Emery Berger

YouTube

A concurrency "mini" in my Ruby concurrency series.

It highlights how to maintain safe, request-local state using the Fiber storage API.

This is particularly useful for Fiber-based servers like Falcon. Thanks
@ioquatix
for the suggestion, and review!

https://jpcamara.com/2024/06/27/consistent-requestlocal-state.html

Consistent, request-local state

👋🏼 This is a series on concurrency, parallelism and asynchronous programming in Ruby. It’s a deep dive, so it’s divided into 10 main parts: Your Ruby programs are always multi-threaded: Part 1 Your Ruby programs are always multi-threaded: Part 2 Consistent, request-local state Ruby methods are colorless Concurrent, colorless Ruby: Part 1, Threads Concurrent, colorless Ruby: Part 2, Fiber and its MaNy friends Parallel Ruby: Processes, Ractors and alternative runtimes Streaming Ruby: Scaling concurrency Abstracted, concurrent Ruby Closing thoughts, kicking the tires and tangents How I dive into CRuby concurrency You’re reading “Consistent, request-local state”.

@postmodern Do you mean a transparent proxy or is it okay to have an explicit server? I recently merged https://github.com/socketry/async-http/blob/main/lib/async/http/mock/endpoint.rb which might be useful?
async-http/lib/async/http/mock/endpoint.rb at main · socketry/async-http

Contribute to socketry/async-http development by creating an account on GitHub.

GitHub
@Paul @joeldrapper @davetron5000 @soulcutter yes, and it was extremely hard work.