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
3 votes
1 answer
55 views

scoped timer class (3rd revision)

Again, here is the previous question. I have (re)revised my custom scoped timer using the valuable feedback I got from a helpful member of this community. However I feel the need to ask this question ...
2 votes
0 answers
18 views

Library for managing flutter rebuilds based on state changes

This is my new library for managing flutter rebuilds based on state changes. It is very similar to AnimatedBuilder but takes a factory to create the notifier instead of an instance of the notifier. It ...
5 votes
0 answers
38 views

Loading-content-error implementation for a tiny Kotlin library

I have a sealed interface that I use in pretty much every one of my Android projects. It implements the loading-content-error pattern, often called a Resource, <...
  • 1,095
4 votes
0 answers
43 views

Web Component base class with declarative templating, reactive state, and DOM diffing

Overview I'm writing a utility for creating Web Components. The idea is to, while introducing as few idiosyncrasies and offering as few opinions as possible, provide an intuitive implementation of the ...
5 votes
2 answers
92 views

Basic scoped timer struct (extensively redesigned)

Here is the original question. I have extensively revised and redesigned my custom scoped timer for my needs using the feedback I got from two helpful members of this community. However I was told to ...
3 votes
2 answers
88 views

C macro based dynamic array library

This library is a fork of eteran/c-vector. It is macro based, so that it is generic, without void pointers and additional functions. This of course means that it has the downsides of macros in C. The ...
5 votes
1 answer
73 views

Hybrid encryption library for text/image encryption (additional feature implementation)

I am coding a hybrid encryption library that utilises AES and RSA to encrypt text/images, The library is working fine however I am wondering if I can make any improvements to it. I have included ...
  • 51
0 votes
0 answers
27 views

contextmanager indenter package and test suite

I would like to learn Python packaging and testing best practices. I wanted to gain experience with packaging and testing, and also play around with context managers, so I made a contextmanager that ...
4 votes
2 answers
139 views

C++ (Cross-Platform) Predefined Library

As we know there is no standard way in compilers to standardize macros with compilers and different operating systems So I created this library that contains standardized compiler, os, attributes ...
2 votes
0 answers
39 views

Single header geometric mesh library in C

I'm writing a simple physics and rendering demo for my senior capstone class, using GLFW, OpenGL, and GLM. I decided to begin writing a simple geometric mesh creation library in C to make meshes ...
0 votes
0 answers
30 views

Developer experience for Nextjs Google Analytics library

I wrote this Nextjs Google Analytics library. The basic usage requires a component and a hook: ...
2 votes
1 answer
137 views

The receive function for telnet client

This is a follow up question to Send and receive functions for telnet client. I am designing a simple wrapper around the telnet client using libtelnet for text-based communication to a telnet server. ...
  • 429
6 votes
2 answers
1k views

Linked List implementation in c++ with all functions

I wrote my implementation to Linked List. And I tried to implement all the functions in the standard library list in CPP! I need a review for it to improve it and improve my coding skill. I also will ...
4 votes
1 answer
546 views

Send and receive functions for telnet client

I am using libtelnet to design a telnet client by sending text commands to a telnet server and receiving text responses. I am utilizing telnet-client.c. For simplicity, I made send and receive ...
  • 429
1 vote
1 answer
60 views

Library to represent graphs

I have been working on a library to represent graphs (directed graphs and undirected graphs). I know that there are already many such libraries but I wanted to create my own as a learning exercise. I ...
5 votes
2 answers
2k views

C++ I wrote a simple and fast formatting library for strings

C++ FString A quick C++ formatting library I was working on a logging library, and needed some way to format strings quickly, simple and clean, so I wrote this library. This library is not the best in ...
4 votes
2 answers
97 views

I wrote a simple time measurement/compare library in C++ [TimeIt]

C++ Timeit A quick C++ library to measure/compare code execution time Features Easy include and just call timeit() or ...
3 votes
1 answer
271 views

I wrote a simple time measurement library in C++

welcome everybody I wrote a simple code to measure time easily Features Easy include and just call timeit() Fast It just calculates the average time in the loop ...
2 votes
1 answer
49 views

the mini js tool library

I am a newbie js "developer" and for practice, I created a tiny (8 methods) JavaScript library. I need you to give me feedback "should I keep expanding my library or switch to something ...
  • 23
2 votes
2 answers
734 views

A simple logging library in C

I've created a simple logging library in C which I can use in my other projects. I wanted to get started in software development using the C language, and this is my first attempt at writing something ...
3 votes
1 answer
56 views

Load and execute shared library

This is my attempt to load shared library on linux (and may be mac - did not test yet) I am interested if I am implementing everything correctly and if I can really use my function in a loop like that....
  • 1,326
2 votes
0 answers
234 views

Networking code for a Golang P2P library

I am working in a Noise-based P2P lib that has only basic TCP networking implemented so far. I am looking for anyone who get interested in this project that want to helps with reviews to the code and ...
  • 21
1 vote
1 answer
184 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 ...
  • 2,299
3 votes
5 answers
502 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 ...
  • 2,112
3 votes
1 answer
80 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 ...
5 votes
2 answers
177 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 ...
  • 2,299
0 votes
2 answers
64 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 ...
1 vote
0 answers
351 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? ...
2 votes
2 answers
204 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. ...
  • 423
0 votes
1 answer
279 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 ...
2 votes
1 answer
58 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 ...
3 votes
2 answers
883 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
146 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 ...
  • 26.6k
2 votes
0 answers
57 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
1 answer
311 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
3 answers
268 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. ...
  • 197
5 votes
0 answers
108 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 ...
2 votes
1 answer
80 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 ...
1 vote
1 answer
93 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-...
  • 198
4 votes
0 answers
148 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 ...
  • 41
3 votes
2 answers
125 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 ...
  • 175
1 vote
1 answer
374 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 ...
  • 135
1 vote
2 answers
562 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 ...
  • 561
2 votes
0 answers
171 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
2 answers
60 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
2 answers
96 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
2 answers
181 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
148 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) ...
  • 92.9k
5 votes
1 answer
335 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 ...
  • 51

1
2 3 4 5
7