TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Kira - A language that compiles to PHP

13 点作者 mk将近 17 年前

5 条评论

Zak将近 17 年前
I like the idea of a something-not-evil to PHP compiler, but I don't think this looks like the kind of language I had in mind. I can't help but think this is the malformed offspring of breeding ML with C#.
aasarava将近 17 年前
It seems like there could be some performance benefits in pre-compiling or "pre-parsing" PHP. For instance, the compiler could copy specific functions or classes from an include file and save them right into the script where they're actually used -- therefore eliminating the performance hit of managing include files at runtime.<p>Now, as to whether there's a benefit to learning an entirely new language in order to do this, I'm not so sure. Why not extend (and simplify) PHP while still using PHP syntax and grammar, the way jQuery does for JavaScript?
评论 #226978 未加载
koblas将近 17 年前
While it's novel that it's compiling to PHP, you're still at the mercy of PHP as a language and what it has to offer. For instance, PHP lacks a true closure so if Kira want's one it'll have to build out a full system...<p>C++ : C =&#62; Kira : PHP
评论 #226587 未加载
评论 #226646 未加载
ComputerGuru将近 17 年前
I can't imagine wanting to convert another language to PHP, except for JavaScript maybe but that's not exactly useful. Now converting PHP to a different, more-useful language? that would be something :)
评论 #226752 未加载
评论 #226582 未加载
omouse将近 17 年前
Kira doesn't look like fun to program in, but the idea of translating to PHP is interesting.