Re: Origin for Clojure using the term 'vector' instead of 'array'?
Common Lisp also has multi dimensional arrays and one - dimensional vectors. I believe Rich was pretty familiar with that language in a former life http://clhs.lisp.se/Body/t_array.htm On 3 Oct 2015 15:44, "Erik Price" wrote: > I always assumed it was because vectors have similar properties to the > classic java.util.Vector: they’re variable-length, contain heterogenous > objects accessible by integer index, and safe for concurrent access from > multiple threads: > http://docs.oracle.com/javase/7/docs/api/java/util/Vector.html > > e > > > On Fri, Oct 2, 2015 at 11:46 PM, Mars0i wrote: > >> I have no idea about the official reason, but outside of certain >> programming languages that use "array" for one-dimensional data structures, >> an array often has two (or more) dimensions. In R, for example, arrays can >> have an arbitrary number of dimensions. Honestly, when I'm away from Java >> for a while and then encounter the term "array" in Java, I have to stop and >> remember that it's 1-D, or check some documentation, because "array" >> doesn't automatically mean 1-D to me. >> >> On the other hand, I believe that vectors are always one-dimensional, as >> in linear algebra. >> >> So maybe Rich Hickey just decided that "vector" was a better, less >> ambiguous name. >> >> -- >> 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 unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Experiencing extremely slow performance on raspberry pi (model b)
On 12 May 2014 10:40, C K Kashyap wrote: > I finally got my robotic vehicle working using raspberry pi. I was hoping to > make it do tricks using the clojure repl - however, I found that repl took > well over 2 minutes to start. Is that normal or are folks seeing better > performance? I haven't tried it on a Pi, but it's consistent with what I see when I start a lein repl on my android phone (inside a debian chroot using a regular linux jvm). One problem you may be seeing is that leiningen starts a jvm and your app starts a jvm, and in a RAM-limited environment that means a lot of paging. What I did is 1) created a namespace myapp.nrepl which calls (clojure.tools.nrepl.server/start-server :port 9990) 2) invoke the app with $ lein trampoline run -m myapp.nrepl 3) connect to it from some other machine $ lein repl :connect myphone.local:9990 This means there's only one JVM running at a time on the phone (or in your case, pi) and reduces the startup time on my phone from something arounf 2 minutes to something around 40 seconds. Which is still Too Long but not quite as Much Too Long Playing with clojure-metal and clojure-c are both on my "TO DO, EVENTUALLY" list but I have more than enough to keep me occupied for the time being already, so not any time soon [ With Actual Code! https://github.com/telent/defone/blob/master/defone/start.sh https://github.com/telent/defone/blob/master/defone/src/defone/nrepl.clj ] -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: clojure.io
On Sat, Mar 10, 2012 at 9:41 PM, Brian Goslinga wrote: > There is a trade off here. If you want to be very portable you'll end up > with something like the CL path API because you need logicals and file > revisions to really support VMS, for example. > In a former life I spent more time than I now care to dwell on in battling the CL pathname API, both as an implementor (SBCL) and a user (I was the original author of the ASDF build system). While I can accept that a portable pathname system would need to provide support for e.g. logicals and file revisions, I still claim that CL is in this respect an extraordinarily rich source of information on how not to do it. "Customary case", in particular, still makes me want to scream even ten years later /rant off -dan -- d...@telent.net http://ww.telent.net -- 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: Best definition of "ClojureScript" in one sentence
I'd suggest that it's a continuum not a dichotomy, but one convenient place to draw an arbitrary line is whether you think it sane and sensible to use debugging facilities designed for the target language or whether you view that as akin to debugging a c program by inspecting the disassembly. (of course, if your view is that debugging a c program is *per se* not sane or sensible, that analogy is of course not a good one) On Feb 27, 2012 6:48 PM, "David Nolen" wrote: > On Mon, Feb 27, 2012 at 1:41 PM, Raju Bitter wrote: > >> >> How about "ClojureScript is a little language that compiles into >> >> JavaScript"? ;) >> > >> > >> > Well, ClojureScript is not little the way that CoffeeScript is - >> > ClojureScript comes with cljs.core. >> >> Exactly, ClojureScript has it's own semantics instead of just being >> syntactic sugar. > > > Well, CoffeeScript has it own semantics as well - scope, class syntax, > expression oriented come to mind. > > 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 -- 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: Best definition of "ClojureScript" in one sentence
On Mon, Feb 27, 2012 at 10:45 AM, Raju Bitter wrote: > Quotes: > "ClojureScript is a dialect of Clojure that targets JavaScript as a > deployment platform." > > "ClojureScript allows to write code using the Clojure language and > compile it to Javascript." > > "ClojureScript is a new compiler for Clojure that targets JavaScript." > All of these are (AFAIK anyway) entirely true and there's not much to choose between them. The ClojureScript compiler compiles the ClojureScript language (a dialect of Clojure) into Javascript. This may not be exactly the input you're looking for, but IMO the key message you probably want to get across is "why is this important?". It's important because it allows one to create rich web user interfaces by writing Clojure to be executed client-side in the user's web browser, and you've left that entirely implicit. Focus on the benefits, not on the technology. -dan -- d...@telent.net http://ww.telent.net -- 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