Live data from Hacker News

Viewing profile — jonathan_s

jonathan_s

HN member
Joined
Fri, Jan 03, 2014, 2:45 PM UTC
HN karma
78
Public activity
26 items

About jonathan_s

No profile information was provided.

Recent public activity

  1. comment
    Comment #35074648

    If you can, best is to always spawn them in a task group (either using anyio or Python 3.11's task groups). This prevents tasks from being garbage collected, but also prevents situ…

  2. comment
    Comment #33721513

    I've gone very recently through a rewrite from Rocket to Axum and very much love it so far. The initial motivation was the need for web socket support, which Rocket doesn't have (y…

  3. comment
    Comment #32334969

    Same experience here. Canvas rendering is much faster for terminal apps if done well. I think also VS code uses a canvas for its terminal because its superior performance.

  4. comment
    Comment #22434982

    No, there is nothing to remember. Every decent HTML templating engine these days will handle all free form text as unsafe and escape it automatically. The same for SQL libraries. I…

  5. comment
    Comment #13616971

    Hi, I'm the author of prompt_toolkit. A library that does something similar for Python. Don't hesitate to copy anything you need. It took me a few iterations to get the API as I wa…

  6. comment
    Comment #12025398

    Also check out pymux: https://github.com/jonathanslenders/pymux

  7. comment
    Comment #11132555

    Yes, but it's unsafe for another reason. The new syntax can be verified statically by tools like Pylint. A call to locals() is hard to verify. The locals() function itself could fo…

  8. comment
    Comment #10832234

    Yes, it does support true color. It's disabled by default, because not all terminals support it, but if you want 24bit, do: pymux --truecolor

  9. comment
    Comment #10831598

    (author). This is the first release of Pymux. It should be stable and usable for daily work. However, don't hesitate to create a GitHub issue in case you feel that it lacks some fe…

  10. comment
    Comment #10412414

    Sure it's true. And software written in C or assembly language often also performs better than those written in Python.

  11. comment
    Comment #9443372

    @amjith: we should do that indeed. If you don't have the time, I'll help you doing it later on.

  12. comment
    Comment #9443186

    Hi, thanks for the suggestions! Actually, the internal representation, is completely separate from the layout. It's not in another repository, but it's decoupled. The key bindings …

  13. comment
    Comment #9442615

    Can you tell me what terminal application you are using? Does it happen as well in a new terminal?

  14. comment
    Comment #9442354

    It's a blackbox re-implementation. In Python, things are done different from C and there are other libraries are available (Pygments for instance). I also don't want to claim that …

  15. comment
    Comment #9442113

    Yes, it should normally work with all unicode characters. (If not, please file a bug.)

  16. comment
    Comment #8393345

    This could be confusing. '?' is for searching backwards, '/' for searching forward. Because we are in a multiline environment, I preferred the Vi keybindings instead of the readlin…

  17. comment
    Comment #8393284

    >> It would be really helpful, to just search for some keyword and have the last occurence... In Vi-mode, use ControlX-ControlL after typing the start of the line, then you have li…

  18. comment
    Comment #8387772

    Thanks for the feedback. About "daw": it looks like I forgot about that. To be fixed, but right now use "diw" instead. (Please create a github issue if there are some other importa…

  19. comment
    Comment #8387491

    Thank you for the feedback. I'll add an option to turn off the automatic autocompletion.

  20. comment
    Comment #8387487

    I'm sorry about this, at the moment there is no Windows support. However the architecture of the library decouples the input and output from the rest, so it should be possible to p…

  21. comment
    Comment #8387409

    (author here) I noticed. You're not doing it wrong. It's a bug and it will be fixed asap.

  22. comment
    Comment #8387367

    We have that: https://github.com/django-extensions/django-extensions/commi... (Not yet on Pypi, we we'll get there.)

  23. comment
    Comment #8387355

    (author here.) The idea is indeed that ``ptpython`` could become the terminal front-end for IPython. The only thing on which ``prompt_toolkit`` is focussing, is reading input from …

  24. story
  25. comment
    Comment #7339149

    Like the article of @madjar in the comment above explains. There is a reason for definitely not using gevent.