📜 ⬆️ ⬇️

Microapplets

In his last article - Microhosting microsites, uin ainu said:

I would be pleased to see the use of microsites anywhere else. The technology is not mine personally. It should be public.

Well, it is said - done. :-)
')
I present to you the next round of micrositing - microapplets.

Microapplets are made on the basis of micro-siting , but unlike the latter, they are more similar to program execution. Those. these are programs that can be executed in ... comments . Indeed, the mechanisms proposed by ainu are quite enough - not only for creating microsites, but for implementing a kind of virtual machine that has RAM in the form of a session, and a program in the form of a php script.

And as an example of such an application, I made the implementation of all of you a well-known game - Minesweeper.

... You can also easily write a calculator, tic-tac-toe, and if you really try - then a text editor or even something like a Turing Machine . I do not see anything particularly difficult in this.

Immediately I warn you - because of the large number of requests (which, by the way, are executed fairly quickly), the application can run slowly, and due to habraeffekt, my server can go to the field. Then I’ll post the source code (... well, I’ll post it already, it’s just lazy now) and continue on my own servers. :-))

Even anticipating comments, I’ll say right away - yes, I’m really weak to write microQuake and microWarcraft . If you want - you can try it yourself. :-)

And in conclusion: the idea of ​​the mechanism certainly belongs to ainu , I just continued his initiatives a little. Thank him so much. :-) By the way, if such noodles went, maybe it’s time to create a separate blog? I feel that the idea will go far in the future.

Source: https://habr.com/ru/post/40422/


All Articles