plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).
http://plasma-umass.github.io/doppio-demo
MIT License
2.17k stars 176 forks source link

Using IndexedDB instead of LocalStorage if available #398

Closed ghost closed 8 years ago

ghost commented 8 years ago

Using indexedDB instead of LocalStorage could help store more classes at the client side. IndexedDB can hold as much as 500MB of data or even more on some browsers.

jvilk commented 8 years ago

Yup, I'm aware! You can actually mount IndexedDB into a file system for DoppioJVM via BrowserFS. You can also mount Dropbox, or implement your own backend. This has been possible for quite awhile, so I'm not sure where you heard only localStorage could be used! D:

Should I update the docs to use IDB by default?

ghost commented 8 years ago

It is written so in "Notes on Architecture/Library Support" on DoppioVM about page :). Good to hear that it is already supported.

ghost commented 8 years ago

I think that page is seriously out dated :)

jvilk commented 8 years ago

Whoa, where is that? Is that on the old demo page? If so, that's years outdated.

ghost commented 8 years ago

Yup, it even says it is written in CoffeScript :).

ghost commented 8 years ago

Let me ask you a quick question from this closed case. How much of java.lang.reflect.* is supported?

jvilk commented 8 years ago

It should all work.

jvilk commented 8 years ago

To give you some confidence: DoppioJVM can run a whole bunch of language implementations, such as Scala, Nashorn, and Jython, that make extensive use of runtime reflection, invokedynamic, etc. DoppioJVM supports it all, including new Java 8 features such as lambdas. :)

ghost commented 8 years ago

Awesome thank you very much.