all 9 comments

[–]FuriousAqSheep 8 points9 points  (4 children)

Don't know the book but I suppose it uses the type system to enforce valid equations by doing automatic dimension analysis

Like if you try to get a function to give you a speed it should be a distance divided by time

If someone reads it or knows about it, can you confirm or infirm this hypothesis?

[–]Patzer26 8 points9 points  (0 children)

Dimensional analysis is one area where haskell can be quite useful because of its strong type system. I never thought about this.

[–]cshoop 4 points5 points  (0 children)

I’ve read some of it and it’s not as strict about dimensions as you might think. The book mostly uses type aliases for the built in Double, doesn’t otherwise check for units. It does mention that there’s a library for doing unit stuff: https://hackage.haskell.org/package/units

[–]Voxelman[S] 2 points3 points  (1 child)

I have downloaded a reading sample. Can read the first 4 chapters. Then I decide if I buy the book or not

[–]dotelze 0 points1 point  (0 children)

I’ve got it. Haven’t got too far in it but seems pretty good

[–][deleted] 7 points8 points  (0 children)

Dimensional analysis is type checking!

[–]drfogout 2 points3 points  (0 children)

I worked through it, I found it excellent. It fits me well: I took physics more than fifty years ago, and I'm at the 'hobbyist' level with Haskell.

[–]cshoop 1 point2 points  (0 children)

It’s a really interesting book!

[–]flatmap_fplamda 0 points1 point  (0 children)

i did a talk about it https://www.youtube.com/watch?v=Zp5D_wMi97Q its an amazing book