Host your #Gemini capsule with #AdaLang on #RaspberryPi with twins 0.4.0 :)
Host your #Gemini capsule with #AdaLang on #RaspberryPi with twins 0.4.0 :)
TIL: True modular math in C/C++/Awk is not a thing (at least not with % operator):
In Python & Lua:
print((9-200) % 255)
gives me 64
In gforth:
9 200 - 255 MOD
gives me 64
Ada:
Put((9 - 200) mod 255); New_Line;
gives me 64
But.... In awk and C/C++:
printf("%d\n", (9-200) % 255);
gives me -191
Apparently, in C/Awk/C++ given. a % b, if a or b are negative, all bets are off.
I got my #RaspberrPi. What was the second thing, after configuring #PiHole, I did? I installed #AdaLang compiler and built Tada!
Happy hacking in Ada on #RaspberryPi!
https://github.com/tomekw/tada/releases/tag/v0.11.0
(tada-0.11.0-linux-aarch64)
@monospace I noticed it makes me super happy to just build the stuff I always wanted to do without concern for the outcome or the expectations of others.
Even if it means creating my own programming world in #AdaLang :)
ohh man this is fun as hell.
look here at the sizes of stuff being talked as "so big" an compare to anything that happens nowadays đ
@jaypatelani @david_chisnall this is not ready to be used in production. Just use the GCC from ports.
My #AdaLang build tool was built with GCC 15.2 on #OpenBSD :)
@david_chisnall @jaypatelani this is not true. FSF builds are GPL with linking exception. You can create commercial applications with #AdaLang. The compiler changes you made, would have to be covered by GPL.
Give Ada a shot :)
The Quiet Colossus â On Ada, Its Design, and the Language That Built the Languages
ANN: Tackle.Opts - declarative command line arguments parser in #AdaLang
https://github.com/tomekw/tackle?tab=readme-ov-file#tackleopts
Many programming languages were originally written or are even still partially written in C. Rust was originally written in OCaml.
Are there any languages that were originally written in Ada?