Masthash

#FSharp

brandewinder
24 minutes ago

Blog post: using OxyPlot charts in an @avaloniaui app with funcUI. If I am going to write a desktop app, I'd much rather use an Elmish loop / MVU!
Shout out to @josua_jaeger @sleepyfrans @jmarr and @angelmunoz for the wonderful work on the library + docs, this was fun :)
https://brandewinder.com/2023/05/29/first-look-at-avalonia-elmish/
#fsharp #dotnet

F# Online
6 hours ago

The good folk at @CompositionalIT take a look at Mingine, a WIP game engine for the web, built with F#

#fsharp

https://twitter.com/compositionalit/status/1656973754474328068

Giulio
11 hours ago

I guess that redis #pipeline concept translates from python to #dotnet (#csharp and #fsharp) as IBatch db.CreateBatch, correct?
And that should optimize my hset hundreds operations...

https://github.com/StackExchange/StackExchange.Redis/issues/2472#issuecomment-1566003130

Jérémie Chassaing
17 hours ago

@alecui @keith maybe this book:
Proframming Langague concepts
https://www.amazon.fr/Programming-Language-Concepts-Peter-Sestoft/dp/331960788X
It is in #fsharp and details most aspects of writing a compiler.

Jon Sagara
1 day ago

RT @isaac_abraham@twitter.com Big milestone done for #fsharp in action (https://manning.com/books/f-sharp-in-action) - finished the last chapter and reviewed feedback from editors etc. - still a way to go before it's typeset etc. but hopefully not too long to go! https://twitter.com/isaac_abraham/status/1661504872200523776

Sergey Tihon
1 day ago
F# Online
1 day ago

F# has superpowers - not only can F# compile to Javascript, you can host your F# code in the browser, PolyglotNotebooks, GitHub Blocks and Office.

Learn all about it in this thread from the amazing F# community contributor Pawel Stadnicki

https://twitter.com/florence_dev/status/1659150652621172742

#fsharp #javascript #node #fablecompiler

Angel Munoz
2 days ago

Hey #fsharp folks or people not familiar with F# what kind of content are you interested in these days?

I will be honest I'm the kind of person that goes:
"I already did that or very close to it let's move to the next thing"
That's why I haven't written any posts in quite a while, and I don't think I've done anything interesting at all or at least worth writing about
That being said, I tend to be very demanding for myself so perhaps I have discarded topics/blog ideas that other people might want to read about

#developer #blog #dotnet #interests #webdev

Anupam Jain
3 days ago

Thanks Baishampayan Ghose and Ankit Solanki for the insightful conversation. Also thanks to everyone who attended.

If you missed it, you can still catch the livestreamed session on YouTube at https://www.youtube.com/live/WtrrfAKJoVc

Continue the conversation by joining the #FPIndia Telegram group - https://t.me/fpncr.

See you at the next #FpWebConf event!

#FunctionalProgramming #India #Fsharp #Event

Khalid ⚡
3 days ago

@UrsEnzler Maybe I should have included an #fsharp tag? 🤔 😅

Anupam Jain
3 days ago

Less than 4 hours to go before the second event in #FPWebConf - BG will be talking to Ankit Solanki about using #Fsharp in production at Clear!

Registration is free, register at the conf page (https://hasgeek.com/jsfoo/fp-webconf/) to get the participation zoom link for today's talk.

#FunctionalProgramming #India #Event

Angel Munoz
3 days ago

Well! I have to say, kudos to the #winrt projection team from microsoft and #dotnet using the winrt api from both #fsharp and #rust is nearly the same

In this case I'm just using the
Windows.Security.Cryptography.DataProtection namespace to read a file using the winrt api (I could use bcl/std apis I know) convert it into a stream, use the DataProtection apis to encrypt the file, the encrypted file gets saved as a new file (so I can see it rather than just do it to the same file) and then decrypt that file into a new one which technically is just a copy of the first one but after encryption/decryption :)

3 days ago

When 5 people show up to volunteer as co-maintainers of @SchlenkR FsHttp project, something very good is going on, I think.
Just great to see the community in this healthy state.
#fsharp

simendsjo
4 days ago

Hi, first post on Mastodon. I'm a self taught software developer using #guix, #stumpwm, #emacs, and currently experimenting with #nyxt.

I'm fond of #foss, and do some drive-by contributions to various projects as I encounter issues.

By day, I'm working as a consultant mostly using #windows, #dotnet and #csharp, but I use #fsharp whenever I get the chance.

Looking forward to meeting likeminded people on Fosstodon!

Anupam Jain
4 days ago

Tomorrow, on #FPWebConf - Notes on F#: Doing functional programming in production at Clear with Baishampayan Ghose and Ankit Solanki.

RSVP at - https://has.gy/GFa4

#FunctionalProgramming #India #FSharp #WebDevelopment #Event

F# Online
4 days ago

Level up your software skills and learn some F#!

"Introduction to the Beginner Series to F#"

https://www.youtube.com/watch?v=yGzu0iDuMNQ&list=PLdo4fOcmZ0oUFghYOp89baYFBTGxUkC7Z

#fsharp #dotnet #learning

Angel Munoz
5 days ago

Do you think using #fsharp is somewhat niche?
Well... I got you a real niche!
Recording with your camera using
#WinRT APIs with
@avaloniaui@dotnet.social
as your window handle provider from F#
😅

I should technically be able to use MAUI or other windows desktop solution (WPF or WinForms) but I figured that If Avalonia (which works wonders with F#) could give me a window handle that's all I needed.

So yeah... any time you feel you think desktop and servers with F# is niche, remember there's a dude trying out WinRT APIs with F# and a cross-platform framework

If you ask me "Why not MAUI"? I'd answer:

I don't know, does it even support F#?
Feel free to poke me with a sample with it I'll happily try it out :)

Angel Munoz
5 days ago

hey @avaloniaui@dotnet.social and #dotnet folks is there a way to run avalonia as a CLI app (I think I saw something like that months/years ago)?

use case:

I'd like to have a window handle available to interop with some Windows APIs but I don't want to actually use the whole UI stuff (neither to meddle with WinUI/MAUI Stuff from F# that's a no-no
🙄 I'd prefer to use something that already works 😄)

So far I've started with classic desktop lifecycle and just configure the window to hide and not show in the task bar. It works fine but I'd like to know if there's a better way

#dotnet #fsharp

Martin Björkström
5 days ago

#fsharp Oh, how I've missed thee!

Angel Munoz
6 days ago

Whew I gave a shot to the #windows crate for #rustlang and I'm quite happy

I managed to somewhat port 1-1 a small music player I actually wrote in
#fsharp a while ago

Original F# Version:
https://dev.to/tunaxor/hacking-windows-with-f-5-0-scripts-4k2o

I guess I will have fun and learn a little bit more rust after all
😄

Darren
6 days ago

Getting a null pointer exception in #fsharp ( from a library written in C#). Compiling the library to get a line number for the NULL. The library builds ..

11357 Warning(s)
0 Error(s)

brandewinder
1 week ago

@josua_jaeger nice work on @avaloniaui funcUi, started to play with it and enjoying the Elmish loop on the desktop :) Just managed to get OxyPlot charts working in the DSL, i am very excited. #fsharp #dotnet

F# Online
1 week ago

Did you know, you can learn how Fable compiles F# to JavaScript, Python and Rust directly from the browser, and give it a try?

Learn more below, and give it a go!

https://twitter.com/florence_dev/status/1659825247170842626

#fsharp #Fablecompiler #rustlang #python #JavaScript

best thing about writing #fsharp for web is that it means I don’t have to think about javascript

Sergey Tihon
1 week ago
F# Online
1 week ago

Join the functional programming community in the Indian subcontinent and learn about using F# in production at Clear (parent company of ClearTax)!

#Online on 26th of May. Attendance is #free.

An event in the #FPWebConf series

#fsharp #functional
https://twitter.com/FunctionalIndia/status/1656660243647188995

Angel Munoz
1 week ago

It is not the most crazy thing ever, but I just updated my node version manager written in #fsharp

https://github.com/AngelMunoz/NvmFs/releases/tag/v0.8.0

I also took the opportunity to use the cool
#dotnet AOT bits, the final binaries are around ~8mb which is pretty cool! nothing seems to be broken yet (it is a simple cli app tbh) so if you want to try something simpler and without installing anything other than downloading a binary and putting it in the path I'd say check it out!

Laimis
1 week ago

I am really starting to get the benefits of the #fsharp conciseness. I just had something change in the data I was ingesting. Basically parsing through some data.

It's a piece of code I had not touched in a long time, but it was super clear what it was expecting because there is very little in the way. No braces, parenthesis, etc in your way. Just instructions, parsing data through a pipeline.

Isolated tests, inspected new outcome, adjusted the pipeline, and it's done. Works.

F# Online
1 week ago

More action in the F# compiler and tools repository - the community and Microsoft have been working on a bunch of improvements (both perf and feature).

Changes will probably make it to 17.7p2 or, 17.7p3.

If you're using #visualstudio for #fsharp, you'll like the changes.

https://twitter.com/vzarytovskii/status/1659277287370416131

Darren
1 week ago

@alexelcu i’ve only had great experiences with that model (#fsharp with #fablecompiler for compiling web side). Presentations on our experience in a #biotech setting here https://github.com/demetrixbio/presentations

Fast F#
1 week ago

Hey #fsharp and #Dotnet

The FrozenDictionary is coming in .NET 8. Is it faster than what we can do in F#? Will we finally fail to outpace the C# version? Is F# just slow garbage...?

Video: https://youtu.be/raQsYNR4GMk
Code: https://github.com/matthewcrews/FastDictionaryTest

F# Online
2 weeks ago

Use Pulumi with F# !

"!Our Preview of .NET supports custom resource providers. This means you can build custom providers using your favorite .NET language...#Fsharp "

https://www.pulumi.com/blog/dotnet-custom-providers/?utm_source=Twitter&utm_medium=social&utm_campaign=blog

#pulumi #fsharp #dotnet #aws #azure

Angel Munoz
2 weeks ago

So I tried yesterday to somehow use #lapce (lapce.dev) to work with #fsharp via fsac but I was not able to call the lsp server, I'm kind of bummed that the plugin docs are not there yet, I guess Ill have to wait more to try again once better docs are in place

Giulio
2 weeks ago

@dsyme
What would you think about #cloud native #microservices architecture: has it disrupted the isomorphic idea of #fsharp on both back and front ends? Is that now regarded as an old fashioned #monolith?

Josua Jäger / JaggerJo
2 weeks ago

FuncUI reached 666 ⭐️’s Today!

Thanks for all the contributions. Can’t wait for FuncUI on @avaloniaui v11 😉

#fsharp #dotnet @dotnetbot @fsharp

Sorin
2 weeks ago

I have a great day!

Only the imagination is the limit. In the back of my head rings the theme from the "Symphony of Destruction" - Megadeth

The output of less than 500 lines of F# code:
#fsharp #godlike

Laimis
2 weeks ago

@carltonupp love #fsharp. I hear you on adoption bits, but that feels slightly better with .net framework behind it.

What did you decide on?

kitlovesfsharp
2 weeks ago
Screenshot of a Microsoft Excel table.
Darren
2 weeks ago

@prozacchiwawa @OneFluffyBoi @ZoDoneRightNow -
yes remiss of me to not mention the awesome
#fablecompiler which transpiles #Fsharp in to javascript, python, rust and dart.

Darren
2 weeks ago

@OneFluffyBoi @ZoDoneRightNow +1 for #fsharp. I used ML variants in college and loved the idea but the implementations back then were bumpy. The modern variants are stunning. Beautiful tooling, multiple well developed IDEs and a friendly community that is practical. Good learning experience and you can also build an entire production system in it. The underlying dotnet vm is shared with c# and Vb so has had a lot of investment too.

Sergey Tihon
2 weeks ago
Alex Nedelcu ☕️
2 weeks ago

We have static #programming languages that are both adequate for the server-side and can target the client-side (Javascript, WASM, native, etc), such as #Scala, #Kotlin, #Rust, #FSharp, #Typescript.

The biggest advantage of using the same language is that you can share code, starting with the data models, alongside serialization, and parsing/validation rules. The API can thus be easily kept in sync, and a server-side test is also relevant on the client-side.

Urs Enzler 🐉
3 weeks ago

Our app started 8 years ago. First, the backend was all C#. 3 years ago, we switched to F# for new features. F# is more concise than C#. The effect is that when code gets more concise, it's easier to overview more code, making it easier to see the interconnections of different parts. We were able to simplify a lot of code. Not just the F# code, but once we saw a simpler pattern in F#, we could also apply it in C# code. The "noise" in C# made it impossible to see the simpler solution.
#fsharp

Urs Enzler 🐉
3 weeks ago

This week's myth about F#: F#'s strict ordering is dumb! No, it's great for taming dependencies.
https://www.planetgeek.ch/2023/05/09/myths-about-f-fs-strict-ordering-is-dumb-no-its-great-for-taming-dependencies/
#dotnet #fsharp #myths

Jon Sagara
3 weeks ago

RT @vzarytovskii@twitter.com #fsharp folks, who use VisualStudio, we are working on a bunch of improvements (both perf and feature).

If you're using 17.6 or later, and want to try some, I will be publising a vsix in the following PR every time we make some improvements

https://twitter.com/vzarytovskii/status/1654515829793234945

Laimis
3 weeks ago

One day I swear I will understand how to use FsCheck. But not sure when that day will come: https://fscheck.github.io/FsCheck/

I gained much appreciation for randomized tests when working on Lucene.NET, the stuff you can find when your input is random is really special. But what I see in Lucene, I can't mentally translate to FsCheck. FsCheck concepts feel so foreign.

I guess as with #fsharp itself, I will keep on banging my head against it until one day it will come through

Sergey Tihon
3 weeks ago
Urs Enzler 🐉
4 weeks ago
Maarten Balliauw
4 weeks ago

The Call for Speakers for #JetBrains .NET Day Online 2023 is open!

Looking forward to seeing your #dotnet talk submissions 👀

https://jb.gg/anxo4v #JbDotNetDay #cfp #csharp #fsharp #JetBrainsRider #ReSharper

Paul Biggar
1 month ago

Can anyone recommend a library that does file system access in a nice functional way? Looking for inspiration for similar in Darklang #haskell #fsharp #rust #elm #ocaml

Sergey Tihon
1 month ago
F# Online
1 month ago

Whoooo! The online fsharpConf for the F# and Fable communities will be back in June this year!

Mark the date and head over to propose content and get involved! Be creative and let's make this the best fsharpConf ever!

https://twitter.com/fsharpconf/status/1649326307279339520

#fsharp #fablecompiler

arialdo
1 month ago

I'm finding again working in #fsharp.

F# is a pure joy.

Again, I miss a better support from the IDE, but folks, the language is such a delight... I did not even realize it's 2 A.M.

RT Paweł Stadnicki
Blog post:
"Exploring job offers with Polyglot Notebooks"
https://www.buymeacoffee.com/florencedev/polyglot-notebooks-best-place-anything
If you know anyone who could be interested in providing real job offers, please send me DM.
#csharp #fsharp #dotnet #PolyglotNotebooks

:sys_twitter: https://twitter.com/florence_dev/status/1645792154420404233

brandewinder
1 month ago

Blog post: Quipu, a basic Nelder-Mead solver in F#. Nothing fancy, pretty rough still, but I needed it for my own purposes, and it does the job, so here it is:
https://brandewinder.com/2023/04/15/quipu-basic-nelder-mead-solver/
#fsharp

Angel Munoz
1 month ago

New Beta is out! pick it while.... well, whenever you want!

This release refines the setup and 1st run checks experiences as well as hide some of the commands in preview we were not able to do before

https://github.com/AngelMunoz/Perla/releases/tag/v1.0.0-beta-018

#dotnet #fsharp #perlaDevServer #webdev #importmaps

Jérémie Chassaing
2 months ago

Et oui, ce sera en #fsharp, off course.

Maarten Balliauw
2 months ago

Recording of yesterday's livestream with @UrsEnzler and @khalidabuhakmeh is up!

📺 Object-Oriented vs. Functional Programming with #csharp and #fsharp

Covers the differences and similarities between functional and object-oriented using many examples 👍

https://jb.gg/m23q78

Urs Enzler 🐉
2 months ago

This week's myth about F#: We can’t use F# because we can’t rewrite everything from C#!
You don’t have to, use Interop.
https://www.planetgeek.ch/2023/04/04/myths-about-f-we-cant-use-f-because-we-cant-rewrite-everything-from-c-you-dont-have-to-use-interop/
#fsharp #dotnet #myths

Khalid ⚡
2 months ago

For #fsharp folks, #JetBrainsRider now has language injections for Regex instances. You get some nice color highlighting so you don't get lost in the rabbit hole that is #regularexpressions. You're welcome.

Language injection highlighting for Regex in #fsharp
Darren
2 months ago

@khalidabuhakmeh i have been working through a book on using Keras. all the code examples are python but I’m doing the exercises in F# with a dotnet keras wrapper. Happy to share examples if that’s helpful. #fsharp #machinelearning

Urs Enzler 🐉
2 months ago

Today's random F# code from our app is about using Verify (snapshot testing) to make sure we don't accidentally change our events, which we store in our database): https://www.planetgeek.ch/2023/03/31/todays-random-f-code-using-verify-to-prevent-breaking-changes-in-stored-data/
#fsharp #dotnet

F# Online
2 months ago

It's a stress-free life being an F# dev!
In this talk, Ian Russell - author of "Essential F#" shows why F# is a great choice for building scalable Web APIs and services.

#fsharp @ijrussell
http://bit.ly/3nu8HHs

Angel Munoz
2 months ago

it might be a stretch but has anyone tried the latest #perlaDevServer previews?

I'm wondering if I'm postponing v1 too much so I'd like to mark the testing commands as experimental and release the rest stuff which I know it is working
any feedback in that area would be appreciated

#fsharp #webdev #dotnet #devserver

RT Paweł Stadnicki
The notebook's superpower lies in ability to create data visually with a tool it shines (@reactjs),
trigger creating types behind the scenes with interactive engine (#dotnetinteractive)
and operate on the data with a language of choice.
#fsharp @code @Mapbox @FSQStudio https://t.co/hC1krgr7Dl

:sys_twitter: https://twitter.com/florence_dev/status/1637733707858468864

Media source: https://pbs.twimg.com/media/Frpk40mXsAA5PAT?format=jpg&name=orig
Tim Apple
2 months ago

It's one of those weekends where I need to focus on learning #csharp or #fsharp. I have been dabbling with but can never focus on one for exceptionally long. The other distracts me.
@dotnet #dotnet