News for hackers. Stuff that matters.
Re:Hunt: A high-level D Programming Language Web framework by amelius on Monday May 04, 2020 @04:06PM (#23072667)
You could speculatively run stuff on the client and run it on the server, to achieve a speedup.

But there are many more usecases. For example, decoding and encoding of messages between client and server. Hashing stuff. The list is endless. I think that once you have experienced programming in the same language on client and server, you simply don't want to go back to the "split brain" kind of programming.

Re:Hunt: A high-level D Programming Language Web framework by realharo on Tuesday May 05, 2020 @03:30AM (#23077434)
>decoding and encoding of messages between client and server

You can generate the message types and communication functions from a shared schema, e.g. gRPC/GraphQL/Swagger and many others, which will also lead to looser coupling and hopefully proper API version/change management.

I feel like unless you're using JavaScript/TypeScript on the server, most of the benefits of a shared language and framework will be negated by the lack of easy access to the web frontend ecosystem. (This may not be true for isolated shared modules that are oblivious to the UI, e.g. validation logic, where the surface area between it and the rest of the client code is maybe one or two functions.)

Re:Hunt: A high-level D Programming Language Web framework by traes on Monday May 04, 2020 @06:01PM (#23073856)
I think they are referring to running the same applications on client and server, not just the same language.