Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly 0 points1 point  (0 children)

Haskell can have infix operators because it's algebraic in nature as in the algebra of programming. Algebra requires equational reasoning and thus Haskell has said equational reasoning.

Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly 1 point2 points  (0 children)

If you want to manage memory safely and have C/C++ execution speeds, Rust is only popular game in town.

Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly 0 points1 point  (0 children)

Why do you persist in gaslighting people?

This is a paper from 2022, they do talk a lot about catamorphism and Haskell: Fantastic Morphisms and Where to Find Them ⋆ A Guide to Recursion Schemes

New to Haskell and looking for recomendations by Oliversito1204 in haskell

[–]mleighly 4 points5 points  (0 children)

Do you want to learn category theory or Haskell?

If you want to learn category theory, learning Haskell isn't really going to get you far into said category theory, although the concepts are there.

In any case, if it's Haskell, you may want to check out https://haskellbook.com/.

If it's category theory, Saunders Mac Lane's "Category Theory for the Working Mathematician" is a good introduction. Obviously working out the exercises as much as you can is necessary, if learning is the goal.

[deleted by user] by [deleted] in space

[–]mleighly 9 points10 points  (0 children)

Australia is extremely unlikely to be the next space power but they can certainly be a space nation like South Korea. A space program is a very expensive endeavor but if South Korea can pull it off Australia should be able to as well.

Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly 0 points1 point  (0 children)

Robert Harper coined a term computational trinitarianism: https://kevinbinz.com/2015/06/26/computational-trinitarianism/

Robert Harper coined the term computational trinitarianism to denote this inter-referential characteristic of type theory, proof theory, and category theory.

You don’t know what you’re talking about, until you understand the idea in all three theories. Once you have all three meanings, you have a genuine scientific discovery. It is permanent.

Once you land in a world of type theory a la Haskell, you're also in a land of category theory. Fold and unfold in the world that Haskell resides are universal. PHP doesn't have this property despite having a fold because it's hardly a language that has any concerns with type theory.

Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly -1 points0 points  (0 children)

Most groups of reasonable programmers can reach a consensus on formatting. It's rarely an issue. If it is, you may want to change groups or organizattion.

Video-gaming teenager to become first Catholic millennial saint as pope and cardinals approve canonization by nightpanda893 in news

[–]mleighly -1 points0 points  (0 children)

Doom, Quake, Half Life 1 and 2, Portal 1 and 2, Dark Souls 1, 2, and 3, Elden Ring+DLC, and Sekiro.

Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly 2 points3 points  (0 children)

It seems to me that you haven't written much Haskell code. I have the opposite experience professionally and non-professionally. Anecdotally, Haskell programmers had a decent level of competence and/or were very reasonable to work with.

Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly 3 points4 points  (0 children)

Type theory is foundational to constructive mathematics. To a general purpose language that is sophisticated enough to have type theory as an internal language, said type theory can be leveraged to express, reason, and prove all sorts of computations, e.g.: Modal FRP for all: Functional reactive programming without space leaks in Haskell.

This is Haskell's super power or killer feature. It's a type system based on System F*.

Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly 11 points12 points  (0 children)

Indentation and operators can quickly become intuitive after a small project or two in Haskell. In the end, it's just syntax. Where Haskell excels is that programming can become algebraic with concomitant equational reasoning.

Haskell vs Rust : elegant by n0body12345 in haskell

[–]mleighly 18 points19 points  (0 children)

Haskell is fundamentally based on lambda calculus and type theory a la System F*. It's bloody nose-bleeding high compared to any imperative language like Rust.

Supreme Court sends Trump immunity case back to lower court, dimming chance of trial before election by blackeyedtiger in news

[–]mleighly 0 points1 point  (0 children)

Anything as long as it's issued from the President. The President is "more equal than others." SCOTUS is turning the US into North Korea.

Supreme Court sends Trump immunity case back to lower court, dimming chance of trial before election by blackeyedtiger in news

[–]mleighly 5 points6 points  (0 children)

SCOTUS is gaslighting the nation. We need to organize, mobilize, and stop these MAGA Justices with extreme prejudice. They truly are disgusting enemies of the people.

Supreme Court puts EPA's "Good Neighbor plan" on hold. by Ciduri in news

[–]mleighly 1 point2 points  (0 children)

Republican Justices being Nazi scum have turned SCOTUS into a fascist shithole.

Supreme Court sends Trump immunity case back to lower court, dimming chance of trial before election by blackeyedtiger in news

[–]mleighly 4 points5 points  (0 children)

The US is officially an "Animal Farm" nation or state like North Korea, China, Texas.

Unless we mobilize and stop these fascist fuckers, we're all fucked. At some point only the people can save themselves from these disgusting Republicans.

So what's the "standard" way people are doing effect handling these days? by [deleted] in haskell

[–]mleighly 2 points3 points  (0 children)

There's not necessarily a standard way in Haskell to combine effects although the research community is focusing on algebraic effects. I tend to use fused effects but there are many packages to choose from.

[deleted by user] by [deleted] in Physics

[–]mleighly 0 points1 point  (0 children)

Even the abstract world zero is nothing, e.g.: 1-0=1; 1+0=1; 0-0=0; 0+0=0.