HNHacker News
TopNewBestAskShowJobs

hauntsaninja

405 karma · joined May 9, 2020

submissionscomments
hauntsaninja··on Show HN: Pyp – Easily, magically, run Python at the shell
Given that the original project has been unmaintained for several years and is Python 2 only, I think it's not unreasonable. There's very little reason to have both installed, so I don't think it's a problem for users either.

It's also just the perfect name! It's punny, it's short and it acknowledges prior art. And of course, if the original author took issue with it, I would change the name.

hauntsaninja··on Show HN: Pyp – Easily, magically, run Python at the shell
Thanks for sharing! I hadn't seen Mario before. The async support is super nifty! From a quick look, it looks like pyp might be a little quicker for some use cases since it doesn't need subcommands, but I'll definitely be updating https://github.com/hauntsaninja/pyp#related-projects
hauntsaninja··on Show HN: Pyp – Easily, magically, run Python at the shell
xonsh is great! I'm a fan of your cousin's work :-) I mentioned it in https://github.com/hauntsaninja/pyp#related-projects for if you want even more Python in your shell.
hauntsaninja··on Show HN: Pyp – Easily, magically, run Python at the shell
Yup, that was the inspiration for this project and its name. See https://github.com/hauntsaninja/pyp#related-projects for more discussion. By no means is this a new idea, but I think this iteration has some convenient twists :-)
hauntsaninja··on Show HN: Pyp – Easily, magically, run Python at the shell
Thanks for checking pyp out!

Startup time hasn't been particularly perceptible in my use of it. Just ran a quick benchmark on my (old, not powerful) laptop:

  ~ λ hyperfine 'pyp x'
  Benchmark #1: pyp x
    Time (mean ± σ):      75.9 ms ±   1.2 ms    [User: 55.9 ms, System: 15.1 ms]
    Range (min … max):    74.5 ms …  79.0 ms    36 runs
Since there isn't any input, this should just measure startup and AST transformation time.
← PreviousPage 2 of 2