HNHacker News
TopNewBestAskShowJobs

pauleveritt

73 karma · joined November 25, 2015

PyCharm Developer Advocate at JetBrains
submissionscomments
pauleveritt··on JetBrains IDEs Go AI: Coding Agent, Smarter Assistance, Free Tier
We've come a long way with AI Assistant in the last few months. Lots more planned.
pauleveritt··on JetBrains IDEs Go AI: Coding Agent, Smarter Assistance, Free Tier
That's cool that you're looking at those things. I hope we've made progress on "Apply" (and we're doing more.) And as heads-up, as you can imagine, we're looking at NEP.
pauleveritt··on JetBrains IDEs Go AI: Coding Agent, Smarter Assistance, Free Tier
(I'm from JetBrains.) Let's just say, watch this space.
pauleveritt··on PEP 750 – Template Strings
I'd like to add, after the first publication for discussion, we got some wonderful involvement from Andrea Giammarchi who brought his deep JS libraries and tools experience into the PEP. In fact, he's deeply involved in the next steps, with some forthcoming demos and libraries that will make a real difference. Exciting times.
pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
If the string is an f-string, it is immediately evaluated and you no longer have access to the interpolation info for a resolver.

If the string is not an f-string, you get no help from Python tooling.

In both cases, you have to use frame hacks to get back to the scope, which has negative consequences.

pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
If I understand correctly, you'd prefer what other commenters have said for `html(i"Hello {name}")`?
pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
(PEP co-author here.) You've described it well. As the "How to teach it section" emphasizes, we'd like consumers of tag functions to just think of it as an f-string with other stuff that happens before evaluation.

From their POV, inside the quotes, what you know about f-strings, you know here as well.

pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
Cool to see you jump in, Ian.

I don't particularly mind the prefix thing. It came up in the PEP discussion, as did choice of backticks to indicate this is different. But JS template literals -> tagged template literals shows, you can get from A to B without a fundamental change.

I'm very interested though in the deferred part. I agree that there is complexity. I weigh that, though, against the complexity of existing Python HTML templating, where finding out what just happened is...harder.

I think we can get a TSX-level of DX out of this. And maybe a Lit level of composition. Agree that it is non-zero complexity.

pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
Doing `html('<div>Hello {name}</div>')` would be possible. I have a system that's based on it. Two issues:

- No tooling in Python will do anything with the string, so DX suffers. - Evaluating the variable requires frame evaluation, which is...problematic.

You could do `html(f'<div>Hello {name}</div>')` and get f-string coding assistance. But you'd also get immediate evaluation. There's nothing the `html` function can do with the `{name}` part.

pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
(PEP co-author here) The htm folks did a Python implementation: https://pypi.org/project/htm/

It required a janky workaround for the absence of this PEP: https://pypi.org/project/tagged/

I used these to investigate ideas about component-driven development: https://viewdom.readthedocs.io/en/latest/

pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
We originally had a long HTML tutorial in the PEP. It was extracted. It's here, if anyone is interested: https://pauleveritt.github.io/tagstr-site/htmlbuilder.html

Companion repo with: JupyterLite playground, Docker images, other material. https://github.com/pauleveritt/tagstr-site

pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
I actually have a stuff based on tagged (https://pypi.org/project/tagged/) and htm.py (https://github.com/jviide/htm.py) So from a web development perspective, I can likely answer, if it is germane.
pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
I'd be interested in chatting with you sometime on duck typing (protocols) and how it (along with this PEP) could bring component-driven development to Python.
pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
Hi, I'm a PEP author. The hope was that users would say "I know f-string syntax so I know this syntax." Similar to JS and its template literals -> tagged template literal jump.
pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
Hi, I'm one of the PEP authors. Your point covers one of my motivations, so here's a bit about what interests me. Mainly, "Jinja2 and Django templates are pretty much just using Python."

I see things differently. In those, nearly everything is a parallel universe where things aren't Python. Scope rules. Imports. Control flow. Calling things. Navigation. Refactoring. Linting. Therefore, Python tooling can't really help much. Tools have to write special rules to help on each template language and framework.

Instead, imagine if Black, Ruff, mypy, pyupgrade, and IDEs could treat the template part as software.

I realize I'm describing "people who want Python tooling", which might be a minority. I also realize there's pushback about additions to Python. That said, I think TSX and friends have shown -- there's lots we can do to improve Python web development.

pauleveritt··on PEP 750: Tag Strings for Writing Domain-Specific Languages
Hi, I'm one of the PEP authors. This is precisely my primary interest. TSX makes for a good HTML templating experience. Python templating approaches usually create a parallel universe of scope, syntax, imports, linting, type checking, IDE assistance, etc. where little of Python tooling exists.
pauleveritt··on The Bulma CSS framework reaches 1.0
Unless I'm mistaken, 1.0 is 3x bigger than 0.9 for minified version? 647 Kb.
pauleveritt··on Ruff: A fast Python linter, written in Rust
Funny enough, we did a PyCharm webinar with Charlie just a couple of hours ago. https://www.youtube.com/watch?v=jeoL4qsSLbE
pauleveritt··on Textual TUI framework for Python adds CSS renderer
Here's another startup, with a founder that also spent a year working on the super-hard problem of...Python hot reloading/profiling: https://reloadium.io

Hooking these two up would make for a neat programming experience. Best of all...if some $$ €€ were involved, it would show Python open source can be sustainable.

pauleveritt··on Textual TUI framework for Python adds CSS renderer
If it helps, I cover it in my little unboxing video: https://youtu.be/WLwVnYb5Adw
pauleveritt··on Textual TUI framework for Python adds CSS renderer
I did a little "unboxing" video: https://youtu.be/WLwVnYb5Adw
pauleveritt··on Gorgeous Terminal Apps with Textual
Oh, hey, that's me! Textual was a fun to review and deserves all the attention it will undoubtedly get.
pauleveritt··on Fleet, a Lightweight IDE from JetBrains
Hi, I'm with JetBrains. Can you describe the "lock up"? Indexing in general is background.
pauleveritt··on JetBrains Fleet: The Next-Generation IDE by JetBrains
Yes, there is a .fleet folder with JSON files.
pauleveritt··on JetBrains Fleet: The Next-Generation IDE by JetBrains
FYI, we haven't removed local. I'm demoing it in our booth at re:Invent, for Python with Django, in Fleet.
pauleveritt··on Show HN: Datasette Desktop, macOS App for SQLite and CSVs
Simon is modest…there are many points that are really interesting.
pauleveritt··on PyCharm Edu: Python IDE to Learn Programming Quickly and Efficiently
(I'm the PyCharm Developer advocate.) You're right, we need to do some thinking regarding a project's "environment". It's something we're talking about now.
pauleveritt··on PyCharm Edu: Python IDE to Learn Programming Quickly and Efficiently
If you install iPython into your project interpreter, it will be used.
pauleveritt··on PyCharm Edu: Python IDE to Learn Programming Quickly and Efficiently
The run configurations let you check a box that drops you into the interpreter console afterwards. If you install iPython, it will be used. Is that describing what you're looking for?
pauleveritt··on PyCharm Edu: Python IDE to Learn Programming Quickly and Efficiently
FWIW, around a year ago I did the getting started videos: https://www.youtube.com/playlist?list=PLQ176FUIyIUZ1mwB-uImQ...

Can you let me know if this is the kind of thing that you're talking about?

← PreviousPage 2 of 3Next →