Unanswered Questions

19
votes
0answers
563 views
+50

How can I make my stack monad faster?

I made a stack monad that lets one manipulate and control values on a stack. I want to know if it's correct, (it seems correct), how to make it faster, and how I could detect stack overflows without ...
11
votes
0answers
76 views

Stack Implemented Using Linked List

I wrote a stack implementation using a singly linked list in x86_64 assembly. This stack supports the usual push/pop operations as well as first/next for iterating over each element. I'm looking for ...
11
votes
0answers
77 views

Finding a zero crossing in a matrix

I am trying create an algorithm for finding the zero crossing (check that the signs of all the entries around the entry of interest are not the same) in a two dimensional matrix, as part of ...
11
votes
0answers
128 views

Capture the notion of invertible functions

I find sometimes it is useful to capture the notion of invertible functions. The idea is that if two functions f :: a -> b and ...
10
votes
0answers
200 views

Factor script to change case of all filenames in a directory

In the absence of a full-fledged tutorial, I am teaching myself to program in the Factor language by writing a bunch of functions that I will eventually use in command-line scripts. One common ...
8
votes
0answers
41 views

Linux NASM assembly linked list implementation

Inspired by all of the lovely linked lists lately, I decided to implement one in assembly language. This code maintains two linked lists - one is a free store and the other is the active linked list. ...
8
votes
0answers
81 views

Generating hard to guess session tokens

Does this code create sufficiently hard-to-guess session tokens, assuming the server and client are communicating over HTTPS? Take 2 (thanks to this crypto.SE answer): ...
7
votes
0answers
66 views

How to structure a master page?

I have a small coldfusion section of our site that all uses similar js and css files and page structure. The code is currently repeated for each file, and I'd like to factor it out and set something ...
7
votes
0answers
213 views

Proxy/Facade Implementation Concept in C++11, impedance matching DB with classes

In an old project I tinker with from time to time, I have a DOM-like structure in an MMF database. I'd like the nodes to act like they have some C++ typing based on the content, and accessor methods ...
7
votes
0answers
148 views

Lua OOP and classically-styled prototypal inheritance

I want to do some object-oriented programming in Lua, and I decided on something like this: ...
7
votes
0answers
182 views

Portable CMake script

I'm trying to write a portable CMake script for a simple Qt application. The target platforms are Win and Mac OSX. But as you can see, it's quite a monster already. Are there any CMake profs? Can you ...
7
votes
0answers
497 views

boost::any replacement

I needed a boost.any lookalike, that could handle a std::unique_ptr. I came up with this. Please provide some c++11 criticism. ...
7
votes
1answer
700 views

Intranet PHP application

I'm more of an IT guy (no CS course) with a strong and passionate relationship with Unix and I love KISS. I'm writing an application to help my coworkers with their daily tasks. Every now and then I ...
6
votes
0answers
83 views

A simple Thread Pool

A very simple Thread pool: Any work added to the pool will be executed. The destructor will wait for all work to be finished before letting the threads stop. We then join all threads before letting ...
6
votes
0answers
65 views

Connecting to EC2 instances using the instance name instead of IP

I'm an intensive user of AWS EC2 instances, many instances are launched, stopped, repurposed, etc. To connect to any instance using SSH I must keep track of their ...

15 30 50 per page