Author Archives: Rikard Pavelic

Flatbuffers performance in Java

TLDR; FlatBuffers is not the cure for performance issues in Java “Always right” attitude Developers like to think of themselves as rational, methodical and driven by facts instead of beliefs. That gave rise to the popular myth of software field driven by meritocracy, instead of popularity/fashion/tribalism. This way we can feel better about ourselves and […]

Improving Java JSON speed

TL;DR; People don’t really care about Java JSON speed The curse of the best In Javaland there is one “standard” JSON framework/library – Jackson. It’s been around forever, has various features, great performance and abundance of documentation. As such it’s no wonder that it’s the default choice for any Java JSON problem. And when you […]

Fast Postgres from .NET

It's often said that abstractions slow down your program, since they add layers which makes your application slower. While this is generally correct, it's not always true. Performance can be improved somewhat by removing layers, but the best way to improve performance is to change algorithms. So let's see how we can beat performance of […]

We’re Doing It Wrong – ANTLR

This is part of WDIW series – where we reflect on our misuse of a specific technology, which results in all kind of weird edge cases. In the end we always ask ourselves, is all software just buggy or are we doing something wrong? Use of ANTLR in DSL Platform Grammar for DSL Platform is […]

Factory relationship type in IoC

Relationship types are a great way to express dependencies and their relationships. In Autofac there is a bunch of implicit relationship types. Still, there are some issues since some of relationships require types which don’t exists in BCL such as Owned<> and IIndex<,>. But a great one which cuts down on boilerplate is the Func<> […]

Multiple result sets alternatives in Postgres

While Postgres’s type system is second to none, Postgres still lacks some features here and there. Stored procedures with their own transaction management are high on that list. But, beside transaction management, SP usually come with a cool feature which can cut down chatting with the database server to the minimum. Those familiar with MS […]

Embeding model with data?

JSON is an example of simple data structure which has its model embedded with data. While it’s very popular as an interchange format for good reasons, it’s really a bad fit as main data storage format: it’s wasteful and has limited type support. For a model with a mostly fixed structure, JSON only makes sense […]

Postgres – bridge between worlds

NoSQL databases promise to solve: scaling easier database interaction Scaling often means automatic sharding, replication and multiple write points. Easier database interaction usually means schema-less data, simpler migrations and removal of object-relational impedance mismatch. Postgres is an ORDBMS, not just plain relational database, which means that many of the points that NoSQL proponents argue about […]