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
-1 votes
0 answers
39 views

Re-designing the response type of a method. Instead of throwing exceptions, put these exceptions in an Error property

I'm trying to improve SendAsync because of how ugly it looks, for ex. look at EnsureAuthenticated. I don't like the fact that it throws exceptions when it fails to ...
user avatar
  • 401
0 votes
1 answer
63 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 ...
user avatar
  • 2,227
3 votes
5 answers
422 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 ...
user avatar
  • 2,006
3 votes
1 answer
67 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 ...
user avatar
5 votes
2 answers
138 views

std::vector 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. This resizing_array is based on the std::vector. My ...
user avatar
  • 2,227
0 votes
2 answers
56 views

JSONtab library : A tool to reversibly convert between an arbitrarily deep nested object and a tabular format

Could the following code be improved in terms of clarity, performance, maintainability, best practices etc? JSONtab library A tool to reversibly convert between an arbitrarily deep nested object and a ...
user avatar
1 vote
0 answers
71 views

WireGuard tools for python

Some years ago, I wrote a small library that provides part of the functionality of WireGuard's wg utility as Python functions. How can I improve it? ...
user avatar
2 votes
2 answers
95 views

Accessing multiple dynamic libraries with the same extern C methods

I have multiple pre-compiled dynamic libraries that use the same extern "C" function names. The functions can behave differently for each dynamic library. ...
user avatar
  • 403
0 votes
1 answer
72 views

Go logging wrapper that adds log levels

The package is essentially a small wrapper around the stdlib logger that provides a very simple, easy to use logger that can toggle between different log levels (DEBUG, INFO, WARNING, ERROR). Log ...
user avatar
2 votes
1 answer
48 views

Python Library for Random Collections

I created a small library Python library to randomly create primitive types and collections. The primitive types are int, float, and string. The collections are tuples of 2, tuples of 3, a list, a 2d ...
user avatar
3 votes
2 answers
185 views

str_join() function, not present in the standard C library

This function str_join() is an updated version of my earlier function strcat_new() — found here: ...
user avatar
11 votes
3 answers
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 ...
user avatar
3 votes
3 answers
124 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 ...
user avatar
  • 25.3k
2 votes
0 answers
49 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 ...
user avatar
3 votes
1 answer
206 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()...
user avatar
5 votes
3 answers
259 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. ...
user avatar
  • 197
4 votes
0 answers
77 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 ...
user avatar
0 votes
0 answers
54 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 ...
user avatar
2 votes
1 answer
73 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 ...
user avatar
1 vote
1 answer
85 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-...
user avatar
  • 198
3 votes
0 answers
98 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 ...
user avatar
  • 31
3 votes
2 answers
111 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 ...
user avatar
  • 175
1 vote
1 answer
173 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 ...
user avatar
  • 135
1 vote
2 answers
343 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 ...
user avatar
  • 531
2 votes
0 answers
118 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 ...
user avatar
0 votes
2 answers
57 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 ...
user avatar
0 votes
2 answers
92 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 ...
user avatar
3 votes
2 answers
176 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 ...
user avatar
4 votes
1 answer
81 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) ...
user avatar
  • 91.5k
5 votes
1 answer
237 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 ...
user avatar
  • 51
4 votes
1 answer
93 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 ...
user avatar
6 votes
3 answers
143 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 ...
user avatar
  • 345
5 votes
3 answers
292 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 ...
user avatar
  • 153
1 vote
1 answer
75 views

Networking library for c++ linux

...
user avatar
2 votes
0 answers
36 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 ...
user avatar
11 votes
0 answers
308 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 ...
user avatar
10 votes
1 answer
433 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 ...
user avatar
0 votes
0 answers
145 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 <...
user avatar
1 vote
1 answer
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 ...
user avatar
13 votes
3 answers
373 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 ...
user avatar
4 votes
1 answer
74 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: ...
user avatar
2 votes
3 answers
70 views

Socket library based on winsock

I wrote a socket library in C++, to wrap Winsock. I found it a bit tiring using winsock2 - I'd say it's a bit complex, compared to, for instance, the Python socket library. My code, header file: ...
user avatar
  • 21
3 votes
1 answer
108 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 ...
user avatar
1 vote
1 answer
695 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 ...
user avatar
0 votes
1 answer
40 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: ...
user avatar
2 votes
0 answers
68 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 ...
user avatar
4 votes
4 answers
142 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 ...
user avatar
2 votes
2 answers
92 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 ...
user avatar
3 votes
3 answers
172 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 ...
user avatar
1 vote
1 answer
158 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 ...
user avatar
  • 477

1
2 3 4 5
7