RL_Dane,
@RL_Dane@fosstodon.org avatar

Ooo, found a new-to-me fediverse software in < 15k SLOC of C: https://codeberg.org/grunfink/snac2

$ cloc snac2

Language code

C 11441
C/C++ Header 3351
...

SUM: 15533

cc: @amin

Haijo7,
@Haijo7@snac.haijo.eu avatar

been using it for a while now, it works well and is extremely light weight

CC: @amin

RL_Dane,
@RL_Dane@fosstodon.org avatar

@amin

Compare to >5 million SLOC for GtS and >200k SLOC for honk ;) (both written in Go)

DANG, GtS if FIVE MILLION SLOC? What in the world is the mastodon server itself?!?

Wait... mastodon is 185k SLOC of YAML and only 100k SLOC of Ruby?

So GtS is "fatter" than mastodon itself? :o

fedops,
@fedops@fosstodon.org avatar

@RL_Dane 185 THOUSAND lines of YAML? What?
@amin

krafter,
@krafter@fosstodon.org avatar

@fedops @RL_Dane @amin is that including locales/?

RL_Dane,
@RL_Dane@fosstodon.org avatar

@krafter @fedops @amin @mirabilos @polishdub

Ok, my bad.

Looking only at gotosocial/internal, it's 108k SLOC of Go, and a tiny smattering of YAML, JSON, and .md

Looking at mastodon, here are the dirs & SLOC:
6878 db
49k spec
183k config (YAML)
app: 64k SVG, 64k JSON, 38k ruby

dheadshot,
@dheadshot@mastodon.social avatar

@RL_Dane
Ruby is heavier than Go, I think?
@amin

RL_Dane,
@RL_Dane@fosstodon.org avatar

@dheadshot @amin

I didn't count GtS right. See other replies in the thread for the correct count. It's still a few hundred thousand SLOC, IIRC.

Ruby is slower, but I think the code is more concise.

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