Newest Questions
77,848 questions
0
votes
1
answer
13
views
InsertOnlyHashSet in C++
First C++ project: write a hash set for a specific scenario where I only need inserts and containment checks.
This is not AI slop, everything except for the avalanche function is hand written. Please ...
5
votes
3
answers
163
views
Computing the smallest number of the form floor(8^N / 7) that is greater or equal to a number
Is there a more direct way (loop-free) to compute this number than computing a level and then going back?
...
5
votes
1
answer
391
views
Revised and documented version of a 6500-line parsing project
I'm finishing my parsing tool split into three libraries, the first two being:
https://github.com/pczarn/cfg
https://github.com/pczarn/gearley
I am working on PR https://github.com/pczarn/cfg/pull/...
4
votes
3
answers
57
views
Optimizing DataFrame iteration when generating large hierarchical text files
I have a custom object which stores dataframes in memory given a certain hierarchy, and I want to store this data in a file while maintaining the hierarchy. This hierarchy involved parents, children, ...
4
votes
1
answer
175
views
Weight balanced tree in OCaml
The objective was to create a weight-balanced binary search tree with a well-defined interface. Any critiques or suggestions for improvement are welcome.
...
0
votes
0
answers
50
views
+50
Using a dynamic custom 404 template in Laravel
I have made a Laravel 8 blogging application that supports themes.
I had made a custom 404 template for every theme, the path to it being ...
8
votes
3
answers
88
views
Test to ensure CGI can be invoked on a local server
I am writing tests for legacy software which has a dependency on CGI scripts on a remote machine.
Mocking the dependency would entail modifying the code under test, which is a thing I cannot do at the ...
0
votes
0
answers
19
views
SvelteKit authentication hook with token refresh and request deduplication
I've implemented a SvelteKit handleFetch hook that manages authentication for API requests with automatic token refresh. The API provides a 15-second grace period where a refresh token remains valid ...
3
votes
0
answers
50
views
Self / Unit test of polymorphic database model
I originally titled my last question as a Unit Test and there was a comment that it was a integration test rather than a unit test. I will say this, indi that comment was an answer and you could have ...
-1
votes
2
answers
123
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 ...
6
votes
2
answers
475
views
Tilemap implemented in pygame
This code requires:
tile map exported as .csv file
tile set as .png
knowing tile size
knowing the rows and cols of the tile set .png
For example, this tileset has 2 rows and 6 cols
...
2
votes
0
answers
41
views
Native Messaging performance test
I put together this Native Messaging performance test to determine based on evidence which programming language, JavaScript engine or runtime, and WebAssembly compiled code is fastest to round trip 1 ...
2
votes
2
answers
803
views
Three non-negative integer encoding techniques in Java
Intro
In this post, I will present three (3) non-negative integer encoding techniques:
Elias gamma coding
Elias delta coding
Golomb-Rice coding
Code
...
8
votes
3
answers
1k
views
Replacement for "make" in Python
I'm working on a replacement for make written in Python. Instead of a Makefile, you create a Wormfile.py. This file gets imported dynamically and a Context object ...
-4
votes
0
answers
47
views
Windows backup a folder into another [closed]
I would like to backup my C:\data folder into my D:\data folder, where D: is an external ...