bakkdoor/rogato
{ "createdAt": "2022-06-25T03:21:19Z", "defaultBranch": "main", "description": "A functional, declarative query-oriented programming language with an integrated graph database.", "fullName": "bakkdoor/rogato", "homepage": "", "language": "Rust", "name": "rogato", "pushedAt": "2024-03-12T08:50:29Z", "stargazersCount": 6, "topics": [ "databases", "functional-language", "functional-programming", "graph", "graph-database", "graph-processing", "rust-lang", "rust-language", "rustlang" ], "updatedAt": "2023-08-21T10:34:40Z", "url": "https://github.com/bakkdoor/rogato"}rogātō ⌘ 🏷
Section titled “rogātō ⌘ 🏷”A functional, declarative query-oriented programming language with an integrated graph database.
Section titled “A functional, declarative query-oriented programming language with an integrated graph database.”🛠 (Still WIP) 🛠
rogātō aims to provide a simple yet powerful functional programming interface to a built-in graph database, powered by indradb.
The syntax is inspired mostly by languages like Elm, F#, Haskell and Elixir. The goal is to provide a basic standard library for common tasks. The language is still at a very early stage, so a lot is still missing.
More information will follow here as the language matures. For some example source code and syntax ideas (still WIP), check out the code examples under [examples/]!(examples/) or the standard library under [lib/]!(lib/).
Language design goals
Section titled “Language design goals”- Simple, typed, memory-safe functional core language for data processing
- Direct native access to built-in graph database
- First-class query manipulation support against graph db
- Symbolic language capabilities for easy knowledge graph construction and querying
- Easy importing of data from various data formats, ideally provided by std lib
Build instructions
Section titled “Build instructions”LLVM v14 Dependency
Section titled “LLVM v14 Dependency”rogātō depends on LLVM version 14 to build. LLVM is used by the [compiler]!(compiler/) crate to generate optimized native machine code.
LLVM website with documentation and installation instructions:
Latest compatible LLVM release:
Build without optimizations (debug mode)
Section titled “Build without optimizations (debug mode)”Build with cargo, Rust’s package and build manager:
cargo bBuild with optimizations (release mode)
Section titled “Build with optimizations (release mode)”cargo b -rBuild and run tests (debug/test mode)
Section titled “Build and run tests (debug/test mode)”cargo tBuild and run clippy linter
Section titled “Build and run clippy linter”cargo clippyBuild with parser tracing enabled
Section titled “Build with parser tracing enabled”cargo b --features traceThis works also for release builds:
cargo b -r --features traceTo get parser tracing viz via pegviz, run:
./target/release/rogato examples/query.roga | pegviz --output pegviz.htmlThen open pegviz.html to view parser tracing visualization.
I needed a project to learn Rust with. I always have been interested in graph databases and their applications to data problems and have been fascinated by what declarative programming can do for simplicity in querying large data sets.
rogātō aims to unify some ideas and properties from functional and logic programming as well as graph databases into something new and cohesive that is fun and productive to use and can aid in discovering interesting facts about large data sets.
What does the name mean?
Section titled “What does the name mean?”rogātō is the ablative case of the Latin perfect passive participle of rogātus (having been enquired / asked / requested / invited).
