Hacker Newsnew | past | comments | ask | show | jobs | submit | patrick91's commentslogin

how are you finding Strawberry?


I really wish someone would make a keyboard or smartphone with the same keyboard as the HTC Touch Dual, it was so good!


for me it's being able to do `uv run whatever` and always know I have the correct dependencies

(also switching python version is so fast)


Glad to see someone on HN mentioning Strawberry! Hope you're enjoying it!


there's an option for claude to disable co-authoring, see: https://code.claude.com/docs/en/settings

{ "includeCoAuthoredBy": false }


I think it's ty the typechecker :D https://docs.astral.sh/ty/


Thanks, this seems interesting!


I really really want lazy imports in Python, it's would be a godsend for CLIs


Libraries for this have always existed, triggering import on first access. The problem was, they would break linters. But that's not an issue anymore with typing.TYPE_CHECKING.

A PEP is very much welcome, but using lazy import libraries is a fairly common, very old, method of speeding things up. My pre PEP 690 code looks like this:

    import typing
    from lazy import LazyImport

    member = LazyImport('my_module.subpackage', 'member')
    member1, member2, = LazyImport('my_module', 'member1', 'member2')
    
    if typing.TYPE_CHECKING:
        # normal import, for linter/IDE/navigation. 
        from my_module.subpackage import member
        from my_module import member1, member2


Well if you use argparse or one of the many argparse wrappers for a moderately complex CLI you end up lazyfing the CLI parser itself because just fully populating the argparse data structures can easily take half a second or more, so with other startup costs you easily end up with "program --help" taking >1s and any CLI parsing error also taking >1s.


yup, there's provider like shapeways, but you can also find people on reddit that could print it for you


I'm working on a social website where you can share the soft drinks and sodas you try, similar to untappd and maybe swarm, it's not yet ready to share, but I'd love to know if there's any people here that might want to try it (my email is on my profile)


what rich text are you using?


We built it from scratch, so not based on prosemirror or contenteditable or anything like that (as we needed something which feels as if you're just editing text but also supports outlining features)


Does it to RTL and vertical text? Full Unicode?


very cool! can't wait to try I'm doing a note editor as well, and would love to have great outlining support!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: