jlesk
Joined 17 years ago
Joined 17 years ago
The benchmark might seem like apples-to-oranges, but they both do templating & routing, which is what is being tested.
I also address this on the benchmark page:
Why compare a language to a framework?
1) THT takes a “batteries included” approach by providing essential web framework features.
2) Some might be worried that running a transpiled language would be too slow to run in production, and Laravel is arguably the best example of a production-ready PHP framework.
Also, yes it is essentially a new language. I don't expect anyone to rewrite large PHP applications in it, but people might consider it for new projects.
There are all kinds of permutations like that which can look like arbitrarily bad UI decisions if you don't know the greater context.
Might want to size it down and run it through TinyPNG. :)
But I also like the approach here of using Turtle as a way to introduce JavaScript syntax. :)
It also has a right directionality to imply that it has scope until the end of the line.
Triple-arrow is the same idea, but uses the convention that triple-characters are common for delineating multi-line blocks.
I can understand that it might not seem useful to you if you already have a stack you've invested in, or it just doesn't fit the kind of projects you are working on.
But I just wanted to respond to a few things. :)
> A) Come from a javascript background
It targets all web developers, who are all generally familiar with JavaScript. It aims to be another tool, not a total replacement for all projects.
> B) Want to deploy on cheap hosters where node isn't available?
Shared hosting is still a very popular way to run websites. And node is often overkill for basic CRUD sites.
> C) Don't care about performance
There is a big difference between not needing to support 100+ requests per second and "not caring". :) Out of the box, PHP is fast enough for a lot of apps, and the overhead of THT is not enough to be noticeable at that scale.
> don't mind the additional complexity of the transpiler
There are no build steps, so the extra complexity just involves running the initial setup script. After that, you drop in new files and update them like you would with PHP. Ideally, it won't feel more complex than any other framework.
> Can this even leverage the enormous PHP ecosystem?
This is on the roadmap. Though there are still plenty of projects that don't use 3rd party libraries and could be built with THT as it is today.
I personally have never needed to use composer, etc. in my projects, but it's still something I am looking to support.
Thanks!
Sometimes you just need a handful of dynamic pages that you want to put up on a shared host somewhere. PHP is great for that.
https://crockford.com/javascript/tdop/tdop.html
I referenced it often when I implemented THT. (https://tht.help)
https://jobs.netflix.com/culture
It's not just marketing fluff. It really does a good job of reflecting what it's like to work there, and is taken seriously by everyone from the top down.
As I mentioned elsewhere in this thread, it's not a competitive environment, and I've experience very little politics and drama. Those things are explicitly counter to the culture.
As for long hours, while the work day can be pretty intense, the office is usually empty by 5-6pm.
Hope that helps.