News for hackers. Stuff that matters.
Re:Get Started with F# as a C# developer by hdhzy on Friday July 28, 2017 @12:46PM (#14875574)
Are there any simple projects like HTTP server in F# for CoreCLR somewhere? With a Dockerfile if possible. Last time I tried to build something like that for PoC the amount of struggles I had with various versions of CoreCLR was overwhelming.
Re:Get Started with F# as a C# developer by kirse on Friday July 28, 2017 @02:18PM (#14876324)
Giraffe is a fantastic little project that is a thin layer on top of ASP.NET Core. Works out of the box with the provided template, test locally, deploy to Azure, etc.

https://github.com/dustinmoris/Giraffe

Re:Get Started with F# as a C# developer by hdhzy on Friday July 28, 2017 @04:28PM (#14877299)
Thanks but I'm looking for something simple like returning plain text in 200 HTTP response using only built-in API. Completely minimal example. Using framework for me now would be like learning JavaScript by writing SPA in React.
Re:Get Started with F# as a C# developer by kirse on Saturday July 29, 2017 @11:44AM (#14881719)
FSSnip usually has those things. If you're talking that minimal I would just look up existing C# docs and translate them over to F#... ASP.NET Core is very lightweight w/ Kestrel though.

[1] http://fssnip.net/7OR/title/Simple-HTTP-Server [2] http://fssnip.net/search/http%20server

Re:Get Started with F# as a C# developer by hdhzy on Monday July 31, 2017 @01:17PM (#14893927)
Wow, that's exactly what I wanted. Thank you very much! Fssnip looks great.
Re:Get Started with F# as a C# developer by sremani on Friday July 28, 2017 @12:52PM (#14875632)