News for hackers. Stuff that matters.

Ask HN: Why are there no popular web frameworks merging front- and backend?

Dear HN community, I am wondering why I couldn't find any web frameworks which abstract the network boundary between frontend and backend. Developing in this kind of framework would feel like developing one single app, with a single entry point and a global namespace including both frontend and backend.

Are you aware of anything like that and I just missed it? Or is such framework just an unrealistic idea?

( 7 comments | on HN )
Re:Ask HN: Why are there no popular web frameworks merging f... by Svenskunganka on Monday February 19, 2018 @07:29AM (#16412446)
From the top of my head, Meteor[0] is such a framework. Last time I used it (years ago), it was quite the vendor lock-in. Only supported MongoDB, and almost every library you wanted to integrate had to be wrapped in some way and it didn't scale well at all, felt extremely heavy. A simple Todo app and you had more than a MB of client-side JS that needed to be loaded. It has probably improved since then though.

[0]: https://www.meteor.com/

Re:Ask HN: Why are there no popular web frameworks merging f... by julvo on Monday February 19, 2018 @11:55AM (#16413972)
Thank you, meteor is probably the closest to what I'm looking for I came across so far.
Re:Ask HN: Why are there no popular web frameworks merging f... by elviejo on Tuesday February 20, 2018 @06:07AM (#16419424)
http://opalang.org

Write simultaneously the frontend and backend code, in the same language, within the same module. Even better: the Opa Slicer automates the calls between client and server.

Re:Ask HN: Why are there no popular web frameworks merging f... by dothis on Monday February 19, 2018 @07:31AM (#16412456)
I don't see a reason to to that. To me that sounds like making a printing press of paper. Or a newspaper of steel.
Re:Ask HN: Why are there no popular web frameworks merging f... by julvo on Monday February 19, 2018 @11:46AM (#16413906)
To speak in this metaphor: I am looking for a framework which allows me to specify only the final newspaper. A suitable printing press and the paper should be generated by the framework.
Re:Ask HN: Why are there no popular web frameworks merging f... by stargrazer on Monday February 19, 2018 @07:36AM (#16412480)
Re:Ask HN: Why are there no popular web frameworks merging f... by julvo on Monday February 19, 2018 @11:48AM (#16413928)
Thank you, that looks interesting. I'll have a closer look, but from what I see it goes into the right direction.