HiLang 2.5.18
dotnet add package HiLang --version 2.5.18
NuGet\Install-Package HiLang -Version 2.5.18
<PackageReference Include="HiLang" Version="2.5.18" />
<PackageVersion Include="HiLang" Version="2.5.18" />
<PackageReference Include="HiLang" />
paket add HiLang --version 2.5.18
#r "nuget: HiLang, 2.5.18"
#:package HiLang@2.5.18
#addin nuget:?package=HiLang&version=2.5.18
#tool nuget:?package=HiLang&version=2.5.18
HiLang
HiLang is a minimal high-level language to describe the schema of a domain, taking inspiration from protobuf (.proto models) for hierarchical structures and SQL DML for entities, relations and views.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- FSharp.Core (>= 10.0.100)
- FsLexYacc (>= 11.3.0)
- FsLexYacc.Runtime (>= 11.3.0)
- Microsoft.CodeAnalysis.CSharp (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on HiLang:
| Package | Downloads |
|---|---|
|
Hiperspace.SQL
# Hiperspace.SQL Hiperspace.SQL is a full SQL query engine for Hiperspace, supporting the full range of joins, aggregations, and subqueries. Hiperspace.SQL provides the same query functionality as a .NET client can use with LINQ queries, but without the need to write code in C#/F# Hiperspace fully supports point-in-time "time travel" queries that are not possible with Python Data-Frames or DuckDB ## Features - Hiperspace.SQL is not limited to queries of columns within a table, but supports the full navigation of properties of Hiperspace elements - Where a column is a complex object it is returned as a JSON object - Executing a batch of SQL statements return columnar data frames (dictionary of column-name and array of values) - Explain SQL returns the execution plan, detailing the SetSPaces accessed and keys used for search (Key, Index, Scan) - The Parquet method returns a Parquet file that can be used with any Apache Parquet library, or added to DuckDB OLAP store |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.5.18 | 0 | 12/3/2025 |
| 2.5.8 | 161 | 11/15/2025 |
| 2.5.2 | 198 | 11/6/2025 |
| 2.5.1 | 174 | 10/23/2025 |
| 2.5.0 | 186 | 10/20/2025 |
| 2.4.6 | 194 | 9/23/2025 |
| 2.4.4 | 276 | 8/7/2025 |
| 2.4.2 | 155 | 7/28/2025 |
| 2.4.0 | 186 | 7/10/2025 |
| 2.3.8 | 172 | 7/1/2025 |
| 2.3.7 | 196 | 6/18/2025 |
| 2.3.4 | 181 | 6/5/2025 |
| 2.2.2 | 184 | 5/5/2025 |
| 2.2.1 | 232 | 4/14/2025 |
| 2.2.0 | 131 | 3/29/2025 |
| 2.1.9 | 245 | 3/5/2025 |
| 2.1.6 | 141 | 2/15/2025 |
| 2.1.0 | 142 | 1/24/2025 |
| 2.0.0 | 123 | 1/14/2025 |
| 1.3.9 | 160 | 11/15/2024 |
| 1.3.0 | 144 | 10/5/2024 |
| 1.2.18 | 190 | 9/15/2024 |
| 1.2.16 | 172 | 9/7/2024 |
| 1.2.15 | 157 | 9/1/2024 |
| 1.2.11 | 141 | 8/6/2024 |
| 1.2.9 | 134 | 7/26/2024 |
| 1.2.8 | 173 | 7/19/2024 |
| 1.2.6 | 148 | 7/15/2024 |
| 1.2.4 | 169 | 7/4/2024 |
| 1.2.0 | 178 | 5/30/2024 |
| 1.1.37 | 161 | 5/11/2024 |
| 1.1.34 | 152 | 4/22/2024 |
| 1.1.30 | 162 | 3/24/2024 |
| 1.1.26 | 178 | 3/14/2024 |
| 1.1.23 | 178 | 2/26/2024 |
| 1.1.22 | 178 | 2/16/2024 |
| 1.1.21 | 226 | 1/11/2024 |
| 1.1.19 | 200 | 1/1/2024 |
| 1.1.17 | 184 | 12/23/2023 |
| 1.1.11 | 184 | 12/16/2023 |
| 1.1.10 | 189 | 12/6/2023 |
| 1.1.7 | 186 | 11/30/2023 |
| 1.1.5 | 178 | 11/21/2023 |
| 1.0.14-prerelease | 240 | 8/6/2023 |
https://www.cepheis.com/hiperspace/20251303
## Overview
This release adds `NotFoundException` to distinguish *not found* from *cannot be found* conditions. and extends the functionality of `@AlternateIndex` to support multiple alternate indexes on *segments* and *aspects* that are referenced by multiple *entities*.
-----
### Not Found
Prior to this release `Get(...)` calls did not distinguish between *Not Found* and *not found because of IO error*. To improve the handling of missing values several changes have been made:
* Additional Exception class `NotFoundException`
* `KeyRef<>` (*reference to another element*) changed to return `null` when a value cannot be found
* `RefSingle<>` (*reference to an aspect*) changed to return `null` when a value cannot be found
-----
### AlternateIndex
Alternate indexes are created automatically whenever there is a path from an *element* from another *element*, but can be added to support access from a view. The prime example is `Edge` which is defined (*in the Hilang prelude*) as
```
"edge between nodes"
view Edge
( /* keys */
From : Node,
To : Node,
TypeName : String
)
{ /* values */
Name : String
};
```
`@AlternateIndex` enables an *element* to index the *key/value* that corresponds to the `From` key member for indexed access from a `Node.Froms` extension property
For the model
```
entity CostCentre (Id : Int32) [Costs : Cost (CostCentre = this)];
aspect Cost {CostCentre : CostCentre, Amount : Decimal};
```
with
```
entity Asset (...) {...} [Cost : Cost];
entity Project (...) {...} [Cost : Cost];
```
Concreate elements `AssetCost` and `ProjectCost` will be created indexes
`AssetCostCostCentre.Index` and `ProjectCostCostCentre.Index`
Source edit will change the source to
```
entity CostCentre (Id : Int32) [Costs : Cost (CostCentre = this)];
aspect Cost
{
@AlternateIndex("AssetCost", 42)
,AlternateIndex("ProjectCost", 43)
CostCentre : CostCentre, Amount : Decimal};
```
To ensure the index Id is not used for something else resultuing in an incompatible model and store.
***how does CostCentre know what (Asset/Project/ etc) the Cost is for?***
The `aspect Cost` is transformed to a `view` that is equvilent to
```
view Cost (owner : Any) {CostCentre : CostCentre, Amount : Decimal};
```
the (*C#*) hiperspace query
```
from centre in space.CostCentres
select centre.Id, (from line in centre.Costs
let asset = line.owner.Is<Asset>() ? Amount : 0
let project = line.owner.Is<Project>() ? Amount : 0
group line by line.CostCentre into totals
select new { Projects = totals.Sum(v => v.asset),
Assets = totals.Sum(v => v.project)})
```
Will return the total costs by type for each CostCentre
#### Inherited Index
This model defines an overall *trade* type with three different implementations for {*FI, EQ, FX*} that have different properties for the different asset-classes. *Trade* is referenced by *Book*, the extension property *`Book.Trades`* returns a collection of *Trade* has a *`Book`* equal to the current *Book*. For efficient access, and index is created for the *`Trade.Book`* that is inherited by each implementation.
The syntax `Banking.FI.Trade : Banking.Trade = Banking.Trade()` means `Banking.FI.Trade`:
* Inherits *keys / values / extensions / properties* from `Banking.Trade` (via **`:`**)
* Can be viewed as a `Banking.Trade` (via **`=`**)
```
view Banking.Trade (Id : String)
{Book : Banking.Book};
entity Banking.FI.Trade : Banking.Trade = Banking.Trade();
entity Banking.FX.Trade : Banking.Trade = Banking.Trade();
entity Banking.EQ.Trade : Banking.Trade = Banking.Trade();
entity Banking.Book (Id : String) [Trades : Banking.Trade (Book = this)];
```
Adding `%ids` to the model, with result in a source edit to a `#` id to each *element*, *key/value* and extension property, and `@AlternateIndex` property for each generated concrete index.
```
view Banking.Trade #45 (Id : String)
{@AlternateIndex("Banking.EQ.Trade", 52)
,AlternateIndex("Banking.FI.Trade", 48)
,AlternateIndex("Banking.FX.Trade", 50)
Book : Banking.Book};
entity Banking.FI.Trade : Banking.Trade = Banking.Trade() #49;
entity Banking.FX.Trade : Banking.Trade = Banking.Trade() #51;
entity Banking.EQ.Trade : Banking.Trade = Banking.Trade() #53;
entity Banking.Book #47 (Id : String #1) [Trades : Banking.Trade (Book = this) #54];
```
subsequent compilation of the model will result in the indexes using the same *Id* value when stored.
**NB** the `#id` can be of any value, but can never to reused for a different purpose once used with a *Hiperspace*.
-----
### Source Editing
When the directive `%ids` is added to a hilang model, the source code is edited to add `#id` values to ensure that the schema can be evolved without the risk of introducing incompatible changes.
***know issue***: Source editing lacks the context of other edits to a line of `hilang` source `@AlternateIndex("Banking.EQ.Trade", 52) @AlternateIndex("Banking.FI.Trade", 48) Book : Banking.Book` will create a syntax error the next time the *schema* is compiled because `@` is the prefix for a comma-separated list of one-or-more attributes. The code needs to be edited to change subsequent `@` to `,`