TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A toy Mathematica interpreter in Haskell

191 pointsby soofyover 8 years ago

6 comments

denfromufaover 8 years ago
Mathics is implementation of Mathematica (actually it is now called Wolfram language) using sympy, ply, and django.<p>It also provides jupyter kernel.<p>The original author was hired by Wolfram, but the project still lives on!<p><a href="http:&#x2F;&#x2F;mathics.github.io" rel="nofollow">http:&#x2F;&#x2F;mathics.github.io</a><p>Maxima is older than Mathematica and written in LISP. One of its contributors has written MockMMA to implement Mathematica in LISP:<p><a href="https:&#x2F;&#x2F;people.eecs.berkeley.edu&#x2F;~fateman&#x2F;lisp&#x2F;" rel="nofollow">https:&#x2F;&#x2F;people.eecs.berkeley.edu&#x2F;~fateman&#x2F;lisp&#x2F;</a>
评论 #12723406 未加载
spitfireover 8 years ago
I&#x27;ve written a Mathematica clone twice before. This guy got there much faster ( I was writing in C++).<p>However both times I got the basic language going then realized it was the standard library that made Mathematica gold and abandoned it.<p>Kudos to him and it&#x27;s good work!
评论 #12716754 未加载
评论 #12716469 未加载
bertiewhykovichover 8 years ago
This proves, once again, what a world-class, unbeatable tool Haskell is for writing toy interpreters.
评论 #12717301 未加载
评论 #12719764 未加载
kccqzyover 8 years ago
I&#x27;ve written a toy TeX interpreter&#x2F;macro-expander as my first &quot;large&quot; Haskell program. It really made me think hard about both Haskell and TeX. I think this is a great way to learn two languages at the same time if you already have experience.
Mathnerd314over 8 years ago
It would be interesting to benchmark it against the real thing.
mrcactu5over 8 years ago
doesn&#x27;t this turn Mathematica into a scripting language for Haskell?
评论 #12717308 未加载