Moved to sr.ht.
remexre / g1 Goto Github PK
View Code? Open in Web Editor NEWA simple graph store.
A simple graph store.
Moved to sr.ht.
Maybe have:
trait TransactionConnection: Connection {
type Transaction: Connection;
async fn start_transaction(&self, timeout: Duration) -> Transaction;
}
It'd be nice to allow the transaction to have its lifetime bounded by the connection, but this requires GATs...
A kinda gross solution might be:
trait TransactionConnectionInner {
type Connection: Connection;
async fn create_atom(&self, conn: &Self::Connection) -> Result<Atom, Self::Error>;
// etc
}
struct Transaction<'a, T: TransactionConnectionInner> {
connection: &'a T::Connection,
inner: T,
}
impl<'a, T: TransactionConnectionInner> Connection for Transaction<'a, T> {
// ...
}
trait TransactionConnection: Connection {
type TransactionConnectionInner: TransactionConnectionInner<Connection = Self>;
async fn start_transaction<'a>(&'a self, timeout: Duration) -> Transaction<'a, TransactionConnectionInner>;
}
It'd be nice for both NIH, and for being able to more confidently assert the formal properties the database should have, to have a native backend rather than just the current SQLite-backed one.
Problems to solve:
eg query! { ?- edge($(from), To, "contains"). }
nb this necessitates a less efficient implementation than the current one; maybe make the string pool global, and make the query
macro generate lazy_static
s to hold references to the strings within?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.