grunfink,
@grunfink@comam.es avatar

Call me crazy, but I've started implementing the into , the simple, minimalistic instance server written in ANSI C that everybody loves. When it's ready, you will be able to operate your snac account from a Mastodon-compatible app like and the like.

I hope to have it working read-only in a couple of days, but who knows.

Stay tuned!

chema,
@chema@sanfranciscan.org avatar

This is really, really cool. I was wondering if there was an implementation in C (which is the only language I feel comfortable with) and voilà, landed on your repo. I will keep an eye on it! Sometimes less is a whole lot more.

dheadshot,
@dheadshot@mastodon.social avatar

@chema
There was another one, I seem to recall, but it was abandoned IIRC? Hope this one doesn't suffer the same fate...
@grunfink

jef,
@jef@mastodon.social avatar

@grunfink ANSI C forever!!

chema,
@chema@sanfranciscan.org avatar

It has two external dependencies (openssl and curl) and no database or cookies. This is amazing!

https://codeberg.org/grunfink/snac2

jef,
@jef@mastodon.social avatar

@chema @grunfink Compiled cleanly for me, but wouldn't link because the local libcurl wants a version of libcrypto that is no longer present. I'm sure if I ever get around to updating my system it'll link.

So I guess even with only two external dependencies, someone will find a way to make them conflict.

jef,
@jef@mastodon.social avatar

@chema @grunfink By the way I got around to test-compiling snac2 with the extra-strict compiler flags I favor: -ansi -pedantic -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls

This generated some warnings. Didn't see anything that looked serious.

grunfink,
@grunfink@comam.es avatar

This large set of flags is a bit too much for me 😆 , but I've followed your advice and fixed some silly unused function arguments (and 'silenced' others) and added -Wextra as a default compilation flag.

gcc on Linux gives me 0 warnings. llvm on OpenBSD complains about a null pointer subtraction, but I think it's ok as it is.

Thanks for your help!

CC: @chema

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • ethstaker
  • DreamBathrooms
  • cubers
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • everett
  • JUstTest
  • Durango
  • Leos
  • cisconetworking
  • mdbf
  • khanakhh
  • normalnudes
  • tester
  • modclub
  • anitta
  • tacticalgear
  • megavids
  • provamag3
  • lostlight
  • All magazines