mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

379K
active users

I finally managed to work on the new webframework again and I am happy to report that the basics of server-side sessions now work.

Tomorrow I might or might not optimize the thing a bit and start introducing random UUIDs as primary keys as well as symmetric encryption with a key stored on visitors browsers.

@phryk New webframework? Sounds potentially interesting...

@alcinnz I started redoing my webframework from scratch about half a year ago.

This time without depending on flask and peewee.

I already got:
* URL routing
* something akin to flasks blueprints
* a "templating" engine using a tree of native python objects mapping 1:1 onto the resulting DOM
* an unfinished SQL generator with a syntax similar to peewee

@alcinnz The SQL generator is independent from actual database interaction – that's a layer on top of it that I'm currently hacking on, with sessions being the first thing to use it. :)

@alcinnz Also decided to go exclusively for postgres this time around because I want to use postgis for more powerful and performant map features and I really hope that won't bite me in the ass.^^

@bhaugen If it goes badly, I'm sure you'll hear about it. 😂

// @alcinnz

@phryk @alcinnz
We use a lot of Postgres but have not used posgis.

@bhaugen
I haven't actually installed and played around with it yet, but from the docs it seems like it's essentially a couple thousand new functions for postgres.

Seems to include built-in support for map projections, all sorts of neat topological queries and even geometry simplification – all things where I'll be very glad if I'm able to outsource them to the DBMS. :P

@alcinnz

@phryk I enjoy using PostGIS!

Yeah, your webframework sounds a bit like Happstack ported to Python... I enjoyed using Happstack for my "Amphiarao" webpage debugger!

@bhaugen

@phryk Certainly that templating language sounds a lot like Blaze!

@bhaugen

phryk 🏴

@alcinnz My inspiration was CL-WHO, the library I used way back when I was doing web stuff with Lisp.

The "templates" are essentially just nested constructor calls with some AST magic for more comfortable conditionals and loops.

@bhaugen