Elektrine lite

← Feed

@marocddot@hachyderm.io

2026-07-26 19:45 UTC

Zero Dependency Programming. Do you have code you can give me that does something useful but doesn't require "installing" stuff to run it? Let's just talk about BSD and Linux based systems. You email me this script. It will save the world from a rogue LLM by issuing some obscure kill switch sequence to a UDP port. We have minutes to save the world. I try to run it and... it depends on version xyz of some component that may be in an internet repo and it may have dependencies too. I am running this from a cloud instance with no installed C compiler nor root permissions. We are doomed. I'm wondering if #perl (sans CPAN) is that zero dependency language I'm looking for.

Replies (3)

  • @barubary@infosec.exchange 2026-07-27 08:12

    @marocddot@hachyderm.io Not necessarily sans CPAN: https://metacpan.org/dist/App-FatPacker/view/bin/fatpack can bundle pure-perl dependencies into your script file for deployment.

    Open ##4132274

  • @marocddot@hachyderm.io 2026-07-26 19:47

    A bit dramatic, but I have been looking for a way of writing portable apps that don't depend on anything. This used to be, in the dark ages, the way we wrote things. I've been trying this with awk but it turns out that network access is not possible without external help (dependencies) or gawk (which isn't installed everywhere).

    Open ##4132286

  • @marocddot@hachyderm.io I'm not sure if I understand correctly your problem but, if you just want to send some data to a udp port couldn't you use netcat ?

    Open ##5056182