- 1 Post
- 7 Comments
ultimate_worrier@lemmy.dbzer0.comto
Privacy@lemmy.ml•Laptop Hardening advice for Windows?
12·2 days agodeleted by creator
ultimate_worrier@lemmy.dbzer0.comto
Programmer Humor@programming.dev•Haskellers when someone boasts about Typescript's fake type system.
2·6 days agoOf course, they have side effects. Side effects are what the computation does. Otherwise, they would simply make the box hot.
The difference between Haskell and most languages is that Haskell forces one to keep that impurity at the outer edges. It enforces that constantly, making programs easier to reason about.
I heard it explained succinctly lately: types are all of the possible inputs and outputs of a program while functions encapsulate the mutation. Excel, for example, is a purely functional language.
ultimate_worrier@lemmy.dbzer0.comto
Programmer Humor@programming.dev•Haskellers when someone boasts about Typescript's fake type system.
1·7 days agoThanks. I think it’s most fair to count what a language has without extensions but thanks for the correction. To that end, Haskell basically has Dependent Types now too if you pile 10 extensions together (singletons, linear types, and others) and squint a little. It’ll easily be the first production-grade language to do so.
ultimate_worrier@lemmy.dbzer0.comto
Programmer Humor@programming.dev•Haskellers when someone boasts about Typescript's fake type system.
2·7 days agoThat’s true and they’re great for prototyping but I’ve fallen in love with Purescript for that domain. So I’m a bit biased.
ultimate_worrier@lemmy.dbzer0.comto
Programmer Humor@programming.dev•Haskellers when someone boasts about Typescript's fake type system.
7·7 days agoTypescript doesn’t have linear types. Not even Haskell has linear types (correction GHC has had LT by extension since 9.0). Give Rust some credit for having linear types (AKA borrow checker).
Ps. Typescript doesn’t have dependent types and their type system is a joke even compared to Purescript. Here’s a little writeup about it: https://lemmy.dbzer0.com/post/66729809
ultimate_worrier@lemmy.dbzer0.comto
Programmer Humor@programming.dev•Haskellers when someone boasts about Typescript's fake type system.
91·8 days agoThe features Haskell has been “trying to copy” from TypeScript are, without exception, features TypeScript copied from type theory research that predates TypeScript by decades – row polymorphism from Didier Rémy’s 1989 work, untagged unions from the intersection type literature of the 1980s, type-level computation from Martin-Löf’s 1975 intuitionistic type theory – and what you are observing is not Haskell enviously watching TypeScript and taking notes, but rather two languages drinking from the same well of ideas, one of which is doing so with a formal semantics and a proof of soundness, and the other of which is doing so while standing in a JavaScript runtime and hoping no one looks down.
ultimate_worrier@lemmy.dbzer0.comOPto
Memes@lemmy.ml•Haskellers when someone boasts about Typescript's fake type system.
1·8 days agodeleted by creator
deleted by creator
deleted by creator
ultimate_worrier@lemmy.dbzer0.comto
Programming@programming.dev•what open source tools do you use for music?
31·13 days agoNeural Amp Modeler. Free, open source, and objectively superior to anything out there from any closed source company.


deleted by creator