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
114
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 ...
-5
votes
0
answers
85
views
Object oriented programming deque implementation (after another second thought)
After another second thought from the second thoughts series Object oriented programming deque implementation (after second thought) it turns out using static methods alternatively to method ...
-1
votes
2
answers
186
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 ...
-7
votes
1
answer
128
views
Object oriented programming deque implementation (after second thought)
The java.util.Deque implementation from Object oriented programming deque implementation that consists of three elements linked arrays, each array holding reference ...
2
votes
1
answer
88
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 ...
1
vote
0
answers
69
views
Inserting and retrieving data MySql Database access in C++ using Boost::ASIO and Boost::MySQL
About the Project
This is a unit test and a prototype for the database portion of a project that would store the data a combined personal planner software with project planning software in 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. ...
3
votes
1
answer
145
views
Wait for results/failure of an unreliable async operation
Abstract Problem
The basic problem is that of producer/consumer. Wait for an async Producer to [produce an item] or [fail], together with a timeout on the consumer side.
Using Java's ...
4
votes
1
answer
116
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 ...
2
votes
1
answer
99
views
Optimizing domain requests and filtering results with Polars
I need to query a large number of domains stored in a CSV file and save the associated metadata from the responses. My final goal is to generate a CSV file after applying filters to this metadata.
The ...
5
votes
1
answer
285
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 ...
2
votes
1
answer
337
views
Using async websockets in Rust with tokio, rmp-serde and varint encoding
This is my first attempt at a real life app in Rust. I would mostly like to know if I am writing idiomatic Rust code, coming from Java and Python. I'll appreciate any pointers to improvements, though.
...
1
vote
0
answers
115
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 ...
3
votes
1
answer
569
views
C++ Readers-Writer Lock using Asio's Strands
The locking mechanism is implemented in the class RW_Lock.
The saved_async_completion_handler structure is used in ...
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 ...