Yo so re: #activitydesk https://v2.jacky.wtf/post/5676a37b-b01b-4c0b-802f-d49969116b74

#rust #rustaceans if y'all got some experience with multi threading with the language lemme know cuz a brother is stumped and needs to do client work lol

Jacky Alciné

Currently, ActivityDesk is ...

Failing to Send Posts to Main Thread · Issue #2 · blackaf/activitydesk

Currently, ActivityDesk is failing to send new posts from the background threads to the GUI thread. I’m using the channel approach to handle this but the act of sending is consistently failing. Loo...

Failing to Send Posts to Main Thread · Issue #2 · blackaf/activitydesk

Currently, ActivityDesk is failing to send new posts from the background threads to the GUI thread. I’m using the channel approach to handle this but the act of sending is consistently failing. Loo...

@jalcine Does Qt let one plug pollable stuff into its main loop? You may be able to steal some techniques from here:

Motivation: https://coaxion.net/blog/2019/02/mpsc-channel-api-for-painless-usage-of-threads-with-gtk-in-rust/

Implementation: https://github.com/gtk-rs/glib/blob/master/src/main_context_channel.rs

TL;DR - have a channel be a bounded deque, with hooks into the main loop so the toolkit can ask it, "do you have events for me?". That implementation exposes a GSource for a GMainLoop; not sure what Qt uses.

MPSC Channel API for painless usage of threads with GTK in Rust – coaxion.net – slomo's blog

coaxion.net – slomo's blog
@federicomena I _think_ - this is entering territory I'm not terribly familiar with. I'll have to read a bit up on it and report (on here)

@jalcine good luck!

Hmmm, you said it failed when sending. Do you know the exact error?

@jalcine I’m interested so I can make use of this info for Social, too in case I run into issues.
@jalcine btw, is GitHub or invent.kde.org the main repo src?
Projects · Explore

GitLab Community Edition

@brainblasted I wanna use invent but it's pretty locked down to only KDE contributors on there. I'll sync info from both by hand for now
@jalcine hmm, that sucks. I hope they eventually open that up better.
@brainblasted you'll probably have more headway on this GTK and friends have better integration with Rust; I'm working semi aganist Qt.