12 ms·
Clojure-turtle – Logo programming language in a Clojure context
- thesmallestcat 9y agoThis is great, very small code. The choice of Clojure would make it a bit difficult for a beginner, but hey, then you know a real language. > This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google. #1 reason for a hacker to not work for Google, you could program "Hello, World" and they wouldn't sign off on it.
- arjie 9y agoThe fact that they open-source their code is enough. Imposing the requirement that they must support everything they open-source will mean they will open-source less. Why should everyone support everything they open-source as an official product? I contest everything you say. This is not the #1 reason. It's not even _a_ reason.
- thesmallestcat 9y agoYou've misunderstood my comment. I'm saying that Google has a reputation for claiming rights to just about anything you present to them. It's that petty IP policy that has this fun little project under their ownership. For many people, particularly those involved in open source, Google's reluctance to let go of employees' side projects is a strong reason to not work there.
- kronos29296 9y agoIt is part of the fine print in the job contract for developers and is pretty common in most companies. You don't create a side project while being employed there without the company claiming ownership of it. It is part of a safety net for the companies so that they don't take a loss by an employee claiming copyright of code they wrote for the company during work hours. According to law if there is no such clause the developer may claim ownership of code he wrote even if he was employed. The contract protects the company from that but also applies to any code written by employees generally (not a nice thing but prevalent).
- vertex-four 9y agoIt's very, very common that if you send an email to the relevant people, they'll sign off on whatever so long as it's not relevant to the business. They don't really want to retain control over your random side-projects. Google, on the other hand, seems to believe that absolutely everything its employees ever do is relevant to its business.
- mseebach 9y agoThey explicitly don't "retain control" (beyond insisting that it's published in their name). It's Apache 2 licensed. Indeed, the main dev has forked it into his private Github account: https://github.com/echeran/clojure-turtle https://github.com/echeran/clojure-turtle
- orangecat 9y agoGoogle has IARC (https://opensource.google.com/docs/iarc/ https://opensource.google.com/docs/iarc/), which is a formal process of sending email to the relevant people, and results in a much better legal position than "Bob said it was ok".
- vertex-four 9y agoIndeed they do - the issue being that according to a handful of Googlers I know, it's surprisingly difficult to get anything through that process.
- DannyBee 9y agoThat's really strange, since we've approved >96% of requests, and except for when someone is on vacation, it's usually within 3 days now. Given how many reply to the approval emails that they found it fast and happy, i definitely find this surprising. In any case, you are welcome to have those employees reach out to me, i'd love to understand their experience what went wrong.
- mseebach 9y ago
- puzzle 9y agoYou claim it's petty policy, but it's more like an intersection of employment laws and being a public company, with a sprinkle of unfortunate past events.
- deleted 9y ago[deleted]
- jkaptur 9y ago> #1 reason for a hacker to not work for Google, you could program "Hello, World" and they wouldn't sign off on it. This is just not true. If you want to write code that isn't owned by the company, you just ask [1]. It takes about 2 minutes to fill out the form. For one of my projects, the approval came almost insultingly quickly - as if they were saying "please DO NOT associate Google with that idea". [1] https://opensource.google.com/docs/iarc/ https://opensource.google.com/docs/iarc/
- dimitar9 9y agomy first programming language was logo. nice job dude!
- brudgers 9y agoTurtles in #lang typed/racket: http://docs.racket-lang.org/furtle/index.html?q=turtle#%28def._%28%28lib._furtle%2Fmain..rkt%29._turtle%29%29 http://docs.racket-lang.org/furtle/index.html?q=turtle#%28de...
- iamalchemist 9y agoLogo was my first programming language. #Nostalgic Thanks Google and thanks for Clojure implementation.
- elangoc 9y agoBASIC was my first programming language. Starting with the days of the Commodore 64, Apple IIe, and MS GWBASIC, but I never understood it well enough beyond a number guessing game or so. Then I had a class on Logo, and I was doing cool stuff on my own, and it was so fun! Yeah, I love Logo. During the time of that Logo class, I tried writing a BASIC program for a programming competition with my new-found confidence. But it was such a spectacular fail that my 11-year old self was literally crying. I find both Logo and Clojure are profound, simple, and powerful in their own ways. A friend and I are working to take the next step with this project and make this a little more accessible/usable. ;)
- baldfat 9y agoMy first language was BASIC on a Z80 Chip Sol 20 Computer. To play a game you had to type in pages of source code. Man what a pain with the line numbers and debugging for a 7 year old was insane. I then learned some LOGO, Pascal and Forth and then to Assembly in the C64 days for nefarious purposes. I have to say that when I learned Scratch it reminded me of my old Logo days.
- cr0sh 9y agoBASIC was my first language too, but LOGO was the first language I attempted to make an interpretor for (also, incidentally, LOGO was the first language I took a class for, just for fun - something Radio Shack offered for the Color Computer, which was the machine I owned).
- lngnmn 9y agoYet another example of how interfaces and ADTs (together with layered DSLs) are the central concerts in classic CS.
- thanatropism 9y agoHonest question: what is nonclassic CS?
- lngnmn 9y agosystemd More seriously, everything which made MIT to switch from Scheme to Python in the fundamental CS courses.
- tosh 9y agorelated: 20 things to do with a computer (1971) from MIT AI Lab https://dspace.mit.edu/bitstream/handle/1721.1/5836/AIM-248.pdf?sequence=2 https://dspace.mit.edu/bitstream/handle/1721.1/5836/AIM-248....
- systems 9y agois is significant because it shows google is testing clojure, or is it something else?
- empath75 9y agoobviously they're beginning a migration to logo.
- elangoc 9y agoIf you try the interactive examples on the main Readme page all the way to the end, you'll see there's a gradual, subtle shift from cutesy Logo to Clojure-style functional programming. But I owe more doc-writing along those lines, and they that would make that fuller & clearer.
- linkmotif 9y agoWas I the only person who did not understand the draw of Logo as a kid? Having to use it in school made me feel like the world viewed me as a lobotomy victim. And today, whenever one of these teaching-kids-to-program language/environments comes out, I always wonder, "is a real language really beyond the 8-10 year old's grasp?" More importantly, wouldn't using something real be more interesting to kids? The excitement of computers was, for me, about what you could do with them, and if that meant having to learn some scary looking "computer language" then—By God—I would! And it would be exciting! The turtle did nothing for me except count the minutes before I could go and do something else. Thankfully we had a public library that had computer books. They weren't the best, but they were about real computer things. I wish someone had introduced me to Lisp as a child. It's so fundamental. I remember thinking in similar terms, and would have had my mind blown on so many different levels if someone had introduced me to Lisp when I was 8-10, or even younger.
- zitterbewegung 9y agoI had the opposite experience. I would read my Math book and read about Logo. But, I never experienced a class that taught me how to use Logo. Eventually I taught myself how to code in Scheme in high school but eschewed going into AP CS which I realize was a mistake.
- __s 9y agoThis project is about introducing Lisp to children (or anyone interested in learning)
- flavio81 9y agoLogo is a far more powerful programming language than what it would appear at first sight.
- protomyth 9y agoYeah, we had it on one of the new Apple IIe computers our high school received. Fooling around with the graphics was fun for a while, but when I got to read one of the Logo books and it got to all the other things in the language, it became a very cool experience. I think Logo and 6502 assembler made me look at the top and bottom of programming in an amazing way. I will always be grateful for that.
- elnygren 9y agoUsing Clojure as the first language is interesting. Being one of the most expressive and efficient (I am not talking about clock cycles here) languages I've used, I think it will set a great mindset for programming. Clojure is declarative, you tell what you want, not how you want it. It uses immutable data structures and functional programming. It teaches you a sane, safe and beautiful way of working on the problems rather than working against/around/because of your language (e.g building OOP design patterns rather than just solving the problem at hand). Some people might disagree, but Clojure is a very hands-on and practical language. There's not much syntax or quirks to learn; just a big standard library of very useful functions for processing and transforming data.
- aaimnr 9y ago>Being one of the most expressive and efficient (I am not talking about clock cycles here) languages I've used "Productive" seems to be the right word here.
- chickenfries 9y ago> There's not much syntax or quirks to learn Except if you don't know Java.
- jakebasile 9y agoI rarely need to directly interact with Java as a Clojure developer. It of course helps to know the host platform but I don’t think it’s a requirement for getting started with the language. If it is a dealbreaker you can always stick to ClojureScript, but then you need to know the ins and outs of JavaScript.
- hellofunk 9y agoUnderstanding JavaScript is really only necessary if you want to use JavaScript libraries. It still amazes me that the same code can be used on the JVM and in a JavaScript environment most of the time without really needing to understand the details of either platform.
- 9y ago
- tosh 9y agoAnyone knows why the ClojureScript code has the same macros (repeat and all) in seperate files? Why can't everything be in the core.cljc file? https://github.com/google/clojure-turtle/blob/master/src/cljs/clojure_turtle/macros.cljc https://github.com/google/clojure-turtle/blob/master/src/clj... https://github.com/google/clojure-turtle/blob/master/src/cljc/clojure_turtle/core.cljc https://github.com/google/clojure-turtle/blob/master/src/clj...
- elangoc 9y agoIt was in order to get the CLJS REPL to feel more like the regular Clojure REPL: https://github.com/google/clojure-turtle/issues/15 https://github.com/google/clojure-turtle/issues/15 The CLJS-macro story is still a little tricky -- CLJS targets the JS runtime, but you can't easily define macros in a self-hosted CLJS REPL (ex: one that you'd embed in a webpage). Lmk if there is a cleaner way now.
- tosh 9y agoAwesome enhancement. I'll keep that in mind. Thanks for the clarification.
- tosh 9y agorelated (via /r/Clojure): https://docs.racket-lang.org/turtles/Value_Turtles.html https://docs.racket-lang.org/turtles/Value_Turtles.html
- flavio81 9y agoIt is exciting that people inside Google is using Clojure. The more Clojure gets popular, the better for the programming community as a whole, even if its usage means indirectly giving more fuel to Oracle. <smug-mode> On the other hand it also means we will thus be able to one-up Google by using Common Lisp... </smug-mode>
- fiddlerwoaroof 9y agoGoogle already uses Common Lisp for flight search (acquired from ITA Software). They even have a fairly good style guide written by one of the maintainers of ASDF (amongst others): https://google.github.io/styleguide/lispguide.xml https://google.github.io/styleguide/lispguide.xml
- iLemming 9y agoBut, but... Clojure is dying language. Someone been crying about that all over the internet just a few weeks ago. Why Google using a dying language?
- iLemming 9y agoI've been sarcastic of course. I'm one of those lucky bastards who's got luxury of writing Clojure(script) all day long and get paid for it.