-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spawn via $PATH
3: C and C++ implementations
#3998
Conversation
ec8de22
to
b9dd5c8
Compare
f62eec4
to
f506eee
Compare
b9dd5c8
to
c9f9336
Compare
c714df8
to
3f41c3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost good to go. Exited to get this in!
@@ -49,6 +49,7 @@ py-test = { cmd = "python -m pytest -vv rerun_py/tests/unit", depends_on = [ | |||
] } | |||
|
|||
cpp-build-all = { depends_on = [ | |||
"cpp-prepare", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't that in already implicitly via the other build actions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ just cpp-clean && just cpp-build-all
rm -rf build CMakeCache.txt CMakeFiles
pixi run cpp-build-all
Error: /home/cmc/dev/rerun-io/rerun/build is not a directory
error: Recipe `cpp-build-all` failed on line 39 with exit code 1
crates/rerun_c/src/rerun.h
Outdated
/// spawn_opts: | ||
/// Configuration of the spawned process. | ||
/// Refer to `rr_spawn_options` documentation for details. | ||
/// Passing null is valid and will result in sane defaults. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sane default" could mean anything though ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't crash and burn is my main point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turned it into "recommended defaults" ✨
Introduces standalone `rerun::spawn(SpawnOptions)` API that allows one to start a Rerun Viewer process ready to listen for TCP connections, as well as the associated `RecordingStream` integration. https://github.com/rerun-io/rerun/assets/2910679/24eb5647-38c1-4049-b249-dc6e00e4ff54 --- Spawn via `$PATH` series: - #3996 - #3997 - #3998
c9f9336
to
db012ec
Compare
…mples (#3997) - Get rid of the old thread-based `spawn` functionality. - Redesign `RerunArgs` to get rid of the awful callback while still dealing with Tokio's TLS shenanigans. - Update all tests and examples. The new `RerunArgs` combined with the new `spawn` from PATH now make for a pretty nice experience: ```rust let args = Args::parse(); let (rec, _serve_guard) = args.rerun.init("my_app")?; // do stuff with rec ``` --- Spawn via `$PATH` series: - #3996 - #3997 - #3998 --- - Fixes #2109
3f41c3b
to
6704c9f
Compare
ee2c98f
to
a49e28e
Compare
rr_spawn(rr_spawn_options)
C API that allows one to start a Rerun Viewer process ready to listen for TCP connections, as well as the associatedrr_recording_stream
integration.rerun::spawn()
C++ API that allows one to start a Rerun Viewer process ready to listen for TCP connections, as well as the associatedRecordingStream
integration.23-10-25_12.03.39.patched.mp4
Spawn via
$PATH
series:$PATH
1: Rust implementation #3996$PATH
2: Redesignclap
integration and clean up all examples #3997$PATH
3: C and C++ implementations #3998spawn
-like functionality to C++ and Rust #3757Checklist