Calling rust from zig from rust from zig
HTML-код
- Опубликовано: 27 июн 2024
- Stream from May 14, 2024 at / sphaerophoria
00:00 Intro
06:05 Call into rust from zig
39:40 Launching rust GUI from zig
50:30 Designing zig and rust interop
58:17 Zig state in rust, and rust state in zig
01:26:55 Trying to get opengl callbacks into zig
I made a similar editor last year. It was a great project. I wanted the 99% of the video editing process to be automated and none of the tools allowed me to plug into them programmatically.
A couple things that might make the process easier
- Openai whisper is not going to be accurate enough on the word timestamps to be able to use them for chopping up a video. There are custom versions of whisper that can do this much better. Another option is deepgram although not open source.
- Might be worth looking into using the skia renderer and potentially using flutter for the ui to make the ui building alot faster and nicer.
I've reverted back to davinci resolve ( they added editing with transcript support ). Adobe also has that feature, although I'm not going back to adobe. I've also used descript which is pretty good at this task.
Good stuff man.
Bro, you're a sorcerer. What the fuck. hahaha
Loving your channel.
Welcome Home!
Dude you are crazy!!!
it's crazy to me that this is possible at all
Did you look at GPUI, the rust GUI library the Zed editor team are making?
(not watched whole VOD yet) 2:18:40 Why not just let Rust generate all the bindings for the zig side (partially from the base .h)?
At that point, I was just tilted. I was struggling more with the bindings generators than I would struggle just writing stuff by hand.
On further reflection though, I do want the interface to be completely defined externally by hand. I want the idea to be "rust is implementing this interface", not "rust is the owner of this interface" if that makes sense. E.g. I'm toying with the idea of stubbing out a second gui for integration testing in zig. In this case the rust code would never even be compiled, so it doesn't make sense for him to own the interface.
I think I had that idea a little in my head while coding this up, so it effected some of the decisions as well
It's supposed to be pronounced like the name not like KDE n live