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.

THT v0.2.0 – a language that compiles to PHP

20 pointsby jleskalmost 7 years ago

5 comments

marsroveralmost 7 years ago
&gt; a language that compiles to PHP<p>As I scroll through the page...<p>&gt; familiar JavaScript like syntax<p>&gt; provides a Perl module<p>From what depths of hell did this arise?
评论 #17332477 未加载
pmxalmost 7 years ago
&gt;You want a JavaScript-like language for server-side development, but without the complexity of Node.js<p>I think if node is too complex for you then perhaps you should find another career&#x2F;hobby.
评论 #17334307 未加载
mrunkelalmost 7 years ago
While I can appreciate the good intentions of the developers, for me, this just screams waste of effort. I can&#x27;t see a way that this will ever gain widespread acceptance.<p>Can this even leverage the enormous PHP ecosystem? ie, composer, <a href="https:&#x2F;&#x2F;github.com&#x2F;guzzle&#x2F;guzzle" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;guzzle&#x2F;guzzle</a>, <a href="https:&#x2F;&#x2F;github.com&#x2F;thephpleague&#x2F;flysystem" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thephpleague&#x2F;flysystem</a>, etc.<p>From what I understand this targets developers who: A) Come from a javascript background and B) Want to deploy on cheap hosters where node isn&#x27;t available? and C) Don&#x27;t care about performance and don&#x27;t mind the additional complexity of the transpiler.<p>Seems like a pretty small target audience.
评论 #17340463 未加载
_sdegutisalmost 7 years ago
This looks like a great transitional framework for people who need to support existing PHP code or infrastructure and aren’t ready to make the jump to React just yet.
jettialmost 7 years ago
I&#x27;m curious as to the design decisions behind the THTML[1]. Some of them, like the double or triple arrow tags seem like they are going to be confusing in practice. It becomes a constant question or intent or typo (at least in my mind).<p>[0] <a href="https:&#x2F;&#x2F;tht.help&#x2F;reference&#x2F;thtml" rel="nofollow">https:&#x2F;&#x2F;tht.help&#x2F;reference&#x2F;thtml</a>
评论 #17343799 未加载