Haskell for Imperative Programmers #25 - Compiling Binaries

แชร์
ฝัง

ความคิดเห็น • 4

  • @alexanderskusnov5119
    @alexanderskusnov5119 4 ปีที่แล้ว +4

    I met the phrase "Haskell is slow". Is there an example of superfast calculation? (maybe on GPU with parallel computing)

    • @philipphagenlocher
      @philipphagenlocher  4 ปีที่แล้ว +10

      While Haskell isn't as fast as C or C++ it is not as slow as most people claim. It's a stereotype that functional languages are generally slow because in the past they were. Modern compilers such as GHC or the OCaml compiler have made alot of progress when it comes to code optimization. We will take a look at manually optimizing Haskell code in a future episode on "Profiling"!
      There are some synthetic benchmarks ( benchmarksgame-team.pages.debian.net/benchmarksgame/performance/fasta.html ) where Haskell is faster than other languages but generally we have to trade performance with abstraction.

  • @bashful228
    @bashful228 ปีที่แล้ว +1

    Hi Phillipp. Thanks agitation for this s errors of videos. I’m promoting them!
    How do you get the coloured type in the shell when you type commands like “ls” so “Foo” and “hw” are coloured?

    • @user-sj7lk5lg3x
      @user-sj7lk5lg3x 10 หลายเดือนก่อน

      possibly a different shell, like ZSH, or a bash plugin