snac.bsd.cafe is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.
This server runs the snac software and there is no automatic sign-up process.
I am in urgent job search mode, so I'm gonna throw this out here and see if anything comes of it.
I am a #Canadian, fluent in both #English and #French. I have experience with several programming languages. My strongest proficiency is with #Haskell and #C. I also have a reasonable grasp of #HTML, #JavaScript, #SQL, #Python, #Lua, #Linux system administration, #bash scripting, #Perl, #AWK, some #Lisp (common, scheme, and emacs), and probably several others I've forgotten to mention.
I am not necessarily looking for something in tech. I just need something stable. I have done everything from software development, to customer support, to factory work, though my current circumstances make in-person work more difficult than remote work. I have been regarded as a hard worker in every job I have ever held.
If a tree falls in the forest and you enable -fsanitize=undefined not only does the tree make no sound but it never actually fell.
@SDF Wow, I have very fond memories of this machine as it was the first instance of netmbx, our public access Unix system that was later running on a Xenix box. It had a couple of dialin modems connected to it and polled tub aka db0tui6 using UUCP
#N netmbx
#S Altos 68000; Unix SysIII
#O netmbx Berlin
#C Ralf Moritz †
#E mor...@netmbx.uucp
#T +49 30 87 81 24
#P Woerther Str. 36, D-1000 Berlin 20, W. Germany
#L 52 31 N / 13 24 E city
#R
#W mor...@netmbx.uucp; 870530
#
netmbx tub(DAILY)
Yes or No: #Rust is a fad language and #C will continue to evolve and out live it. #Programming
Yes: | 6 |
No: | 25 |
I Don't Know: | 6 |
Dude! I'm a Ruby guy: | 2 |
Schleswig-Holstein kürzt Schulunterricht – aber nicht in Religion
wenn der Glaube an unsichtbare magische Wesen wichtiger ist als der Unterricht in sozialwissenschaftlichen Fächern dann sieht man gleich wo die Prioritäten der C-Partei liegen.
https://hpd.de/artikel/schleswig-holstein-kuerzt-schulunterricht-nicht-religion-22921
#SchleswigHolstein #Norddeutschland #Deutschland #Bildung #Religion #Religionsunterricht #C-Partei #KeinGott
#Atheist #Kirch #Staat
if I malloc a block of memory, can I tell the computer that a section of this block is read only (temprarily).
I want the program to segfault if this section of code is written to without first marking it writable.
ACCU 2025 SESSION ANNOUNCEMENT: C23 for uninitiated—modern C idioms for expressive, safe, and performant code by Dawid Zalewski
Register now at https://accuconference.org/booking/
I'm trying to compile CPython with the mold(1) linker, but so far I haven't been able to get the build system to pick it up. Can anyone point me in the direction of building CPython with mold(1).
This isn't for any purpose other than playing around/learning.
If anyone is willing, I'd appreciate a boost for visibility :)
Syntactically, #C and #Cpuffpuff are proximate. But they are a world apart, when it comes to the design philosophy.
In terms of language design, C++ took C's blocky syntax and blazing speed, but that is all. The underlying philosophy of C++ is "be all that it can be to all programmers at all times, in the most efficient and most complicated ways imaginable".
In stark contrast, C's philosophy is "be steady, small, simple, and succinct, so that programmers can shoot themselves in the foot in the most efficient and effective ways they can imagine".
"Als je Instagram zat bent...."
Mooie aanrader om naar #pixelfed te gaan.
(Uit C'T 04-2025)
@ct_Magazin (de NL variant zit niet op de Fediverse)
#c't
Doing terrible things with the #C pre-processor.
And, yes, he takes it to the point he is demonstrating how the pre-processor actually is Turing Complete – including a form of recursion, despite the fact the pre-processor explicitly *does not* support recursion.
> Cursed fire or define black magic. https://ssloy.github.io/strange/cursed-fire/
Yes 'C' kinda sucks but I am not sure I'd go this far.
"So easy to learn and so hard to master."
Lovely and apt comment on C the language.
Also: the definition of "worthwhile".
Happy I Love Free Software Day! 💕
Unfortunately, this year I could not join nor organize any in-person celebration, BUT of course I want to share my gratitude to the many, countless #FreeSoftware services I don’t merely use, but actually depend on.
Last year, I decided to focus only on #YunoHost, because it would have been crazy to list all the projects I use and I love.
This time, even if I will most certainly forget someone, I am challenging myself to mention all the #LibreSoftware my life is powered by.
Without further ado, THANK YOU to:
Lastly, but most importantly, the biggest thank you goes to all the free software libraries and dependencies the above mentioned #software are made of/built with, including #C, #JavaScript, #Python, #Rust, and all community-maintained programming languages.
I am super sorry if I forgot someone!
#OpenSource #ILoveFS #SoftwareFreedom #Fairphone #Android #LineageOS #FSFE #OpenStreetMap #PhotoPrism #LibreOffice #Readeck #Eleventy #11ty #GNOME #Signal #forgejo #Codeberg #MusicBrainz #ListenBrainz #MetaBrainz
you don't link all of libc https://lobste.rs/s/l5a9uh #c #openbsd
https://flak.tedunangst.com/post/you-dont-link-all-of-libc
<<According to Google's security advisory, this vulnerability is caused by an out-of-bounds write weakness in the USB Video Class (UVC) driver, which allows "physical escalation of privilege with no additional execution privileges needed" on unpatched devices.>>
1) So this was written in C?
2) Google is still allowed to use the word "privilege"?
Want to use that nice new shiny #C23 syntax, but need to target earlier version #C compilers? The 'United Library' has you covered.
I still own a copy of the first edition of C++ by Stroustrup.
It makes a fine doorstop.
#C #C++ #Programming
Beware of only looking at the number of years someone has been coding. I've seen kids produce really decent code and older coders produce really lousy code.
cpp the C pre-processor is a pile of manure that has been in the Sun stinking to high heaven. I've written macro processors and none of them have been as bad. Rip most of it out of a modernish 'C' keeping only the Manifests. If you must have macros one can do a lot better.
Improved error catching compilers are not a panacea for lousy programmers. They *should* be additional tools for the good programmers. Unfortunately this is often not the case nowadays.
COBOL was developed to allow accountants to write code. It turns out accountants are lousy programmers. Still we try with modern languages to allow lousy programmers to produce somewhat acceptable code . This also is not always successful.
Fun C question of the day.
typedef struct foo { char *s;} foo;
int
main(void)
{
foo f;
memset(&f, 0, sizeof(f));
…
}
Does f.s == NULL?
Yes: | 13 |
Yes, but…: | 27 |
No: | 8 |
You should rewrite this in Rust: | 19 |
Hey all! I'm due for an (re-)introduction: I'm Jack, an engineer in the NYC area from a firmware & cybersecurity background, currently working in something like hardware-software co-design.
Technical work is often with #rust #kicad #python #verilog #c, and in all-too-rare moments stuff like #haskell #forth #agda and #prolog
I've never been much for social media, usually preferring to keep interests local: a better-detailed #introduction to follow as I figure this out 🙂
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.
[1]: https://codeberg.org/grunfink/snac2
[2]: https://fedi-relay.gyptazy.com
[3]: https://gyptazy.com/install-snac2-on-freebsd-an-activitypub-instance-for-the-fediverse/
#community #opensource #development #coding #c #clang #homelab #hosting #BSD #RUNBSD #Howto
can anyone recommend good #bloomfilter implementations in #c with a proper #foss license #gpl or #bsd ?
Hasn’t it ever bothered you that UNIX, an operating system born with C, has a shell with a pascal-like syntax?
– rc23 README
A book about writing a toy operating system for RISC-V in 1000 lines of 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
(setq gdb-many-windows t) in #emacs on the big monitor is brilliant!
... To #MSWindows11 [Copilot] key do nothing at all via #AutoHotkey, in "neuter-copilot.ahk" file ...
#Requires AutoHotkey v2.0
InstallKeybdHook
; Does not disable [Copilot] key.
;#C::Return
; Scancode does not work.
;SC0x000100003100::Return
; Works: Does nothing.
#<+F23::Return
; Send [Ctrl]? Does not work: "Ctrl+R" does not reload the Firefox tab.
;#<+F23::^
@sundew @aphyr Blame that on #C & programming language makers continuing to use, expose the underlying foundation; see "#localtime(3)" & friends https://man.freebsd.org/cgi/man.cgi?query=localtime&apropos=0&sektion=3&manpath=FreeBSD+14.2-STABLE&arch=default&format=html -- search for "External declaration" (could not quote fields of "tm" structure with comments due to the character limit of the server).
In this respect, #Python "time.struct_time", 9-element tuple, https://docs.python.org/3/library/time.html#time.struct_time has better structure (year is not based around 0 for you to add 1900 to it as it does in fucking #Perl; etc)
I am absolutely overjoyed to announce the release of #KDL 2.0.0!! https://kdl.dev
It's a significant overhaul of the language to make it SO MUCH NICER in so many ways.
This is the culmination of over 3 years of work (4 if you count from before 1.0.0), by SCORES of contributors.
https://github.com/kdl-org/kdl/releases/tag/2.0.0
I want to give huge thanks to everyone who supported all of us through this, who jumped in and had some really amazing discussions weighing all sorts of interesting trade-offs.
The end result is absolutely not something any one person could've reasonably come up with.
I hope y'all enjoy it <3
As part of this release, several implementations have already launched with full support for v2.0.0, so you can try it now!
👉 #Rust #RustLang https://github.com/kdl-org/kdl-rs
👉 #C / #CPP / #Python https://github.com/tjol/ckdl
👉 #Elixir https://github.com/IceDragon200/kuddle
👉 #JavaScript / #TypeScript https://github.com/bgotink/kdl
👉 #Python https://github.com/tabatkins/kdlpy
KDL is already used in all sorts of projects, and by various folks as a DSL for their own small hobby things: https://github.com/kdl-org/kdl?tab=readme-ov-file#used-by
There are around 8k .kdl files out on GitHub, which is a lot considering it's usually a config language!
I fully expect this to be the last version of KDL ever released. We really really tried, but I don't think there's anything we can reasonably improve on.
From here on out, the language is in the (stable!) hands of the ecosystem.
Also, we're hoping to have GitHub syntax highlighting support soon!
(Boosts welcome!!)
okay #osdev mastodon, enlighten me:
I’m building out my virtual memory alloc right now and it appears all other production kernels use some sort of *intrusive tree* for that. Why is that?
My thinking is: I already have a kernel heap thats “wired” aka directly allocated and mapped. And all virtmem impls I could find call out to *some* “backing allocator” anyways to allocate new tree nodes.
So if they aren’t fully allocation free anyway, why don’t I just use a sorted growable vec of entries allocated from the kernel heap?
What’s the advantage of intrusive data structures here that im missing?
Any Unix and similar OS comes with a C compiler, and even other systems offer a C API, so for a "modern" environment, that's the natural language to use for that "full control". And remember, C is your "portable assembler". 😏
In a nutshell, if you take "from scratch" literally, it would mean to somehow hack bytes into the machine's memory. That doesn't make much sense. I understand it as "use a simple programming language and avoid these huge frameworks and similar doing deep magical stuff for you".
Will be uploading to archive.org..I'll post the link once it's up there.
#retrocomputing