My Blog

My WordPress Blog

My Blog

My WordPress Blog

Project Euler Problem 1 In Python Javascript Clojure And Haskell i Don t Know Haskell

Solving Problem 1 of Project Euler in Python, Javascript, Clojure, and Haskell (which I attempt to pick up live in this video). Hope that the stream-of-consciousness commentary is sufficiently intelligible. . . Timestamps:. 00:18 Python. 02:51 Javascript. 06:35 Clojure. 09:24 Haskell. . Notes: . [Javascript]. […Array(n).keys()] includes 0. This was not an issue in this specific problem as 0 is neither divisible by 3 nor 5, but do keep this in mind. . . [Clojure]. The transducer solution in Clojure was slower than the simpler filter+reduce solution due to transducers having additional overhead. If one is chaining multiple operations using the map construct, then transducers *may* lead to speed gains. . . “Premature optimization is the root of all evil” – Don Knuth (probably) . . [Haskell]. I used stack to initialise the Haskell script as I did not want to find the proper boilerplate to write for Haskell scripts. Furthermore, the Haskell solution is unlikely to be idiomatic.

Project Euler Problem 1 In Python Javascript Clojure And Haskell i Don t Know Haskell

Project Euler Problem 1 In Python Javascript Clojure And Haskell i Don t Know Haskell

Project Euler Problem 1 In Haskell

Project Euler Problem 92 A Live coding Exercise In Haskell

Solve The First 3 Problems In Project Euler

Project Euler Problem 24 A Live coding Exercise In Haskell

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top