TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Goro – An implementation of PHP written in Go

144 pointsby stp-ipover 6 years ago

17 comments

muglugover 6 years ago
&gt; PHP is a nice language but is having trouble keeping up with modern languages<p>It&#x27;s only &quot;having trouble&quot; because it can&#x27;t change its API from month to month to match whatever&#x27;s in vogue. A majority of the web still runs on some variant of PHP, and that guarantees that it&#x27;s not dying anytime soon.<p>More broadly, it seems the author wants to create a version of PHP that&#x27;s not focussed on web requests, which is sort of the entire point of PHP.
评论 #18538414 未加载
评论 #18538835 未加载
评论 #18538078 未加载
评论 #18538093 未加载
评论 #18538556 未加载
评论 #18538241 未加载
johnwheelerover 6 years ago
Interesting. This is a repo from Mark Karpeles, the former MtGox CEO
评论 #18537947 未加载
评论 #18537960 未加载
krappover 6 years ago
One of the most &quot;hip to hate&quot; languages implemented in one of the most &quot;hip to love&quot; languages...
评论 #18538217 未加载
评论 #18538058 未加载
评论 #18538793 未加载
TheDongover 6 years ago
A perfect example of error handling in go in the wild:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;MagicalTux&#x2F;goro&#x2F;blob&#x2F;3cb3dfe0eef910c03e415e68ca29d7928c14e68a&#x2F;core&#x2F;compile-for.go#L117-L152" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;MagicalTux&#x2F;goro&#x2F;blob&#x2F;3cb3dfe0eef910c03e41...</a><p>More php interpreters is of course nice.
评论 #18538099 未加载
tyingqover 6 years ago
<i>&quot;Better caching of compiled code by allowing sharing of compiled or live objects (classes, objects, etc) between running PHP scripts&quot;</i><p>I&#x27;m a little confused on this piece, as PHP does have a cross process opcache. People also use things like apcu to share userspace things across processes (uses mmap).
评论 #18537751 未加载
hbcondo714over 6 years ago
For C#, checkout PeachPie which allows you to run PHP applications on .NET Core including WordPress - <a href="https:&#x2F;&#x2F;www.peachpie.io&#x2F;2017&#x2F;02&#x2F;wordpress-announcement.html" rel="nofollow">https:&#x2F;&#x2F;www.peachpie.io&#x2F;2017&#x2F;02&#x2F;wordpress-announcement.html</a>
评论 #18538918 未加载
pippyover 6 years ago
Why is mcrypt listed as a future extension? it&#x27;s removed in the latest PHP version and probably best to not even bother with
PunchTornadoover 6 years ago
&gt; PHP is having trouble keeping up with modern language<p>which are these modern languages and which are the cases where it is not keeping up?<p>IMO PHP is one of the languages where development is really quick and the ecosystem is flourishing.
评论 #18537836 未加载
azhenleyover 6 years ago
Any chance someone wants to do a benchmark to compare the performance of this to other PHP implementations?
评论 #18538059 未加载
Aeolunover 6 years ago
But... why?<p>If you are going to write a go program to run PHP to use go specific features, why use PHP at all?
评论 #18538094 未加载
jacob019over 6 years ago
Can I run WordPress on it today?
评论 #18537930 未加载
cozzydover 6 years ago
Does it reproduce the ternary operator order &quot;feature?&quot;
tbrockover 6 years ago
Maybe this one will free some memory once in a while.
rs86over 6 years ago
Funny how so much is missing. I mean what does work?
评论 #18538056 未加载
utam0kover 6 years ago
Awesome.
EGregover 6 years ago
What I want to know is, can I just compile PHP under iOS and Android and run it?<p>Why doesn’t PHP work out of the box on those systems if compiled?
Solar19over 6 years ago
I don&#x27;t like unnecessary layers. Interpreted languages waste silicon and energy. I&#x27;ve heard startups justify using Ruby or PHP by saying &quot;servers are cheap&quot;, which is just a bad engineering mindset.<p>Instead of building PHP apps on a PHP platform built in Go, people should just build apps in Go. Or in C++, D, Nim, F#, C#, or even Java 8 or 10 with that new AOT compiler. (I think F# and C# can also be compiled in advance with CoreRT, but even if they can&#x27;t, they&#x27;re a huge upgrade over any interpreted language.)<p>I would mention Rust except that it&#x27;s terrible. All popular programming languages in our timeline are bad, and deter millions of smart people from the profession. But Rust is extraordinarily bad and should be replaced.
评论 #18538745 未加载
评论 #18549013 未加载
评论 #18538750 未加载