News for hackers. Stuff that matters.

gmi01

Re:Cubic Spline Interpolation on Sunday October 22, 2023 @02:05PM (#37977630)
I second this. In quantitative finance cubic splines are often, simply, out of the question. However, we end up using montonic cubic splines quite often.
I wrote a Haskell version that includes two components:

A very efficient function to rank a set of Texas Hold’em hands.

A Monte Carlo situation that gives you the probability of winning each hand from any known amount of information.

It is available here: https://github.com/ghais/poker

I find myself adding the word “Reddit” after certain type of keyword searches so I can get real people opinions and experience on things.
Re:Learn Functional Programming Visually on Sunday February 14, 2021 @12:59PM (#26134470)
I share your opinion. I found the book Real World Haskell very useful http://book.realworldhaskell.org/ It has a few nice chapters about system programming, database interactions and a few other use cases.

Here is an educational bulletin board website built with Haskell: https://gitlab.com/gilmi/bulletin-app

Re:Golang Object Oriented Design on Monday September 16, 2013 @01:35PM (#6394488)
To verify that Concrete implements Interface use this:

var _ Interface = Concrete{}

Re:Why Arabic is Terrific on Sunday August 21, 2011 @04:19PM (#2910178)
I am a native Arabic speaker, I enjoyed the article, however there are a few mistakes.

In 2. The exceptions are called plural exceptions which happen much less than the general rule, Otherwise most of Arabic follows a very specific rule to making plurals from singulars.

In 7. Adjectives have no gender, and therefore al-kutub hadra' (الكتب حضراء) "The books, she is green" this translates to the books are green (hadra is an adjective and has no gender)

In 9. Formally Arabic numbers are read right to left, i.e. we read the least significant digit first. Although very few people do this.

In 10. It is next to impossible to understand any written text which is a 1000 years by the average Joe, including the Qur'an

Re:Tell HN: 2009 Calendar, to help hackers with networking. on Sunday December 28, 2008 @01:05PM (#412055)
Hey, Nice shots! What camera do you use ?