haskell

Does anyone know a non-TeX equivalent for TikZ?

Does anyone know a non-TeX equivalent for TikZ? Question: Until now i have used Graphviz to programmatically create diagrams and graphs. Recently, I found out about TikZ and I started loving it. However, it would be overkill in some of my intended uses to have a dependency on TeX, LaTeX, etc. Thus, I want to …

Total answers: 4

Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell

Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell Question: I have taken Problem #12 from Project Euler as a programming exercise and to compare my (surely not optimal) implementations in C, Python, Erlang and Haskell. In order to get some higher execution times, I search for the first triangle number with …

Total answers: 17

Calling Haskell functions from Python

Calling Haskell functions from Python Question: I want to use some Haskell libraries (e.g. Darcs, Pandoc) from Python, but it seems there’s no direct foreign function interface to Haskell in Python. Is there any way to do that? Asked By: minhee || Source Answers: Provided you can get your Python code to call C, you …

Total answers: 6

What do we call this (new?) higher-order function?

What do we call this (new?) higher-order function? Question: I am trying to name what I think is a new idea for a higher-order function. I want to call it a BinaryProjection, but my compatriot wants to call it the Plow. We tossed around the idea of a Snow Blower for a minute, too. Anyway, …

Total answers: 16

Find the longest common starting substring in a set of strings

Find the longest common starting substring in a set of strings Question: This is a challenge to come up with the most elegant JavaScript, Ruby or other solution to a relatively trivial problem. This problem is a more specific case of the Longest common substring problem. I need to only find the longest common starting …

Total answers: 31