rejetto forum

The Python Template Interpreter (PTI) Plan: suggestions?

0 Members and 1 Guest are viewing this topic.

Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 134
  • Computer brained boy
    • View Profile
I just think python is a good choice to make a cross-platform HFS template interpreter.
After struggling for days, now we can truly make such a thing out: core macro parser has been made, in a different way.

So this time I'm searching for some tips and suggestions, more is good :)
Busy in school until late June, 2021.
Check out my template ;)


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 134
  • Computer brained boy
    • View Profile
Feb. 17, 2021:
Now the very basic part is done, see the table and image below :)
Now worksNow doesn't work
basic template support
file listing, downloading
basic symbols and macros
special:strings for translation
file uploading
advanced symbols and macros
special:alias for customizable macros
login, user management, banning, ......

Explanations:
I promise that if this project is done it will be open source. Why I don't make it open NOW is that I'm still discovering the well-fit structure for this project and make it easier to maintain in the future.
« Last Edit: February 17, 2021, 12:02:38 PM by NaitLee »
Busy in school until late June, 2021.
Check out my template ;)


Offline danny

  • Tireless poster
  • ****
    • Posts: 213
    • View Profile
I'm not versed in this programming, but do have suggestions about where to prevent macro: 
Prevent macro execution at drive root and  OS critical (c:/ & c:/windows* & c:/progra*) folders.
Prevent macro execution at same folder that contains HFS.exe, because takeover risk.
Prevent archive at webroot (./) because archive all is overload (archive can't work then).

P.S.
Also a question:  Can macros be run non-block/async? 
I ask because, if you run a macro loop in HFS then it is completely stuck until loop end (this condition serves 1 or zero users). 


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 134
  • Computer brained boy
    • View Profile
Also a question:  Can macros be run non-block/async? 
I ask because, if you run a macro loop in HFS then it is completely stuck until loop end (this condition serves 1 or zero users).

What in my mind is: we serve a web UI, thus everything is handled by http handler.
Multi-threading for both serving requests and macros are possible.
If python is yet not possible for such a server, we can try others... what we make is just an interpreter :)
Busy in school until late June, 2021.
Check out my template ;)