Live data from Hacker News

Web Applications from the Future: A Database in the Browser

stopa.io

31–40 of 75 posts

Re: Web Applications from the Future: A Database in the Browser

#31

Having been a dev on EtherPad, Google Wave, Coda, and other real-time collaborative apps with OT, undo, and so on... I think it's correct that, ideally, there would be a framework that handles real-time collaboration, undo/redo, and offline support for you, and then you build your app with these problems already solved. I will probably create such a framework eventually. I don't see it as a database engineering probl…

something like Microsoft's Fluid Framework ?

Re: Web Applications from the Future: A Database in the Browser

#32
post #23

To me it always come down to permissions. I've tried firebase, I've tried graphql. I just can't use them for anything other than admin endpoints or things with very simple permissions. I'm glad the author mentioned permissions, but I would need to see some seriously compelling evidence that I could trust a declarative, resource-based permissions system to accomplish what I need.

> declarative, resource-based permissions system

Isn't this how AWS does it?

Re: Web Applications from the Future: A Database in the Browser

#33

Having been a dev on EtherPad, Google Wave, Coda, and other real-time collaborative apps with OT, undo, and so on... I think it's correct that, ideally, there would be a framework that handles real-time collaboration, undo/redo, and offline support for you, and then you build your app with these problems already solved. I will probably create such a framework eventually. I don't see it as a database engineering probl…

I’m exploring the ideas (an easy to use framework to build local-first [1] apps) in my library Reactive-CRDT (https://github.com/yousefed/reactive-crdt). Feedback welcome!

All credit for the underlying tech to YJS, which has been amazing as mentioned by others in this thread.

[1]: https://www.inkandswitch.com/local-first.html

Re: Web Applications from the Future: A Database in the Browser

#34

Having been a dev on EtherPad, Google Wave, Coda, and other real-time collaborative apps with OT, undo, and so on... I think it's correct that, ideally, there would be a framework that handles real-time collaboration, undo/redo, and offline support for you, and then you build your app with these problems already solved. I will probably create such a framework eventually. I don't see it as a database engineering probl…

Very excited to hear this!

Re: Web Applications from the Future: A Database in the Browser

#35
post #14

Earlier quoted context omitted.

Where would one go to follow along if you start building this framework? You’ve got one pending GH star from me :)

You could start by watching the Fluid Framework github.com/microsoft/fluidframework (I'm a dev on the team). We solve a lot of these problems. This whole article speaks to the longer term vision. Even the article's Title is effectively our internal pitch: a web first database... that enables very low latency collab

Brought a smile to read this comment. Will look deeper on fluid framework — rooting for ya’ll!

Re: Web Applications from the Future: A Database in the Browser

#36

This is an incredibly well-written article and helps track and rationalize some of the trends I've been seeing as well around backends as a service that enable developers to easily spin up modern web applications Thanks so much for writing it!

Thanks for the kind words!

Re: Web Applications from the Future: A Database in the Browser

#37
There is a very handy RDF DL subset that has all of the desired properties described in the article.

Funnily enough we are targeting the browser AND FPGAs, and I think the latter is the much more interesting use case for a distributed reactive CRDT-like database.

Datalog is actually trivial to incrementally materialize in open world semantics. Which is why datomic (while a great foundation in theory) turns out to be non ideal. TxnIDs and retractions are essentially nonmononic negation in disguise, and CALM (consistency as logical monotonicity) a.k.a. distributedness, doesn't go well with that.

Seeing that we're not the only ones dreaming of this gives me hope though, that we might get out of the tar pit someday.

Re: Web Applications from the Future: A Database in the Browser

#38

this comment turned into a bit of a personal rant, apologies. I really liked this post, because it touches on so many things that I have to build as well at the moment. I'm building a configuration management interface; the front-end is basically authentication and heaps of forms, the back-end transforms it into XML and uses some shell scripts to rsync them to servers and SNMP to trigger a deployment. But the users h…

Empathize with you, and from the writing I am sensing the stress you are in.

One thought that may help:

As an engineer, your job is to communicate risks. You can’t control whether this becomes impossible, but you can control how you work on it and how you communicate.

One way to do this is to keep an up to date design document with progress and risks. Looks like there are some issues that are worrying you. If mot already would write it out and get thoughts from stakeholders.

Rooting for you!

Re: Web Applications from the Future: A Database in the Browser

#39
post #23

To me it always come down to permissions. I've tried firebase, I've tried graphql. I just can't use them for anything other than admin endpoints or things with very simple permissions. I'm glad the author mentioned permissions, but I would need to see some seriously compelling evidence that I could trust a declarative, resource-based permissions system to accomplish what I need.

Facebook’s EntFramework did this _very_ well. I haven’t come across any essays that go deeply on it, but maybe from this comment someone will suggest an essay / if they are ex-fb write it up.

Re: Web Applications from the Future: A Database in the Browser

#40
post #2

I don't mind the technical discussion at all, it's a fun write-up, but if you "look at the the ecosystem of web applications and measure by difficulty" and find the most difficult possible app you can, and using that to shape your vision of how to build web apps, lionize what a web app is, I think one is very very liable to end up with a completely non-web monster that ignores many of the strongest strengths of appli…

I feel like rendering stuff like this is almost a violation of net neutrality. Large companies can spend lots of money on server-side compute and subsidize an experience that can't be replicated sustainably by smaller companies.
Post reply on HN