Hacker News new | past | comments | ask | show | jobs | submit login

I wasn't the first to discover this, although I once thought I was. About 1990, the Internet was not yet generally available. I was interested in Poker and Blackjack. Not in Roulette, it was clear that you always lose there. But in Blackjack - it was not so easy. I had many discussions with my friends. Then I wrote a program in C to work it out. The "expected value" was, as expected negative, but with the changing card stacks it regularly fell into the positive. I wanted to publish "my sensational discovery", but for various reasons I didn't get around to it, 5 years later, when I tried a new attempt, a short internet search showed that others had come to this result long before me ...

Now many years later comes the next attempt to publish it. In the meantime I have made the beginner programming language Easylang, which is also quite well suited to show mathematical concepts and programs on the Internet.

And, I haven't been to the casino in years and have never counted cards there.




Really interesting programming language. I have been looking for a easy language to include simulation examples in my course notes, and EasyLang looks almost perfect. Only missing feature for me is support for matrix algebra (multiplication, inverse, A\b, eigenvalues, etc). I don't know much about web assembly and I don't know if there is anything equivalent to blas for web assembly which you could interface to.


Thanks. I'm afraid that won't work with EasyLang. The language is kept very simple to make it easier for beginners and so that it loads quickly and so that the code can be parsed quickly in the IDE. And unfortunately it is not possible to include other libraries.


Thanks for the reply. I may still use it for simple examples (as it does fit all other things that I was looking for)


Great. If you need any support, please don't hesitate to ask.


Great strategy for publicizing a language: Use it to support articles people want to read.


Very nice writeup on this calculation, thank you.

Around the turn of the century I was also interested in calculating such a thing, but I am a lousy/lazy programmer so I wound up finding C++ code by a programmer called "Eric Farmer". Is that you?


Thank you. No, that's not me. You can see that this is not so unique, what I have done there. These calculations look very complicated at first sight, but they are not. You can actually program this step by step with a few basics of probability theory without special knowledge.


wow, seems like they are still around: https://github.com/possibly-wrong/blackjack




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: