Fork me on GitHub
#beginners
<
2015-08-18
>
pxlpnk12:08:48

anyone has some resources on clojurescript, node and npm?

jackschaedler12:08:40

Hey all, I'm having a little issue that I need some advice on. I'm working through SICP and trying to implement the scheme interpreter described here (https://youtu.be/1qS0774GPxQ). In the world of SICP, you have mutable cells which allow you to easily extend the execution environment by just mutating elements in place. In Clojure(Script), I'm trying to model this environment as a list of atoms. My thinking is that this would allow me to implement the interpreter in-line with the SICP description. However, this approach seems to cause problems whenever I insert an atom into itself (when defining a lambda, the lambda is defined within the execution environment along with a copy of the execution environment). I get the feeling that this approach isn't really idiomatic for Clojure, and I'm wondering how you all might approach it. I'm guessing that a more idiomatic approach is to have one atom which stores the environment?

jackschaedler12:08:44

If anyone here has worked through the SICP exercise and is willing to chat, that would be super simple_smile

rishat14:08:28

@pxlpnk: I learn Clojure, solve challenges on HackerRank and blog about it there: http://taxigy.github.io. Not practically useful for those who's just starting out but may be useful for those seeking solutions for classic math/coding problems.

pxlpnk14:08:15

thanks rishat