Logo

dev-resources.site

for different kinds of informations.

F# For Dummys - Day 2 Environment

Published at
5/16/2024
Categories
fsharp
Author
pythonzhu
Categories
1 categories in total
fsharp
open
Author
9 person written this
pythonzhu
open
F# For Dummys - Day 2 Environment

Setting environments

  • Option 1: Try it in your browser

Try F# (fsharp.org) is based on Fable 2.0.11
Fable REPL is based on the latest version

Let's try the lastest version, open https://fable.io/repl/

Image description

input or copy and paste code below in the edit area, press the run button on the left sidebar

let hello = "Hello, World!"
printfn $"{hello}"
Enter fullscreen mode Exit fullscreen mode

you will see the output of your code on the Console window at lower right corner, good start!

Image description

  • Option 2: Install .NET8 SDK

.NET8 SDK includes everything to compile and run F#

Install on Windows for example:

1、Download .Net 8 SDK

from the turorial page
Image description

or from the releases page
Download .NET 8.0 (Linux, macOS, and Windows) (microsoft.com)

Image description

2、Install

double click the exe file
Image description

click install, follow the hints, click next until it finished
open a new command window

Image description

3、Test installation

copy/input the following command on the command window you open just now, to test if your environment is ready

dotnet --version
Enter fullscreen mode Exit fullscreen mode

output

Image description

Official guide how to set environment on you computer:

F# Tutorial | Hello World in 5 minutes | .NET (microsoft.com)

you can follow the official guide if you're using Linux or macOS, all our code in the following articles will be running on Windows(10/11)

Image description

it should not be a problem if you're not using Windows, as F# is expected to run on Linux or macOS without change, it's not guaranteed 100% though

fsharp Article's
30 articles in total
Favicon
Learning some Fantomas AST
Favicon
Ingesting Data in F# with Aether: A Practical Guide to Using Lenses, Prisms, and Morphisms
Favicon
Suicide Boys Merch quality designed shop
Favicon
F# 9: Nullable Reference Types and Advancing Null Safety
Favicon
Unlocking High-Performance AI Computing with F#: A Comprehensive Guide
Favicon
Scope progression
Favicon
How do I register a complaint with Delhivery?
Favicon
New wallpapers every day
Favicon
F# 🤝 GTK4
Favicon
Introducing F# with Semantic Kernel: Simplifying AI App Development with the Pipeline Pattern
Favicon
Describing musical domain with F#
Favicon
Who's Your .NET Ally? - F# vs C#
Favicon
F# For Dummys - Day 13 Collections Array
Favicon
F# For Dummys - Day 12 Collections List
Favicon
Primitive Type Differentiation in F#
Favicon
Request -> Handler -> SubPub Pattern with MediatR or Raw F# code
Favicon
F# For Dummys - Day 11 Collections Tuple
Favicon
F# For Dummys - Day 9 Branching
Favicon
F# For Dummys - Day 8 Function && Pipeline
Favicon
F# For Dummys - Day 7 Operators
Favicon
F# For Dummys - Day 16 Collections Sequence
Favicon
F# For Dummys - Day 15 Collections Set
Favicon
F# For Dummys - Day 14 Collections Map
Favicon
F# For Dummys - Day 10 Loop
Favicon
F# For Dummys - Day 6 Format
Favicon
F# For Dummys - Day 5 Mutable
Favicon
F# For Dummys - Day 4 Value
Favicon
F# For Dummys - Day 3 New Program
Favicon
F# For Dummys - Day 2 Environment
Favicon
F# For Dummys - Day 0 Foreword

Featured ones: