Moving the kernel to modern C
Moving the kernel to modern C
Posted Mar 4, 2022 7:42 UTC (Fri) by wtarreau (subscriber, #51152)In reply to: Moving the kernel to modern C by marcH
Parent article: Moving the kernel to modern C
Exactly. More than a decade ago, one of our project died after the ruby developer who was leaving admitted he was totally unable to tell us which assignments or operations were causing database accesses! Because doing a=b+c could *possibly* perform requests ina database to fetch some values or store the results. It became so deep that the code was a living being of itself that noone could tame anymore, and fixing bugs became totally impossible. Definitely a very bad idea. The only thing it provides is ease of *writing* code, but we must never forget that we write once and read it many times.
Posted Mar 4, 2022 14:30 UTC (Fri)
by ianmcc (subscriber, #88379)
[Link]
Posted Mar 4, 2022 14:36 UTC (Fri)
by dvdeug (guest, #10998)
[Link]
> The only thing it provides is ease of *writing* code
One of the recent Scheme additions was writing (add (times a c) b) as {a * c + b}, because it actually is easier to read code like that, and
"hi " + name.toString + " and good morning"
is also easier to read than
"hi".append(name.toString).append ("and good morning")
Moving the kernel to modern C
Moving the kernel to modern C
