←back to thread

217 points varbhat | 1 comments | | HN request time: 0.319s | source
Show context
weinzierl ◴[] No.44371823[source]
Very nice. For a long time I wondered who would use hotpatching but working with large Java applications made me appreciate the possibility even if it is not 100% reliable (as it is in Java).

From the docs Subsecond looks almost perfect. The only downside I found is that (if I understood correctly) you have to modify the function call in the source code of every function you want to hotpatch.

It is a bit mitigated in that the change does not cost anything in release builds, but it still is a big thing. Do I want sprinkle my code with call for every function I might potentially have to patch in a debugging session?

replies(2): >>44372236 #>>44379066 #
jkelleyrtp ◴[] No.44372236[source]
Creator here - you only need one `subsecond::call` to hook into the runtime and it doesn't even need to be in your code - it can be inside a dependency.

Currently Dioxus and Bevy have subsecond integration so they get automatic hot-patching without any end-user setup.

We hope to release some general purpose adapters for axum, ratatui, egui, etc.

replies(3): >>44372324 #>>44378265 #>>44383948 #
1. juancampa ◴[] No.44383948[source]
Amazing! Looking forward to the egui adapter