Re: [dev-servo] IndexDB project

2016-01-04 Thread Jan Jansen
Hi Shing, On 12/21/2015 06:48 AM, Shing Lyu wrote: > Hi Jan, > > Great, so is there anything I can help with the SQLite4 binding? Do you > have an open repo on GitHub? https://github.com/farodin91/sqlite-rs/blob/master/src/main.rs#L95-L105 If i run this example, it exit with error code 11, after

Re: [dev-servo] IndexDB project

2015-12-20 Thread Shing Lyu
Hi Jan, Great, so is there anything I can help with the SQLite4 binding? Do you have an open repo on GitHub? Sorry I didn't get you on "I didn't want to start implementing in servo, we have a selected data store.", are you trying to say we need to select a data store or we already have a data sto

Re: [dev-servo] IndexDB project

2015-12-17 Thread Josh Matthews
We still don't have any persistent storage in Servo, such as a profile folder. I would be fine with adding a command line option to provide a profile directory, or creating a temporary directory if none is provided. On 2015-12-17 3:17 AM, Jan Jansen wrote: Hi Shing, I start working on write a

Re: [dev-servo] IndexDB project

2015-12-17 Thread Jan Jansen
Hi Shing, I start working on write a wrapper for SQLite 4. This are my first bindings, so I had some trouble with selecting correct types. Then stop working on it the last weeks. I had lot of work for my current therm. With the beginning of winter vacations I have more time. I didn't want to

Re: [dev-servo] IndexDB project

2015-12-17 Thread Jan Jansen
Hi I mentioned my interest to work on github sometimes ago. I think it is possible split work. Regards, Jan > On 16 Dec 2015, at 11:13, Shing Lyu wrote: > > Haha, I don't really need to choose IndexDB. > > If you guys think IndexDB is not valuable for Servo, can you suggest > something I ca

Re: [dev-servo] IndexDB project

2015-12-16 Thread Shing Lyu
Hi Jan, Cool! So how's your progress so far? Do you have a plan or roadmap so we can work together? Regards, Shing 2015-12-17 0:20 GMT+08:00 Jan Jansen : > Hi > I mentioned my interest to work on github sometimes ago. I think it is > possible split work. > > Regards, > Jan > > > On 16 Dec 2015,

Re: [dev-servo] IndexDB project

2015-12-16 Thread Shing Lyu
Haha, I don't really need to choose IndexDB. If you guys think IndexDB is not valuable for Servo, can you suggest something I can work on, which is: * Easy for beginner * Does not have a tight deadline, will not block any critical feature (since I have very limited time to work on Servo) * Not aut

Re: [dev-servo] IndexDB project

2015-12-15 Thread James Graham
On 15/12/15 03:20, Shing Lyu wrote: Hi, I'm Shing from the Mozilla Taipei office. I asked Lars for interesting but not urgent (don't want to block critical feature) during the Mozlando workweek, he suggest me to look into IndexDB support. I wonder if anyone can help me with * Split it into smal

Re: [dev-servo] IndexDB project

2015-12-15 Thread Kyle Huey
In the past I've told people that implementing IndexedDB in Servo was of limited value because 1) It's not likely to benefit from Rust in any performance sense. IndexedDB performance issues are almost always either a) object (de/)serialization taking a while on complex object graphs or b) high

Re: [dev-servo] IndexDB project

2015-12-15 Thread Anthony Ramine
> Le 15 déc. 2015 à 04:44, Manish Goregaokar a écrit : > > Apparently SQlite4 has a good kv store included, but nox knows it better > and understands the justification. > > I think firefox uses sqlite (3?); it uses sqlite for everything. In SQLite 4 hides itself a K/V store named LSM. The pro

Re: [dev-servo] IndexDB project

2015-12-14 Thread Paul Rouget
On Tue, Dec 15, 2015 at 6:56 AM, Robert O'Callahan wrote: > On Tue, Dec 15, 2015 at 12:33 AM, Paul Rouget wrote: >> >> On Tue, Dec 15, 2015 at 5:27 AM, Manish Goregaokar >> wrote: >> > On Tue, Dec 15, 2015 at 9:39 AM, Robert O'Callahan >> > >> > wrote: >> > >> >> >> >> FWIW I think this project

Re: [dev-servo] IndexDB project

2015-12-14 Thread Robert O'Callahan
On Tue, Dec 15, 2015 at 12:33 AM, Paul Rouget wrote: > On Tue, Dec 15, 2015 at 5:27 AM, Manish Goregaokar > wrote: > > On Tue, Dec 15, 2015 at 9:39 AM, Robert O'Callahan > > > wrote: > > > >> > >> FWIW I think this project falls into the category of "things we know > will > >> work in Servo". I

Re: [dev-servo] IndexDB project

2015-12-14 Thread Manish Goregaokar
More or less. If you're going to pick leveldb it would be better to use rocksdb (which is a leveldb fork, IIRC) since there is a Rust wrapper that's in use by others. -Manish Goregaokar On Tue, Dec 15, 2015 at 11:03 AM, Shing Lyu wrote: > Thank you guys. > > So from what I've learn so far, I sh

Re: [dev-servo] IndexDB project

2015-12-14 Thread Paul Rouget
On Tue, Dec 15, 2015 at 5:27 AM, Manish Goregaokar wrote: > On Tue, Dec 15, 2015 at 9:39 AM, Robert O'Callahan > wrote: > >> >> FWIW I think this project falls into the category of "things we know will >> work in Servo". It might be more valuable to do a project from which we >> would learn more.

Re: [dev-servo] IndexDB project

2015-12-14 Thread Shing Lyu
Thank you guys. So from what I've learn so far, I should start with 1. Choose a backend and write a Rust wrapper for it (options: LevelDB or SQLite4) 2. Talk to Gecko guys about how to implement quota management framewok Am I understanding it correctly? Regards, Shing 2015-12-15 12:27 GMT+08:00

Re: [dev-servo] IndexDB project

2015-12-14 Thread Manish Goregaokar
On Tue, Dec 15, 2015 at 9:39 AM, Robert O'Callahan wrote: > > FWIW I think this project falls into the category of "things we know will > work in Servo". It might be more valuable to do a project from which we > would learn more. We should probably start implementing necessary things too, not o

Re: [dev-servo] IndexDB project

2015-12-14 Thread Robert O'Callahan
Jan Varga and others are currently reworking all client-side persistent storage APIs in Gecko so they can all use common quota management. You might want a similar framework in Servo now so you don't have to do a lot of expensive work later. You should talk to him or Kyle Huey or others on the Gec

Re: [dev-servo] IndexDB project

2015-12-14 Thread Manish Goregaokar
Apparently SQlite4 has a good kv store included, but nox knows it better and understands the justification. I think firefox uses sqlite (3?); it uses sqlite for everything. -Manish Goregaokar On Tue, Dec 15, 2015 at 9:12 AM, Jack Moffitt wrote: > Why would we use a nearly full sql engine for

Re: [dev-servo] IndexDB project

2015-12-14 Thread Jack Moffitt
Why would we use a nearly full sql engine for a key value store? What do the other browsers use to back IndexDB? jack. On Mon, Dec 14, 2015 at 8:31 PM, Manish Goregaokar wrote: > We were thinking of SQLite4, however there seem to be people using > rocksdb+rust in production (https://github.com/s

Re: [dev-servo] IndexDB project

2015-12-14 Thread Manish Goregaokar
We were thinking of SQLite4, however there seem to be people using rocksdb+rust in production (https://github.com/spacejam/rust-rocksdb?) -Manish Goregaokar On Tue, Dec 15, 2015 at 8:57 AM, Jack Moffitt wrote: > Probably the easiest wa

Re: [dev-servo] IndexDB project

2015-12-14 Thread Jack Moffitt
Probably the easiest way to start is to get the database backend sorted. We've talked about using LevelDB for this in the past, but I'm not sure if there is an existing Rust wrapper for that or not. If not, creating one might be a good way to get started. jack. On Mon, Dec 14, 2015 at 8:20 PM, Sh