💾 Archived View for gemi.dev › gemini-mailing-list › 000606.gmi captured on 2024-08-19 at 01:22:02. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

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

[ANN] gmi2html translater

1. Charlie Stanton (charlie (a) shtanton.com)

Hi all,

I've written a little program called gmi2html which just translates 
text/gemini to HTML so if you want to serve the same content on gemini 
and the web you can.

You can find it here:

https://github.com/shtanton/gmi2html

Apologies for distributing gemini software over the web D: I'll get it 
on my own gemini space once it's up and running.

Hopefully it's helpful, I found existing implementations in python and 
go, but I'm probably not the only person here who appreciates a tiny 
executable that runs really fast and barely allocates heap memory.

Cheers all,

shtanton (or Charlie if you want)

Link to individual message.

2. Petite Abeille (petite.abeille (a) gmail.com)



> On Jan 4, 2021, at 21:19, Charlie Stanton <charlie at shtanton.com> wrote:
> 
> tiny executable that runs really fast and barely allocates heap memory.

Was expecting, like, ANSI C, or Rust, but you gave us Zig! Thank you.

? ???

Link to individual message.

3. prx (prx (a) ybad.name)


> 
> 
> > On Jan 4, 2021, at 21:19, Charlie Stanton <charlie at shtanton.com> wrote:
> > 
> > tiny executable that runs really fast and barely allocates heap memory.

Interesting, I didn't know Zig.

> 
> Was expecting, like, ANSI C, or Rust, but you gave us Zig! Thank you.

Not ANSI, but still C if you like :

=> https://dev.ybad.name/gemtext2html/

Link to individual message.

4. Sean Conner (sean (a) conman.org)

It was thus said that the Great prx once stated:
> Not ANSI, but still C if you like :
> 
> => https://dev.ybad.name/gemtext2html/

  What's not ANSI about it?  It's perfectly find C99 code.

  -spc

Link to individual message.

5. Charlie Stanton (charlie (a) shtanton.com)

On Mon, Jan 4, 2021 at 8:38 PM prx <prx at ybad.name> wrote:
> > > tiny executable that runs really fast and barely allocates heap
memory.
>
> Interesting, I didn't know Zig.

I'm liking Zig more and more but I haven't written anything big in it yet
so still not sure.

> => https://dev.ybad.name/gemtext2html/

Nice! Made me realise I'm not escaping stuff so I'll add that soonish.

Also does anyone know if running a gemini server through stunnel or
something is a good idea? Obviously a gemini server without TLS isn't a
gemini server but it might be nice since it would make the server code
simpler. Of course authy stuff probably won't work, but I feel like it
could for a static site. I'll probably just use gmnisrv instead of writing
my own for once.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210104/43ee
6461/attachment.htm>

Link to individual message.

6. Petite Abeille (petite.abeille (a) gmail.com)



> On Jan 4, 2021, at 22:24, Charlie Stanton <charlie at shtanton.com> wrote:
> 
> Also does anyone know if running a gemini server through stunnel or 
something is a good idea? 

Cannot answer the "good idea" part, but yes, I do exactly that, either 
stunnel, or djb style ala USCPI.

YMMV depending on your actual needs and wants.

? ???

Link to individual message.

7. prx (prx (a) ybad.name)


> * Petite Abeille <petite.abeille at gmail.com> le [04-01-2021 21:25:10 +0100]:
> > 
> > 
> > > On Jan 4, 2021, at 21:19, Charlie Stanton <charlie at shtanton.com> wrote:
> > > 
> > > tiny executable that runs really fast and barely allocates heap memory.
> 
> Interesting, I didn't know Zig.
> 
> > 
> > Was expecting, like, ANSI C, or Rust, but you gave us Zig! Thank you.
> 
> Not ANSI, but still C if you like :
> 
> => https://dev.ybad.name/gemtext2html/

My bad, I'm confused.
It's not ANSI, but POSIX (because it use getline())

Link to individual message.

---

Previous Thread: [users] Multi-user capsule at gmi.si3t.ch

Next Thread: [ANN] Schapcom