PinkyThePiggy
Re:Haskell Data Analysis and Machine Learning Cookbook
on Friday July 29, 2016 @02:14PM (#12188723)
As one example, a lot of the libraries referenced in the book have gone through major version changes (1.x to 2.x etc.) that change the functions being exported and/or architecture reworks changing which libraries you need to import which means that if you try to copy + compile a lot of the code snippets, they will not compile. It is generally trivial changes in most cases, but if you are a newbie to the language, it is likely not immediately obvious because you will think you copied from the book wrong (or that the book has a typo) instead of the libraries having been changed.
There is also a lot written about historical quirks you will come across that have since been fixed.
Re:Haskell Data Analysis and Machine Learning Cookbook
on Friday July 29, 2016 @11:42AM (#12187559)
Here is an example from Real World Haskell (pretty good intermediate book, although it is a bit dated): http://book.realworldhaskell.org/read/using-parsec.html#csv
A fully featured CSV parser in 20-30 [depending on how you count] lines of non-golf code.
Re:Introduction to Ada and SPARK (2009) [pdf]
on Monday November 02, 2015 @10:16AM (#10492180)
I would say so, especially considering that is where the majority of Ada/Spark is used currently. Space flight, planes, assembly lines, automotive etc.
There is a blog post about rewriting a drones control system in Spark if you were curious: http://blog.adacore.com/how-to-prevent-drone-crashes-using-s...
It does exactly what you were planning. Taking C code and rewriting it in Spark in an embedded environment.