Skip to content
View jrade's full-sized avatar

Block or report jrade

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Fast approximate exponential function Fast approximate exponential function
    1
    // Copyright 2026 Johan Rade
    2
    // Distributed under the MIT license (https://opensource.org/licenses/MIT)
    3
    
                  
    4
    #ifndef FAST_EXP_H
    5
    #define FAST_EXP_H
  2. Fast SPSC Queue implemented with C++... Fast SPSC Queue implemented with C++20 atomics
    1
    // Copyright 2024 Johan Rade (johan.rade@gmail.com)
    2
    // Distributed under the MIT license (https://opensource.org/licenses/MIT)
    3
    
                  
    4
    // Single producer single consumer queue
    5
    // Fast and simple implementation using C++20 std::atomic<T>::wait() and std::atomic<T>::notify_one()
  3. Fast and memory efficient C++ implem... Fast and memory efficient C++ implementations of the following string distances: LCS (Longest common subsequence), Levenshtein, Damerau-Levenshtein
    1
    // Copyright 2024 Johan Rade (johan.rade@gmail.com)
    2
    // Distributed under the MIT license (https://opensource.org/licenses/MIT)
    3
    
                  
    4
    inline size_t lcsDistance(const std::string& s, const std::string& t)
    5
    {