#clanguage

Mille e Una Avventura1001avventura@mastodon.uno
2025-12-06

Su suggerimento di un iscritto proviamo a simulare una palla che rimbalza "realisticamente" su Amiga 500 con un programma scritto in C. Questa volta, invece di usare gli sprite, mettiamo alla prova le capacità di blitting del chipset dell'Amiga: ancora un esercizio semplice, ma affascinante, che ci permette di riscoprire la magia della programmazione su questa storica piattaforma. Pronti a scoprire insieme come funziona? #amiga500 #clanguage #retrocomputing youtube.com/watch?v=90xqO-rVs_8

Gert :debian: :gnu: :linux:G3rt@mastodon.uno
2025-12-04

"Comprendere le strutture ci rende programmatori migliori?", ponete questa domanda a un esperto di programmazione e potreste riflettere e dare una risposta dettagliata.

Se poneste la domanda in questo modo: "Comprendere le strutture in modo chiaro e approfondito ci rende programmatori migliori?", la risposta sarebbe immediata e senza ripensamenti.

Un libro prezioso da leggere per migliorare la comprensione delle "strutture".

#coding #programming #CLanguage #book

smashwords.com/books/view/6449

2025-12-03

How Fil-C Works
fil-c.org/how

> Fil-C achieves memory safety for C and C++ code by transforming all unsafe operations in LLVM IR into code that does dynamic checking to catch all violations of Fil-C’s rules.

#CLanguage #FilC #Cpp #LLVM

J.A. Machetejosemachete79
2025-11-26

used with my updated .vimrc to get help with and it has been a quite productive day. Introduced a BUNCH of code regarding the ranged attacks from monsters. They should be shooting arrows, throwing daggers, axes and rocks at you, if this challenge goes as designed. We will see. So far the game has been recompiled with newly added code, save for a couple bugs that drove me bonkers until spotted, it went good. Needs testing.

Mille e Una Avventura1001avventura@mastodon.uno
2025-11-21

Grazie a PiErre860 possiamo provare questi programmi scritti in C originariamente per Amiga nel 1990, ora per Linux e rigorosamente per console. Di cosa si tratta? Ricerca di numeri primi e scomposizioni con testi in sei lingue diverse. Scopriamoli insieme! #primenumbers #clanguage #linux
youtube.com/watch?v=nQJI_wcdRWk

Mille e Una Avventura1001avventura@mastodon.uno
2025-11-19

Su richiesta di due iscritti, ho deciso di tornare a esplorare il mondo Amiga, con un occhio di riguardo all’intramontabile Amiga 500. Per l’occasione ho realizzato un piccolo programma in C che anima uno sprite e lo fa rimbalzare sui bordi dello schermo: un esercizio semplice ma affascinante, che ci permette di riscoprire la magia della programmazione su questa storica piattaforma. Pronti a scoprire insieme come funziona? #amiga500 #clanguage #retrocomputing
youtube.com/watch?v=0KW0Ry_-7Uk

更新されたよ、見に来てね!→ 【ダイジェスト版】#AI がコミュニティを破壊? #Mozilla の炎上と、#Zen6 の未来、#Linux カーネルの大きな決断!\n11月11日(火) #clanguage #clang youtube.com/shorts/YmRpgscKrAs

2025-11-10

更新されたよ、見に来てね!→ 【ダイジェスト版】 がコミュニティを破壊? の炎上と、 の未来、 カーネルの大きな決断!\n11月11日(火) youtube.com/shorts/YmRpgscKrAs

更新されたよ、見に来てね!→ #AI がコミュニティを破壊? #Mozilla の炎上と、#Zen6 の未来、#Linux カーネルの大きな決断!\n11月11日(火) #clanguage #clang #microsoft youtube.com/watch?v=DvGibFXa8J

2025-11-10

更新されたよ、見に来てね!→ がコミュニティを破壊? の炎上と、 の未来、 カーネルの大きな決断!\n11月11日(火) youtube.com/watch?v=DvGibFXa8J8

2025-10-22

@craige asked me if I'll be looking for a job when I get home (a month from now), and I guess the answer is yes, since I plan to continue living.

Maybe I can #getFediHired 🤞

I've got more than 2 decades' experience in #BackEnd #webDev, plus some #FrontEnd and #microservices. Would love to work in #renewables, #electrification, #EVs, etc. Keen to switch to systems programming languages (#RustLang #GoLang, even #Clanguage). Based in Adelaide, South Australia. Would prefer to work remote.

M. H. Neifermhneifer
2025-10-15

That's an interesting read. Thanks to the SQLite developers for sharing their thoughts.

"The reasons why C is the best language to implement SQLite include:

- Performance
- Compatibility
- Low-dependency
- Stability"

sqlite.org/whyc.html

My journey of learning C is that arrays are too complex and it's always just easier to use a pointer


#c-lang #programming #c-language
@laumann :datacoop:laumann@social.data.coop
2025-09-26

The firmware is written in C #clanguage for the 8-bit AVR processor on the Teensy 2.0. Really fun to write this stuff from scratch!

There's #QMKfirmware I could've used, but then I wouldn't be learning as much as I am about firmware programming. I have used qmk for reference though, it's a good resource.

Farooq | فاروق [Master Patata]farooqkz@cr8r.gg
2025-09-12

wooow just really wooow.

There’s no “cheap” annotation (eg -Wunused) that will notice it. Static analysers do notice that psize is computed but never used, but those tools aren’t usually part of an everyday workflow for C because they tend to be expensive to run and easily find false positives (and we have a lot of them).

despairlabs.com/blog/posts/202

From @robn

#rust #cprograminglanguage #clanguage #programming #openzfs #zfs #rustlang #computerscience #memorysafety

Sorry Rob but I'm gonna add your blog to me crawl list for offlne browsing. Hope you don't mind :)

Iban Nietoibannieto
2025-09-09

Happy birthday Mr Ritchie

2025-09-06

Coming back to this:

Thanks to the help of a nice person on Discord, I was able to figure out how to get the "could be const" warning on the command line:

mastodon.gamedev.place/@duke_o 🙂

@kik @deliriac

#c #clang #clanguage #cprogramming

2025-09-06

🌀 C Programming

Finally found out how to get a warning on the command line if a variable in my C program could be const! 🥳

It works via clang-tidy:

clang-tidy --checks='-*,misc-const-correctness' main.c -- -xc++

The important trick is the "-xc++" flag at the end, because for some reason, clang-tidy only wants to run this check on C++ files.

The flag convinces it to treat a C file as a C++ file, and the check works! 🙂

#c #clang #clanguage #cprogramming

A C program:

#include <stdio.h>

int main(void) {
    int i = 2;

    printf("j: %d\n", i);

    return 0;
}

Below a command line with the result of running:
clang-tidy --checks='-*,misc-const-correctness' main.c -- -xc++

The result: a warning is generated, pointing out that the variable i on line 4 could be made const.
Mille e Una Avventura1001avventura@mastodon.uno
2025-09-03

Un semplice programma in C per suonare forme d'onda diverse (sinusoidale, quadra, triangolare e a dente di sega) e simulare strumenti musicali con la tecnica dell'inviluppo parametrizzato da attack-decay-sustain-release. #clanguage #sdl #synthesizer youtube.com/watch?v=Q9-CwgiXjiA

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst