Unanswered Questions
268 questions with no upvoted or accepted answers
8votes
0answers
286views
Error handling function (Win32/C)
I have written the following function to be a general "error logging" solution for my Windows API projects. Basically, given a Windows system error code (a la ...
CommunityBot
- 1
7votes
0answers
584views
Red-black tree appears to be slower than std::multimap
I've written a red-black tree in C as an exercise. The tree works and it is not bad, but it is about 10% slower thanstd::multimap from libstdc++ which I'm ...
6votes
0answers
187views
Markdown parser library in C
For a side project, I needed a markdown parser and I decided to roll my own.It is a SAX-style parser, i.o.w. you can hook into parser events on consumer side and do whatever you want with the content....
6votes
0answers
305views
tbf - An Optimizing Brainfuck Interpreter and Transpiler in C
Language:The Brainfuck programming language consists of eight commands:...
6votes
0answers
134views
Showing a Wikipedia article's changes as Git commits
I created a small-ish NodeJS script which takes as argument the name of a Wikipedia article (and optionally a Wikipedia edition, "en" is default) and creates a Git repository with each ...
6votes
0answers
741views
Simple virtual machine prototype for Lisp-style languages
I found a post I made here an year ago (Compiler for a minimal LISP dialect to run on the Java Virtual Machine) and got interested on this subject again. This time I decided to implement the ...
CommunityBot
- 1
5votes
0answers
104views
Correct abstractions/organisation of a NodeJS GraphQL API
I recently did a quick take-home test for a potential job opportunity. It included building a GraphQL API with nodeJS. I am not an expert in node (mostly use Python at work) but I have used it for ...
5votes
0answers
121views
Menu Parser in C
This is a simple program that parses a menu specification and creates a menu tree.Why?I want to create a menu application, where the user can select an entry in the menu, and either a submenu can ...
5votes
0answers
858views
A POSIX getdelim() and getline() implementation for MSVC
Tired of always having problems in reading arbitrary length lines from file under Windows, I tried to write a POSIXgetdelim() and ...
5votes
0answers
215views
Single-threaded coroutine in C (Linux x86-64)
Background StoryI crafted a simple single-threaded coroutine in C, running on Linux x86-64.Short Technical Explanation1) TaskThere are two types of tasks in this implementation.Main task. This ...
5votes
0answers
207views
Binary PATRICiA Prefix Trie
I was wondering if we could speed-up lookup in a hash table of strings by only storing the difference between them, like HAMT. Taking this idea to its end, I ended up with a binary PATRICiA prefix-...
5votes
0answers
531views
Cache conscious SIMD matrix multiply of unsigned integers
The goal of the code review by order of importance (i.e. What I hope to hear from you):I've verified correctness using a straightforward matrix multiply function though I am open to those who want to ...
5votes
0answers
1kviews
Reusing curl easy handles in C
In a C project I want to reuse curl easy handles. The flow of program is like:Client --> C Application --> Call URL1, do something, Call URL2, do something, Call URL3...In short, for each client ...
5votes
0answers
1kviews
Mocking the file system within a test
I've been using this method to test file-system functions as an alternative tomock-fs due to its lack of symlink support. I'd love to hear what others think and ...
4votes
0answers
93views
16x16 integer matrix transpose using SSE2 intrinsics in C
I was inspired by this and this to make a C function that would take an array of 16__m128i, treat it as a matrix of 16x16 ...








