Make Use Of: An Introduction to C Functions https://www.makeuseof.com/c-functions-introduction/ #Tech #MakeUseOf #TechNews #IT via @morganeogerbc #CodingTutorials #CProgramming #Programming
#Tech #MakeUseOf #technews #it #CodingTutorials #cprogramming #programming
A Perlin noise terrain generator in C and Curses. This has been fun. #roguelike #roguelikedev #CProgramming
#roguelike #roguelikedev #cprogramming
I love #CProgramming and #Zig actually looks pretty good too!
https://youtu.be/kxT8-C1vmd4
Ugh, that was a lot of effort learning a whole bunch of stuff I am unfortunately unlikely to retain. System Sizer has a GUI now, no longer trapped in CLI land.
I'm out! :win3_shut_down:
#cpp #linux #programming #qt #qt5 #cprogramming
It was different using C to make GUI apps in the old days!
#retrocomputing #atarist #cprogramming
As much as we love #C, we've always felt the lack of a convenient #RAII feature in the language. Yet, many compilers allow to implement such feature with relatively little effort.
So, @micia thought to share such implementation, and our point of view on the subject, in a article.
We’ll be glad to hear your feedback and suggestions before we publish it on our website.
#c #raii #cprogramming #programming #software
As much as we love #C, we've always felt the lack of a convenient #RAII feature in the language. Yet, many compilers allow to implement such feature with relatively little effort.
So, @micia thought to share such implementation, and our point of view on the subject, in a article.
we’ll be glad to hear your feedback and suggestions before we publish it on our website.
#c #raii #cprogramming #programming #software
Il #C ci piace, ma sentiamo spesso la mancanza di un meccanismo di #RAII nel linguaggio. Per fortuna, molti compilatori consentono di implementarne uno con relativamente poco sforzo.
Perciò il buon @micia ha pensato di buttare giù un articolo per mostrare come farlo e spiegare il nostro punto di vista.
Qualcuno abbastanza volenteroso da condividere commenti e dirci se abbiamo sbagliato nulla, prima di pubblicarlo sul nostro sito?
#c #raii #cprogramming #programming
It's 2023 and there are still buildsystems, which do not warn about a empty list of source files as input.
If my glob does not match anything, I probably want a warning and not an empty shared library as output.
#workwork #cprogramming
Today our community wants to share a minimal lightweight threading support #library *dfthread* (an inspired name, isn't it ;) ).
It mostly shares the same functionality of threads.h (https://en.cppreference.com/w/c/thread), from the #C11 standard, which is often and sadly overlooked in practice in our opinion.
#library #c11 #c #programming #software #cprogramming #code
@tilton you need to know that modern (post-2015) C++ is not like C. While much of C syntax is still accepted, don't write C in C++ unless you're interfacing with legacy code. In particular, avoid managing memory yourself, use containers and local variables instead.
On that note: C is not a "portable assembler", think of it as running on a VM that's just really good at generating code—the VM behavior (or "abstract machine") may or may not match your hardware. #cPlusPlus #cLanguage #cProgramming
#cplusplus #clanguage #cprogramming
Siamo agli ultimi ritocchi per un'altra libreria #C che sto covando da un bel po'.
dfstream, la soluzione in ogni mio progetto quando si tratta di leggere dati compressi.
Stavolta ho aggiunto la compressione zstd... andrà testata per bene, però. 😅
Eccoci di nuovo!
Portiamo con noi una nuova libreria #C: dfthread
Si tratta di una #libreria leggera e portabile che fornisce le primitive base per il multithreading.
Contiene grossomodo le stesse funzionalità dell'header threads.h(https://en.cppreference.com/w/c/thread) standard C11... che sfortunatamente non implementa quasi nessuno 🙄
Per sostenerci e darci la possibilità di creare nuovi progetti: https://ko-fi.com/1414codeforge
#c #libreria #cprogramming #programming #foss #opensource #codice
Finalmente mi son deciso a pubblicare una libreria #C per il multithreading che tenevo in serbo da mesi -_-"
https://codeberg.org/1414codeforge/dfthread
È praticamente la thread.h standard C11...
https://en.cppreference.com/w/c/thread
Quella che nessuno implementa (se non musl(https://musl.libc.org)), e
quella che lo standard stesso considera opzionale...
È una semplice libreria statica molto leggera, che implementa funzionalità minima per thread e sincronizzazione 🙂
Still using my tool to generate calligraphy, I've made a map for the Gion Matsuri parade (in two weeks in Kyoto). I hope it may be useful to some of those who plan to enjoy the festival.
More info and higher resolution on my website: https://baillehachepascal.dev/2023/gion_matsuri.php
#cprogramming #procedural #generation #japanese #calligraphy #rendering #gion #kyoto #japan
#cprogramming #procedural #generation #japanese #calligraphy #rendering #gion #kyoto #japan
#gnu / #guix journey continues.
I'm not sure what helped me to set #cprogramming toolchain.
I installed gcc-toolchain, tried to compile random code and i get error 'ld: cannot find crt1.o: No such file or directory' etc.
So, i installed binutils but still same result.
Then, i typed following:
GUIX_PROFILE="/home/sourcerer/.guix-profile"
and...
. "$GUIX_PROFILE/etc/profile"
now, everything works.
I'm supposed to keep these in .bashrc? still kinda confused.
New article on my website about my work on simulation of Japanese calligraphy, with a link to a formal article describing in details how I did it.
https://baillehachepascal.dev/2023/japanese_calligraphy_simulation.php
#cprogramming #procedural #generation #japanese #calligraphy #rendering
#cprogramming #procedural #generation #japanese #calligraphy #rendering