A primer on the cruel, tacit laws of type-level programming in Haskell
aymannadeem.com
aymannadeem.com
There are also kinds for types whose values are "unlifted", meaning they really correspond to actual values in memory, not lazy thunks.
Right now the language for expressing unlifted datatypes is quite limited. Hopefully it will be expanded so that we can write "strict Haskell" more easily.
"Levity polymorphism" paper https://www.microsoft.com/en-us/research/wp-content/uploads/...
"Kinds are calling conventions" paper https://www.microsoft.com/en-us/research/uploads/prod/2019/0...
The -XUnliftedNewtypes extension https://downloads.haskell.org/ghc/latest/docs/html/users_gui...
https://stackoverflow.com/questions/35318562/what-is-levity-...
https://stackoverflow.com/questions/56311510/what-does-type-...
None of the types in the theme here make much sense. They are arbitrary. The contribution to writing a robust program is questionable and they don't do much to explain concepts.
May as well stick with classic "Goats are mammals; that should be enough to get you going with OOP" examples, at least they are less distracting.
I'm not a fan of this article.
There's no substitute for actually encountering a real-world problem which makes you want/need type-level programming. The article makes the sensible choice of not trying to invent one for you. I don't think it should be bemoaned for that.
have a nice day
Kindness may be referring to higher kinded types and for mean girls probably just forced lingo to refer to people who don't take kindly to functional programming and types.
(I never even considered "this is HN so it's probably tech-related". Don't know what that says about me or the site!)
But I am actually glad it's about Haskell, I am a gonna read it now (and it's refreshing to see it being written by woman).
I don't mind the movie references, I don't think it's sexist. (Quite the opposite, I think standard mathematical writing is too dry and benefits from having an unrelated theme to add a bit of spice.)
Current reality is hard for everyone. When men behave like men, some women complain, when women behave like women, some men complain, it's really hard to please everyone. Take it easy, everyone.
Oh My God, neals! you can't just ask people what their first thought was...
Or are you just being pre-emptively offended on someone else's behalf?
"Davies et al. (2002) showed that women experience stereotype threat when they are reminded of existing stereotypes about women in television advertising. In this study, participants watched commercials in which women were very excited about buying cosmetic products or trying a new baking recipe. After watching these commercials, women performed worse on a math test compared with men who watched the same commercials and compared with women who watched gender-neutral commercials."
https://www.frontiersin.org/articles/10.3389/fpsyg.2018.0243...
I just think a more cautious analogy would have made sense.
But it's not any more sexist than making a movie called (and about) Mean Girls in the first place...
https://www.theguardian.com/science/blog/2012/jun/29/science...
Sadly, he's quite on point.
There are of course times when modern conversation around this devolve to people saying white men should just shut up, their opinions don't matter, etc. But since there are more defensible, reasonable versions of this (e.g., white men should be more tentative in opinions about discrimination given their relative lack of direct experience of being discriminated against, there are contexts when offering such opinions are inappropriate, etc.), it clearly is a strawman.
I think it's a pop culture reference Andi don't think it is sexist.