Re:Show HN: Python framework is faster than Golang Fiber
by xwowsersx on Tuesday January 10, 2023 @09:22AM
(#34325220)
Hmm... there's Python and CPP.
src/socketify
├── __init__.py
├── __main__.py
├── asgi.py
├── cli.py
├── helpers.py
├── libsocketify_darwin_amd64.so
├── libsocketify_darwin_arm64.so
├── libsocketify_linux_amd64.so
├── libsocketify_windows_amd64.dll
├── loop.py
├── native
│ ├── Make.bat
│ ├── Makefile
│ ├── src
│ │ ├── libsocketify.cpp
│ │ └── libsocketify.h
│ └── uv_selector.txt
├── native.py
├── socketify.py
├── ssgi.py
├── status_codes.py
├── tasks.py
├── uv.py
├── uWebSockets
└── wsgi.py
I think the .so files are built from other source though? I'm not sure. In the makefile they are rm'd and then created. The linux workflow file, for example, has: make linux
cd ../
git add libsocketify_linux_amd64.so
Re:Show HN: Python framework is faster than Golang Fiber
by onedognight on Tuesday January 10, 2023 @09:34AM
(#34325417)
Ah, thanks! In my defense, the native/ directory contains the portable C++ source and the src/ directory contains a the native executables.
Re:Show HN: Python framework is faster than Golang Fiber
by cirospaciari on Tuesday January 10, 2023 @09:38AM
(#34325472)
Yes you are right!
Re:Show HN: Python framework is faster than Golang Fiber
by cirospaciari on Tuesday January 10, 2023 @09:25AM
(#34325256)
you need to pull all git submodules too
git submodule update --init --recursive --remote
Re:Show HN: Python framework is faster than Golang Fiber
by kapilvt on Tuesday January 10, 2023 @09:02AM
(#34324936)
Navigate down another directory to `native` directory which has the source for the .so files.
Re:Show HN: Python framework is faster than Golang Fiber
by cirospaciari on Tuesday January 10, 2023 @09:07AM
(#34325008)
.so are the pre-built binaries but you can see the native folder code there and also see the projects used in Makefile
[0] https://github.com/cirospaciari/socketify.py/tree/main/src/s...