|
|
Log in / Subscribe / Register

LLM coding style

LLM coding style

Posted Oct 13, 2026 14:16 UTC (Tue) by riel (subscriber, #3142)
Parent article: Coping with the onslaught of kernel security bugs

> They generate highly verbose and useless changelogs, and add far too many comments to the code.

I've been working on a Linux kernel coding style for LLMs. It helps create shorter, more readable functions, splits up large patches into a series of smaller patches, ensures changelogs and comments are focused on WHY rather than re-stating what the code does, etc...

It is not perfect, but it has reduced the amount of editing I need to in order to get the code into a decent shape.

https://github.com/rikvanriel/kernel-style


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds