www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Laravel for DLang? I want create it!

reply zoujiaqing <zoujiaqing gmail.com> writes:
[Laravel](https://laravel.com/) is the most popular web framework 
in PHP. It is easy to use and easy to maintain.

We currently have [hunt 
framework](https://github.com/huntlabs/hunt-framework) as a web 
framework, but in the process of using it, users need to learn 
more unique usages. We hope to re design a new web framework 
based on laravel's design method. So that more people can simply 
and quickly use D programming language to develop web application 
server and restapi server.

At the same time, it is convenient for more PHP developers to use 
D programming language for web application development.

I'd like to hear your suggestions and expectations for such a web 
framework.
May 18
next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Tuesday, 18 May 2021 at 10:09:43 UTC, zoujiaqing wrote:
 [Laravel](https://laravel.com/) is the most popular web 
 framework in PHP. It is easy to use and easy to maintain.

 We currently have [hunt 
 framework](https://github.com/huntlabs/hunt-framework) as a web 
 framework, but in the process of using it, users need to learn 
 more unique usages. We hope to re design a new web framework 
 based on laravel's design method. So that more people can 
 simply and quickly use D programming language to develop web 
 application server and restapi server.

 At the same time, it is convenient for more PHP developers to 
 use D programming language for web application development.

 I'd like to hear your suggestions and expectations for such a 
 web framework.
Interesting. Just a quick question. Have you tried Diamond?
May 18
prev sibling next sibling parent reply zjh <fqbqrr 163.com> writes:
jia you!
May 18
parent zoujiaqing <zoujiaqing gmail.com> writes:
On Tuesday, 18 May 2021 at 15:41:39 UTC, zjh wrote:
 jia you!
xie xie !
May 19
prev sibling next sibling parent reply aberba <karabutaworld gmail.com> writes:
On Tuesday, 18 May 2021 at 10:09:43 UTC, zoujiaqing wrote:
 [Laravel](https://laravel.com/) is the most popular web 
 framework in PHP. It is easy to use and easy to maintain.

 We currently have [hunt 
 framework](https://github.com/huntlabs/hunt-framework) as a web 
 framework, but in the process of using it, users need to learn 
 more unique usages. We hope to re design a new web framework 
 based on laravel's design method. So that more people can 
 simply and quickly use D programming language to develop web 
 application server and restapi server.

 At the same time, it is convenient for more PHP developers to 
 use D programming language for web application development.

 I'd like to hear your suggestions and expectations for such a 
 web framework.
I happen to be using Laravel more these days at work and I thought Hunt looks quite similar. What I didn't quite like were: 1) Passing data to the view in hunt isn't as clean as Laravel's way of passing data to blade 2) Unlike eloquent (as used in Laravel), the database module of hunt felt too cumbersome to use... too much boilerplate. 3) setting up routes and config in hunt is done with .ini file. Personally world prefer doing that in D code. In Laravel, its al done in PHP code. 4) Great web docs. That's one reason why I got up to speed with Laravel quickly. The docs is just soo good. That's pretty much what comes to mind... simplicity, elegance and consistency. Newest version of Laravel is much more simplified so that should be a goal.
May 18
parent zoujiaqing <zoujiaqing gmail.com> writes:
On Tuesday, 18 May 2021 at 20:55:31 UTC, aberba wrote:
 On Tuesday, 18 May 2021 at 10:09:43 UTC, zoujiaqing wrote:
 [Laravel](https://laravel.com/) is the most popular web 
 framework in PHP. It is easy to use and easy to maintain.

 We currently have [hunt 
 framework](https://github.com/huntlabs/hunt-framework) as a 
 web framework, but in the process of using it, users need to 
 learn more unique usages. We hope to re design a new web 
 framework based on laravel's design method. So that more 
 people can simply and quickly use D programming language to 
 develop web application server and restapi server.

 At the same time, it is convenient for more PHP developers to 
 use D programming language for web application development.

 I'd like to hear your suggestions and expectations for such a 
 web framework.
I happen to be using Laravel more these days at work and I thought Hunt looks quite similar. What I didn't quite like were: 1) Passing data to the view in hunt isn't as clean as Laravel's way of passing data to blade 2) Unlike eloquent (as used in Laravel), the database module of hunt felt too cumbersome to use... too much boilerplate. 3) setting up routes and config in hunt is done with .ini file. Personally world prefer doing that in D code. In Laravel, its al done in PHP code. 4) Great web docs. That's one reason why I got up to speed with Laravel quickly. The docs is just soo good. That's pretty much what comes to mind... simplicity, elegance and consistency. Newest version of Laravel is much more simplified so that should be a goal.
Thanks! 1) Hunt framework uses the syntax of twig template engine. At present, blade is only used for scripting languages, such as PHP and JSP. 2) Eloquent is much simpler than entity. In this aspect, we will study the usage of eloquent and see how to implement it in D language. 3) If the configuration is written in D language, it will not be modified after compilation. 4) Laravel's documentation is really great, we will be like laravel's documentation!
May 21
prev sibling parent reply russhy <russhy gmail.com> writes:
On Tuesday, 18 May 2021 at 10:09:43 UTC, zoujiaqing wrote:
 [Laravel](https://laravel.com/) is the most popular web 
 framework in PHP. It is easy to use and easy to maintain.

 We currently have [hunt 
 framework](https://github.com/huntlabs/hunt-framework) as a web 
 framework, but in the process of using it, users need to learn 
 more unique usages. We hope to re design a new web framework 
 based on laravel's design method. So that more people can 
 simply and quickly use D programming language to develop web 
 application server and restapi server.

 At the same time, it is convenient for more PHP developers to 
 use D programming language for web application development.

 I'd like to hear your suggestions and expectations for such a 
 web framework.
Focus should be on compilation time, i tried both vibe/hunt, and they suffer from horrible iteration time because of their massive use of std/templates https://github.com/huntlabs/hunt-http/issues/20 Have to compete with GO and their fast iteration time For information, my (personal) project without std import fully recompile in 0.5 seconds, so it is possible with D to achieve faster iteration time than GO, wich will be something worth mentioning for marketing purposes
May 23
parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
On 5/23/21 3:37 PM, russhy wrote:
 On Tuesday, 18 May 2021 at 10:09:43 UTC, zoujiaqing wrote:
 [Laravel](https://laravel.com/) is the most popular web framework in 
 PHP. It is easy to use and easy to maintain.

 We currently have [hunt 
 framework](https://github.com/huntlabs/hunt-framework) as a web 
 framework, but in the process of using it, users need to learn more 
 unique usages. We hope to re design a new web framework based on 
 laravel's design method. So that more people can simply and quickly 
 use D programming language to develop web application server and 
 restapi server.

 At the same time, it is convenient for more PHP developers to use D 
 programming language for web application development.

 I'd like to hear your suggestions and expectations for such a web 
 framework.
Focus should be on compilation time, i tried both vibe/hunt, and they suffer from horrible iteration time because of their massive use of std/templates
Yes, compilation time is a huge problem with introspection-based web development. I have heard earlier that diamond is better, but I've never tried it. I have vague plans to make my own framework with a focus on compilation and development speed. I think there are ways to make it work. Essentially, I would make a "development" config, and a "release" config, where the former foregoes compile-time duck typing and compile-time generation of HTML, and the latter uses the same code but uses lots of introspection and inlining to optimize the hell out of it. With D I think it's eminently possible.
 For information, my (personal) project without std import fully 
 recompile in 0.5 seconds, so it is possible with D to achieve faster 
 iteration time than GO, wich will be something worth mentioning for 
 marketing purposes
Excellent! -Steve
May 23
parent Adam D. Ruppe <destructionator gmail.com> writes:
On Sunday, 23 May 2021 at 20:47:45 UTC, Steven Schveighoffer 
wrote:
 Yes, compilation time is a huge problem with 
 introspection-based web development.
Yes, but some things are worse than others. My demo LMS compiles from scratch in 2.5 seconds. If you lose some of the features like the runtime script interpreter, you can get that down to 1.5 seconds... but the runtime script interpreter is overall a win because it lets you avoid some rebuilds entirely. If you abandon the introspection you get down to about 0.8s but I think that cost is worth it.
May 23