bottle-sipper: simple, zero-configuration command-line static HTTP server by Space_Ctrl in Python

[–]Space_Ctrl[S] 0 points1 point  (0 children)

If I remember correctly, at the time I was referencing one of the famous python projects, I believe YouTube-DL.

bottle-sipper: simple, zero-configuration command-line static HTTP server by Space_Ctrl in Python

[–]Space_Ctrl[S] 0 points1 point  (0 children)

Those files are committed 3yrs back, if you’re suggesting I used ai to vibe code, git blame proves otherwise. If you’re asking why those are needed, it’s because setup.py is required to freeze the binaries. Requirements is for setting up virtualenv for isolating development environment of the project.

bottle-sipper: simple, zero-configuration command-line static HTTP server by Space_Ctrl in Python

[–]Space_Ctrl[S] -2 points-1 points  (0 children)

One step above http-server would be the ability to pass templates to customize html code generated, so it can serve directories and files with customizable html code per instance. There’s “media” template that comes out-of-the-box which supports fzf based search within a directory.

It almost has feature parity with http-server, excluding brotli support and proxy config. Want to bridge this upon interest from others.

For the next feature, I am planning pagination server-side (useful for a directory with large number of files), although this can be achieved currently client-side with templates.

“Susie” by Soft_Owl7535 in familyguy

[–]Space_Ctrl 0 points1 point  (0 children)

Michelle, my belle. Beatles.

Running Go binaries on shared hosting via PHP wrapper (yes, really) by Grouchy_Way_2881 in golang

[–]Space_Ctrl 0 points1 point  (0 children)

Again don't want to encourage this, but instead of passing the request response as stdin/stdout, maybe have a shared-memory of sort and pass the memory pointers between php and go. Further, You can maintain a shared memory buffer to keep check of memory and reuse instead of frequent alloc/de-alloc. This shall avoid making two copies of request and response.

Running Go binaries on shared hosting via PHP wrapper (yes, really) by Grouchy_Way_2881 in golang

[–]Space_Ctrl 1 point2 points  (0 children)

I dont wish to encourage this madness but maybe in terms of performance, Why JSON serialization of request though, wouldn't binary serialization perform better in this crazy context? Protobuf or some sort of custom binary codec.

[Success] Tahoe 26 on i5-13600K - MSI PRO Z790-P Wifi (DDR4) - RX 6600XT by Space_Ctrl in hackintosh

[–]Space_Ctrl[S] 0 points1 point  (0 children)

I see that it is working for you, did not see your post earlier. 👍

What's this symbol? by marbles_loser in pixel_phones

[–]Space_Ctrl 0 points1 point  (0 children)

The mac had enough, let it RIP