PWP , Pascal-Web-Page , Pascal Web 开发脚本编译器开发笔记

       多年以来,我们用惯了 Pascal 来开发各种类似的程序和软件,得心应手,无所不能。唯独在 Web 开发和敏捷开发上有明显的不足。

网上也有几个开源的,但是性能和功能总是不理想。于是一直有自己动手,从底层做起,重新开发的冲动。


构思画图了两天,利用两个周末的时间,基本框架成型,已经可以投入生产环境使用。未来将用3-6个月的时间,继续的优化和完善。

目标: 

   1.   参考 ASP 和 PHP 的优点,性能上要达到 php 5.6 的水平。 

   2.  以 Delphi7 做为参考语言,全面兼容。 

   3.  程序框架以  FAST-CGI 的接口提供,需要配合 Nginx 等  Web Server 使用。 

   4.  支持 Windows/linux ,   32 位首选开发, 未来成熟后,添加64位支持。

   5.  支持命令行运行  pas 脚本。 性能和功能以  node.js 为参照,后期将命名为 node.pas 或者 something else.

   6.  脚本引擎支持解析执行, 也支持  JIT 编译。以字节码的方式执行。 大大提高性能。 参考了 paxCompiler. 

   7. 支持外部 DLL引入和使用。 可以通过挂接 DLL/SO  的模式,扩展脚本的功能。 

   8. 内核支持 DAO 数据库,消息队列, MEMCached, Json , XML , 字符串处理。 SQLite 等模块。 


开发语言 以  Delphi7  + Freepascal 两个。 可以交叉编译到不同的 OS 上。

网络框架采用 IOCP + EPOLL 模式,最大程度的提升网络相应。 


有兴趣的朋友,请加入 QQ 群:  226946446, 意见建议心得体会吐槽,统统都欢迎

转载于:https://my.oschina.net/lins2010/blog/649503

paxCompiler is an embeddable compiler of the Object Pascal, Basic and JavaScript programming languages. The key features of the paxCompiler are: The compiler generates machine code for Intel compatible processors (IA-32 architecture). It is possible to use the compiler as a scripting engine. You can embed the compiler into host application, register host-defined types, routines, variables and constants for the engine, read/write script-defined variables, call script-defined functions etc. You can save/load compiled scripts to/from a stream. The compiler was initially written in Borland Delphi as a set of Delphi components. TPaxCompiler, TPaxProgram and TPaxPascalLanguage are Delphi components that allows you to embed the paxCompiler into Delphi, Kylix or Borland C++ Builder application so you can customize and extend the application without having to recompile it. Source code of paxCompiler is compatible with Free Pascal 2.0. paxCompiler, implemented as paxcompilerlib.dll, can be used for scripting Microsoft Visual C++ applications. The compiler supports Object Pascal language based on the Delphi 7 standard. Syntax of Basic language is similar to VB.NET. Script-defined functions support register (Borland fastcall), cdecl, stdcall, safecall, pascal and msfastcall (Microsoft fastcall) calling conventions. Cross-language programming support. You can use Pascal units in Basic and JavaScript programs and vice versa. COM support. TPaxCompilerDebugger and TPaxCompilerExplorer components implement debugger (breakpoints, call stack, watches, step over, trace into, run to cursor, pause) and code explorer capabilities. Script-defined types support run-time information (RTTI). You can bind instances of script-defined classes with dfm files. You can import host-defined types with paxCompiler importer. You can create stand alone executable files. Support of compiled units and run-time packages. paxCompiler engine is thread safe. The roadmap of the compiler includes: Java compiler, C++ compiler, built-in assembler.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值