๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ u โ€บ gritty โ€บ 17011 captured on 2024-06-16 at 17:04:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2024-05-26)

โžก๏ธ Next capture (2024-08-18)

๐Ÿšง View Differences

-=-=-=-=-=-=-

Comment by ๐Ÿ€ gritty

Re: "cgisesh - a tiny cgi session manager for games TLDR: I am..."

In: u/stack

I like this idea. It kind of sounds like scgi using the sockets. what kind of data do you point it to, something loaded from disk just one time into memory?

I've found myself also wanting a nice routing system like some of these web frameworks have. I don't have a use for it yet, but a CGI framework for gemini seems useful, no?

๐Ÿ€ gritty

May 15 ยท 5 weeks ago

3 Later Comments โ†“

๐Ÿš€ stack [OP] ยท May 16 at 00:17:

@gritty: I am aiming for something completely minimal, no persistence, and very few in-memory records with MRU search optimization. It's data-agnostic, with binary fixed-size records (you can map your struct on it).

I could add persistence easily, but kind of like the idea of ephemeral services...

๐Ÿš€ mbays ยท May 16 at 13:13:

Another solution to the same kind of problem, with sessions as processes rather than stored data:

โ€” gemini.thegonz.net/gemrepl/

(It's an unfinished work-out-of-progress, but it basically works and I use it for some things)

๐Ÿš€ stack [OP] ยท Jun 05 at 21:16:

Caching implemented. Most-recent 16 users are now in the cache, with an instant response.

Not only the cache accelerates access (repeated hits expected), but within the cache itself, every hit gets a promotion towards the start of the search, guaranteeing top position after a few hits. Active users will get super-fast results.

Original Post

๐Ÿš€ stack

cgisesh - a tiny cgi session manager for games TLDR: I am making a minimal in-memory "session database server" for keeping track of user data, ideal for games. Any thoughts? Every time I try to make a quick-and dirty CGI game or sketch out a simple application, I get really frustrated. Gemini conviniently provides user certificates which can be used to track sessions, but things get complicated very fast. I am making a minimal subsystem for keeping track of user-associated data, ideal for...

๐Ÿ’ฌ 4 comments ยท 2 likes ยท May 15 ยท 5 weeks ago