工大后院

 找回密码
 加入后院

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
查看: 3731|回复: 1

一种挺有趣的解析语言 Pike

[复制链接]
发表于 2004-2-14 22:27 | 显示全部楼层 |阅读模式
从LPC发展而来的(可以这么说)。但单从现在的语法来说,很像Perl(据说的。因为我没学过Perl,不清楚是否相似)。还有其他的比如Java等语言的影子。某期的程序员杂志称Pike正向Java方向发展,ft.

效率挺高,据说挺出名现在。
但国内还没出现用Pike写的MUD Engine,国外我只见过YumeMUD 是用Pike的。
可能因为现在Pike的功能强大很多了,相对LPC来说,所以应该不局限于文字游戏引擎编写。而且Pike加入了Graphics Interface,还是真是变态...

有兴趣的可以看看,算是很特别的一种语言了。
官方网站
http://pike.ida.liu.se/


What is Pike?
Pike is an interpreted, object-oriented programming language. It looks a bit like C and C++, but it is much easier to learn and use. It can be used for small scripts as well as for large programs.

Pike is

high-level and powerful, which means that even very complex things are easy to do in Pike,


object-oriented, which means that you can use modern programming techniques to divide a large program into small pieces, which are much easier to write than it would be to write the entire program at once,


interpreted, which means that you don't have to wait for a program to compile and link when you want to run it,


one of the fastest "scripting" languages available,


garbage-collected, which makes programming much simpler, and also removes the risk for memory leaks and other memory-related bugs,


easy to extend, which means that you can create plug-ins, written in Pike as well as in C or C++, and integrate them with the rest of Pike.


Pike can be used to write small and simple scripts, and also for very large programs: the World Wide Web servers Roxen WebServer and Caudium are both written in Pike. Pike's advanced data types and built-in support for sockets makes it ideal for use in Internet applications.

Pike is free software, distributed under the GNU General Public License (GPL), GNU Lesser General Public License (LGPL) and Mozilla Public License (MPL). Pike is available for many operating systems, among them Linux, Solaris and Microsoft Windows.
 楼主| 发表于 2004-2-14 22:31 | 显示全部楼层
官方的文档我看了一点。Pike的OO概念算是很奇怪的拉...
文件就是一个Object.
Object里的函数或是变量或其他的一些东西都当成是Object的一种属性,一定的条件下可以修改.
还有很多其他的一些特性都挺有意思的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入后院

本版积分规则

QQ|Archiver|手机版|小黑屋|广告业务Q|工大后院 ( 粤ICP备10013660号 )

GMT+8, 2024-5-15 08:40

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表