« first day (3999 days earlier)      last day (37 days later) » 

4:57 AM
Monking
 
 
3 hours later…
7:54 AM
1
Q: Created client server with read and write from both side

i_am_learningI have created client and server which can read and write from both side in client as well server. So what more improvement can be done so the code should be performant and better? Following are three files, main.rs, client.rs, server.rs. (cargo new tcp-server). src/main.rs mod client; mod server...

 
 
7 hours later…
2:36 PM
Monking
 
 
1 hour later…
3:42 PM
Monking
 
3:54 PM
0
Q: Refactor to take out if-else logic based on the passed parameter

LonelySemicolonI have something like this: It is easiest to see what is used where if you copy it in NotePad++ to highlight items. The part I like to improve is to write it a little bit better so I don't have to switch the logic like this for different methods to call. Or maybe that's fine? Not sure. if (loadNa...

 
Monking
 
4:16 PM
0
Q: Optimizing even more a C++ matrix class with expression templates using variadic templates

11houseI looked at Bowie Owens' cppcon 2019 talk (the slides can be found here) where he shows how to implement a tridiagonal matrix classes using expression templates but without resorting to the CRTP. (It in fact really looks like a vector class but it is not the point.) I came across this talk becaus...

 
4:39 PM
0
Q: C++ - Find all duplicate files (follow-up)

HarithWhat's changed: Instead of hashing each and every file, the sizes of the files are first compared, and if those are equal, the files are then hashed. A better hash function, EVP_Blake2b512(), is used in place of EVP_md5(). Files are also read in chunks now. (Previously each file was read into a s...

 
 
5 hours later…
9:13 PM
0
Q: Optimizing Multiple Subplot Visualization and Navigation in Matplotlib

Cold FireI have implemented a class in Python using Matplotlib for visualizing multiple subplots along with navigation buttons to move between different subsets of data. Each subplot displays a contour plot along with a colorbar. While it kind of works, I am seeking advice on optimizing the code for bette...

 
For the record:
in Coding Projects and Duga Heaven :), 2 days ago, by Simon Forsberg
@SᴀᴍOnᴇᴌᴀ Having big computer issues. @Duga is taking a break.
 
 
1 hour later…
10:22 PM
1
Q: Priority Queue Implementation

ProgrammerI made this Priority Queue implementation for C# since it doesn't support updating priorities in logarithmic time complexity. I did some tests and it seems that it's correct. However, I'm not sure whether the tests I did truly prove that it works properly. I would like to get it reviewed. Of cour...

 

« first day (3999 days earlier)      last day (37 days later) »