$ vim carl.c
/* stdint or equivalent set here */
#include "cryanc.c"

They're including a C source file and not a header? That is incredibly cursed :blobcat_notlikethis:

To make it worse:

$ wc -l cryanc.c 
47576 cryanc.c

It's not just a C file, it's a HUGE C file... This is in carl.c, the example program that shows how to use their library. I definitely don't want to compile 47576 additional lines of code every time I make a change to my TLS code...

I need to finally return home to my real hardware and then test how bad it really is on the real hardware...

Maybe the way to do it is to use Mbed TLS on modern platforms that support C99 and Crypto Ancienne on everything else?

Though including almost 50000 lines of C source is incredibly cursed

Perhaps I'll have to patch it so that I can just use the headers...

Follow

@vaporeon_ vaporeon will rue the day they see a typical node_modules

@vaporeon_ @wallhackio granted, a lot of those lines of code are dependencies of development tools (eslint, the TypeScript compiler, webpack, etc. etc.); most purrojects aren’t purrobably really linking with anywhere near all of those 200MB’s worth of javascript

it’s still ludicrous though

@vaporeon_ github.com/SharePoint/sp-dev-d

Let's use this post as an example, where the user reports a node_modules folder that's 200 megabytes large.

As a simple estimate, let's say that each line of code is 60 bytes (60 ASCII characters). Then this would be a project with 133,333 lines of code!!!

@vaporeon_ @wallhackio that's the usual way to ensure people know your example is smaller than the one they were already discussing before you chimed in, yes

@alas @vaporeon_ it well known that it is impossible to write a blog without 400000 lines of JavaScript in your build pipeline

@vaporeon_ my math is wrong oops

200 megabytes is 2*108 bytes, which divided by 60 would be over 3 million lines of code

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.