[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cairo based backend

From: David Kastrup
Subject: Re: Cairo based backend
Date: Thu, 08 Jul 2021 14:54:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Knut Petersen <> writes:

> Yes, I'll change that. Although there should be no problem with the
> default longjmp solution as we do not use any local variables after
> the longjmp.

We are interoperating with both C++ and Guile, and either may have a
rather dim view about long-jumping without triggering their respective
stack unwinding mechanisms.

> Using sets seemed to be an elegant c++ solution to me, but it's clear
> that those high level constructs are probably slower than traditional
> c constructs. I have to admit that I use guile and c++ only because
> they are the programming languages that are used in lilypond. I have
> never looked at range based loops before, but I'll do that now. Do you
> think using them would lead to faster, more elegant or more readable
> code?

As a rule, C++ (increasingly so with higher version number) leads to
more straightforward callers and more awful implementations.

Done right, you can forego looking at the awfulness in most cases,
making it a net win.

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]