发明名称 Method of Adding Client Server Automation to Computer languages for Cloud Computing
摘要 A method for creating a process of computer programming without mandatorily distinguishing client side programming and server side programming and without mandatorily distinguishing server technologies, a new client server computer programming paradigm is created, in which there is not a distinguish between client side programming and server side programming, client server programming is done in a same way local programming is done.
申请公布号 US2016321038(A1) 申请公布日期 2016.11.03
申请号 US201514697639 申请日期 2015.04.28
申请人 Ge David Wei 发明人 Ge David Wei
分类号 G06F9/44;H04L29/06 主分类号 G06F9/44
代理机构 代理人
主权项 1. A method for creating a process of computer programming without mandatorily distinguishing client side programming, which is to develop computer code to run only at client computers, and server side programming, which is to develop computer code to run only at server computers, said process includes an execution environment and a preprocessor; said execution environment includes a client side dispatcher and a server side dispatcher; said process includes creating said client-side-dispatcher to be used in said execution environment, which comprises making server connections, uploading client data and server code to server, processing data downloaded from server, using downloaded values to imitate a code execution scope so that the downloaded values are accessible by callback functions, and invoking callback functions; said process includes creating said server-side-dispatcher to be used in said execution environment, which comprises processing uploaded client values, using uploaded values to imitate a code execution scope in the programming so that the uploaded values are accessible by server code to be executed, executing server code specified by the server connection made by the client side dispatcher, providing an application programming interface for server code to add download values to server response, forming server response to client request; said process takes over client server related programming tasks including generating client side code to be executed on client side, those parts of programming corresponding to the generated client side code are said to be in client execution context, generating server side code to be executed on server side, those parts of programming corresponding to generated server side code are said to be in server execution context, arranging callback functions to implement synchronous programming execution where client operations follow server operations; said process processes a programming by identifying client operations and server operations, identifying client server execution context switching points, inserting a server connection at every client server execution context switching point where client execution context switches to server execution context, identifying upload values for server connections, where upload values include state-values and client values needed by code to be executed at server, where state-values are server values from previous server connections and needed by code to be executed at server, creating a client callback function for a server connection for operations following a client server execution context switching point where a server execution context switches to client execution context, identifying download values for server connections, where download values are server values needed by client code in callback functions and by server code for subsequent server connections; said process identifies a client server execution context switching point by examining a programming statement under current execution context: if a programming statement is a server operation and current execution context is client then a client to server execution context switching point is identified to be before the programming statement, if a programming statement is a client operation involving server side values and the programming statement is not in a callback function for a server connection then a client to server execution context switching point is identified to be before the programming statement; said process identifies an execution context switching point where server execution context switches to client execution context by following criteria: if a programming statement is a client operation and current execution context is server then a server to client execution context switching point is identified to be before the programming statement.
地址 Kirkland WA US