patchy

:anchor: Patch the inner source of python functions at runtime. (by adamchainz)

Patchy Alternatives

Similar projects and alternatives to patchy

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better patchy alternative or higher similarity.

patchy reviews and mentions

Posts with mentions or reviews of patchy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-01-31.
  • I still Lisp (and you should too)
    5 projects | news.ycombinator.com | 31 Jan 2021
    One great upside of s-expressions for me is that you can do some cool things like 'find and replace' for whole subexpressions (for monkey patching third party code, for example). I use `el-patch` [0] in my emacs config and `advice-patch` for surgically changing the default behaviors of some org-mode functions to compile my blog [1].

    That said a similar sort of thing is possible, for example, in python with `patchy` [2], and perhaps many other languages? But I guess it's not as organic as in lisps, e.g. `advice-patch` implementation is less than 100 LOC, whereas in case of python you have to rely on existing heavy lifting done by `ast` module.

    As of simple syntax, it really gets in the way sometimes, e.g. I'm always annoyed by constant quoting in Elisp because the same type of brackets (only `()`) is used. In comparison, in Clojure it's much more readable with (), [], {} (and more).

    > Lisp is not an interpreted language. It is not slow

    A bit of nitpicking, but... which Lisp? :) For example,

    > all implementations come with lots and lots of levers to tweak performance for most programs. In some cases the programs might need assistance from faster languages like C and C++ because they are closer to the hardware, but with faster hardware, even that difference is becoming irrelevant.

    Well, this is true of most languages.

    [0] https://github.com/raxod502/el-patch#el-patch

    [1] https://github.com/karlicoss/beepb00p/blob/a4fd7cb95e1705412...

    [2] https://github.com/adamchainz/patchy#patchy

Stats

Basic patchy repo stats
1
167
8.3
12 days ago

adamchainz/patchy is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of patchy is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com