Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6586257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:46:05+00:00 2026-05-25T16:46:05+00:00

F# 3.0 adds type providers , which make it basically unnecessary to manually write

  • 0

F# 3.0 adds type providers, which make it basically unnecessary to manually write or generate mappings between a DB (or another data provider) and the language/type system, because the language can query structural information from the database itself directly with type providers.

What is necessary from a language implementation point of view to add such a feature to a language?

Does it require a fully pluggable type system? Or is it more like some hidden code generator integrated into the compiler?

What’s necessary to implement a new type provider for F#?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:46:06+00:00Added an answer on May 25, 2026 at 4:46 pm

    Technically, you can think of F# type providers as “plugins” for the compiler. Instead of generating mappings, the compiler asks the type provider “What types do you know?” or “Do you know this type?” (depending on the context).

    The plugin (type provider) answers and specifies what the type looks like (abstractly, without actually generating it). The compiler then works with this information and later asks the type provider to provide code that should be used when compiling code that uses these “fake” types. It is also possible to actually generate code (some samples do this, because they just use tools that are already there).

    So yes, you can implement your own type provider. I said a few things about it in the GOTO Copenhagen talk which has been recorded and Don Syme said a few things in his earlier talks (I didn’t see his BUILD talk yet).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I've designed a media type which is a strict subset of another
Groovy adds the execute method to String to make executing shells fairly easy; println
System.Reflection.Adds.UnresolvedAssemblyException Type universe cannot resolve assembly: System, Version=2.0.0.0, Culture=neutral,... I just updated to Mango
I was wondering if any type of transcoder exists, that automatically adds vender specific
I have an XML document of store locations which have a Type node indicating
I'm writing a simple dictionary app which gives suggestions for words as you type.
For some reason, whenever I type $$ in Vim, it automatically adds <++> right
I tried the following, /* * addRelationship * * Adds a relationship between two
I created a simple tracking script which adds the users info to a database
I have a service provider that requires a non-standard Authorization Type for their web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.