News for hackers. Stuff that matters.
Re:A project with a single 11,000-line code file by rwmj on Sunday April 03, 2022 @04:21PM (#30900271)
Perl XS (the system used to interface with C) requires module == file, so if you have a particularly large module then it just has to live in a single file. Here's one:

  $ wc -l perl/lib/Sys/Guestfs.xs 
  11930 perl/lib/Sys/Guestfs.xs
Worse still, this expands to C which can be large and takes a noticable time to compile:

  30019 perl/lib/Sys/Guestfs.c

There are no comments on this comment yet.