turms-im / turms

🕊️ The world's most advanced open source instant messaging engine for 100K~10M concurrent users https://turms-im.github.io/docs
Apache License 2.0
1.67k stars 255 forks source link

Migrate to Java as the template engine #1470

Open JamesChenX opened 1 month ago

JamesChenX commented 1 month ago

I do a lot of research on template engines. The most concise and powerful one is the Groovy template engine, but we finally chose to use regular Java as the template engine because:

btw, we don't want FreeMarker because: 1. It lacks maintenance; 2. Legacy syntax design, especially compared to Groovy template; 3. Bad performance. It should be rewritten to use ASM/ClassFile API to compile templates to class files.