Hot-reload for #rustlang just got better. Thanks to plenty of feedback I released v0.5 of github.com/rksm/hot-lib-r…. It adds a new mechanism for defining hot-reloadable code that reduces boilerplate considerably.
The #[hot_module] attribute macro now provides a way to create a module that is 1:1 replaceable with a static version. The wrapped functions from the library are automatically reloaded when the library changes. No more manual updates. Here is how a simple example looks like:
Also the documentation was rewritten and extended. Check it out here: docs.rs/hot-lib-reload…. The hot-lib-reloader repository also has more examples now.
In addition it is now possible to react to library reloads, for example to trigger reruns or drive a main loop.
And finally the last piece, be informed before the dylib changes happen and have control over when the update should run. More details at github.com/rksm/hot-lib-r… and a full blown async serialization/deserialization example is at github.com/rksm/hot-lib-r…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Robert Krahn 🇺🇦

Robert Krahn 🇺🇦 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @robertkrahn

Aug 25, 2021
@curious_reader @RoamResearch Well, cloxp was an attempt to bring a Smalltalk-like environment to Clojure to provide a tool not just for programming but potentially other kind of knowledge work. See e.g. @codezeilen's paper hpi.uni-potsdam.de/hirschfeld/pub… for a description of the idea.
@curious_reader @RoamResearch @codezeilen This idea is of course an old one. To a certain extent sketched out in As We May Think, Doug Engelbart's NLS, and then more than sketched out in various Smalltalk implementations. The way that Roam works is very interesting and provides an approach towards the...
@curious_reader @RoamResearch @codezeilen ...thinking process described in As We May Think. Yet, what it is missing, is the computational aspect. Structuring knowledge, ideas, data is one side, but being able to combine, process and extend it using individual and customizable programs another. theatlantic.com/magazine/archi…
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(