brandewinder, to dotnet

Blog post: attempting to implement the Game of Life in Avalonia with F#, MVU style. Shout-out to @khalidabuhakmeh for the original inspiration :)
https://brandewinder.com/2023/06/17/wip-game-of-life-avalonia-elmish/

arialdo, to random
@arialdo@mastodon.online avatar

I'm finding again working in .

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.

bradwilson, to CSharp
@bradwilson@mastodon.social avatar

I want to see if it's possible to replace runtime reflection in @xunit v3 with source generators (for better performance and to support NativeAOT), but I think I've already hit the first blocking point: no support for ? Only and ?

kedare, to dotnet

Is there anyone using other languages than C# and F# on .NET ?
I remember back then there was the language but looks like it's not much used now.
Other alternative languages like and are either lagging a lot on supported version or abandoned apparently.

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

I think should introduce the concept of global pure functions. And yes, I know exists.

The ceremony of encapsulating static types for static methods is just that, ceremony.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

The community might hang me for this demo.

bradwilson, to dotnet
@bradwilson@mastodon.social avatar

If @xunit were a human, it would be able to drive today. 😂 Happy 16th birthday!

greggyb, to random
@greggyb@mastodon.sdf.org avatar

I came up with a thing in today and I am unsure about it. I don't know if it's cute, useless, or useful; I cannot see far enough ahead to understand its implications.

type ErrExn = | Err of DomainError | Exn of System.Exception

This DU unifies domain errors (that are represented in a user-written DU) and exceptions.

I'd expect it to be in a function with a signature of 'a -> Result<'b, ErrExn>.

I don't know if this gives value over separate domain errors and exceptions.

Thoughts?

maartenballiauw, to CSharp
@maartenballiauw@mastodon.online avatar

Blogged a bit about discriminated unions in (yes, attributed ). Mainly to highlight some of the clever operator overloading in .

https://blog.maartenballiauw.be/post/2023/09/18/discriminated-unions-in-csharp.html

drechsler, to dotnet

hey

is there a consent for 2023 how a directory structure should look like for new greenfield or solutions?

  • Java-like (src and test)
  • "Flat": LibFoo is next to LibFoo.Tests
  • other?
khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar
khalidabuhakmeh, to AWS
@khalidabuhakmeh@mastodon.social avatar

If you’re interested in and seeing some demos, head over to Twitch to watch a demo by Matt Ellis. I’ll be hanging out in the chat as well.

https://www.twitch.tv/aws

MindOfJoe, to random

On a random walk, I bumped into F#. Sounds interesting... tell me more!

My word... every search for "qucik start" or "tutorial" leads down an academic rabbit hole of type definitions and other associated lunacy.

Honestly, just show me how you do a few things. You don't like loops? Fine. You don't like variables? Fine. Show me how you solve this problem that way. Too much to ask?

fornever, to programming

Just published several NuGet packages by a collective name of FVNever.Oddities: https://github.com/ForNeVeR/Oddities/

Support for resource extraction from 16-bit executables, parsing of old WinHelp files, and a couple of associated image formats (MRB, SHG, DIB) for (written in a crazy mix of and ), all under the almighty MIT license.

I use these libraries to remake old games, but maybe others will find them useful for something, too.

pblasucci, to programming
@pblasucci@hachyderm.io avatar

It’s verrrrry early days for me, but…

I think I quite like (at least, as far as language and tooling… jury’s still out on the larger ecosystem). It sits comfortably in-between and , and without any of the eye-roll-inducing quirks of .

Mayhaps I’ll keep with it for a while… maybe I’ll even do a blog post 😮 (but probably not😅).

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

The latest version of is out now. So many good features with improvements for and . Also, some safe-guards. Check it out!

https://www.jetbrains.com/rider/whatsnew/

xunit, to dotnet

It's release day! 🎉

We just shipped v2 Core Framework 2.5.0, Analyzers 1.2.0, and Visual Studio adapter 2.5.0. This release includes a bunch of quality of life improvements, bug fixes, and an overhauled assertion library that includes new assertions, new overloads, and much better (and most consistent) assertion failure messages.

Enjoy!

Release notes:

https://xunit.net/releases/2.5.0
https://xunit.net/releases/analyzers/1.2.0
https://xunit.net/releases/visualstudio/2.5.0

angelmunoz, to dotnet

I'll be trying to do a few snippets like these and see how it goes :)
Today in F# bits:
How does a web server in fsharp looks like?
It might be more familiar than you think!
Here we have two common F# web frameworks
https://www.falcoframework.com
https://saturnframework.org

In both cases most of what it takes is a function that can handle an http context from aspnet and return an http response!

image/png

xunit, to dotnet

We just shipped new prerelease versions of the core framework, the Visual Studio adapter, and analyzers.

Note: This v2 2.5.1 release is targeted primarily at fixing issues with the new assertion library.

This is also the first prerelease build that fixes the issues with package signature verification (NU3003 errors) that affected the 2.5.0 release.

Release notes:

https://xunit.net/releases/v2/2.5.1-pre.11
https://xunit.net/releases/analyzers/1.3.0-pre.6
https://xunit.net/releases/visualstudio/2.5.1-pre.4

Josh_Gallagher, to dotnet

developers: I'm looking for a book on .NET 5+ (more recent the better) that has the same level of depth as Jeff Richter's "Applied .NET Framework" / "CLR via C#". Subjects in there included file format of Portable Executables, garbage collector internal workings, use of stack & heap, volatile keyword & CPU caches. Is there anything out there, or is the new world solely podcasts and blog articles?

Please boost, if you would.

arialdo, to emacs
@arialdo@mastodon.online avatar

With support of Protesilaos, I managed to have working with .

In the next weeks I'm trying to use Emacs as my main IDE. I'm very curious to see where this will take me.

I mean, using 2 of my most loved technologies together, so excited!

xunit, to dotnet
@xunit@dotnet.social avatar

We just shipped v2 Core Framework 2.6.2, Analyzers 1.6.0, and Visual Studio adapter 2.5.4. This is primarily a bug fix release.

Enjoy!

Release notes:

https://xunit.net/releases/v2/2.6.2
https://xunit.net/releases/analyzers/1.6.0
https://xunit.net/releases/visualstudio/2.5.4

(Note: we found a bug in the fixer for the new xUnit2023 analyzer, but decided to ship this anyways because the source of the bug wasn't immediately obvious. The analyzer works fine, but the fixer always throws. Sorry about that!)

ploeh, to haskell

ISTR that does have a trick to allow embedded quotes in strings, just like or does:

"""{"communalTable":{"capacity":42}}"""

I don't think it was QuasiQuotes... Do I remember wrong?

xunit, to dotnet
@xunit@dotnet.social avatar

We just shipped v2 Core Framework 2.6.6 and Analyzers 1.10.0. The core framework update adds assembly-level BeforeAfterTest support, as well as eliminating false security warnings related to old packages from .NET Standard 1.x. We've also added two new analyzers and fixed issues in a few more.

Enjoy!

Release notes:

https://xunit.net/releases/v2/2.6.6
https://xunit.net/releases/analyzers/1.10.0

jindraivanek, to random

New blogpost:

Curious case of List.contains performance

performance analysis of standard library function

https://jindraivanek.hashnode.dev/curious-case-of-listcontains-performance

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • khanakhh
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • InstantRegret
  • slotface
  • osvaldo12
  • kavyap
  • DreamBathrooms
  • JUstTest
  • Durango
  • everett
  • tacticalgear
  • modclub
  • normalnudes
  • ngwrru68w68
  • cisconetworking
  • tester
  • GTA5RPClips
  • Leos
  • anitta
  • provamag3
  • lostlight
  • All magazines