gemini capsule owners familiar with scripting, in your opinion what is the best scripting language to learn for making an interactive gemini capsule? Ive heard that GO is a good one but what kinds of languages do you use?
3 years ago 路 馃憤 hyperlinkyourheart
As to other languages, I personally use Go primarily. Python is good for beginners, and bash is ok but not good for all use cases. If I was building a gemini server I would either use Go, or Jetforce (python) if it has something I specifically need. 路 3 years ago
If you need more interactiveness and control for your server, https://github.com/pitr/gig is an interesting thing to look into. It provides an API that lets you write interactive servers in Go. There used to be a pasting service that was made with it. The go-gemini library is fine too, afaik used by gemfeed. 路 3 years ago
Whatever your favourite language is. Gemini server scripting is so straightforward, why not try a few... 路 3 years ago
sigh* my escaped spaces were turned into real spaces, "Unix shell scripting" should have %20 instead of spaces 路 3 years ago
@maria Since you mentioned Lisp, https://www.cliki.net/Unix shell scripting looks interesting and is something I need to investigate more. 路 3 years ago
look at my floppy drive, it has a very minimal code for running a Gemini server in ruby. it requires ssl termination in another server like nginx or haproxy, but ruby can easily terminate that too 路 3 years ago
as for interactive capsules, you need to decide whether to cgi or not to cgi. cgi are certain urls that end up inside your code, others are just plain files that get served to the client. most web server software can do this. if you don't go cgi you need to write your whole server code yourself. I guess python or ruby works well here 路 3 years ago
I think we need to talk about semantics here. There is compiled and interpreted languages, technically interpreted languages run inside a virtual machine and can have compilation into a bytecode too. a scripting language is usually something that extends a running program and can dynamically change, but that is also true for compiled things. Lisp for instance can be all of this, it's awesome 路 3 years ago
@lykso Haven't tried it but perhaps I should. It's probably fairly safe and easy to approach since it's used so much as an internal language in games. 路 3 years ago
I would use Python personally, just because I like that language a lot. Same if I was making a website. I think the Jetforce gemini server has an API for building custom Gemini applications in Python, and it is what Astrobotany was built with AFAIK. It can also just run anything as a CGI script though 路 3 years ago
@mntn Not even Lua? I've been seeing a lot of love for that one lately. 路 3 years ago
Honestly I haven't really found a traditional scripting language that I love. Everything either has too much overhead, is too loose, or too arcane and full of odd corner cases (Bash). 路 3 years ago
Go is a great language, but it's not really a scripting language per se. Python would be a good choice if you're new to programming. It's very forgiving and there's a lot of libraries available. 路 3 years ago
By 'interative' i mean things like user input queries and http response gathering/display 路 3 years ago