paninid, to history
@paninid@mastodon.world avatar

I forget where I read that revolutions tend to occur in the spring/summer because that is when state policy reveals failures at the time of harvest, there’s not enough food, and people lash out at the their rulers.

It’s mid-May.

I’m just saying.

#musings #history #PatternMatching

paninid, to psychology
@paninid@mastodon.world avatar

“upstream determinants of aberrant psychological outcomes.“ 🔥

via @hannu_ikonen

#psychology #epigenetics #history #medical #sociology #anthropology #humanities #patternmatching #PatternSynthesis

amunizp, to jupyter
@amunizp@fosstodon.org avatar

This might be a bit out there but does anybody have some sample code in #R using emdist() emd() https://cran.r-project.org/web/packages/emdist/emdist.pdf

kind of thing would be nice. https://en.m.wikipedia.org/wiki/Earth_mover%27s_distance is normally used in maybe in and even in

BTW thank you for the wiki article!

@JorgeStolfi

angelmunoz, to dotnet
@angelmunoz@misskey.cloud avatar

Today in F# bits:

Sometimes when you have a workflow in your system you know in advance that there are some validations and other business rules that may make it fail these are expected errors (not to confuse with exceptions) and are quite cumbersome to handle with exceptions or other error handling techniques, in F# and other languages like rust you have the ability to define that via the Result<value></value> type!
Here we have a simple simulated workflow that may fail or not which will be handled later!

In the second picture we have our Featured F# library from today (link below) which provides a set of helpers and computation expressions that allows us to express these flows in a very convenient way.

https://github.com/demystifyfp/FsToolkit.ErrorHandling

#fsharp #dotnet #rust #errorhandling #patternmatching

image/png

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