@sun From what I read, it sounds like Greg_K-H endorsed _slowly_ rewriting parts of the kernel in #Rust. Drivers and interfaces first, but yeah.
And, yes, people commonly make errors in #C and C++ ( #C_Plus_Plus ) that Rust is said to prevent. But from what I can see, Rust adds enough complexity that bugs per LOC will surely increase.
It really does seem as though "rewrite everything in Rust" is as much a religious movement as a technological movement.
I'm once again caught thinking about how much nicer things could be if the #C preprocessor were just a little more... like a usual programming language.
And it seems like something that could have very easily happened, historically. It seems *so* possible that in like 1988 RMS said "It would be a huge win if I could `#defun (...)` and define a C macro in LISP instead of the existing macro language."
Just a few days ago, I lunched my new relay service for the #Fediverse and I'm really happy to see that there're already many ones connected to - more than 50 instances in just a few days!
But what makes me even really happy is to see, that my service [2] also gets linked in the release notes of #snac [1] / #snac2 - and I can recommend the usage of relay services (it doesn't matter which one!) to everyone. It provides more content from connected instances to you, but also brings your posts - from your local instance - up to other ones within the federated network where it can get much easier distributed around other instances.
#snac is the perfect way to host an own fediverse instance. Using the #ActivityPub protocol allows you to connect to all other instances. With the integrated #Mastodon API, you can also use most of your usual clients or web clients. Snac is light, fast, does not require any database and follows the KISS way - which the most of us BSD people are living. With relay services, it's the perfect match for singe-user instances and @grunfink is always open for ideas and to help! It does not always need to be #Mastodon, #GoToSocial etc!
And if you're using any other software, you may still benefit by using relay services. And if you're still looking for a guide, howto setup snac2 on #FreeBSD, my howto [3] might help you out.
I am writing some programming notes using #orgmode with C code snippets in it. When I export them in HTML, functions are not highlighted. They don’t have an associated class like variable types or language keywords. How can I improve this? #emacs#c
@pizzapal@pkw I guess you're doomed to be a polylang. Sorry to hear about the virus! Discrete fourier transforms are defined by (defun naieve-dft (l &key (sgn -1) &aux (len (length l))) "consing naieve dft of list. Computes all twiddle factors. :sgn +1 for inverse." (loop :for k :below len :collecting (loop :for n :below len :for w := (twiddle k n len :sgn sgn) :sum (* (nth n l) w)))) twiddles=(exp (* #C(0 1) sgn pi 2 k n (/ len))) But this turns out to be overdefined
2024 in code. Lots of #C, #Pascal and #Fortran. My favourite project of 2024 was writing a Sharp MZ-80K emulator for the Raspberry Pico. Happy new coding year for 2025 to those who celebrate 🥳
Further along: "Compilers are starting to complain about the use of `sprintf()` and `strcpy()`, saying they are unsafe. So we define our own versions of those routines too." #C
Okay, let me do a better #introduction now that there's a bajillion more people here. I'm a former hacker, worked in #infosec, still into #programming and #electronics, currently more interested in #nature, both being in it and studying it.
GNU C Manual and GNU Emacs Manual: A Guide to Open Source Knowledge and Sustainability
The GNU C Manual and the GNU Emacs Manual are essential resources for developers and enthusiasts who wish to deepen their understanding of the GNU ecosystem. These manuals are not just instructional guides but also reflect the philosophy of free software.