Re: core.logic now runs under ClojureScript
On Saturday, March 24, 2012 7:19:41 PM UTC-7, David Nolen wrote: There's a lot of work left to do but I was able to successfully solve the zebra puzzle with core.logic running under JavaScript via V8 in ~170ms. There's tons of performance optimization yet to do, but to give some perspective Peter Norvig's version for CL that compiled Prolog took ~17.4 seconds to do it in the 90s. Clojure on the JVM can solve the problem in about ~2-3ms. I think with some work we can get within an order of magnitude on modern JS engines :) Cheers, David Epic, congrats! For anyone like me that just immediately wants to see the code: https://github.com/clojure/core.logic/blob/master/src/main/cljs/cljs/core/logic.cljs -Evan -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: core.logic now runs under ClojureScript
On Sun, Mar 25, 2012 at 5:14 AM, Evan Mezeske emeze...@gmail.com wrote: For anyone like me that just immediately wants to see the code: https://github.com/clojure/core.logic/blob/master/src/main/cljs/cljs/core/logic.cljs -Evan I just want to say that the experience porting this library has been simply fantastic! I don't think core.logic is a typical Clojure library - it pushes protocols and macros pretty hard. Given that I'm stunned that everything just works. If I had any doubts that ClojureScript was real Clojure - they have been dispelled :) Evan thank you for lein-cljsbuild, the testing process would have been incredibly more tedious without it. David -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: core.logic now runs under ClojureScript
Mega w00t! -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: core.logic now runs under ClojureScript
Amazing work! On Saturday, March 24, 2012 10:19:41 PM UTC-4, David Nolen wrote: There's a lot of work left to do but I was able to successfully solve the zebra puzzle with core.logic running under JavaScript via V8 in ~170ms. There's tons of performance optimization yet to do, but to give some perspective Peter Norvig's version for CL that compiled Prolog took ~17.4 seconds to do it in the 90s. Clojure on the JVM can solve the problem in about ~2-3ms. I think with some work we can get within an order of magnitude on modern JS engines :) Cheers, David -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: core.logic now runs under ClojureScript
(inc 100) Well done, gents. '(Devin Walters) On Sunday, March 25, 2012 at 9:05 PM, Creighton Kirkendall wrote: Amazing work! On Saturday, March 24, 2012 10:19:41 PM UTC-4, David Nolen wrote: There's a lot of work left to do but I was able to successfully solve the zebra puzzle with core.logic running under JavaScript via V8 in ~170ms. There's tons of performance optimization yet to do, but to give some perspective Peter Norvig's version for CL that compiled Prolog took ~17.4 seconds to do it in the 90s. Clojure on the JVM can solve the problem in about ~2-3ms. I think with some work we can get within an order of magnitude on modern JS engines :) Cheers, David -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com (mailto:clojure@googlegroups.com) Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com (mailto:clojure+unsubscr...@googlegroups.com) For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: core.logic now runs under ClojureScript
On Sun, Mar 25, 2012 at 11:36 PM, Devin Walters dev...@gmail.com wrote: (inc 100) Well done, gents. 101? Or maybe you meant (partial + 100). :) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: core.logic now runs under ClojureScript
It's the course recommended for freshmen seeking a career in Wonderful: 101 - Introduction to Awesome '(Devin Walters) On Mar 25, 2012, at 10:48 PM, Cedric Greevey cgree...@gmail.com wrote: On Sun, Mar 25, 2012 at 11:36 PM, Devin Walters dev...@gmail.com wrote: (inc 100) Well done, gents. 101? Or maybe you meant (partial + 100). :) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
core.logic now runs under ClojureScript
There's a lot of work left to do but I was able to successfully solve the zebra puzzle with core.logic running under JavaScript via V8 in ~170ms. There's tons of performance optimization yet to do, but to give some perspective Peter Norvig's version for CL that compiled Prolog took ~17.4 seconds to do it in the 90s. Clojure on the JVM can solve the problem in about ~2-3ms. I think with some work we can get within an order of magnitude on modern JS engines :) Cheers, David -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en