introduce a new technology that may replace php

Discussion in 'PHP' started by lotusin1, Feb 6, 2012.

  1. #1

    As we know. Web apps need to write client side and server side scripts by php,jsp,cgi or fastcgi etc. and Static html file need to write by HTML. So normally we need to merge both html and dynamic scripts into one web file. This make web design and scripts coding two types of work. Even two types of professional skill to our career. Certainly this type of divide have it’s rationality because web deign and dynamic programming have their characters each. But it also make incovenient. If a web designer want to write some simple dynamic business logic. The designer need to call an programmer(php,asp,jsp,java,cgi) to implement it because use php or other languages to develop needs bits of skill.


    Html is made for interface represtation. Even every one in the web industry should know a bit of html. Is it possible to make html's extension get more usage? Like writing some dynamic scripts? To Low Technical Difficulties and save the money. Just write several lines of html to replace hundreds lines of php?

    The difficulty is that html is not designed for dynamic scripts coding. So introduce some new “HTML” tags. Use these tags to boost the web developing. This is new technology that called tagcgi.

    There are two open source projects using tagcgi that files are purely written by HTML without any server side scripts like php,jsp….
    The one is Cgiblog whih is a open source blog system that only have eighty lines of “html”. If you implement is by php. This will cost thousands of lines. cgiblog even can faster than fastcgi c++ in server side benifit from the framework of tagcgi.

    The other is rtupdate that is a open source forum which can update by real time(auto refreshing content)
    This is the performance comparsion between php and tagcgi according to wordpress,typecho,lighttpd fastcgi c++ and tagcgi.

    [​IMG]
    if this new tech can approaching further. May be more people would prefer to use the html to describe what my app is other than tell computer by the steps of how to do.


    reference from cgiblog.com
     
    lotusin1, Feb 6, 2012 IP
  2. awood969

    awood969 Member

    Messages:
    186
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    40
    #2
    HTML is simply a set of tags, trying to make any dynamic language from it is silly, it has massive overheads, is human readable and has no set strucure on how it is to be processed (despite all of W3C's best efforts).

    The focus should be more on getting software style development into the browser. The web is a perfect candidate for MVC development and this its will allowing designers to focus on the view while programmers worry about the model, the browser acts as the controller between the 2 (i.e. linking CSS id's to HTML id's).

    This is the way the industry is moving, look at Chrome's new innovation to move a C style language to Chrome, so that native code may be written and compiled into binary to then run. Although this makes things very "Chrome Specific" it is a step in the right direction.

    I think the idea you propose has a lot of flaws in terms of scale, speed and security, which are of course the only 3 thing people are worried about when designing a new language.

    Thanks
    Andrew
     
    awood969, Feb 9, 2012 IP
  3. lotusin1

    lotusin1 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    As we all knew. HTML is not designed for dynamic programming. but
    actually lots of web developing just arranging, composting, manipulating the data or simple calculation. It is very common and easy things to be conducted by extensions of HTML. It is just
    interpreting the data.

    When you meet the complex thing. You could write codes only with relationship with the "logic" but not for the web format conducting. It is treated as server side expansion by c++.

    Through this. The performance of codes execution enhanced and simplify most of web developing work.
     
    lotusin1, Feb 9, 2012 IP
  4. lotusin1

    lotusin1 Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Actually. Most of "HTML TAG" is the functions moving to the browser's part as you mentioned. Part of them have specifical meaning at the server side with the expansion of web server or c++ modules addon.

    I believe you are professional in web industry so I would rather say more if you interesting about the idea.

    Performance with this style of coding will enhance dramatically through the testing result.
    About security. It is the basic model with similar to fastcgi c++ but c++ expansion seldom occur to most of developers. In the core of the web system. There is an security level been added into every actions which be conducted as "unit". Actually. The most important point is on the level which make cc attack nearly unrealistic.
    There is distribute idea which can make dynamic content caching in real time with the similar performance of static file caching.


    I am in my doctor learing process about computer security and programming. very welcome to make deeper with the help of you.
     
    Last edited: Feb 9, 2012
    lotusin1, Feb 9, 2012 IP