Newest Questions
77,842 questions
0
votes
0
answers
4
views
How is my reusable code to Implement tilemap in pygame?
this code requires:
tile map exported as .csv file
tile set as .png
knowing you tile size
knowing the rows and cols of the tile set .png
for example:
this tileset has 2 rows and 6 cols
...
0
votes
0
answers
11
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 ...
1
vote
2
answers
185
views
Three non-negative integer coding 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
...
2
votes
1
answer
247
views
Make replacement 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
42
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 ...
3
votes
2
answers
321
views
A simple method for compressing white space in text (Java) - Take II
Intro
In this post, I will elaborate on A simple method for compressing white space in text (Java). Here, I have incorporated some advice offered by Chris. Also, this version preserves a single new ...
2
votes
2
answers
219
views
Benchmarking in Java some super linearithmic sorting algorithms
Intro
A sort is called super linearithmic if its running time is \$\omega(N \log N)\$. For example, \$f(N) = \omega(g(N))\$ means that \$f(N)\$ grows "faster" than \$g(N)\$. In this post, I ...
-2
votes
0
answers
37
views
Is this comb-filtering behavior genuine or a result of aliasing? [closed]
I'm solving a non-linear ODE with some input signal.
The signals consist mostly 0, with 1 at a given frequency up to a given ...
4
votes
1
answer
321
views
S-expression parser in Rust
I wrote a toy s-expression parser, and I'd like to know if I can make it more Rusty.
I'm not terribly worried about the functionality. It's only a Rust exercise for me.
...
4
votes
1
answer
488
views
A simple method for compressing white space in text (Java)
(The story continues in A simple method for compressing white space in text (Java) - Take II.)
Intro
Now I have that text space compressor. For example,
...
0
votes
0
answers
23
views
Working on HIMS SaaS using MEAN stack
I was facing an issue with changing models on the fly — since we don’t just need isolation based on string or ID, but also data-level differences for each HIMS instance. To handle this, I created a ...
2
votes
4
answers
1k
views
Python project to scrape webpages and build text datasets for ML purposes
Context
I'm returning to Python development after a break and actively learning AI/ML. As part of my learning journey, I'm building a dozen pet projects to strengthen my skills. This is my first ...
5
votes
3
answers
913
views
Moving ball simulation within a donut
How do I optimise my code more?
The goal is to have my code work with more than 200 moving balls, but that takes forever right now and doesn't look smooth at all. Furthermore, I can't get the sizing ...
-4
votes
1
answer
60
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
123
views
ShannonFanoEncoder.java - computing prefix codes in Java
Intro
This time, I have implemented the Shannon-Fano coding.
Code
io.github.coderodde.compression.ShannonFanoEncoder.java
...