Unanswered Questions
687 questions with no upvoted or accepted answers
23
votes
0
answers
774
views
Multiplying big numbers using Karatsuba's method
The Karatsuba algorithm, first published in 1962, aims to speed up the multiplication of big numbers by reducing the number of 'single-digit-multiplications' involved.
Because of its complexity (...
17
votes
0
answers
1k
views
Autotools detect C++ language standard support
I have been updating my build tools to optionally use autotools (autoconfig/automake/libtool etc.).
As part of this change I have written a couple of M4 macros. This not being something I have done ...
9
votes
0
answers
588
views
Hunt the Wumpus GUI (FLTK)
I used the code from the text based hunt the wumpus game discussed here: Text based game “Hunt the Wumpus” Version 3 to create a gui Version based on excercises from PPP by Stroustrup.
For the GUI i ...
9
votes
1
answer
420
views
Metropolis Monte Carlo Sampler in Rust
the following is an implementation of the standard Metropolis Hastings Monte Carlo sampler. You can read more about it here.
At the end I am going to give you a link to the Rust playground, so you ...
8
votes
0
answers
1k
views
A simple Qt + MQTT doorbell application
So I built a house recently and didn't want to rely on "privacy-questionnable" systems like Google Home or Amazon whatever so I decided to build a doorbell system myself.
Hardware
I use a ...
8
votes
0
answers
590
views
Simple, intuitive and (hopefully) safe EventDispatcher
For my own game engine I need an event system. I tried to avoid the single-huge-enum-approach for minimizing compile times.
The BasicEventListener is the (...
8
votes
0
answers
417
views
C++ constexpr trampoline
For fun, I implemented a trampoline function for C++ constexpr functions, since the recursion limit for constexpr functions is ...
8
votes
0
answers
373
views
STTCL FSM framework based on the GoF State Pattern, Part I: The basic interfaces
Preface
I have decided to let my pet project created some years ago to undergo a code review here.
The review will be broken into parts according to meta question Multiple reviews or one big review?...
8
votes
0
answers
379
views
.NET DLL Injector in C++
I built a DLL Injector with User-Interface.
The program lists all processes, the user chooses one of them and a DLL, and inject it.
It's my first project in C++, and I know it's not exactly C++ ...
8
votes
0
answers
7k
views
I am using boost::process to call an external process, and using stdout, stderr, and stdin to supply/retrieve data
I have some program which takes input via stdin, writes output to stdout, and errors to stderr. I would like to call that program from another program, supplying data via stdin, and capturing output/...
8
votes
0
answers
201
views
Implementing Simple Diff in Rebol
I've taken a crack at implementing Simple Diff in Rebol (versions 2 and 3). Simple Diff works by finding the longest common sequence in two series, then recursively applies itself either side of this ...
7
votes
0
answers
480
views
c++ std::function implementation
When I first tried to implement std::function I thought it would as easy as creating a class that holds a function pointer. Consequently, I quickly figured out that ...
7
votes
0
answers
298
views
Selection sort with reduced comparison count: Python iteration 2
Follow up to Selection sort with reduced comparison count - semi-final Iteration?
My goal (and excuse not to tag reinventing…) is to have presentable code to argue the viability of reducing the number ...
7
votes
0
answers
254
views
Find an arithmetic expression near to target value
I wrote this program as an answer to Express a Number challenge on the Programming Puzzles & Code Golf site; it may be worth looking there for the context. The concept is simple (and familiar to ...
7
votes
0
answers
566
views
A* Algorithm in F#
Inspired by this post I looked up A* on wikipedia and went on with my own implementation as seen below where I try to mimic the pseudocode on Wikipedia but in a recursive manner.
I would like any ...