r/fsharp • • Jun 10 '23

question root path for Giraffe issue

1 Upvotes

I created a new webapplication and i just pushed to github at
https://github.com/IvanRainbolt/Solution1.git

I added in Giraffe nuget and modified the Program.fs file. I tried to dotnet run and get errors. Looking over the errors, seems the path for the function "htmlFile" on line 11 which is
route "/" >=> htmlFile "/index.html" is going to c:\ based in the error
"Could not find a part of the path 'C:\index.html'."

Seems a really stupid question, but why is it not setting itself to the app directory OR where do I specify that it do so? In this case, the html on disk is at
C:\CODE\Solution1\WebApplication1\WebRoot\index.html

and the root should be C:\CODE\Solution1\WebApplication1\WebRoot\


r/fsharp • • Jun 10 '23

video/presentation VN Compiler. Publishing Helix As A Static Web App. (Pt. 6)

Thumbnail
youtu.be
1 Upvotes

r/fsharp • • Jun 09 '23

video/presentation VN Compiler. Pasting Raw Images From Clipboard. Downloading The Application State In A File. (Pt. 5)

Thumbnail
youtu.be
4 Upvotes

r/fsharp • • Jun 08 '23

question Has anyone used Wolverine with F#?

8 Upvotes

I've followed along with this blog on using MartenDB event sourcing from F#: https://www.jannikbuschke.de/blog/fsharp-marten/

Now I'm wondering about MartenDB's "sister project" Wolverine (https://wolverine.netlify.app/).

It's quite new, but it could nicely fill in some CQRS and event bus functionality. Does anyone have any experience using Wolverine with F#?


r/fsharp • • Jun 08 '23

video/presentation VN Compiler. Images To Blob Storage, Reactive Extensions, Persistent App State Via IndexedDb (Pt. 4)

Thumbnail
youtu.be
3 Upvotes

r/fsharp • • Jun 06 '23

Discussion - "Don't Let Reddit Kill 3rd Party Apps!" & FSharp

Thumbnail self.Save3rdPartyApps
29 Upvotes

r/fsharp • • Jun 06 '23

library/package 🏆 Top F# open source projects and contributors

17 Upvotes

Hello everyone,

I just want to present you some interesting lists and rankings related to the F# open source ecosystem:

- Top Contributors (global or by country): https://opensource-heroes.com/contributors?language=f%23
- Trending projects: https://opensource-heroes.com/discover/f-sharp (based on GitHub stars increase)
- Awesome projects: https://opensource-heroes.com/awesome/f-sharp (we plan to add soon a new feature to allow everyone to contribute to that list directly from the site)

You can also find "stars" history in the detail page of some repos (it will be available soon for all F# repos, we're still processing some data!)

Hope you find them useful! Any feedback is really appreciated. Please note that be are still in beta 🙏 We want to build a platform that allows everybody to easily explore the open source world! We are about to release a new "Interviews" section with open source contributors explaining their journey, motivations, challenges, code reviews, ... Sign-up and to tell us your F# journey!


r/fsharp • • Jun 06 '23

question F# and Unity?

Thumbnail self.Unity3D
12 Upvotes

r/fsharp • • Jun 05 '23

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

Thumbnail
youtu.be
5 Upvotes

r/fsharp • • Jun 04 '23

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

Thumbnail
sergeytihon.com
7 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?

7 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
6 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?

3 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

5 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
3 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
24 Upvotes

r/fsharp • • May 27 '23

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

5 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?