Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite block #75

Open
scmcgowen opened this issue Apr 18, 2024 · 9 comments
Open

SQLite block #75

scmcgowen opened this issue Apr 18, 2024 · 9 comments
Labels
area-misc $*%^@)(&$^%(@#

Comments

@scmcgowen
Copy link
Contributor

scmcgowen commented Apr 18, 2024

Describe your idea

The Cryptographic Accelerator would provide CC computers with common cryptographic algorithms done on the Java side which is faster than implementing them in Lua, possible algorithms could be AES, RSA, and others, as well as a secure RNG, and some common hashing algorithms. (duplicated)

The SQLite block would provide access to an SQLite database on the peripheral, stored by ID similar to a computer. The databases would be stored in /world/computercraft/sqlite_block/[id].db

Describe alternatives you've considered if you've any

No response

Additional context

No response

Linked Issues

No response

@zyxkad

This comment was marked as off-topic.

@zyxkad
Copy link
Collaborator

zyxkad commented Apr 18, 2024

What's the point for sqlite? IMO sqlite will be soo heavy with CC and lua.

Plus, concurrency on sqlite is terrible

@scmcgowen
Copy link
Contributor Author

SQLite Databases could be useful to store persistent data for a program such as a chatbox service, especially considering the very limited space that CC computers have where this block wouldn't have that issue since it's a single dedicated DB

@zyxkad
Copy link
Collaborator

zyxkad commented Apr 18, 2024

We must give a deep thought on SQLite:

  1. SQLite does not allow concurrency access. There is no point to use SQL without concurrency, file system + JSON will be enough (you have disks if you are out of space on computer).
  2. If you are going to create database for each block, the server will soon out of space if a player automatically place it.

@scmcgowen
Copy link
Contributor Author

2 could be solved similarly to how CC computers are, where they only get assigned an ID once accessed (and therefore only get assigned a database once accessed)

@zyxkad
Copy link
Collaborator

zyxkad commented Apr 18, 2024

2 could be solved similarly to how CC computers are, where they only get assigned an ID once accessed (and therefore only get assigned a database once accessed)

No, turtle can easily to automate that process you know

@scmcgowen
Copy link
Contributor Author

No, turtle can easily to automate that process you know

There's a solution to players intentionally wasting space like that, it's called a ban hammer or /ban

@zyxkad
Copy link
Collaborator

zyxkad commented Apr 26, 2024

The cryptographic is dup with #55

@zyxkad zyxkad changed the title Cryptographic Accelerator and SQLite block SQLite block Apr 28, 2024
@tehgreatdoge
Copy link

This sounds fairly similar to the SirEdvin's Cloud Solutions mod. Also not certain how this has an advantage over a lua key-value store.

@zyxkad zyxkad added the area-misc $*%^@)(&$^%(@# label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-misc $*%^@)(&$^%(@#
Projects
None yet
Development

No branches or pull requests

3 participants