soptikha2
How exactly is hiring a very tedious process? Seemed quite fast and easy to me.
And btw, it's not that hard to fire a wrong hire. You have few months to do so basically for any reason at all, and afterwards, you can still do it, if you have a good reason to do so.
My use case are corona-time lectures. I don't want to just watch the teacher write something while saying nothing, so I speed up the video 1.5x when teacher is talking, and 4x otherwise.
So this extension analyses sound in the video, and determines which parts are loud or silent. And depending on that, it changes playback rate of the video. Technically, this is javascript extension that downloads video information (when it's loud or silent) from server (which is btw written entirely in shell & gnu coreutils) and tells the videoplayer what to do. So only videos explicitely indexed by my server are managed by this extension. User has to click a button in the extension menu to index a video (as the data about videos are stored on my server and it has very small disk size, so I don't want to do this for every video).
Running PonyOS on Real Hardware for Fun and Profit
Another reason, albeit really small, was that tui-rs was written specifically for rust, and curses framework I looked into were essentially just C bindings, making it a bit weird to use. To be fair, this disadvantage is by far outweighed by the fact that curses is far more popular than tui-rs, and there is so much more tutorials and documentation to be found about it.
But I wanted to focus on writing the debugger, so I went with what seemed to be more convenient option and paid the price of lower control and performance - for example I have troubles implementing syntax highlighting because tui-rs tries to be clever with mine ansi escape codes.
---
Thanks for the links, especially the ble.sh looks amazing.
I've considered using curses, but tui-rs seemed that it will be easier to handle. I can certainly recommend it for making tui applications.
I didn't actually use any documentation at all, it wasn't in the man page and I didn't feel like hunting for it, as it was pretty easy to understand just by looking at the output.
Sed debug works by running the code specified just as normal, but it annotates what it does to stdout. So it might look like this: https://gist.github.com/SoptikHa2/a50e90bd1b34c7238944c20d1a...
Sed actually has pretty well-designed interface IMO, it's pretty minimal and has no nasty surprises.
Edit: Here[3] is something I've written about it.
[1]: https://github.com/fdehau/tui-rs [2]: https://github.com/crossterm-rs/crossterm [3]: https://soptik.tech/articles/building-desed-the-sed-debugger...
However sed is perfect if you have spare time and want to write basic programs in unnecessarily complex way for fun.
I’d be glad for any comments regarding code quality or the debugger itself.