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
9
votes
3answers
2k views

strcat_new() function, not present in standard C library

strcat_new() function, not present in standard C library. Syntax: char *strcat_new(char *delim, long num_args, ...); The code is ...
3
votes
3answers
112 views

Comparing 8 different Disjoint-Set data structure variants in Java

The Wikipedia page on Disjoint-Set data structures presents \$4\$ distinct algorithms for finding the root node of the tree, and \$2\$ distinct algorithms for performing the union operation. In this ...
2
votes
0answers
43 views

xagents - implementations of reinforcement learning algorithms

Description It is valid to say, this work started and evolved from a standalone DQN implementation, which I included in an old question, to a mini-library xagents, housing 7 re-usable tensorflow-based ...
3
votes
1answer
144 views

Permutation function for a math library in C++

Continuing the code for combinatorics library, adding the definition of ⁿPᵣ. This is an extract from a larger codebase. Is there any way to limit the code of gcd()...
5
votes
3answers
250 views

My little C++ library for comfortable programming

I've tried to make a little library in C++, to gather all useful and necessary functions. I wrote the code(in one file, to make it more portable). Unfortunately, it works on Windows only. ...
4
votes
0answers
63 views

Small generic helper library for working with recursive data structures

I've written a small rust library that solves rust's problems with using recursive data types (e.g, linked lists). using the library, you can use ...
0
votes
0answers
51 views

Object Relational Mapper - improvements to use in production

An Object-relational mapper built using PHP. This question is related to this old question. (Object relational mapper - optimize in memory data representation and code improvements) This was done for ...
2
votes
1answer
71 views

Object relational mapper - optimize in memory data representation and code improvements

An Object-relational mapper built using php. This was done for educational purposes, and curious to know what kind of improvement has to be done to use in production. Please refer to the complete ...
0
votes
0answers
54 views

Quadratic Probing Hash Map - questions about implementation and testing

Quadratic Probing Hash Map Looking to improve my quadratic probing hash map. Here are some design considerations and questions. Implementation is made such that the hashing function, probing function ...
1
vote
1answer
76 views

Minimal list definition in Rust

As a purely pedagogical exercise, I've been trying to use Rust's (very expressive) type system to define the bare minimum one might expect from an ordinary list type. While there's likely a higher-...
3
votes
0answers
88 views

C# class library for managing recurring background operations

I have written a class library for creating timer-based bacground operations in .NET projects. The idea is to be able to create and manage (start/stop/resume/cancel) recurring background operations ...
3
votes
2answers
105 views

Small library for SFML to streamline program flow

For the past week or two I have been working on a small library that aims to ease development of SFML games, and after finishing it I would love to get some feedback on it. I don't have access to any ...
1
vote
1answer
81 views

dynarr - yet another simple C dynamic array library

I wrote my own dynamic array library for C as I was not happy with the others I found. It is very crude but the basic logic should be correct, it mainly revolves making ...
1
vote
2answers
228 views

What would be the idiomatic F# way to write optional parameters?

In the context of a library to generate random credit card, it would be nice to let the user the possibility to set some optional options on some cards. Lets take Visa. Two lengths are available: 13 ...
2
votes
0answers
89 views

How should I go about implementing rust into the unity3d engine?

Recently, I've explored using rust as a scripting language for unity. My current method involves creating a DLL from rust, and loading it into my game at runtime. It requires that the user use a ...
0
votes
0answers
9 views

DI container class

I have created this DI container class lib to be used to in any other external project as a learning exercise. Please review, and suggest any improvements or comments you have. ...
0
votes
2answers
53 views

Simple library for an undocumented archive format

I'm writing a little library for some undocumented file formats. The original program uses a path string to find files in an archive and this function tries to do the same. The archive contains a ...
0
votes
2answers
89 views

Small Python math library

I have been writing a math library with more options than the standard builtin one, partially to make my life easier in the future, and partially just for practice. Here is what I have so far in the ...
3
votes
2answers
174 views

Library displaying a format with runtime errors, exceptions, and error exceptions present

I have this Library to control errors; I would like if you can evaluate it and make a review of the code, not about the goals of the library: Everything works for me correctly, but I am also open to ...
4
votes
1answer
74 views

Commands Object creation using chained Builder pattern

Context As many of you may know I have a library that allows C++ objects to be converted into JSON/YAML/BSON automatically with a single declaration (see previous code reviews). I am now (trying) ...
5
votes
1answer
184 views

Generic Visitor pattern library for polymorphic virtual class hierarchies

Inspired by this cppcon talk from Fedor Pikus about design patterns and some real-world need I implemented a library that allows the user to add a generic visitor pattern capabilities to class ...
4
votes
1answer
63 views

Polynomial library using expression templates

In a recent toy project, I made heavy use of calculations involving polynomials in Z[x]. As an experiment, I decided to try out implementing expression templates - and it did seem to provide drastic ...
6
votes
3answers
134 views

Linear Algebra Library in C++;

This is actually an extension of the already written Matrix Library from this post. This Matrix class is the result of the changes made thanks to this answer by Toby Speight, and having added a few ...
5
votes
3answers
196 views

C++ WAVE file reader: library-like structure, safety, readability

Introduction I have released a small a WAVE file reader with a mutex/lock-based caching mechanism, as a header-only library. The general purpose of the library is to read WAVE files into floating ...
1
vote
1answer
73 views

Networking library for c++ linux

...
2
votes
0answers
35 views

Abstraction to make URLs (many different schemes) act like Paths on disk

The config file for my project takes many files and directories. It would be convenient if these files and directories could reference git repositories, zip archives, possibly over https. This ...
11
votes
0answers
292 views

Host-Agnostic Model-View-ViewModel Infrastructure

I've written an API that unlocks some serious MVVM capabilities with VBA's MSForms UI framework. This is the complete code-behind for an example ...
10
votes
1answer
416 views

A library for interacting with JPL Horizons

I'm writing a tiny Python library that fetches data from Horizons, JPL's solar system data and ephemeris computation service. An overview of their batch CGI is here. While the script is simple, I ...
1
vote
0answers
142 views

C# Neural Network project

I'm writing a NeuralNetwork library, so everyone could use it and I'm wondering if I can optimize it even more. Here is my GitHub repo if you want to check the whole project (I recommend using the <...
1
vote
1answer
37 views

Varying Parameter Names in Method Overloads

Probably a dumb question but just can't seem to make a decision here. I'm building a C# class library that I intend for other developers to use. Let's say one of these classes contains a method that ...
12
votes
3answers
367 views

MMMRjs a product of BYTES Genesis

We have published a product today called MMMR.js this product is licensed under the MIT license and is built by Syed Mohammad Sannan. The uniqueness of this product is that it is built with and for ...
4
votes
1answer
62 views

Double linked list API design in C

I have created the following few functions for handling the use of doubly linked lists. list.c: ...
1
vote
1answer
36 views

Socket library base on winsock

I've decided to make a socket library in C++. To be honest i found it a bit tiring using winsock2 - I'd say it's a bit complex, comparing to for instance Python socket lib. My code, header file: <...
3
votes
1answer
107 views

Small Javascript Lib to draw SVG file

I'm new to JavaScript and I decided to make a script that allows other developers to show SVG elements in the web browser. (It is just for learning purposes), and it is still under development. I ...
1
vote
1answer
626 views

GeekTrust: Tame of Thrones OO

I am trying to solve a problem on GeekTrust, called Tame of Thrones (here) Shan, the gorilla king of the Space kingdom wants to rule all Six Kingdoms in the universe of Southeros. There is ...
0
votes
1answer
38 views

Custom Library (pseudo-jQuery)

Well, I'm not going to use it everywhere, as jQuery exists, but still was interested in experience of creating own library. Here are first steps: ...
2
votes
0answers
61 views

JSONSchema validation implementation in Rust

I'm developing a Rust library that implements JSONSchema validation (Drafts 7 fully works at the moment). I have Rust-specific questions and concerns about my implementation. It works by compiling ...
4
votes
4answers
139 views

Statistics Library with Sample, SampleBuilder and Tests

Introduction I'm working on a Statistics Library that can record observations and produce a Summary of the statistics when there's enough observations. Right now, it's at its early stages and is ...
2
votes
2answers
84 views

Shared memory class

I wrote a class that opens a shared memory communication to use in my project, and would like a review. mylib_com.hpp ...
3
votes
3answers
124 views

Linear Regression Class in Python

I have recently been brushing up on my statistics and calculus and wanted to implement Linear Regression, the code will be for a calculus/statistics library I am working on (I know there are libraries ...
1
vote
1answer
151 views

Laravel build a route from a model

I've created a library, TomHart/laravel-route-from-model, and looking to get a review on it. As well as the usual code review, I'm also looking for feedback from a users point of view, if you were to ...
16
votes
1answer
290 views

Open source project to ease the Assert part from the functional tests of .Net Core Web APIs

I have built an open-source project based on FluentAssertions in order to solve some recurring tasks I was doing while testing the .Net Core APIs I'm developing. I find the capability of doing in ...
1
vote
0answers
37 views

Proper imports and exports for nodejs and the browser

The Library is meant to be re-used for both the browser and the nodejs runtime environment, publishing this code for a code review to make it better and concise. Question: How to build a library in an ...
2
votes
1answer
215 views

Redis work queue processor

I frequently encounter the need for creating services that concurrently process messages from Redis queues. So I decided to share the knowledge I learned and help others easily bootstrap such a ...
3
votes
1answer
331 views

Ring buffer with random access

I had an application where I really wanted a double-ended queue that supports random access. Java's ArrayDeque would have been perfect, except that it doesn't ...
4
votes
0answers
91 views

RSS Reader from Multiple sources

I am writing a RSS reader Library which should be able to read the data from different sources. I am very new to writing libraries and not sure if I am going right with it. These are my base ...
2
votes
0answers
205 views

React-auto-height

I created a react-auto-height library: A React component that animates height: auto children when their content is changed, using CSS transitions. It started ...
8
votes
3answers
1k views

Java TreeMap.floorKey() equivalent for std::map

I wanted something equivalent to this Java program: ...
5
votes
1answer
392 views

SQS subscriber pattern in background service

I have the below code to pull messages from a FIFO SQS queue. Using the while (IsRunning) loop makes me feel to question the code design. Is there a pattern I am ...
4
votes
1answer
131 views

A small PHP library for styling terminal output

I've attempted to make a small PHP library for styling terminal output using ANSI escape sequences. The repo is located here. To be honest, I am not really satisfied with the current structure of my ...

1
2 3 4 5
7