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.

4 votes
2 answers
135 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
  • 31.9k
2 votes
0 answers
59 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
  • 31.9k
0 votes
2 answers
130 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
121 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
  • 31.9k
7 votes
3 answers
763 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
  • 31.9k
3 votes
0 answers
111 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
769 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
  • 31.9k
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
107 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
722 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
171 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
216 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
180 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

15 30 50 per page
1
2 3 4 5
24