rejetto forum

The Python Template Interpreter (PTI) Plan: suggestions?

0 Members and 1 Guest are viewing this topic.

Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 144
  • 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 :)

Also, here's it's repo, it's named phfs because it also has a server!

Poll: Which priority should I choose?
« Last Edit: Today at 12:45:44 PM by NaitLee »
Busy in school until late June, 2021.
Check out my template ;)


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 144
  • Computer brained boy
    • View Profile
May 13, 2021:
Now the basic part is done, see the table and image below :)
Now worksNow doesn't work
file listing, downloading
basic symbols and macros
special:strings for translation
special:alias for custom macros
multi-threading
seems slower, sadly
file uploading
virtual file system
advanced symbols and macros
login, user management, banning, ......
« Last Edit: Yesterday at 01:34:27 PM by NaitLee »
Busy in school until late June, 2021.
Check out my template ;)


Offline danny

  • Tireless poster
  • ****
    • Posts: 266
    • 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: 144
  • 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 ;)