3 ms·
Looks really cool, some feedback from a noob to optionally improve the “trivial” example: 1. can you put a link to the running http file served by the example
by bionhoward 3y ago
Looks really cool, some feedback from a noob to optionally improve the “trivial” example:
1. can you put a link to the running http file served by the example so we could see how the result looks?
2. Defining CGI would be helpful because I looked it up and found “computer generated imagery” which doesn’t seem like what you meant.
3. Might be good for this example to load the html from a file or SQLite to fully trivialize the whole stack, as this example doesn’t include the S in the acronym.
sometimes I think the Next.js examples folder at https://github.com/vercel/next.js/tree/canary/examples https://github.com/vercel/next.js/tree/canary/examples is just an amazing example of how best to market a software product to developers because it’s such a rich source of integrations, almost anyone can find a good starting point for a web app project in there, if BCHS had the 80:20 of examples ready to roll then maybe it could blow up, because BCHS a great idea to use the most battle tested solutions in existence! Keep it up! bravo!
- marcus0x62 3y ago> 2. Defining CGI would be helpful because I looked it up and found “computer generated imagery” which doesn’t seem like what you meant. Common Gateway Interface. It’s how we generated dynamic web content back in 1995. Doing it with C is extremely painful.
- unwind 3y agoIt's typically common gateway interface [1] in the context of web serving. [1]: https://en.m.wikipedia.org/wiki/Common_Gateway_Interface https://en.m.wikipedia.org/wiki/Common_Gateway_Interface
- ReactiveJelly 3y agohttps://en.wikipedia.org/wiki/Common_Gateway_Interface https://en.wikipedia.org/wiki/Common_Gateway_Interface The most primitive version is just launching one process per request, piping the HTTP request into stdin, and piping the response out of stdout. It works, but you can imagine the startup latency is rough and it takes a lot of resources. There are faster variations that try to reduce the overhead. Ironically FaaS is sort of a rebirth of CGI
- pram 3y ago> Defining CGI would be helpful This made me feel extremely old lol
- tedunangst 3y agoYou know, back in my day, every cool url had the letters cgi in there somewhere. Maybe at the end, maybe somewhere towards the middle.
- juped 3y agoi used to think cgi-bin was a "bin" to put your cgi scripts in (i mean, they were perl, not binary)
- ksec 3y agoIndeed. We are now at a stage where new generations of Web Developers have absolutely no idea what CGI is.
- MuffinFlavored 3y ago> 1. can you put a link to the running http file served by the example so we could see how the result looks? How would it look any different than if it was served from a bash script or the world's most complicated .NET container in a Kubernetes instance?