View Posts for Unfiled

  • Interesting Things in Software (9/17/2016)

    |
    Updated at
    Left-Right Algorithm for Concurrent Reading and Writing

    Here's an interesting, practical and more memory efficient way alternative to the Read Copy Update (RCU) Algo. These algos assume far more reads than writes. Instead of copying the data structure for writing (essentially creating a new version), you maintain two copies of your data structures where both sides are eventually consistent. Strictly, writers will modify the opposite (say left) side of what the current readers are reading (right) and then poi...
  • Nvidia Tesla for Time Series Data?

    |
    Updated at
    I wonder if it is worth the effort to use an Nvidia Tesla for automatic anomaly detection in time series data. Obviously, you do not want detection for all time series data because it has to be meaningful, but if you had a way to combine multiple anomalies with a rule based system then it should be effective for large amounts of data.

    Look at this beast: http://www.anandtech.com/show/10675/nvidia-announces-tesla-p40-tesla-p4

    My idea is to throw this beast into 1-10 machines and have data fed to them from a TS...
  • Care about Performance over Readability? Get rid of your Getters and Setters!

    |
    Updated at
    https://www.youtube.com/watch?v=OFgxAFdxYAQ

    Cliff Click, during the Q/A, talks about not using getters and setters if you really really care about performance. One of the reasons being that there is a chance the getter/setter may not be inlined. Another may be that the function calls may cause a failure to inline hot spot areas due to a threshold being hit due to the function calls.
  • Thinking about moving off of Wordpress

    |
    Updated at
    Just thinking about moving away from PHP in general and to NodeJS. I can definitely make my own blog in NodeJS nowadays without any worries about security updates and etc. Blog from anywhere too since my HTML/CSS chops have not withered away. I will definitely make use of Aurelia because it is a really good framework.
  • Got Internet at My New Place

    |
    Updated at
    It has been quite awhile since I last posted here. Last post, I complained about Citibank's initial setup which was in Nov 2016! and it is almost Sept 2017!

    My biggest project has been released at work, but since it is a user-driven product rather than a "one person with all the knowledge" thing, it is hard to get loyal users. My brain is pretty tired though since this project was written by only me (though thanks to open source library authors too!) in Java. The project exposes a UI application and backend ...
  • Opening an Account at Citibank is so slow and dumb.

    |
    Updated at
    Two weeks ago from today November 15, I opened an Access account at Citibank through their online application. I've never seen a bank account that is online-only, so it is fitting that I sign up online to get it.

    Sure, the approval process was quick, but 1. why did I receive an email saying that I needed to place an initial deposit (AS IF IT WERE BLOCKING THE APPROVAL) and 2. where the hell is the account? Furthermore, why the hell am I getting emails to place an initial deposit after I authorized it during ...
  • Interesting Things in Software (9/10/2016)

    |
    Updated at
    Decided to start off an "Interesting things in Software" post to start logging things that I found interesting to read about.

    Sonification of Algorithms

    It is all about assigning a sound effect (essentially) to your algorithms. For a sorting algorithm, you could assign a sound effect when it makes a data access or write. The sound effect's tone/pitch can be modified depending on data values (see youtube link below).

    This is an interesting topic and idea because it is something that is weird to think about. Fir...
  • Dabbling in C++, Modern Way of Pointers (Raw, Unique, Shared, Weak)

    |
    Updated at
    I am going to assume you know what pointers are for and why you use them. If not, please go learn about stack and heap memory.

    If you are like me, you know raw pointers look like this: `int * someNumber`. You manage your own memory with `new` and `delete`. Manual memory management has its' benefits, but clearly it does not at a large scale given the amount of overhead people are willing to take to use garbage collected languages.

    If you know about auto_ptr, forget about it. It is gone in C++17.

    Unique, Shared...
  • Dabbling in C++, Object Model

    |
    Updated at
    Just watch this: https://www.youtube.com/watch?v=iLiDezv_Frk and learn why C++ does what it does.

    *Mic drop*
  • Dabbling in C++, Template Metaprogramming Overview

    |
    Updated at

    When I used to hangout in IRC gamedev channels, template metaprogramming was that arcane and cryptic thing to me... It still is. Why would anyone use it anyway? How does it make life easier for me? The truth appears to be don't use it unless you have a really good reason, but that should not stop anyone from learning about it in case it is encountered while reading other code.

    So why use it? If you've used Java, then you know ArrayList<Integer> is a dynamic collection of Integer objects. The equivalent in C+...