206 karma · joined Aug 22, 2016 (10y ago) · 96 submissions
comment 10mo ago · link · parent
comment 11mo ago · link · parent
It doesn't work for everything of course but it's a nice way to bug-for-bug compatible rewrites.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
It's much cleaner than monkey patching, and it will more likely detect if an update conflicts with your patching.
I've used it by packaging everything through nix, but that can be cumbersome.
comment 1y ago · link · parent
Of course that doesn't solve the overhead of finding the modules, but that could be optimized without lazy import, for example by having a way to pre-compute the module locations at install time.
comment 1y ago · link · parent
I haven't found an excuse to really use it though!
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
For sure there is a lack of proper "code as data" constructs in Tcl, like you would find in Lisp.
comment 1y ago · link · parent
I also had further fun with wrapping "proc" by implementing a "pyproc" which called out to Python while looking like a normal Tcl proc.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Another pain point with XML is the lack of inline schema, so the languages around like XPath have to work with arbitrary structures unlike say JSON where you at least have basic primitives like map/dict, numbers, bool, etc