Newest Questions
77,954 questions
0
votes
1
answer
14
views
Encrypted Messaging Protocol over FTP in Python
Project Overview
I have developed a project named FTPChat, which is a lightweight messaging protocol that uses a shared file hosted on an FTP server as its transport layer. The project is intended for ...
2
votes
3
answers
55
views
Unix WC Implementation
Code: https://github.com/Loki-Astari/Puzzle/tree/master/wc
Challenge: https://codingchallenges.fyi/challenges/challenge-wc/
wc.cpp
...
1
vote
2
answers
29
views
Huffman Compression
Code: https://github.com/Loki-Astari/Puzzle/tree/master/HUF
Challenge: https://codingchallenges.fyi/challenges/challenge-huffman
huf.cpp
...
0
votes
0
answers
11
views
Json Flex/Bison parser
Code: https://github.com/Loki-Astari/Puzzle/tree/master/JSON-2
Challenge: https://codingchallenges.fyi/challenges/challenge-json-parser
json.l
...
1
vote
1
answer
27
views
JSON Parser recursive desent
Code: https://github.com/Loki-Astari/Puzzle/tree/master/JSON-1
From Challenge: https://codingchallenges.fyi/challenges/challenge-json-parser
json1.cpp
...
2
votes
1
answer
65
views
Simulating die streaks and counting the number of matches in Java
Intro
Suppose we throw a die \$N\$ times. Before writing this program, I was puzzled by a question: How should I approach each trial. I got two options:
Choose a single die number, count how many ...
3
votes
1
answer
105
views
Completeness of a `fgets()` test code
Please review my_fgets_test() for completeness to exercise the functionality of fgets()-like code.
Also suggestions for ...
3
votes
4
answers
317
views
The project logger
I have written a small function that will be imported in each working file of my project and will make logging uniform for the project, allowing for centralized editing of logging settings.
What can I ...
5
votes
1
answer
216
views
ObjectBucketSort.java with running time statistics
Intro
This time, I present the ObjectBucketSort, a stable sorting algorithm for objects.
Code
...
3
votes
1
answer
65
views
Wrapper / Utils for creating an instance of JCache's CacheManager implemented by Redisson or Caffeine
I want to provide an instance of JCache's CacheManager that either points to a distributed cache managed by Redisson (used in production), or a Caffeine instance (used for testing). I want this code ...
6
votes
1
answer
203
views
Swift/SwiftUI: UI-control for ratings
I've created a reusable SwiftUI ratings-view. Means: Giving 0 to 5 stars as a rating.
Here's the source-code:
...
4
votes
3
answers
564
views
ObjectCountingSort.java
Intro
This time, I was in the mood for generalizing counting sort to arbitrary (Comparable) objects.
Code
...
8
votes
2
answers
851
views
Batcher's sort in C++20 - Take II
Intro
This post is the continuation of Batcher's sort in C++20.
This time, I have incorporated the advices of
Martin R,
Toby Speight,
Chris.
Code
batcherssort.h:
<...
1
vote
0
answers
35
views
Looping on some non-displayable entities, and mutating them so as to establish a link with a display system
I want to implement the following pattern in Rust. It is a loop on some entities that don't know how to display themselves, but each one points to a display_linker, ...
7
votes
3
answers
990
views
Batcher's sort in C++20
Intro
This is the very first time I actually expose myself to C++20 (concepts in this case). I decided to rewrite the Batcher's sort.
(This post has a continuation: Batcher's sort in C++20 - Take II.)
...