Replies: 5 comments 20 replies
-
Enabling scientific analytics is one of the use cases I had in mind, since I used to be the tech lead of the TensorBoard team. In terms of data storage, you're in luck. I just pushed bf03b2e a few minutes ago which clears out the biggest blocker, which is that it enables us to have the executable open itself in read/write mode so it can use its internal ZIP file structure as a document store, similar to MongoDB. It furthermore means that we're able to restore the original APE header on startup, so if you run the thing and it makes changes to itself, those changes can be immediately distributed as soon as soon as you'd like. You don't even have to do anything. It's like a little Docker container, except you don't have to ask people to install something like Docker in order to run it. All they need is a single file. SQLite is totally possible. But it might be more appropriately left to a separate file. If we integrate it then you'd likely need to distribute a Best way you can help is simply by (a) testing, and (b) helping me get the word out. This software is a permissively licensed gift to anyone who might find it useful and I want to see as many people gain the benefit of its value as possible. If you'd like to do engineering work, please refer to CONTRIBUTING.md which should help you get started. This codebase has examples. Helping me clear out issues is good way to get started making contributions. |
Beta Was this translation helpful? Give feedback.
-
@Rotario I forked the SQLite Github repo so that I could compile the https://github.com/ahgamut/sqlite/tree/cosmopolitan Pretty easy to compile - run @jart would you accept a PR containing |
Beta Was this translation helpful? Give feedback.
-
Yeah, that would be cool, are we talking about saving the raw request
string as www-urlencoded or json or both?
I think the least friction system would be the best.
There's no programmatic way to discover existing documents right now though
right? I guess the directory listing could be returned in json if the
client accepts json.
…On Sun, 2 May 2021 21:36 Justine Tunney, ***@***.***> wrote:
One thing I've been thinking about doing is allowing HTTP PUT requests if
the mode of a folder is the zip archive is chmod o+w. It'd be
interesting. What do you think of that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#156 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHA6QAZ2ZN6OG5Y24FRE5YTTLWZUDANCNFSM43EGJ6HA>
.
|
Beta Was this translation helpful? Give feedback.
-
Also - before I forget, saw this on HN yesterday. |
Beta Was this translation helpful? Give feedback.
-
If scientific analytics is an important use case, I think https://duckdb.org is an interesting alternative to sqlite, also with portability and small footprint. Looks like it offers better performance for analytics due to column oriented design and has support for some new formats, like support for parquet files and arrow. The https://github.com/duckdb/duckdb/releases has builds but it would be interesting to understand if it could be built as an "ape" :). It is possible to build as an AppImage (I tried a while ago at https://github.com/mskyttner/duckdb-cli-builds). It also has a Full Text Search extension. This db does not yet have a on-disk storage format that is finalized, but in the meanwhile parquet and compressed csv can be used instead. |
Beta Was this translation helpful? Give feedback.
-
I'm just thinking about the possibilities of adding SQLite to this project, allowing for fully distributable persistent apps that can be shared around.
I have a feeling this may have applications in sharing research data? I know someone who does research in optimisation algorithms, and wants to be able to share her work done in Plotly Dash which I think is just a drag+drop interface for building React frontends. If she could build her no-code frontend in Dash, and there be some easy Lua API backend to return data from something like SQLite, then she might be able to easily release her actual research data in an accessible format, and know that it "just works" for anyone on any system.
This is just one "User story" but I think there's probably so many out there, I mean, Electron has massive uptake for devs and otherwise, even though the binaries are huge and unneccessary, so the potential here is huge.
Anyway - to the matter in hand, the lua sqlite library comes with the sqlite3 engine already in a single source file. Reading #97 I think @jart mentioned that there might be trouble writing to the sqlite file since it's zipped (and compressed?). Is there anything I can help with, bar just trying to get these lua bindings working to open, write read and close a db? Does anyone know where the barriers might lay in the zipped FS? May the sqlite file need decompressing to access, then recompressing?
Beta Was this translation helpful? Give feedback.
All reactions