Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [library]

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

1
vote
1answer
25 views

Platform-agnostic windowing library

I am making a C library that abstracts window creation with support for the new Vulkan API under a unified API; I have a github repository that you can check out. main.c ...
3
votes
1answer
87 views

value_ptr<T> - a C++11 header-only, deep-copying smart pointer that preserves value semantics for polymorphic and undefined types (updated)

My previous iteration was here. I've since finalized the concept as described in the title, and would appreciate any feedback GitHub Link Introduction: ...
1
vote
2answers
94 views

Quick & Simple Hash Table Implementation in C

First time implementing a hash table. I resolve collisions using the separate chaining method (closed addressing), i.e with linked lists. The hash function used is: ...
3
votes
1answer
54 views

Simple fluent library to validate text content

Before I can perform a more or less complex mappings, treatments in business objects and saving results in databases, I often need to validate contents from flat text files or excel files All the ...
3
votes
1answer
92 views

Snake Game Library for WPF

Recently, I had a sick leave and to had some fun and improve coding skills I got a challenge to write a Snake Game for WPF. Desired RESULT 1) Game must be in separate .dll library; 2) Must have ...
0
votes
0answers
102 views

C++20 multithread pool class

This is an iteration from a prior post; C++ multithread pool class. Class for creating thread pools with upcoming C++20 standard (-std=gnu++2a -fconcepts). It ...
2
votes
1answer
373 views

C++ multithread pool class

I have addressed the critique for this post and resubmitted it for iterative review; C++20 multithread pool class. This is an iteration from a prior post; C++ thread pool class. Class for creating ...
1
vote
0answers
24 views

Peertable - an infrastructural peer-to-peer networking library

From the README: Welcome to Peertable! This project is an infrastructural peer-to-peer networking library for Python 3. You can also use it in standalone mode, although that is for little use ...
0
votes
1answer
27 views

Handler for default values in a CLI flag utility library in C

I am developing a very basic CLI flag utility library in C. The following code is a part of the main translation unit containing all the relevant functions, and is located in the global scope. ...
4
votes
4answers
493 views

Initialized Array Template Class (C++)

The problem We want to use a very large array for some computations. When created, all the elements of this array have to be initialized to some value. We'll only use a few values from the array1,...
2
votes
0answers
52 views

Generative testing for CSV using Hypothesis - project, API, implementation

I've just finished the first iteration of my new project. It's the first time I publish Python code and I would like to know what you think about the structure of the project, the API, testing, the ...
3
votes
0answers
49 views

Library for managing CLI flags

I'm pretty new to C, started learning it less than a month ago, the only language I had previous experience was Javascript. Anyways, I wrote a library for dealing with CLI flags. It's not a serious ...
7
votes
1answer
69 views

Library for managing sub-byte named bitfields

When writing custom network serialization in Rust, I've come across a use case for storing and retrieving values in bitfields smaller than the u8 available in Rust. ...
4
votes
1answer
50 views

Minimalist config file reader/writer

I have written a simple configuration file reader and writer in D that is intended to parse string[string] associative arrays (the whole file is one array) and ...
1
vote
1answer
88 views

Generic function for loading a function from a DLL library

I am trying to write a generic function for loading a function from a DLL library. I am in no way an expert on DLLs, that is why I ask. We have discussed it first in my Stack Overflow question to ...
2
votes
1answer
46 views

An open-source library for creating genetic algorithms

My code denotes an open source library that makes creating genetic algorithms easier. It's an encapsulated library and is called using the new constructor. ...
5
votes
0answers
34 views

Macao, a General Game Playing AI library - Game state goes in, best move comes out

I'm working on a simple General Game Playing AI library. The idea is that it should work with almost any kind of game, with a minimum of configuration. At the moment, I have it working on 2 player ...
3
votes
1answer
43 views

Function declarations using macros to support multiple platforms

I wrote a C++ plugin that retrieves screen pixel. It works on Windows and Android. I noticed that dllexport is only required on Windows but not on Android and ...
5
votes
1answer
53 views

Implementation of a buffer with an underlying FILE pointer

I am writing a library that will be used as input for any application the library is embedded, let's say, an interactive shell or to read from a FILE *. I need to ...
2
votes
2answers
306 views

PHP Autoloader - For classes, traits and interfaces

Please review my Autoloader, which is the first file included in index.php Note that there is no resource with the same name for trait, interface and class. Each resource has it's own name. And even ...
0
votes
0answers
134 views

MQTT implementation in C++ for freeRTOS

For various reasons I decided to implement my own library for the MQTT 3.1.1 standard. Now that the basics work, I would like to get some feedback on the implementation :) The library is mainly ...
13
votes
1answer
146 views

Logging library

Due to several limitations of the standard library's logging module, I wrote my own. Below are the most important parts. You can find the whole library here. Any feedback is welcome. ...
3
votes
1answer
328 views

Priority queue implementation in C based on heap ordered (resizable) array - take 2

You think that your code is perfect ... until you put it up for code review. I put up my priority queue for review and received lots of really good feedback. Including a memory leak which was ...
4
votes
4answers
957 views

Priority queue implementation in C based on heap ordered (resizable) array

I am practicing writing C library code and wrote a priority queue for some graph work. I am fairly new to writing C libraries so would appreciate any feedback on this implementation. Some items to ...
1
vote
0answers
70 views

PDcurses wrapper module, with mvc or pimpl

I have been writing a library wrapper for pdcurses for a while and implemented each widget/class in it with the pimpl idiom, however I start to see that for large widgets it creates a god object and ...
3
votes
2answers
248 views

Implementing a 64 bit PRNG library in C backed by xoroshiro128+

Introduction and Credits The inbuilt rand() function in C only offers a very limited range of possible outcomes, being limited to only 31 bits. I wanted something ...
3
votes
3answers
216 views

A tiny Java library for generating Gray codes

This library is for generating Gray codes. A Gray code over \$n\$ bits is a list of \$2^n\$ different \$n\$-bit strings subject to the following constraint: two adjacent bit string differ in only one ...
3
votes
1answer
139 views

Virtual Machine in C to run C

Basically ANOTHER follow up to this review here but I've set about in completing the software project. Changes from the previous review is that I've added a complete script format with embedding API, ...
4
votes
1answer
141 views

Python threading utilities

I've written a library with convenience functions for working with the Python threading module (specifically threading.Thread ...
1
vote
0answers
43 views

Controllable graph search in Java

This program is not that much about graph search as it is about a design pattern that allows us to decide how much time we may invest in searching for a path. Here's the code: BreadthFirstSearch.java ...
6
votes
1answer
605 views

NASM tutorial (Linux syscalls, 64 bit) code with CI-build and test

According to this question, I have made an agreement with Peter Cordes to create such a question here. I think that I should prepare the tutorial using the modern technologies as the Continuous ...
3
votes
2answers
302 views

Comparing Dijkstra's SSSP algorithm against Bellman-Ford in Java

Single source shortest path In SSSP, we choose a node \$s\$ and we compute all the shortest path starting from \$s\$ towards all other nodes, thus computing a shortest path tree. Two most classical ...
2
votes
0answers
329 views

A Java library for simulating logic circuits

I have this Java library for building logic circuits and running binary data through them: AbstractCircuitComponent.java ...
2
votes
3answers
234 views

Measuring time spent between two points in code

I'm working on a project where I'm instrumenting how long it takes to get from one point in my code to another. I've written an LLVM pass that instruments the IR with calls to a simple timing library ...
5
votes
2answers
171 views

Python 2/3 `imaplib` extension library, `imaplibext`

Back again for more punishment improvement advice. Basically, stemming from my dislike of how standard imaplib.IMAP4 mailbox interaction commands functioned, I ...
5
votes
0answers
142 views

Object-Oriented Sorting Algorithms

I would like a review of a library I've recently published. I realize this is a rather large request, but having looked on meta, it seems this is perfectly on-topic. I'll include a few choice samples ...
2
votes
0answers
46 views

Small IRC library w/ message loop

So I felt like creating a small library to make IRC bots. It's separated in two classes. TelClient is a class that handles the low-level socket programming and ...
1
vote
0answers
47 views

Tiny DBMS in Java

Introduction For my purposes, I have written this simple database management system, that can do the following: Support of 7 data types: int, ...
6
votes
1answer
397 views

Pathfinding library in C++ with fluent API

Introduction I have this C++ pathfinding library. My primary requirement is that a client programmer may couple his/her own graph representation and the library will work with that representation. ...
5
votes
2answers
150 views

Cloning Python standard library's function math.frexp() that extracts exponent and mantissa from a floating point number

This is Python 3.5 code. I have attempted to develop my own frexp() function that mimics the functionality of Python standard library's ...
0
votes
1answer
291 views

C# API Wrapper with Static Function Calls

I'm creating a wrapper library for an API, and I hit a block on how to redesign it. The entire library is static, and I'd like to change it to make it more testable. The library's goal is to make ...
3
votes
1answer
134 views

Standard primitive types vs custom structs in public API

I am writing a .NET library and have a lot of properties like this: public ??? SomeProperty { get; set; } where valid values are 0-15 (or from 00000000 to ...
13
votes
1answer
468 views

value_ptr<T> - a C++11 header-only, deep-copying smart pointer that preserves value semantics for polymorphic and undefined types

== UPDATED: next revision HERE == My previous two iterations were here and here. I've since finalized the concept as described in the title, and would appreciate any feedback on the new solution ...
7
votes
1answer
659 views

A small Java library for neat printing of binary trees to text console

Given a binary tree (not necessarily a binary search tree), this small Java library implements an algorithm that can neatly print binary trees to text console. Code BinaryTreeNode.java ...
3
votes
0answers
466 views

C++ Windows / POSIX Fiber Library

Introduction I've created a C++ fiber library for use in an emulator project I'm working on. My goals were to make the fibers simple to use and to not have much overhead (compared to making the ...
2
votes
0answers
51 views

STTCL FSM framework based on the GoF State Pattern, Part III: Policy based design of higher level State Machine constructs

Preface I have decided to let my pet project created some years ago to undergo a code review here. The review will be broken into parts according to meta question Multiple reviews or one big review?...
1
vote
0answers
38 views

STTCL FSM framework based on the GoF State Pattern, Part II: Abstraction of asynchronous/concurrency features

Preface I have decided to let my pet project created some years ago to undergo a code review here. The review will be broken into parts according to meta question Multiple reviews or one big review?...
6
votes
0answers
206 views

STTCL FSM framework based on the GoF State Pattern, Part I: The basic interfaces

Preface I have decided to let my pet project created some years ago to undergo a code review here. The review will be broken into parts according to meta question Multiple reviews or one big review?...
2
votes
1answer
777 views

Improved brute force SAT solver in Java

(See the previous iteration.) I have this small library for solving the SAT (satisfiability problem) via brute force: we are given a boolean formula, which is a conjuction (...