Tag Archives: programming

CLZ – The Integer Log Base 2 Instruction

In just a few CPU instructions, the truncated base 2 logarithm of any integer can be computed for any integer from -2^63 … 2^63 – 1. This has interesting applications in being able to rapidly access logarithmically increasing arrays. The … Continue reading

Posted in programming | Tagged , , , , , , , | Leave a comment

Baker Proof of Concept on GitHub

The first proof of concept of my latest hack project is available on GitHub: https://github.com/jimbelton/baker This program (written in python) is able to automatically build a simple C library and its test program. The tool requires little to no configuration … Continue reading

Posted in programming | Tagged , , , , , , , , , | Leave a comment

Hash Table Shootout on GitHub

NOTE: Since I wrote this article, I fixed some bugs in the benchmarks and regenerated the graphs. The updated article is here: Hash Table Shootout Updated I forked Nick Welch’s hash table shootout benchmark, got it all working, and updated … Continue reading

Posted in programming | Tagged , , , , | Leave a comment

The Java Virus

I’d like to share a revelation that I’ve had during my time at Salesforce.com. It came to me when I tried to classify Java and I realized that it’s not actually a programming language. Every other programming language on this … Continue reading

Posted in programming | Tagged , | Leave a comment

Dart Logging Hello World Example

Dart is a new programming language being developed at Google. It has the advantage of running in a native virtual machine on the server, but cross compiling to javascript on the client. I decided to check out the most basic … Continue reading

Posted in dart, programming | Tagged , , , | Leave a comment

Datatypes Used in libsxe: 64 Bit Programming

libsxe uses standard C data types, but it is very careful to use them intentionally. We normally use the following types: Type | Defined | Description —————+————-+———————————— bool | <stdbool.h> | Boolean values (true and false) char | C standard … Continue reading

Posted in programming | Tagged , , , , | 2 Comments

High Speed Fine Grained Diagnostic Logging

The sxe-log package of the libsxe library (see libsxe.org) has always had macro based logging with a decent feature set: Trace and dump level messages compiled out in non-debug builds In-line level checking for absolutely minimal performance impact when level … Continue reading

Posted in libsxe, programming | Tagged , , , , , | Leave a comment