Tangram::Core(3pm)

πŸ“¦
version 2.12 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Tangram::Core πŸ’–

okay bestie, welcome to Tangram::Core β€” it's the import core Tangram modules situation, and it's literally the moment your script stops dragging 9000 things it does not need. it's giving User Contributed Perl Documentation, section 3pm, and honestly? iconic.


✨ SYNOPSIS ✨

use Tangram::Core;

# use additional types, e.g.:
use Tangram::Type::Array::FromMany;
use Tangram::Type::Set::FromOne;

like. that's it. that's the whole vibe. πŸ’…


🌸 DESCRIPTION 🌸

so this module imports only the parts of Tangram that are thought to be essential to any app. and when we say essential, we mean the absolute bare minimum bestie stack:

  • Schema
  • Storage
  • Cursor
  • Expr
  • Scalar
  • Ref

that's the whole list. that's the group chat. 🫢

and what is NOT invited to the party? literally every module that maps collections β€” so Array, Hash, Set and their intrusive variants? nope, not imported. and Deploy? also not imported. sorry boo, not this time πŸ™ˆ

so why would you even want this? okay so:

  • Tangram::Core lets you reduce script startup time β€” yes, actually β€” by importing only what you really need. and also executable size when perlcc can handle Tangram. smaller, faster, cuter. no cap. ✨
  • it also makes it possible to add new mappings to Tangram without penalizing apps that don't need them. like, new mappings can just exist over there and your app is unbothered. main character energy fr fr πŸ’œ
okay but real talk: if you need those collection mappings or Deploy, you have to use them yourself. Tangram::Core is not gonna sneak them in for you. it's not that kind of module. πŸŽ€


and that's the whole page, bestie!! πŸ¦‹ this one came from perl v5.36.0 dated 2022-10-16, so shoutout to the version and the date β€” they understood the assignment, periodt. πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from