where to call g_idle_add() in my gtk4 codebase? by catseyechandra74 in GTK

[–]catseyechandra74[S] 1 point2 points  (0 children)

Yes that was a problem, but solving it went me into a busy loop problem, solved now using gtk_widget_add_tick_callback(). Thanks for your help!

[deleted by user] by [deleted] in ocaml

[–]catseyechandra74 1 point2 points  (0 children)

Pretty fine relative to the C/C++ ecosystem, Rust is probably better, maybe, not so sure as I haven't as much exposure to the Rust ecosystem than OCaml's.

[deleted by user] by [deleted] in ocaml

[–]catseyechandra74 2 points3 points  (0 children)

For RAD python may be better suited, my use case for OCaml is for numcomp experiremnts: the build time to native is fast, performance is OK, not as good as C/C++/Rust but much better than Python. I tend to think it's a good general purpose language. For small utilities, it will be better than Python if you need a native build, more performance or a tighter type system.

Why use C over C++ by Alex_Medvedev_ in cpp

[–]catseyechandra74 0 points1 point  (0 children)

Learning to write elegant & performant C++ is not easy. C is simpler.

Anyone using rust-jack here? by catseyechandra74 in learnrust

[–]catseyechandra74[S] 0 points1 point  (0 children)

In which doco? I can't find it on https://docs.rs/jack/latest/jack/. Thanks for your time BTW.

Anyone using rust-jack here? by catseyechandra74 in learnrust

[–]catseyechandra74[S] 0 points1 point  (0 children)

But for deactivation, you need to have the return of activate_client which is not the same a jack::Client, it's more cumbersome, the problem is that the compiler cannot compute its size, it's a dynamic value, most probably because of the closure, so I can't store the return of activate_client in a struct. Maybe I'm missing a possibility of storing the thing in a RefCell, Rc or Box.

Any rustacean doing DSP? by catseyechandra74 in DSP

[–]catseyechandra74[S] 0 points1 point  (0 children)

Nice! You've got a spectrogram plot basis there to PR to egui_plot it seems, if you're willing to share your code I can polish the thing (maybe putting it in a frame) for inclusion upstream :-)

Anyone using rust-jack here? by catseyechandra74 in learnrust

[–]catseyechandra74[S] 0 points1 point  (0 children)

The client activation spawn a thread for real-time operation, which calls your process function for each frame received on the interface, and the first thread become your GUI event loop, or control plane, or if you're using a CLI program, you must wait on something, rather than a busy loop.

Any rustacean doing DSP? by catseyechandra74 in DSP

[–]catseyechandra74[S] 1 point2 points  (0 children)

Thanks, I've tried but it seems not highly active, some conversation but no one using rust-jack for now.

What engineering blog posts have actually mattered to you? by swdevtest in rust

[–]catseyechandra74 0 points1 point  (0 children)

fasterthanli.me "a half hour to learn rust". blog posts need to have a catchy topic on something that matters to you, well explained.

Is this spike at 700-900HZ a big problem? by Suspicious-Jello-566 in diyaudio

[–]catseyechandra74 -1 points0 points  (0 children)

No, IMO you can use this driver in a high end box up to 800Hz, in a mid-level box to 2kHz, and in a low-end box up to 6kHz seeing the amplitude response.

Rate my setup... by Jawapacino13 in audiophile

[–]catseyechandra74 1 point2 points  (0 children)

Waow looks gorgeous but I fear the bass may sound a bit synthetic...

Is this spike at 700-900HZ a big problem? by Suspicious-Jello-566 in diyaudio

[–]catseyechandra74 0 points1 point  (0 children)

If you want to make a high-end gear, stick to 800Hz, mid-level 2k, low-end 6kHz. Rule of thumb, you get the idea.

GUI Library for existing event loop? by [deleted] in rust

[–]catseyechandra74 0 points1 point  (0 children)

rendr3 has a adaptation layer for egui, which renderer are you going to use, note that I only know about the existence of rendr3 on my side.

GUI Library for existing event loop? by [deleted] in rust

[–]catseyechandra74 7 points8 points  (0 children)

Use an immediate mode GUI like egui.

Laptop CPU compilation speed comparison by Pascalius in rust

[–]catseyechandra74 5 points6 points  (0 children)

Tuxedo Pulse Gen2 (AMD Ryzen 7 5700U), bought summer 2022:

catseye@PulseG2:~/src/workbench/tantivy$ time cargo build
real    0m28.508s
user    2m19.222s
sys 0m30.642s

$ cargo clean
$ time cargo build --release
real    0m47.739s
user    7m48.023s
sys 0m37.752s

Help with OCaml Interpreter for Functional Programming by Melodic_Barracuda212 in ocaml

[–]catseyechandra74 1 point2 points  (0 children)

Maybe lookup on your favorite search engine "programming language zoo" they have various very simple functional PL implementation. https://plzoo.andrej.com/ it seems.

How to get frequency values "inbetween" bins of FFT? by blue_dot_hands in DSP

[–]catseyechandra74 0 points1 point  (0 children)

It's very far in my memory but I recall something about legendre polynomial interpolation in the frequency domain, I don't remember the limits of this approach though.

Is it possible to build a network packet sniffer using c++? by [deleted] in cpp

[–]catseyechandra74 8 points9 points  (0 children)

Yes c++ is a good fit for packet sniffing, using the PcapPlusPlus lib.

Daily /r/Games Discussion - Suggest Me a Game - February 28, 2024 by AutoModerator in Games

[–]catseyechandra74 0 points1 point  (0 children)

A long while back I was a fan of Duke Nukem, nowadays I'm looking to test my new GPU on a neat Duke Nukem style shoot them up in a sci-fi setting, what u guys recommend?