Uh oh!
There was an error while loading. Please reload this page.
Log - #61
Conversation
while this feature is not restricted to any threading class, i have some doubt about RT concern and threading issue
Philipp91
commented
May 13, 2021
Ah this looks like the solution to #91. Could you add a usage example (perhaps in the dummy unit test)? |
YruamaLairba
commented
May 13, 2021
sorry, this branch is far behind the rest of the main branch. I don't remember the details, but i stopped this branch because at the moment, there is no way to implement fully an properly in pure rust. If you need it to display some debug information during plugin development, you can use "println!" instead and run the host from a console. |
Philipp91
commented
May 13, 2021
Thanks! |
prokopyl
commented
Aug 9, 2021
Hi @YruamaLairba , do you still want to work on this PR? While I agree full realtime formatting support is not easy (and, in fact, may very well be the job of a whole separate crate), I believe a simple function that just sends a nul-terminated string as a log to the host would be quite useful already. We can add the formatting part later. 🙂 |
YruamaLairba
commented
Aug 9, 2021
Lol, i read the Log spec API again, and in general, this should not be used in real-time context (does the doc have been updated ?). The only exception is for debugging purpose (trace) where messing real-time is not a concern. |
prokopyl
commented
Aug 9, 2021
Yes, I agree, realtime formatting doesn't seem like a very big concern for now. ^^ |
prokopyl
left a comment
There was a problem hiding this comment.
I'll also do a quick review here, since you plan on continuing the work you may find this helpful 🙂
Uh oh!
There was an error while loading. Please reload this page.
| use std::os::raw::*; //get all common c_type | ||
| use urid::*; | ||
| pub struct EntryClass; |
There was a problem hiding this comment.
I think having the entry types in a submodule (entries for instance) would be a cleaner, although it's not a lot of code, it'll show up as quite a few types in the rustdoc and might be a bit overwhelming for new users that might want to focus elsewhere (mainly the Log feature, or the entry type trait).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
YruamaLairba
commented
Aug 10, 2021
@prokopyl wait a minute, i just looked in again and it appear i have some unpushed work in my local dir. I will do a push force with my work on the top the develop branch for a cleaner git history. I also reminded a big interrogation i had about threading class of this feature. This feature is allowed in any non-realtime context, i think this implies the "worker" thread, but i really don't see how to implement that without messing the principle of separation of LV2 extension. |
32f35f8 to
fe6d8d7CompareYruamaLairba
commented
Aug 10, 2021
Sorry, rebasing was a very bad idea, i didn't see the code wasn't compiling at all after therebase |
YruamaLairba
commented
Aug 10, 2021
except documentation, i don't see what more i can do... |
YruamaLairba
commented
Aug 11, 2021
@prokopyl have you an opinion on code i did? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
prokopyl
commented
Aug 16, 2021
@YruamaLairba Yes! Sorry for the wait, I just did another review. 🙂 Also, don't bother with making extensive documentation for now, I'll merge this into a |
YruamaLairba
commented
Aug 20, 2021
I think it's almost, it's only need documentation. I wouldn't do submodule, there is too few type in my opinion. |
YruamaLairba
commented
Aug 21, 2021
I completed and reworked the documentation. I also removed the unsafety of the |
YruamaLairba
commented
Oct 1, 2021
@prokopyl you may didn't see, i'm ready for a review since a while. |
I started to work on the log spec.