Google has unveiled the open supply Logica programming language, a logic programming language designed to “remedy issues of SQL” by utilizing syntax of mathematical propositional logic reasonably than pure language.
Launched on April 12 as a successor to Google’s Yedalog language, Logica is a Datalogic-like logic language. Meant for engineers, knowledge scientists, and different specialists, it compiles code to SQL and runs on the Google BiqQuery cloud-based knowledge warehouse, with experimental help for PostgreSQL and SQLite. However Logica is extra concise and helps reusable abstractions not like SQL. It additionally helps modules and imports, can be utilized from an interactive Python pocket book, and makes testing queries simple and pure, Google builders wrote in a weblog put up.
Logica solves issues of SQL by utilizing syntax of mathematical logic reasonably than pure English language. Google cited points with SQL such because the verbosity of developing statements from English phrases and restricted help for abstraction. Logica extends classical logic programming syntax, notably with aggregation. It’s billed as a declarative language for knowledge manipulation.
The Google builders behind the Logica open supply mission encourage its use within the following eventualities:
- The place logic programming is already getting used however a person wants extra computational energy
- The place SQL is getting used however the person will not be happy with its readability
- The place builders need to study logic programming and apply it to massive knowledge processing
Google has arrange a tutorial to assist builders study Logica. To run logic applications on Google Cloud BigQuery, builders might want to open a Google Cloud Undertaking. As soon as a mission is established, builders can run Logica applications in Colab by offering a mission ID. To run Logica regionally, builders want Python 3.
Copyright © 2021 IDG Communications, Inc.