A compiled set of exposed objects that isn't directly executable, but that can be referenced and used by other code.
0
votes
0answers
48 views
C++ serial port library across different compilers
I'm writing a C++ library with MinGW (4.8.0, DW2, POSIX) compiler. But this library must be used by another compiler. I've read this post, so I've re-written the C++ library interface in this way:
...
7
votes
2answers
132 views
Usage of a C library in a C++ project (std::string char array conversion)
Abstract
I have little C/C++ skills. I've learned programming mainly with Java, and so I chose C++ (targeting C++11) as the language to learn better. In my current C++ project, I have to use the ...
0
votes
0answers
28 views
Allegro5 Code Review
I know this code is VERY inefficient, which is why I am putting it on here.
#include<allegro5/allegro.h>
#include<allegro5/allegro_native_dialog.h>
#include ...
-1
votes
1answer
2k views
Small PHP Framework. Almost one year later
The following is a new question based on answers from here: Small MVC for PHP
I have written a small template library that I would like some critiques on.
The library is located here
If you are ...
1
vote
1answer
46 views
Improving the flexibility of my library/what can be improved?
How can I make my library more flexible towards programmers? Here is my library. It's a basic library that provides a simple interface to organise your game (with scenes, and engine/game connection). ...
3
votes
5answers
127 views
How to improve this C library for strings?
I'm working on a C library which attempts to bring some of the Python string functions over to C.
https://github.com/shrimpboyho/octo
This is where my full source is located. But the majority of ...
2
votes
1answer
817 views
Custom Task Scheduler
I want a task scheduler with some specific capabilities for my application. I've searched for a good library that provides me with the following, but found nothing.
Queuing awaitable tasks.
Ability ...
3
votes
0answers
110 views
CDN Fallback “library”
Edit: Even adding a comment of "looks good to me" and up-voting that comment would be appreciated :) I just want the feedback! Thanks!
For the fun of it as well as professional development, I wrote a ...
3
votes
2answers
122 views
Singly-linked List Library
This is sort of a follow-up to a post I created about 10 days ago, but I have completed the implementation: Designing function prototypes for a singly-linked list API in C.
As I began to work on the ...
3
votes
1answer
536 views
PID Controller library
I'm trying to implement a PID without floating point operations on a micro controller. I appreciate all feedback I can get.
Header file:
#ifndef BRUSHPID_H
#define BRUSHPID_H
#if defined(ARDUINO) ...
6
votes
2answers
146 views
Using standard library to simplify pairwise iteration of container values
I came up with this code whilst answering this question.
Is there a simpler way of doing this using standard library?
I want to iterate over every object and do something with every other object.
...
3
votes
2answers
2k views
Small MVC for PHP
The following is a new question based on answers from here: Small PHP MVC Template
I have written a small MVC template library that I would like some critiques on.
The library is located here
...
0
votes
0answers
100 views
How to improve the speed of this piece of CUDA code? [duplicate]
I'm trying to port my library to CUDA. I wrote the first version, but it is slower than the CPU version. How can I improve the speed of this code? What mistakes did I make?
__global__ void ...
0
votes
0answers
135 views
Why is this CUDA program slower than the CPU program? How can I improve its speed? [duplicate]
I partially ported my lib in CUDA, but the CUDA version is slower than the CPU version. Can anybody look at the function trainingBP and tell me what I did wrong and how I can fix it? I'm novice in ...
4
votes
1answer
89 views
Code review for a collection manipulation tool in Javascript
As I was working with .NET, I started wondering how I would implement the LINQ methods syntax in Javascript. So here is my first try; is there a more elegant, or more performant, way to write this ...
1
vote
2answers
221 views
C++ counter part of Java's “package private”
I'm writing a C++ library which needs deeper access to its own classes than it wants to allow the application using the library to have. I'm talking about headers to be included by the application, ...
6
votes
1answer
175 views
Thoughts on my little javascript library?
just wanted to gather your opinion on my little javascript library.
It features Math, String, Array, canvas and location extensions, aswell as some useful animation and timing classes I came up with:
...
2
votes
0answers
215 views
Writing SIMD libraries for C++ on FASM in x86-64 Linux
I have recently started a project of SIMD libraries development for C++ on FASM for x86-64 Linux.
I would be glad to hear any opinion or feedback about the project, cleanness of the code and ...
8
votes
2answers
246 views
Usability of API to declare modules in JavaScript
Edit: I updated the JavaScript modules in http://enlargeyourpassword.com to use scope(). You can see the result in the source of the page, and get an idea of the process by looking at the commit ...
2
votes
1answer
196 views
Review my JavaScript cookie library
I wrote a small JavaScript libary that aims to simplify JavaScript cookies. You can find the code on Github:
https://github.com/js-coder/cookie.js
I tested it in various browsers and it seems to work ...
1
vote
5answers
365 views
Any criticism on my JavaScript micro-library?
I made this little library for personal use to make javascripting faster and easier.
I would like to know if there are any inefficiencies in it (in size and performance) and possibly if there is a ...
1
vote
3answers
290 views
Critique my parsing library interface
Update: I've realized that I've missed the goal of fluency completely. I have added another configuration interface now, which more closely meets what I originally desired. I've added this. Comments ...
6
votes
1answer
3k views
Small PHP MVC Template
The following is a new question based on answers from here: Small PHP Viewer/Controller template
I have written a small MVC template library that I would like some critiques on.
The library is ...
2
votes
1answer
136 views
Makefile Magic on Simple Linux C Project
I am in the early stages of learning to write makefiles for larger projects where all the source will be spread across multiple directories. Instead of posting all the source, I have provided a link ...
1
vote
2answers
2k views
Generic binary search
I have the following code for binary search
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Diagnostics;
namespace ...
1
vote
1answer
145 views
Optimizing my CSS selector library
I've made a selector library at https://github.com/minitech/Sprint.js and it appears to be much slower than jQuery on the ID selectors #test and #test2, and on the selector *. Can anyone point out ...
6
votes
1answer
714 views
High level file structure and library structure [closed]
I'm working on a DOM-shim project.
For a small subset of the DOM4 specification (Actually a subset of the Node interface) I already have 400+ lines of functions.
I presume keeping this up will ...
15
votes
2answers
947 views
Small PHP Viewer/Controller template
I have written a small template Viewer/Controller esque library that I would like some critiques on.
The library is located here
If you are looking for where to start, check out App.php and ...
2
votes
1answer
535 views
A library written in CoffeeScript
So, I wrote this small library for fast DOM building with API tailored for CoffeeScript
I feel like the code overall can be made better/smaller/faster.
I am also not particularly happy about a few ...
1
vote
1answer
64 views
Critique the design and quality of this TrainingData class used in my image recognition software
I'm working on a project for an image recognition software. The software takes an image and returns a set of labels (a label is just a string of text) which describe the contents of that image. Each ...
8
votes
3answers
323 views
I'm working on my own JS-lib and I need someone to help.
My own CMS is currently using J-Query but as one of the goals is to have the whole project to be very small, so I've decided to write my own basic library, I only really need to select elements and ...
9
votes
4answers
853 views
Thoughts on PHP Autoloader Library
Basically, I had written this class a little while ago to ease autoloading of our local libraries.
The premise is that everything's split by packages into multiple layers of sub-packages. Classes ...