A question for other programming languages that can work in Gemini capsules + Naming my future capsule.

Sorry if this is kind of a dumb question, but what other programming langauges will work on a gemini capsule, other than gmi and markdown? Since I want to host it on Pollux.casa. I'll probably give my capsule the name of pink porcupine, or purple hegdes, or something themed around the Libertarian symbol of the porcupine.

🦔 bsj38381

Oct 10 · 4 days ago · 👍 travisshears

9 Comments ↓

🍀 meidam · Oct 10 at 13:48:

You can serve any type of file that you want on gemini. But don't expect all clients to parse and represent any type of file in a certain way. If a client doesn't have a way to present it, it will probably make it possible to download it or open it in another program.

☯️ gdorn · Oct 10 at 14:06:

It might help if you explain what it is you are attempting to do.

Gemini clients don't run any code provided by the server, unless you count formatting. They also generally don't render Markdown, apart from the subset of Markdown called GemText.

Gemini servers, on the other hand, can run whatever they want, if they're configured to do so.

👤 travisshears · Oct 10 at 14:32:

If you are self-hosting then on the server side there is no limit to the programing language that can use. Almost anything goes. As long as you can listen on a tcp port, handle certs, and respond anything goes.

I've been intrested in learning GoLang lately so I found a Gemini server implmentation in Go and go to hacking for my personal capsule.

🦔 bsj38381 [OP] · Oct 10 at 16:32:

I'm personally thinking of adding artwork for an image gallery page (set to 500x500 with force original aspect ratio using ezgif then compressing the image) and showcasing my music, and making a blog about the idea of a gender nonconforming society, feminism and general rights for women in general and me nerding out about stuff I enjoy as well too, and maybe some Libertarian motifs too, alongside other stuff. I'm mainly running my capsule on pollux.casa until I get a job as well. I'm also kind of new with ceritficates as well, I do know that you'll have to update them and stuff. Wait, gemtext is only text though, dang it.

💎 pista · Oct 10 at 18:10:

If you are wanting to design in a visual medium in Gemini you are going to end up limited to plain text or Unicode.

Images can only be links you download.

If integration of art and text is critical for you then you need to do HTML which is the default for hypertext transport.

☯️ gdorn · Oct 10 at 20:06:

gemtext is text only, but browsers can choose what to do with the urls contained in the hypertext. for instance, Lagrange can be configured to display linked images inside the text.

but fundamentally the layout and display decisions are up to the user, not the capsule author.

🦔 bsj38381 [OP] · Oct 11 at 09:42:

I think I'll pick Html for my Gemini Capsule, and I have Imgbb and Catbox to help me host images, but I will keep in mind about the download links for images.

🚀 stack · Oct 11 at 14:26:

.gmi and markdown are not programming languages, they are data formats or at best text markup schemes.

🦔 bsj38381 [OP] · Oct 12 at 15:15:

Right, that's my mistake. Hmm.


Source