Better HN
topnewbestaskshowjobs
Log inSign up

anandijain

10 karma · joined Mar 22, 2019 (7y ago) · 8 submissions

github.com/anandijain
Submissions

comment 9mo ago · link · parent

This is cool! I've always wanted a polished kernel on the terminal. I spent a lot of time a few years ago writing my own Wolfram Kernel. It was a blast to understand how a pattern matching (symbolic) language is implemented.

https://github.com/anandijain/cas8.rs

comment 2y ago · link · parent

just sent u an email and yeah I ditched the m expr parser and just made the dumbest parser I could haha

comment 2y ago · link · parent

that's awesome, I wrote a Mathematica clone too! I think it's one of the most rewarding projects I've done.

The amazing thing is how Mathematica starts working with just a few simple ideas, evaluator, backtracking pattern matcher, and a REPL.

were you able to implement Condition? how advanced is the pattern matcher? I got stuck after doing Blank BlankSequence and BlankNullSequence

https://github.com/anandijain/cas3.rs https://github.com/anandijain/cas8.rs

comment 2y ago · link · parent

Great yeah, that's awesome. Here's the code to cas3.rs https://github.com/anandijain/cas3.rs

Edit: I actually rewrote it to https://github.com/anandijain/cas8.rs to have Exprs be reference counted (makes it much faster), but all of the documentation is on the first link

comment 2y ago · link · parent

that's awesome! I wrote a Mathematica like cas about a year ago and it was definitely one of the most rewarding projects I've worked on.

I didn't get to look too deep into the source. Do symbols in openbirch self evaluate like in Mathematica?

comment 2y ago · link · parent

A bit unrelated but you posted oeis so hoping you know. In the article they mention there are 17 trillion possible 5-2 turing machines. I tried finding the sequence for this but couldn't.

I found this https://oeis.org/A141475, but it gives 27 trillion for 5.

comment 3y ago · link · parent

In case you want a table format that shows the nearest ones in a list, I built https://free2pee.github.io/free2pee/ on top of OSM

comment 3y ago · link · parent

I built something too, uses OpenStreetMap and has a catalog of ~400,000 bathrooms.

https://free2pee.github.io/free2pee/