Skip to main content

Questions tagged [library]

A compiled set of exposed objects that isn't directly executable, but that can be referenced and used by other code.

Filter by
Sorted by
Tagged with
5 votes
1 answer
410 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/...
Peter Blackson's user avatar
4 votes
2 answers
140 views

Dijkstra's algorithm for non-uniform undirected hypergraphs

Intro (Repo here.) A non-uniform undirected hypergraph is a generalization of an undirected graph. It is defined as \$H = (X, E)\$, where \$X\$ is the set of vertices and \$E \subseteq \mathcal{P}(X)\$...
coderodde's user avatar
  • 32.1k
2 votes
0 answers
60 views

Funny time with DNA: a \$k\$-mer index data structure in Java, Take II

(See the previous and initial iteration.) Intro This time, I decided to pack the genomic data such that 4 nucleotide bases are encoded into a single byte. In other words, ...
coderodde's user avatar
  • 32.1k
0 votes
2 answers
131 views

Small library for metrics scraping in C++

I did an internship test project (source: https://github.com/SynI20N/VKInfo). Looking for some middle or senior devs to rate it and point out potential problems with my code. Follow up: How would you ...
SyRoN's user avatar
  • 9
7 votes
7 answers
2k views

LinkedList data structure in C

Is my logic good? Are variable names fitting? Are there any memory leaks? Am I doing anything dangerous (this is C after all)? Please feel free to criticize the code. I want to know if I'm writing C ...
buzzbuzz20xx's user avatar
2 votes
2 answers
123 views

repllib.java - a tiny Java library for implementing simple REPL (Read, Evaluate, Print, Loop) programs

I have this GitHub repository - repllib.java. Basically, it's a simple class library for coding REPL functionality with simple format. A typical session may look like this: ...
coderodde's user avatar
  • 32.1k
7 votes
3 answers
765 views

Polynomial.java - a Java class for dealing with polynomials with BigDecimal coefficients

(You can find multiplication algorithms in Polynomial.java - multiplication algorithms: naïve, Karatsuba, FFT.) Intro This post presents the main class (Polynomial) ...
coderodde's user avatar
  • 32.1k
3 votes
0 answers
113 views

My First Zig Library: SuperZIG IO 🚀 (Input/Output Handling Library)

I’ve recently completed my very first library in Zig, SuperZIG IO, designed to simplify input and output handling. The library provides utilities for console input/output, event listening (like key ...
Maysara's user avatar
  • 31
5 votes
2 answers
774 views

Polynomial.java - A tiny Java library for dealing with polynomials with double coefficients

Intro This time, I have produced Polynomial.java. It is a simple polynomial class that stores its coefficients as double values in an array. Code ...
coderodde's user avatar
  • 32.1k
5 votes
5 answers
2k views

A linked list in C, as generic and modular as possible, for my personal util library

I want to implement a linked list in C that I can add to my personal util library and keep it as generic and modular as possible This is my header file containing all of the function prototypes and ...
Akliph's user avatar
  • 51
1 vote
0 answers
109 views

Conflict-less Bash library function and variable naming

Marvelous Bash does not support built-in sufficient namespace features for functions or variables to specific file/module you would find in PHP or JavaScript. Conflicts in global scopes, which are ...
Serious Angel's user avatar
4 votes
3 answers
723 views

Error handling for singly linked list in C

I have seen many list implementations in C in this site; I know its been asked many times. I need some advice regarding: Quality of my code, especially my list library. How to handle errors in main (...
Sai_krishna's user avatar
2 votes
0 answers
174 views

Rust implementation of an algorithm I invented (RANDEVU) #2

I came up with an algorithm and created a Rust implementation of it. I've already posted it for code review previously but created another post since I've made many changes to it, including the ones ...
TypicalHog's user avatar
2 votes
1 answer
221 views

RANDEVU - Rust crate implementing a simple algorithm I invented

I've created a simple algorithm, implemented it in Rust, and published it as a crate on crates.io. https://crates.io/crates/randevu My code seems pretty clean and idiomatic to me, but I'd like to know ...
TypicalHog's user avatar
2 votes
2 answers
156 views

Generic stack implementation (revision)

The below post is a follow-up of Generic stack implementation. Below follows a header-only implementation of a generic stack (inspired by stb-libraries, following these guidelines: stb-howto.txt). ...
Madagascar's user avatar
  • 10.1k
2 votes
2 answers
185 views

A small header-only input output library

The library (inspired by stb libraries) attempts to provide some commonly used functions (reading a file into memory, determining the size of a file) that are missing from the C standard library ...
Madagascar's user avatar
  • 10.1k
2 votes
1 answer
163 views

Thread-safe strtok in C - version II

After improving Thread-safe strtok in C according to vnp's and Harith's nice comments, I ended up with this: Code strtok_arr.h: ...
coderodde's user avatar
  • 32.1k
3 votes
1 answer
156 views

A simple unit test library for C - version II

I have improved my code here and it looks like this: Code assertlib.h: ...
coderodde's user avatar
  • 32.1k
7 votes
1 answer
850 views

A simple unit test library for C

(This post is followed up by this one.) I have rolled this simple unit test library for C: com_github_coderodde_my_assert.h: ...
coderodde's user avatar
  • 32.1k
3 votes
1 answer
115 views

Designing Multiprocess signaling and communication

Originally I meant to discuss my entire project on stepper motors for Raspberry Pi. But I see that's out of scope. If you'd like to provide high level feedback, welcome to do so in github. The lack of ...
juanmf's user avatar
  • 151
2 votes
2 answers
276 views

How can I design the configuration of the library with Typed HttpClients in DI better?

I have written a .Net Client wrapper for Google Gemini (Generative AI) REST API and published it as a Nuget package. I am seeking a review of the code. I have spent quite some time in designing how it ...
Junaid's user avatar
  • 137
1 vote
2 answers
182 views

Fully generic, very efficient bidirectional Dijkstra's algorithm in Java

After finding out that my previous implementations are incorrect, I decided to give it another try. I relied on this post. (The entire project resides in this GitHub repository. Contains some unit ...
coderodde's user avatar
  • 32.1k
3 votes
3 answers
254 views

A simple message bus in Java

Now I have this simple message bus in Java. This one is as simplistic as I could get. Code com.github.coderodde.messagebus.AbstractMessageConsumer.java: ...
coderodde's user avatar
  • 32.1k
3 votes
1 answer
190 views

C++ printing library with templates

I was mad C++ did not have support for printing containers. I also could not find a header only library for printing containers so I decided to make my own. My goals were: 1) practicing templates 2) ...
Doruk's user avatar
  • 423
5 votes
2 answers
561 views

Generic matrix library in Java

I have this repository. The most important source files follow. com.github.coderodde.math.linear.matrix.AbstractMatrix.java: ...
coderodde's user avatar
  • 32.1k
3 votes
1 answer
167 views

Hunting for the 100,001st prime in Rust

Most of my programming experience is in Python, but my first language was C, and I was intrigued by the combination which Rust offers: a streamlined syntax and no manual memory management, but with ...
Tom Hosker's user avatar
1 vote
3 answers
225 views

C++ getline implementation for custom stdlib

I'm writing my own "standard library". It relies on nothing but syscalls, so I've had to make my own implementations of everything, including getline (...
Fuzzy Muffin's user avatar
5 votes
1 answer
304 views

string_view tokenizer function template

Below is a function template that tokenizes a given std::basic_string_view using a given delimiter and assigns the tokens to a buffer (via a ...
digito_evo's user avatar
7 votes
2 answers
700 views

Arduino library to simplify differential drive robots

I've written code for an Arduino library to abstract away some of the underlying logic in a particular way of moving robots. Code is posted after explanations. I'm not assuming a high degree of ...
eccentricOrange's user avatar
3 votes
1 answer
121 views

scoped timer class (3rd revision)

Again, here is the previous question. I have (re)revised my custom scoped timer using the valuable feedback I got from a helpful member of this community. However I feel the need to ask this question ...
digito_evo's user avatar
2 votes
0 answers
55 views

Library for managing flutter rebuilds based on state changes

This is my new library for managing flutter rebuilds based on state changes. It is very similar to AnimatedBuilder but takes a factory to create the notifier instead of an instance of the notifier. It ...
Christian Findlay's user avatar
7 votes
1 answer
249 views

Loading-content-error implementation for a tiny Kotlin library

I have a sealed interface that I use in pretty much every one of my Android projects. It implements the loading-content-error pattern, often called a Resource, <...
Eva's user avatar
  • 1,125
5 votes
2 answers
265 views

Basic scoped timer struct (extensively redesigned)

Here is the original question. I have extensively revised and redesigned my custom scoped timer for my needs using the feedback I got from two helpful members of this community. However I was told to ...
digito_evo's user avatar
3 votes
2 answers
477 views

C macro based dynamic array library

This library is a fork of eteran/c-vector. It is macro based, so that it is generic, without void pointers and additional functions. This of course means that it has the downsides of macros in C. The ...
DuckHunterZx's user avatar
5 votes
1 answer
239 views

Hybrid encryption library for text/image encryption (additional feature implementation)

I am coding a hybrid encryption library that utilises AES and RSA to encrypt text/images, The library is working fine however I am wondering if I can make any improvements to it. I have included ...
Vey's user avatar
  • 51
4 votes
2 answers
439 views

C++ (Cross-Platform) Predefined Library

As we know there is no standard way in compilers to standardize macros with compilers and different operating systems So I created this library that contains standardized compiler, os, attributes ...
Maysara Elshewehy's user avatar
2 votes
1 answer
338 views

The receive function for telnet client

This is a follow up question to Send and receive functions for telnet client. I am designing a simple wrapper around the telnet client using libtelnet for text-based communication to a telnet server. ...
ravi's user avatar
  • 439
6 votes
2 answers
1k views

Linked List implementation in c++ with all functions

I wrote my implementation to Linked List. And I tried to implement all the functions in the standard library list in CPP! I need a review for it to improve it and improve my coding skill. I also will ...
Omar_Hafez's user avatar
5 votes
1 answer
2k views

Send and receive functions for telnet client

I am using libtelnet to design a telnet client by sending text commands to a telnet server and receiving text responses. I am utilizing telnet-client.c. For simplicity, I made send and receive ...
ravi's user avatar
  • 439
1 vote
1 answer
99 views

Library to represent graphs

I have been working on a library to represent graphs (directed graphs and undirected graphs). I know that there are already many such libraries but I wanted to create my own as a learning exercise. I ...
user1311627's user avatar
5 votes
2 answers
3k views

C++ I wrote a simple and fast formatting library for strings

C++ FString A quick C++ formatting library I was working on a logging library, and needed some way to format strings quickly, simple and clean, so I wrote this library. This library is not the best in ...
Maysara Elshewehy's user avatar
4 votes
2 answers
201 views

I wrote a simple time measurement/compare library in C++ [TimeIt]

C++ Timeit A quick C++ library to measure/compare code execution time Features Easy include and just call timeit() or ...
Maysara Elshewehy's user avatar
3 votes
1 answer
445 views

I wrote a simple time measurement library in C++

welcome everybody I wrote a simple code to measure time easily Features Easy include and just call timeit() Fast It just calculates the average time in the loop ...
Maysara Elshewehy's user avatar
2 votes
1 answer
80 views

the mini js tool library

I am a newbie js "developer" and for practice, I created a tiny (8 methods) JavaScript library. I need you to give me feedback "should I keep expanding my library or switch to something ...
delaklo's user avatar
  • 23
2 votes
2 answers
5k views

A simple logging library in C

I've created a simple logging library in C which I can use in my other projects. I wanted to get started in software development using the C language, and this is my first attempt at writing something ...
Vedant Jadhav's user avatar
3 votes
1 answer
392 views

Load and execute shared library

This is my attempt to load shared library on linux (and may be mac - did not test yet) I am interested if I am implementing everything correctly and if I can really use my function in a loop like that....
Nick's user avatar
  • 1,656
2 votes
0 answers
371 views

Networking code for a Golang P2P library

I am working in a Noise-based P2P lib that has only basic TCP networking implemented so far. I am looking for anyone who get interested in this project that want to helps with reviews to the code and ...
Geo's user avatar
  • 21
0 votes
1 answer
1k views

std::list implementation learning exercise

I want to improve my algorithms and data structures in C++ understanding and also learn how the standard library containers are implemented. I implemented a std::vector in a previous review and this ...
arcomber's user avatar
  • 2,531
3 votes
5 answers
611 views

Frame Strings that contain newlines

I have an application where I need to highlight some information that is printed to the console, so I wrote some static library methods which do that. I tested for bugs. Is my code clean and ...
Dexter Thorn's user avatar
  • 2,174
3 votes
1 answer
117 views

Number partitioning: how to allow both 'light' and 'heavy' output?

I am working on a library for algorithms for multiway number partitioning. One challenge I face is that some users need the entire partition, while other users need only the sums of the parts. For ...
Erel Segal-Halevi's user avatar

1
2 3 4 5
8

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant