HN.zip

Sharing a mutable reference between Rust and Python

29 points by Bogdanp - 3 comments
petcat [3 hidden]5 mins ago
> As part of my ongoing project to reimplement Django’s templating language in Rust, I have been adding support for custom template tags.

Cool project, but does the author know about minijinja [1]?

[1] https://github.com/mitsuhiko/minijinja

Klonoar [3 hidden]5 mins ago
There is little chance they don't know about minijinja/askama/tera/etc.

The repo for their project outlines why they're doing this, though: https://github.com/LilyAcorn/django-rusty-templates

It's seemingly being made for being used in Django as a template backend, not necessarily for use from Rust like the others (i.e native-ifying Django templates).

aleyan [3 hidden]5 mins ago
Setting aside the reason that hydrating django templates in rust from django is useful in ways that hydrating jinja templates in rust from django isn't useful. Petcat's comment could be useful and the author may not be aware of existing prior art. As engineers, there is sometimes a huge urge to build without looking around first. I am guilty of this myself. When I started on dela [0], I didn't know about 2 alternatives to it; I only learned about them through comments.

[0] https://github.com/aleyan/dela