TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A Clojure library that implements the Logo programming language

50 点作者 aps-sids将近 10 年前

4 条评论

elangoc将近 10 年前
Hi everyone, author here! I&#x27;m really excited about the possibilities that this library opens up! I intend to write a blog post soon to explain in detail the ideas I have and to put them in context. Until then, here&#x27;s the high-level:<p>1. Yoko&#x27;s talk at the recent Clojure&#x2F;West about ClojureBridge curriculum (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=fiIJuthOhnk" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=fiIJuthOhnk</a>) shows that the inflection point for difficulty for students happens around functions, especially higher-order-functions. That&#x27;s exactly what REPEAT is in Logo, and kids handle that just fine. So maybe clojure-turtle can be used to smooth out the learning curve in Clojure curricula?<p>2. My talk at Clojure&#x2F;West was about programming in Clojure in other languages, which could open up accessibility to programming to non-English speakers (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=MqjMZNwnYCY" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=MqjMZNwnYCY</a>). I think translating clojure-turtle shortens the first step to reaching a new human language -- the set of constructs you need to translate is much smaller and more tangible. If Logo works for kids, it should work for anyone. For those who have seen my talk, clojure-turtle is sort of my successor to clj-thamil (programming in other languages) in the sense that they can make programming and&#x2F;or Clojure more accessible to much wider audiences.<p>3. Logo is used to teach kids programming, and it&#x27;s fun! MIT&#x27;s Scratch is based on Logo -- it&#x27;s a visual version of it. UC-Berkeley uses a modified version of it for its intro CS 10 class, and code.org uses a version of it in its projects to teach kids programming. So we&#x27;re teaching Lisp (Logo) to beginners because it&#x27;s simple (and easy), but why is it that when they get older, Lisp&#x2F;Clojure is all of a sudden hard and &quot;weird&quot;-looking? That ought to be a short gap to bridge, right?<p>4. clojure-turtle uses Quil because the ClojureBridge curriculum uses it for capstone &#x2F; advanced concept material. But Quil is a great choice on its own merit. Since Quil shares a codebase between Clojure &amp; ClojureScript code, it easily compiles to Java and JS, meaning we ought to be able to make a try-X.com website out of this, too.<p>Let me know if you have any other feedback, thoughts, etc. about the code or anything else.
pacaro将近 10 年前
I have a real soft spot for LOGO, so I&#x27;m always enchanted by projects like this. I do find that turtle 🐢 graphics can be a distraction from some of logo&#x27;s less appreciated features, for example, the REPL doesn&#x27;t just provide an interactive environment, it&#x27;s also an effective editor for procedures, typing TO BOX should bring up an edit in which you define what it means to box
julienchastang将近 10 年前
This is great. Now how can we put this in a kid friendly IDE so I can teach my daughter Lisp&#x2F;Logo&#x2F;Turtle Geometry? I am thinking of something like an IPython Notebook. I know there are lots of resources to teach kids to code, but many of them leave me feeling cold.
评论 #9713955 未加载
评论 #9713827 未加载
评论 #9714017 未加载
评论 #9713260 未加载
jrusev将近 10 年前
This is truly great. I was looking for some introduction to programming for my little kid, and I wanted it to be very flexible but also visual, and I think this just the right tool.<p>I ran into a problem though. I can run the commands in the REPL and I can see the new turtle position in the terminal, but there is no quil window with graphics. I can also run the example function, but I get &quot;quil.Applet cannot be cast to clojure.lang.IFn&quot;.
评论 #9716835 未加载