Viewing profile — jonathan_s
jonathan_s
HN member- Joined
- Fri, Jan 03, 2014, 2:45 PM UTC
- HN karma
- 78
- Public activity
- 26 items
- HN profile
- View on Hacker News ↗
About jonathan_s
No profile information was provided.
Recent public activity
-
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…
-
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…
-
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.
-
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…
-
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…
-
comment
Comment #12025398
Also check out pymux: https://github.com/jonathanslenders/pymux
-
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…
-
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
-
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…
-
comment
Comment #10412414
Sure it's true. And software written in C or assembly language often also performs better than those written in Python.
-
comment
Comment #9443372
@amjith: we should do that indeed. If you don't have the time, I'll help you doing it later on.
-
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 …
-
comment
Comment #9442615
Can you tell me what terminal application you are using? Does it happen as well in a new terminal?
-
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 …
-
comment
Comment #9442113
Yes, it should normally work with all unicode characters. (If not, please file a bug.)
-
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…
-
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…
-
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…
-
comment
Comment #8387491
Thank you for the feedback. I'll add an option to turn off the automatic autocompletion.
-
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…
-
comment
Comment #8387409
(author here) I noticed. You're not doing it wrong. It's a bug and it will be fixed asap.
-
comment
Comment #8387367
We have that: https://github.com/django-extensions/django-extensions/commi... (Not yet on Pypi, we we'll get there.)
-
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 …
- story
-
comment
Comment #7339149
Like the article of @madjar in the comment above explains. There is a reason for definitely not using gevent.