Questions tagged [asynchronous]
Asynchronous programming is simply allowing some portions of code to be executed on separate threads. It makes your applications perform better, be more responsive, and use the resources of the system they are running on to the fullest extent.
513 questions
6 votes
1 answer
88 views
Bash tool for automating Telnet/SSH commands with live interactive session takeover
I made this executable because I used to play on a MUD, which was essentially a server to which you connect to through telnet to play in a multiplayer world. What annoyed me was how difficult it was ...
-1 votes
2 answers
184 views
Object oriented programming deque implementation (another second thought)
Another second thought from the second thoughts series Object oriented programming deque implementation (after second thought) led to disposing if statements ...
2 votes
1 answer
87 views
My first attempt to insert and retrieve data from a MySQL database using the boost::mysql library
About the Project This was a go/no go prototype for a project that would store the data a combined personal planner software with project planning software in a relational database. It was also a ...
3 votes
1 answer
52 views
Kotlin coroutines in Jetpack Compose: Dispatcher-usage
I have implemented a timer in Jetpack Compose. It counts down a given amount of seconds. The remaining seconds are displayed. Moreover the past and remaining seconds are displayed as a circular graph. ...
4 votes
1 answer
115 views
Implementation of semantically safe interface for `std::future::then`
Disclaimer: I am not a fan of the then concept, specifically as a mutating non-static member function. As of now, it has only been introduced as part of the ...
5 votes
1 answer
279 views
Executing method with time limit restrictions
I've created a method which allows to run tasks where results might not be fully computed but still are considered valid. ExecuteFor method can be used if you have ...
1 vote
0 answers
114 views
Debounced inotify watcher in rust
Here is a tiny (cli) tool to run a script with the state of any of a set of watched files when one of them is opened or closed. It applies basic debouncing to handle bursty access. It was written to ...
7 votes
1 answer
1k views
C++: algorithm that uses fixed-size buffer of data that are produced in stream, faster than the algorithm speed
I try to implement this scenario with a producer/consumer multithread pattern and I'd like to optimize synchronization and memory model directive used. This code originates from a SO question and its ...