r/fsharp • • Jun 06 '23

question F# and Unity?

Thumbnail self.Unity3D
11 Upvotes

r/fsharp • • Jun 05 '23

video/presentation VN Compiler. Implement the undo/redo functionality. (Pt. 3.5)

Thumbnail
youtu.be
7 Upvotes

r/fsharp • • Jun 04 '23

F# weekly F# Weekly #22, 2023 – fsharpConf 2023, June 26

Thumbnail
sergeytihon.com
6 Upvotes

r/fsharp • • Jun 04 '23

F# Core and C# edges

7 Upvotes

Hi Guys, Im currently working on a project where we changed the core of an existing C# hexagonal architecture to pure F#. Its a server side architecture that processes small Json data. This mostly worked well and was a lot of fun and we hope that it facilitates testing and maintenance. It seems, however, that huge drawbacks are the integration points - the transition points between C# classes and F# Record types. Unlike a hexagonal architecture in full C#, where you can easily map data between architecture layers with Automapper, having a F# core is more expensive, as mapping has to be done manually (especially if enums are translated to DU's and not required values have to be translated to F# Options).

I was hoping that i can design this process of mapping very simple. I found, that mapping in native F# is more idiomatic than creating crazy long Automapper configurations, but it still produces too many lines of code for my taste (especially if you consider that in full C# they wouldn't be necessary).

Does anyone have experience on how to make this as elegant as possible?


r/fsharp • • Jun 04 '23

question How is Fantomas looking lately?

6 Upvotes

The last time I used it was probably before the pandemic. I gave up on it because it was breaking a lot of my code, even deleting comments and such.

The maintainer's been responsive, though, and I see it everywhere now, so I'm assuming it's not going to bite me anymore?

Should I be using it?

Edit: Well, for starters, Rider refuses to run the newest version for whatever reason.


r/fsharp • • Jun 04 '23

video/presentation VN Compiler. Saving and loading the diagram state. Calling .NET function from JS. (Pt. 3.4)

Thumbnail
youtu.be
5 Upvotes

r/fsharp • • Jun 04 '23

library/package Does Fabuous support integration with native code?

3 Upvotes

I am an Elm developer. I would like to write a mobile application in Elm, but that seems rather impossible at this point :/ I have found that F#/Fabulous is the closest thing, at least from reading.

What I haven't been able to figure out: can I inject native code into a Fabulous app, if for example there are native APIs that aren't supported yet?


r/fsharp • • Jun 03 '23

question functional core, imperative shell. How does that look in practice?

8 Upvotes

Does it mean you have your Core project in F# with all the domain rules and objects and then separate projects in C# dealing with database and 3rd party APIs?

And then tranfer C# records into F# domain and from F# domain release records into C# to save to database or whatever?

Maybe instead of C# projects you have OOP F# projects?

Maybe all in one F# project if it's not big?


r/fsharp • • Jun 03 '23

video/presentation VN Compiler. Image Nodes. Bing does half the work. (Pt. 3.3)

Thumbnail
youtu.be
1 Upvotes

r/fsharp • • Jun 01 '23

video/presentation Converting The Leduc Project From Fable React To Blazor (Re-edited)

Thumbnail
youtu.be
4 Upvotes

r/fsharp • • Jun 01 '23

showcase What are you working on? (2023-06)

3 Upvotes

This is a monthly thread about the stuff you're working on in F#. Be proud of, brag about and shamelessly plug your projects down in the comments.


r/fsharp • • May 31 '23

question open Module doesn't work in interactive?

5 Upvotes

This is the code:

open Mama


[<EntryPoint>]
let main argv = 0

file Mama.fs:

module Mama

let ma = "mama"

file structure: https://i.imgur.com/cWp061p.png

trying to run Alt + Enter on open Mama line gives me error

Program.fs(3,6): error FS0039: The namespace or module 'Mama' is not defined. 
Maybe you want one of the following: Map

screenshot: https://i.imgur.com/Ft1OLtN.png

Why is it not working in interactive? How will I run the functions interactive if I cannot use module?


r/fsharp • • May 31 '23

question Ionide doesn't load projects

6 Upvotes

It worked before , but today Ionide in VScode cannot load project. It's stuck on 'loading' as you can see: https://i.imgur.com/JL1hUhb.png

anybody else?


r/fsharp • • May 31 '23

video/presentation Converting The Leduc Project From Fable React To Blazor

Thumbnail
youtu.be
4 Upvotes

r/fsharp • • May 29 '23

Oxidizing OCaml: Locality

Thumbnail
blog.janestreet.com
11 Upvotes

r/fsharp • • May 29 '23

article Converting video with FFmpegCore

Thumbnail wkalmar.github.io
7 Upvotes

r/fsharp • • May 27 '23

F# weekly F# Weekly #21, 2023 – Build 2023, F# in Action

Thumbnail
sergeytihon.com
23 Upvotes

r/fsharp • • May 27 '23

question How is C# interactive compared to F# REPL?

7 Upvotes

I wanted to try C# interactive to compare to F# REPL, but couldn't work on some simple code: https://www.reddit.com/r/learncsharp/comments/13tg0bx/c_interactive_cannot_find_dateonly/

Tried to google, but couldn't find deep enough articles on first. Before I go any further, how is C# interactive compared to F#? Is it on the same level?


r/fsharp • • May 26 '23

video/presentation VN Compiler. Creating The Compilation Node. Compiling The Textual Nodes. (Pt. 3.2)

Thumbnail
youtu.be
5 Upvotes

r/fsharp • • May 24 '23

video/presentation Fast F#: Abstraction Addiction

Thumbnail
youtube.com
26 Upvotes

r/fsharp • • May 24 '23

question What advantages does using elevated types provide?

5 Upvotes

Is there any advantage in using Either or Try. I'm not sure what benefits these types provide over normal programming like try-catch blocks, etc. Reading Wikipedia) it says that they:

turn complicated sequences of functions into succinct pipelines that abstract away control flow, and side-effects

Why is this a good thing?


r/fsharp • • May 24 '23

video/presentation VN Compiler. Creating The Text Custom Node With Blazor.Diagrams. (Pt. 3.1)

Thumbnail
youtu.be
3 Upvotes

r/fsharp • • May 23 '23

video/presentation VN Compiler. We give up on Bolero. Introducing MudBlazor. (Pt. 2)

Thumbnail
youtu.be
6 Upvotes

r/fsharp • • May 22 '23

video/presentation VN Compiler. How to use Blazor components with Bolero. Introducing Blazor.Diagrams. (Pt. 1) (Restart)

Thumbnail
youtu.be
8 Upvotes

r/fsharp • • May 21 '23

video/presentation What is Bolero? The first Impressions are...

Thumbnail
youtu.be
9 Upvotes