https://htmx.org logo
Join Discord
Powered by
# bash-htmx
  • m

    mysterious-toddler-20573

    05/11/2023, 4:55 PM

    https://www.youtube.com/watch?v=Jzcu4JheCtY▾

  • r

    refined-waiter-90422

    05/11/2023, 5:35 PM
    Lol cool.
  • f

    freezing-waitress-26396

    05/11/2023, 5:41 PM
    oh my god
  • g

    gorgeous-airport-54386

    05/11/2023, 5:41 PM
    wasn't one of the earliest http servers written in bash?
  • g

    gorgeous-airport-54386

    05/11/2023, 5:44 PM
    Copy code
    sh
    # WARNING: completely insecure
    read method resource version
    [ "$method" == "GET" ] || { printf "HTTP/1.0 400 Bad Request\r\n\r\n"; exit }
    printf "HTTP/1.0 200 OK\r\n"
    printf "Content-Type: text/plain\r\n"
    printf "\r\n"
    cat resource
  • g

    gorgeous-airport-54386

    05/11/2023, 5:44 PM
    something like that
  • s

    shy-zebra-22292

    05/11/2023, 5:45 PM
    I don't know about that but when I saw this video's thumblnail I thought it's about PHP. PHP has and still can work as an Apache FastCGI or Apache module. Not completely sure how it works nowadays but I would not be surprised to see both used.
  • r

    refined-waiter-90422

    05/11/2023, 5:47 PM
    Yeah unfortunately PHP is the only language that really seemed to really embrace CGI and added cool shit like preloading, db connection pooling etc as FastCGI.
  • r

    refined-waiter-90422

    05/11/2023, 5:47 PM
    But any language could write to the ez pz CGI standard and add those things.
  • g

    gorgeous-airport-54386

    05/11/2023, 5:48 PM
    https://github.com/dz4k/pugserver not CGI but similar spirit
  • c

    calm-ice-23682

    05/11/2023, 6:07 PM
    nowadays, if you're going to be reckless, you might as well take off the helmet and go all out https://github.com/nerdgeneration/www.sh
  • g

    great-cartoon-12331

    05/11/2023, 6:14 PM
    don't bash it till you've tried it
  • l

    limited-teacher-83117

    05/23/2023, 2:43 PM
    have thought about trying to do this with js and rust
  • l

    limited-teacher-83117

    05/23/2023, 2:43 PM
    idk if it starts up fast enough though