rejetto forum

The Python Template Interpreter (PTI) Plan: suggestions?

0 Members and 1 Guest are viewing this topic.

Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 165
  • Computer brained boy
    • View Profile
    • A Normal Webpage
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 and site :D, it's named phfs because it also has a server!

Poll: Which priority should I choose?
« Last Edit: May 29, 2021, 11:20:42 AM by NaitLee »
Check out my template and PHFS ;)


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 165
  • Computer brained boy
    • View Profile
    • A Normal Webpage
May 13, 2021:
Now the basic part is done, see the table and image below :)
Now worksNow doesn't work
file listing, downloading, uploading, archiving, searching
accounts & login
some symbols and macros
special:strings for translation
file actions
multi-threading
seems slower, sadly
virtual file system
limits, ban, ......
« Last Edit: August 24, 2021, 11:43:20 AM by NaitLee »
Check out my template and PHFS ;)


Offline danny

  • Tireless poster
  • ****
    • Posts: 273
    • 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: 165
  • Computer brained boy
    • View Profile
    • A Normal Webpage
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 :)
Check out my template and PHFS ;)