| | |
| | |
Stat |
Members: 3645 Articles: 2'504'928 Articles rated: 2609
25 April 2024 |
|
| | | |
|
Article overview
| |
|
Types from data: Making structured data first-class citizens in F# | Tomas Petricek
; Gustavo Guerra
; Don Syme
; | Date: |
10 May 2016 | Abstract: | Most modern applications interact with external services and access data in
structured formats such as XML, JSON and CSV. Static type systems do not
understand such formats, often making data access more cumbersome. Should we
give up and leave the messy world of external data to dynamic typing and
runtime checks? Of course, not!
We present F# Data, a library that integrates external structured data into
F#. As most real-world data does not come with an explicit schema, we develop a
shape inference algorithm that infers a shape from representative sample
documents. We then integrate the inferred shape into the F# type system using
type providers. We formalize the process and prove a relative type soundness
theorem.
Our library significantly reduces the amount of data access code and it
provides additional safety guarantees when contrasted with the widely used
weakly typed techniques. | Source: | arXiv, 1605.2941 | Services: | Forum | Review | PDF | Favorites |
|
|
No review found.
Did you like this article?
Note: answers to reviews or questions about the article must be posted in the forum section.
Authors are not allowed to review their own article. They can use the forum section.
browser Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
|
| |
|
|
|
| News, job offers and information for researchers and scientists:
| |