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.

5 votes
1 answer
352 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
137 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
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
  • 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
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
  • 32.1k
3 votes
0 answers
112 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
771 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
172 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
219 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

15 30 50 per page
1
2 3 4 5
24