perlun.eu.org · About the blog · Programming · Select language / Välj språk

JRuby memory leak hunting: Wrestling with a gigantic RubyObjectVar5

Because of a problem in a customer environment noticed recently, it's once more time to put on the "memory leak debugging hat". Join me and we'll see where the adventure takes us this time!

Read more |

The joy of functional programming in C#

Functional programming can be a really pleasant way to program the machine, since it encourages a very good way of thinking when it comes to code; a thinking that generalizes problems and helps to make the code you are working on more reusable and more easily testable (less focus on side effects, more focus on returning a new result based on an input.)

Read more |

chaos: Why is the boot server unable to read the startup script?

Alright, I think it's about time to now to once and for all solve the problem with the boot server being unable to read the startup script from the file system. This has been broken for a while and I now intend to solve this bug.

Read more |

Building Chromium and CEF from source

(Alternative title: 50 ways to drive yourself crazy.)

Read more |

Powerline network to the playhouse

Since a while ago, we have a kid playhouse in the garden, and since my children are getting quite old it's obvious that the playhouse also (like the main house) needs decent network connectivity. To solve this problem, I've tried two approaches:

Read more |

chaos: Why was the boot server suddenly faster?

One of my dear friends and readers (hello Andreas!) asked a very interesting question after reading my previous post about "chaos: When GDB makes you confused" - "what was the thing that suddenly made the boot server faster"? Good question indeed! In the original version of that post, I didn't go further into any of that, but just left the reader in a confused state of despair... After hearing that I left a bit of a "cliffhanger" there in the text, I amended the post with a new paragraph, just to make it clear that I never actually found the reason for the boot server slowness.

Read more |

chaos: When GDB makes you confused

Sometimes when working on chaos, you run into weird errors that takes ages to debug. Like the one that happened to me today - a strange "stack overflow", for code that shouldn't cause any problems at first glance.

Read more |

More memory leaks: JVM and JRuby

The casual reader can get the impression that I do nothing else right now than debug memory leaks. This is luckily quite far from the truth. :smile: It just happens to be that I haven't had the chance to write about other things recently.

Read more |

Debugging hard-to-reproduce Ruby memory leaks

Memory leaks are some of the more annoying issues we run into in software engineering. In general, with any kind of software bug, it's always preferable if you can reproduce the problem under controlled, "laboratory-like" circumstances. With certain kinds of problems, this is really hard or almost impossible. Memory leaks tend to lean towards that category. They are not always so easy to reproduce, and it's not always so easy to understand the reason why your (seemingly sane) code is causing a leak. At the same time, they are very rewarding to track down because of the warm feeling you get inside once you figure out root the cause!

Read more |

My vision for the future of Electron apps

It was quite a long time since I shared my thoughts on this blog, so I thought I'd do a bit of a writeup about some things that I have been thinking about lately. About Electron in particular and web technologies in general, and how the current situation can be improved.

Read more |