Skip to content

PawelStadnicki/Florence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Florence

F# DSL to evaluate places with a single function

Ballerina logo

Name

In the F# community, there is a practice (though not an obligation) to name libraries with the letter "F".

Florence (Firenze), as the city of the Renaissance, was an obvious choice.

🙏 Credits

I'm using a number of existing .NET and JavaScript libraries for geospatial analytics, abstracting away much of their complexity (a full list will be added shortly).

There’s still a lot of added value and creative work involved — including polyglot integration and metaprogramming features (though not yet the hardcore functional programming side 😉).

I was one of the early adopters of the Polyglot Extension for Visual Studio Code and had early communication with its creators (especially the .NET Interactive team).

📄 README in Progress

This README is currently a work in progress — I'm in the process of writing it and adding more details.

🛠️ Expect updates in the coming hours or days as I document the project structure, usage, goals, and fix breaking changes of dependencies.

Thanks for your patience!

City as a Function

The idea of "City as a Function" λ

This library serves many purposes, but perhaps the main one is to make F# accessible to newcomers — immediately! I believe there's no better way to start learning than by jumping in right away with no setup and, most importantly, within a tangible domain.

And what could be more tangible than the space where you live your everyday life — your home, work, and surroundings like your kid’s kindergarten?

Of course, there's more to it (like, say... finding the best place to live), but before we get too ambitious with the library's goals, let’s focus on how to actually use it.

It’s kind of self-explanatory, to be honest.

Quick start

Florence is an interactive, polyglot library currently available via the Polyglot Extension in Visual Studio Code. To use it, you’ll also need the latest .NET SDK (version 9) installed.

To get the library just type in F# cell the following:

Florence can work with any data — unless your city is terrible at opening and publishing it 😅. I’ll show you how to load your own data in a moment, but you can start right away with a few preloaded data sources included in the library for exploratory purposes.

Let’s say these people are the classic four F’s: family, friends, and fools. We’d like to have some places to evaluate, and we have two datasets: a few areas of Florence and some top points of interest.

Now, how can we rank all city areas based on the average distance to the nearest 100 top city locations?

What if instaed of the top locations we want to use distances to our family? //TODO

DSL for distances

//explanation is comming shortly

Entry your own lifespace

//explanation is comming shortly

Loading local data and files

//TODO: a lot of docs to come shortly

About

F# DSL to evaluate places with a single function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages