Skip to content

Commit

Permalink
deploy: c4e8c45
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyme committed Oct 18, 2023
0 parents commit 0ca2dd6
Show file tree
Hide file tree
Showing 469 changed files with 325,314 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
85 changes: 85 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
FROM jupyter/base-notebook:latest

# Install .NET CLI dependencies

ARG NB_USER=fsdocs-user
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}

WORKDIR ${HOME}

USER root
RUN apt-get update
RUN apt-get install -y curl

ENV \
# Enable detection of running in a container
DOTNET_RUNNING_IN_CONTAINER=true \
# Enable correct mode for dotnet watch (only mode supported in a container)
DOTNET_USE_POLLING_FILE_WATCHER=true \
# Skip extraction of XML docs - generally not useful within an image/container - helps performance
NUGET_XMLDOC_MODE=skip \
# Opt out of telemetry until after we install jupyter when building the image, this prevents caching of machine id
DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT=true

# Install .NET CLI dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu66 \
libssl1.1 \
libstdc++6 \
zlib1g \
&& rm -rf /var/lib/apt/lists/*

# Install .NET Core SDK

# When updating the SDK version, the sha512 value a few lines down must also be updated.
ENV DOTNET_SDK_VERSION 5.0.101

RUN dotnet_sdk_version=5.0.101 \
&& curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Sdk/$dotnet_sdk_version/dotnet-sdk-$dotnet_sdk_version-linux-x64.tar.gz \
&& dotnet_sha512='398d88099d765b8f5b920a3a2607c2d2d8a946786c1a3e51e73af1e663f0ee770b2b624a630b1bec1ceed43628ea8bc97963ba6c870d42bec064bde1cd1c9edb' \
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
&& mkdir -p /usr/share/dotnet \
&& tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
&& rm dotnet.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \
# Trigger first run experience by running arbitrary cmd
&& dotnet help

# Copy notebooks

COPY ./ ${HOME}/notebooks/

# Copy package sources

COPY ./NuGet.config ${HOME}/nuget.config

RUN chown -R ${NB_UID} ${HOME}
USER ${USER}

#Install nteract
RUN pip install nteract_on_jupyter

# Install lastest build from master branch of Microsoft.DotNet.Interactive
RUN dotnet tool install -g Microsoft.dotnet-interactive --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"

#latest stable from nuget.org
#RUN dotnet tool install -g Microsoft.dotnet-interactive --add-source "https://api.nuget.org/v3/index.json"

ENV PATH="${PATH}:${HOME}/.dotnet/tools"
RUN echo "$PATH"

# Install kernel specs
RUN dotnet interactive jupyter install

# Enable telemetry once we install jupyter for the image
ENV DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT=false

# Set root to notebooks
WORKDIR ${HOME}/notebooks/
14 changes: 14 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="dotnet3-dev" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json" />
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="PSGallery" value="https://www.powershellgallery.com/api/v2/" />
</packageSources>
</configuration>
251 changes: 251 additions & 0 deletions builder-caches.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>IncrementalBuilder caches</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="F# Software Foundation; Microsoft; F# Contributors">

<link rel="stylesheet" id="theme_link" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/4.6.0/materia/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>

<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>

<link rel="shortcut icon" type="image/x-icon" href="https://fsharp.github.io/fsharp-compiler-docs/img/favicon.ico">
<link type="text/css" rel="stylesheet" href="https://fsharp.github.io/fsharp-compiler-docs/content/navbar-fixed-left.css" />
<link type="text/css" rel="stylesheet" href="https://fsharp.github.io/fsharp-compiler-docs/content/fsdocs-default.css" />
<link type="text/css" rel="stylesheet" href="https://fsharp.github.io/fsharp-compiler-docs/content/fsdocs-custom.css" />
<script type="text/javascript" src="https://fsharp.github.io/fsharp-compiler-docs/content/fsdocs-tips.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- BEGIN SEARCH BOX: this adds support for the search box -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/JavaScript-autoComplete/1.0.4/auto-complete.css" />
<!-- END SEARCH BOX: this adds support for the search box -->

</head>

<body>
<nav class="navbar navbar-expand-md navbar-light bg-secondary fixed-left" id="fsdocs-nav">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse navbar-nav-scroll" id="navbarsExampleDefault">
<a href="https://fsharp.github.io/fsharp-compiler-docs/"><img id="fsdocs-logo" src="https://fsharp.github.io/fsharp-compiler-docs/img/logo.png" /></a>
<!-- BEGIN SEARCH BOX: this adds support for the search box -->
<div id="header">
<div class="searchbox" id="fsdocs-searchbox">
<label for="search-by">
<i class="fas fa-search"></i>
</label>
<input data-search-input="" id="search-by" type="search" placeholder="Search..." />
<span data-search-clear="">
<i class="fas fa-times"></i>
</span>
</div>
</div>

<!-- END SEARCH BOX: this adds support for the search box -->
<ul class="navbar-nav">
<li class="nav-header">Links</li>
<li class="nav-item" id="fsdocs-license-link"><a class="nav-link" href="https://github.com/dotnet/fsharp/blob/main/License.txt">License</a></li>
<li class="nav-item" id="fsdocs-release-notes-link"><a class="nav-link" href="https://github.com/dotnet/fsharp/blob/main/release-notes.md">Release Notes</a></li>
<li class="nav-item" id="fsdocs-repository-link"><a class="nav-link" href="https://github.com/dotnet/fsharp/">Source Repository</a></li>
<li class="nav-header">
Compiler Internals
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/overview.html">
Overview
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/coding-standards.html">
Coding standards
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/diagnostics.html">
Diagnostics
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/names.html">
Display names, logical names and compiled names
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/representations.html">
Representations
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/debug-emit.html">
Debug emit
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fsi-emit.html">
F# Interactive Emit
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/optimizations.html">
Optimizations
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/large-inputs-and-stack-overflows.html">
Large inputs
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/memory-usage.html">
Memory usage
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/compiler-startup-performance.html">
Startup Performance
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/changing-the-ast.html">
Changing the AST
</a>
</li>
<li class="nav-header">
Language Service Internals
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/tooling-features.html">
Overview
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/project-builds.html">
Project builds
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/caches.html">
FSharpChecker caches
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/builder-caches.html">
IncrementalBuilder caches
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/react.html">
Incrementality
</a>
</li>
<li class="nav-header">
FSharp.Compiler.Service
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/tokenizer.html">
Tutorial: Tokenizing
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/untypedtree.html">
Tutorial: Expressions
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/syntax-visitor.html">
Tutorial: SyntaxVisitorBase
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/symbols.html">
Tutorial: Symbols
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/typedtree.html">
Tutorial: Expressions
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/editor.html">
Tutorial: Editor services
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/project.html">
Tutorial: Project analysis
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/interactive.html">
Tutorial: Hosted execution
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/compiler.html">
Tutorial: Hosting the compiler
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/corelib.html">
Notes on FSharp.Core
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fcs/filesystem.html">
IFileSystem
</a>
</li>
<li class="nav-header">
FSharp.Core
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/fsharp-core-notes.html">
Guidance
</a>
</li>
<li class="nav-header">
API Reference
</li>
<li class="nav-item">
<a class="nav-link" href="https://fsharp.github.io/fsharp-compiler-docs/reference/index.html">
All Namespaces
</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="masthead">
<h3 class="muted"><a href="https://fsharp.github.io/fsharp-compiler-docs/">F# Compiler Guide</a></h3>
</div>
<hr />
<div class="container" id="fsdocs-content">

<h1><a name="IncrementalBuilder-SyntaxTree-cache" class="anchor" href="#IncrementalBuilder-SyntaxTree-cache">IncrementalBuilder SyntaxTree cache</a></h1>
<p>Incremental builder keeps in a cache at most one <code>ParsedInput</code> for each file it parses.
This behavior can be toggled with <code>useSyntaxTreeCache</code> parameter.</p>
<p>Memory impact of this feature can be in range of tens of MB for larger solutions. This can be inspected in memory profilng tools by searching for <code>ParsedInput</code> instances.
When partial checking is enabled, implementation files backed by signature will not be parsed or cached, as expected.</p>


</div>

<!-- BEGIN SEARCH BOX: this adds support for the search box -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/JavaScript-autoComplete/1.0.4/auto-complete.css" />
<script type="text/javascript">var fsdocs_search_baseurl = 'https://fsharp.github.io/fsharp-compiler-docs/';</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.8/lunr.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/JavaScript-autoComplete/1.0.4/auto-complete.min.js"></script>
<script type="text/javascript" src="https://fsharp.github.io/fsharp-compiler-docs/content/fsdocs-search.js"></script>
<!-- END SEARCH BOX: this adds support for the search box -->
</div>
</body>

</html>
Loading

0 comments on commit 0ca2dd6

Please sign in to comment.