Tiny C compiler: a C99 compiler while still keeping it small, simple, fast and understandable: https://bellard.org/tcc/ #free #compiler #C99
TCC : Tiny C Compiler

Dusted off my silly lil text editor UwU and started working through the backlog of borked things and move it to a more usable state. Don't want to admit how long it took to figure out handling unicode emojos in C to center multiple lines overlay text in welcome message (prev was a single line). ​

Also made a cute lil 88x31 banner for my blog to replace the "Made with NeoVim" banner. NeoVim is for suits.
/j

#c99 #terminal #tinyTools #makeComputersFunAgain
Portable C compiler: a C99 compiler while still keeping it small, simple, fast and understandable: https://github.com/IanHarvey/pcc #free #compiler #C99
GitHub - IanHarvey/pcc: Portable C Compiler sources

Portable C Compiler sources. Contribute to IanHarvey/pcc development by creating an account on GitHub.

GitHub

@trcwm
I'm doing some bare metal AVR (8 bit MCU) in #oberon (using an Oberon to C transpiler and hand coded register addresses from spec docs) as well as some (BSD/Linux/MacOSX) server side companion (over serial USB) to the AVR.

I would normally do this in #C99 (or believe it or not #Ada) but Oberon is forcing me to think about what I want to do vs figuring out compiler/language tricks to optimize what I want to do.

For example -- I have a simple comms protocol full of little endian values.

In C (or even in Ada) I would be tempted to slam a packed little endian oriented data structure over top of a transferred binary blob and call that a protocol vs having to explicitly byte by byte walk the data... I C I can do this easily. In Ada I can tell the compiler the endianness I want and it magically does the translation.

Oberon simply doesn't have the facility for such optimization tricks.

And you know? I feel more like I'm writing elegant code than "hacks" that need copious documentation.

🎉 Wow, #NetHack 5.0.0 is here! A groundbreaking update that makes it... compliant with C99? 🚀 Truly, nothing screams "exciting dungeon exploration" like a riveting code standard. Prepare for adventure, folks—just maybe do it with a debugger handy. 🐛💥
https://nethack.org/v500/release.html #NetHack5 #C99 #DungeonExploration #GameDevelopment #Debugging #HackerNews #ngated
NetHack 5.0.0: Release Notes

Just pushed pset004.c into my Euler Repo.

No. Not happy with the palindrome solution I came up with. 4-digit numbers onwards get pretty heavy for the computer.

But I refuse to ask an AI to teach me algorithms. I'd rather eat my own left foot than ask for a O(n) solution.

#C99 #C #programming #algorithms #code

Currently battling against Project Euler's pset004 in #C.

How come a simple function that reverses a 6-digit number to check whether it is a playndrome (O(n)) can furiously turn into a massive resource waster when digits increase?

Unfortunately, my most feared enemy, the pointer, will save me on this one.

#coding #programming #c99

Tiny C compiler: a C99 compiler while still keeping it small, simple, fast and understandable: https://bellard.org/tcc/ #free #compiler #C99
TCC : Tiny C Compiler

Portable C compiler: a C99 compiler while still keeping it small, simple, fast and understandable: https://github.com/IanHarvey/pcc #free #compiler #C99
GitHub - IanHarvey/pcc: Portable C Compiler sources

Portable C Compiler sources. Contribute to IanHarvey/pcc development by creating an account on GitHub.

GitHub
🎉 Behold, the latest miracle in machine learning: a magic wand that transforms boring old #Python into lightning-fast C99! 🚀 Now you can impress your friends with a 336x speed boost in inference time – as if anyone cares about classical ML models anymore. 😂 Just one command away from turning your dusty #GitHub into a tech dystopia. 🕹️
https://github.com/kossisoroyce/timber #machinelearning #C99 #speedboost #techdystopia #HackerNews #ngated
GitHub - kossisoroyce/timber: Ollama for classical ML models. AOT compiler that turns XGBoost, LightGBM, scikit-learn, CatBoost & ONNX models into native C99 inference code. One command to load, one command to serve. 336x faster than Python inference.

Ollama for classical ML models. AOT compiler that turns XGBoost, LightGBM, scikit-learn, CatBoost & ONNX models into native C99 inference code. One command to load, one command to serve. 336x f...

GitHub