@mangoiv@functional.cafe
@mangoiv@functional.cafe avatar

mangoiv

@mangoiv@functional.cafe

Your average Haskell + Nix person; I am interested in modern functional programming languages like lean4 and koka, recently also elixir.

Currently finishing Bachelor's and writing Haskell for wire messenger.

Sometimes I build mechanical keyboards.

I am interested in discussions if the goal is to learn something, if you're just trying to persuade me, please leave me alone.

I will post in English and will occasionally boost German (network-)politics related things.

he/him is fine

This profile is from a federated server and may be incomplete. Browse more on the original instance.

tixie, to random
@tixie@guerilla.studio avatar

💋

mangoiv,
@mangoiv@functional.cafe avatar

@tixie how does the ket like it? Our cat is extremely allergic to having literally anything around any part of her body.

angerman, to random

Is acrylic and cutting services really that expensive? I though I should be able to get some custom sbc case for $10-$20. Looks like I’m looking more at $50?!

mangoiv,
@mangoiv@functional.cafe avatar

@angerman where’d you look? Have good experiences with snijlab

mangoiv,
@mangoiv@functional.cafe avatar

@angerman oh sorry. Only know EU and US vendors. There’s on big one in china as well I can’t remember the name though. Was unaffordable for me due to shipping costs but perhaps it’s better from where you live.

mangoiv, to random
@mangoiv@functional.cafe avatar

Congratulations, UK, to the single most absurd and outright idiotic thing I’ve ever seen a so called “first world” country throw their democracy away for. https://www.theguardian.com/uk-news/2023/may/06/head-of-uks-leading-anti-monarchy-group-arrested-at-coronation-protest

mangoiv, to random
@mangoiv@functional.cafe avatar

Something else

mangoiv, to random
@mangoiv@functional.cafe avatar

@yvan what do you think about this: https://www.well-typed.com/blog/2023/03/purgatory/ ? Does it align with your work? Can you perhaps even merge it?

mangoiv,
@mangoiv@functional.cafe avatar

@yvan @haroldcarr thank you for the long answer, sounds awesome!!! This is really nice.
Yes, I’ll be at ZuriHac and at the workshop actually :3

tixie, to random
@tixie@guerilla.studio avatar

I’ve known Alice for more than 10y now and she always posted the best weirdest out-of-space content.
So if you’re looking for a consistent source of weirdness, following her is a safe bet for quality disturbing content in your timeline! :nod_ina:
And also she wants to kill fascists so that’s cool too :nod_ina:

mangoiv,
@mangoiv@functional.cafe avatar

@tixie @Diogenes perhaps Alice@beige.party?

mangoiv, to random
@mangoiv@functional.cafe avatar

The amount of forests cut down only around the town my parents live at is immense. It fills me with sadness knowing that we will again not learn from it. The impact this already must have on the ecosystems must be unbelievable. There are now mountains which look like they got shaved. This was once a green wall of trees.

mangoiv, (edited ) to random
@mangoiv@functional.cafe avatar

Another possible way of representing existentials more modularly, (this composes quite well) which is slightly different to what Edsko showed:

Thanks for this Haskell Unfolder @kosmikus and Edsko, it was great again :)

mangoiv,
@mangoiv@functional.cafe avatar

@kosmikus (Obviously it's also possible to just have smth like ComposeMany of kind [k -> Constraint] -> k -> Constraint...

mangoiv,
@mangoiv@functional.cafe avatar

@kosmikus This, in my opinion, also encodes the notion of "enriching" more clearly which expresses existentials for me. I.e. how in comparison to foralls, we "constrain" ourselves, in existentials, we "enrich" our type with more context.

mangoiv,
@mangoiv@functional.cafe avatar

@kosmikus yeah, perhaps my liking of pattern synonyms and type synonyms is a bit extreme :D

(also, of course, I didn't want to criticize Edsko but I wanted to add onto this, also because I couldn't really react to the youtube video because you need a google account >D)

mangoiv, to random
@mangoiv@functional.cafe avatar

It’s fast-food if, the minute you enter the restaurant, you can at least place your order. If you first have to queue and the food takes 30 minutes to make, it’s NOT.

Otherwise it’s just sparkling junk-food.

syn, to random
@syn@ohai.social avatar

Fl oz (an ounce of Flerovium, not to be confused with fl. oz)

mangoiv,
@mangoiv@functional.cafe avatar

@syn Flotz

terrorjack, to random
@terrorjack@functional.cafe avatar

can terrorjack pan fry a steak without burning the outside while leaving it raw in the inside, let's find out

mangoiv,
@mangoiv@functional.cafe avatar

@terrorjack that’s unfortunate.

mangoiv, to random
@mangoiv@functional.cafe avatar

My favourite use of -XQuantifiedConstraints is to express conditions which have to hold that some other condition is true, therefore weakening statements that would otherwise be only true in very few cases enough such that they become useful. Example:

mangoiv, (edited ) to random
@mangoiv@functional.cafe avatar

Property testing for things? Possible.
First you need to get all Arbitrary instances in scope that are also Eq, also they need to be Typeable.

Next we Make them all existential but tag them with their capabilities (Has),

Now we can QuickCheck away!

mangoiv,
@mangoiv@functional.cafe avatar

We can also prove invariants directly on the indexed types because we can e.g. generate existential heterogeneous lists with proves of useful classes for their elements

mangoiv,
@mangoiv@functional.cafe avatar
mangoiv, to random
@mangoiv@functional.cafe avatar

Is there a concept of co-constraints like when you have an existential and the constraint is more like a “perk” conceptually? If so, let’s call them nstraints.

mangoiv, to random
@mangoiv@functional.cafe avatar

Proud to present you: Arbitrary of arbitrary typeable Arbitrary
https://git.sr.ht/~mangoiv/htree/tree/main/item/test/Spec/HTree/Orphans.hs

mangoiv,
@mangoiv@functional.cafe avatar

Mind that Typeable is not a restriction but a perk.

terrorjack, to random
@terrorjack@functional.cafe avatar

sysadmins: do you use btrfs/zfs snapshots as another line of defense in addition to nixos's own system generations? if so, why?

mangoiv,
@mangoiv@functional.cafe avatar

@sandro @terrorjack I can’t understand this. For me it’s like the most valuable thing I have on my PC. The amount of time I need to rebuild it is crazy. I will never want to do that again.

mangoiv,
@mangoiv@functional.cafe avatar

@sandro @terrorjack last timey store got corrupted I waited a solid day in which I couldn’t use my PC

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