Tag - programming

Entries feed - Comments feed

Monday 22 May 2017

Toggle a value and initialize it from a stream with RxJS

This week I faced a somehow simple issue while coding an RxJS/CycleJS application: How to toggle a value and set its initial value via an observable. The use-case is the following one: I have a value that I want to toggle to enable or disable a feature of the application. However, I want the default value to be configurable via a URI parameter.

Continue reading...

Thursday 23 March 2017

The UI Strikes Back

Almost 4 years ago, I thought than after the good adoption rate of edLeak from my colleagues, they would love to have a python API to write their own script. Unfortunately, the success has been... very disappointing.

Continue reading...

Monday 4 April 2016

Debugging State Machines With Scatter Plots

States machines are everywhere, used in all programming languages. Some people are fond of them, and others hate them. They may be easy to read or very cryptic, and most of the time they are not easy to debug. I will show you today how to improve this last point in your code.

Continue reading...

Monday 7 March 2016

How To Mangle And Demangle A C++ Method Name

When developing in C++ a usual task is to demangle the name of a C++ method to pretty-print it. Sometimes one also need to achieve the opposite conversion. This article explains some ways to do this, depending on whether you need a dynamic or static conversion.

Continue reading...

Monday 1 February 2016

Using Atom For C++ And Embedded Development

I recently discovered Atom, a code editor developed by GitHub. When a friend showed it to me last year I must admit that I made fun of him : It was still at an early stage, quite slow, and really buggy. But since that time its development was really fast. So I decided to try it seriously two months ago, and something incredible happened: After 15 years of addiction to vim, I switched to Atom within 2 weeks.

Continue reading...

Monday 6 July 2015

A Distributed Unique Id Generator For Embedded Systems

Generating an id is a usual task when coding. Depending on the project, these ids can be internal to a component, shared inside a process, shared between several process, or even shared between several systems. A usual use-case in embedded development is generating ids to expose objects via IPC or RPC. This article details a solution to this task on linux, based on a distributed algorithm.

Continue reading...