VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Getting Started With Haskell DistroTube

Getting Started With Haskell DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Getting Started With Haskell DistroTube Some of the viewers have asked me to take a closer look at Haskell since I've done so much content regarding Xmonad, a tiling window manager written in Haskell. Well, I'm not a programmer by trade. And I certainly wouldn't say I know Haskell. But I, a non-programmer, will attempt to cover some of the basics of Haskell in this video. ERRATA: I messed up in explaining the order of operations for 'foldl'. 'foldr' and 'foldl' are confusing as hell. But the following diagram should be right... foldl (+) 0 [1,2,3,4] = ((((0 + 1) + 2) + 3) + 4) foldr (+) 0 [1,2,3,4] = (1 + (2 + (3 + (4 + 0)))) - http://learnyouahaskell.com/ - https://www.haskell.org/
Date: 2022-03-30

Comments and reviews: 10


Hey Distrohuggers,
I am excited to report that my install on hardware of Fedora Rawhide is still going well. Today's update brought in a new beta-build of the rpm package ( Version 4.16.0 ). And also, systemd 245-6. If one were to install Rawhide today, they would get something that resembles Version 32 of Fedora, but about half the packages would be labeled Fedora 33, and would have received some update that the same packages in Version 32 might not have received. Kernel, of course is the very latest, but from my experience, when kernel 5.7.0 becomes 5.7.1, the kernel for Rawhide will already be on 5.8.0.rc0.git123something. That is one of the reasons many Fedora users do not recommend that you use Rawhide. Another is that there is debugging stuff going on that could confuse people or slow down your system. And another is some of the packages may be straight off of git, and not tested much, if at all ( examples: conmon, podman, runc, etc. ) Some would suggest that if you really want something newer than Version 32 of Fedora ( in the rpm-based distros ), then best to use OpenSUSE Tumbleweed. I am not one of those. I say, if you can use Rawhide, then do it, as my motto is -Live on the Edge - Live in Rawhide.-

reply

Great! I liked the employee name, -Ben Dover-....um, is he related to MR. BEND OVER?! LOL!!!! What is Patreon? Did you use a Linux computer to make this tutorial? I think you should definitely make many more such tutorials having to do with the Haskell language. It is an excellent and elegant programming language, and sadly most CS departments don't teach this language. If Haskell appears at all in a CS program, it's usually in an upper level Programming Languages course. Those courses can be extremely theoretical, and sadly do not emphasize the practical applications of Haskell. Thanks man! You did a great job. And by the way, I agree that the Lisp family of languages can really torment people with so many parentheses! Having said that however, I confess that I really do like the Racket programming language. Haskell is great, but don't underestimate Racket. Racket (descended from Lisp) is also a really neat programming language, and its IDE, DrRacket, is very easy to use and makes learning Racket so much easier.
reply

Haskell is a beautiful language, especially if you enjoy the Unix philosophy: compose (functions/programs) that do one thing and do it well in order to build complex stuff.
There's a lot of amazing things about Haskell, but you need to spend some time with it in order to appreciate it. I've worked with tons of languages (Java, PHP, Python, Javascript, C...) and none come close to the power of Haskell.

reply

a -> b = b a
this blew my mind when I stumbled across it. I'd seen it in Ocaml or F#, and figured it must be possible in Haskell. I started with the type signature ( ( -> ) :: t1 -> (t1 -> t2) -> t2 ), and the function basically wrote itself. If it's not clear, this behaves like the pipe operator in shell script. It's one of the easiest functions to write.

reply

I love me my Perl, but I think I'd gain a lot from learning another language. Raku's high on the list, but this video's got me thinking Haskell too. Most Haskell concepts are familiar to me from Perl, except infinite lists (yum), immutability, and -so many datatypes!-
reply

How exactly did you get ghc to allow for non-dynamic linking? Normally, Arch builds everything as a dynamic package which will cause ghc to fail if you don't pass -dynamic in the compile.
reply

I just read enough example configs to figure out enough for me to get by. Anyway, I am having a small problem with XMonad and Polybar: For some reason on XMonad Polybar tends to Segfault.
reply

English isn't my first language, and I have to mention your accent is so cool, your English is so clear and easily understood! Great tutorial, thank you!
reply

You don't need parentheses when invoking functions unless there would be some ambiguity in the expression. not(True) is the same as not True
reply

As a -Non-programmer-, you my good sir, have pretty good taste in programming and apparently, sure as hell know how to teach programming well.
reply
Add a review, comment






Other channel videos