Live data from Hacker News

Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

github.com

71–80 of 192 posts

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#71

Earlier quoted context omitted.

This is false. Making a new implementation is a practical purpose. Any new implementation will have to work with the spec, instead of idiosyncracies of other implementations. Ergo there are practical purposes which go by how the language is defined in its specification. Some languages have more of a proper spec than others, of course. If we look at for example Scheme dialects, then they often change their implementat…

> Making a new implementation is a practical purpose. Not yet it isn't. At least not for Python. I mean there are plenty of alternative implementations of Python but they aren't practical because they don't work with CPython modules (as far as I know anyway) so approximately nobody uses them. The de facto spec is "what CPython does".

PyPy work well with CPython modules but the performance is not that great, with CFFI performance is really good in PyPY, HPy project will change this https://hpyproject.org/

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#72
post #67

Earlier quoted context omitted.

It does not say that Python is faster than Go it clearly says "Python framework". > It only proves that wrapping C code in Python is fast. Yes, it proves that for this specific use case Python is faster.

Technically, it is C that’s faster.

Python (CPython) is written in C so always will be C, PyPy i think is C too? not sure.

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#73

I'm feeling old. I went back to Flask recently and keep finding everything I know is deprecated, or not best practice any more. Then I read every week that some new framework is out that is better. I'm tired of it. I end up spending more time learning new things than I do building new things! Maybe I should get off hn for a while

just follow your heart <3 take a breath, just do what you love and makes you happy.

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#74

The “src/“ directory[0] contains compiled .so files. Is this even open source? [0] https://github.com/cirospaciari/socketify.py/tree/main/src/s...

Navigate down another directory to `native` directory which has the source for the .so files.

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#75

I'm feeling old. I went back to Flask recently and keep finding everything I know is deprecated, or not best practice any more. Then I read every week that some new framework is out that is better. I'm tired of it. I end up spending more time learning new things than I do building new things! Maybe I should get off hn for a while

It’s not you getting old, it’s you going tired of the pretentiousness of that pervades the industry right now.

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#77
post #67

Earlier quoted context omitted.

It does not say that Python is faster than Go it clearly says "Python framework". > It only proves that wrapping C code in Python is fast. Yes, it proves that for this specific use case Python is faster.

Technically, it is C that’s faster.

Technically (not sure what you mean with this but with the context I will use it too as it seems to match with what I want to say) you could never talk about Python (the most common and original implementation) without making reference to C then.

And if you are not making reference to a specific implementation then the comparison does not make any sense.

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#78

I'm feeling old. I went back to Flask recently and keep finding everything I know is deprecated, or not best practice any more. Then I read every week that some new framework is out that is better. I'm tired of it. I end up spending more time learning new things than I do building new things! Maybe I should get off hn for a while

The secret is stop using frameworks and use just libraries (even the latter with parsimony)

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#79

The “src/“ directory[0] contains compiled .so files. Is this even open source? [0] https://github.com/cirospaciari/socketify.py/tree/main/src/s...

.so are the pre-built binaries but you can see the native folder code there and also see the projects used in Makefile

Re: Show HN: Socketify.py: Http/Https and WebSockets servers for PyPy3 and Python3

#80
post #78

I'm feeling old. I went back to Flask recently and keep finding everything I know is deprecated, or not best practice any more. Then I read every week that some new framework is out that is better. I'm tired of it. I end up spending more time learning new things than I do building new things! Maybe I should get off hn for a while

The secret is stop using frameworks and use just libraries (even the latter with parsimony)

What libraries do you use for python webapps, at least for url routing, etc?
Post reply on HN