Re: Java learning resources for Clojurists?
Oh, thank you, that looks like a great resource! On Tuesday, August 15, 2017 at 9:24:45 PM UTC-5, Daniel Compton wrote: > > Eric Normand has a course "JVM Fundamentals for Clojure" which might be > useful? https://purelyfunctional.tv/courses/jvm-clojure/ > > On Wed, Aug 16, 2017 at 2:20 PM Paul Gowder> wrote: > >> Hi there, >> >> Can anyone recommend decent resources for learning Java for experienced >> Clojurists who don't do enough interop? >> >> After writing Clojure for about a year and a half, I find that the most >> continuous barrier I encounter is in understanding how to drop down to the >> JVM. And it's even a barrier in using some core CLJ libraries. >> >> Here's an illustration of the problem I often have. I was writing a web >> application using Reagent/Immutant, and I wanted to pass data from frontend >> to backend over a websocket in transit format. But the only example in the >> github readme for Transit-CLJ involves dealing with data as a Java >> bytestream. And it was just too daunting to try to figure out what flavor >> of JVM string the stuff being received over the websocket was under the >> hood, how to cast it into a bytearrayinputstream or whatever else can fit >> into a transit "writer," etc. Or even just like where to start translating >> from "here, I have a Clojure string" to "oh god, now it has to turn into >> some kind of low-level object that isn't a string and isn't a file but is >> something in between and maybe it has to be a stream and maybe it doesn't >> >> Yet almost all "how to learn java" materials I can turn up seem to be >> directed at total beginner programmers, and start with stuff like "here's >> what a for loop is" rather than practical stuff like "here's how to sort >> out the different kinds of array-whatsits and byte-whatsats" or "here's how >> the entry point of a java library works" or whatnot. >> >> I'm hoping there's something out there (that goes a bit deeper than the >> wonderful-but-not-quite-what-i-need interop chapter in Brave and True) that >> someone can recommend. >> >> thanks! >> >> -Paul >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@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+u...@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+u...@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: Java learning resources for Clojurists?
Eric Normand has a course "JVM Fundamentals for Clojure" which might be useful? https://purelyfunctional.tv/courses/jvm-clojure/ On Wed, Aug 16, 2017 at 2:20 PM Paul Gowderwrote: > Hi there, > > Can anyone recommend decent resources for learning Java for experienced > Clojurists who don't do enough interop? > > After writing Clojure for about a year and a half, I find that the most > continuous barrier I encounter is in understanding how to drop down to the > JVM. And it's even a barrier in using some core CLJ libraries. > > Here's an illustration of the problem I often have. I was writing a web > application using Reagent/Immutant, and I wanted to pass data from frontend > to backend over a websocket in transit format. But the only example in the > github readme for Transit-CLJ involves dealing with data as a Java > bytestream. And it was just too daunting to try to figure out what flavor > of JVM string the stuff being received over the websocket was under the > hood, how to cast it into a bytearrayinputstream or whatever else can fit > into a transit "writer," etc. Or even just like where to start translating > from "here, I have a Clojure string" to "oh god, now it has to turn into > some kind of low-level object that isn't a string and isn't a file but is > something in between and maybe it has to be a stream and maybe it doesn't > > Yet almost all "how to learn java" materials I can turn up seem to be > directed at total beginner programmers, and start with stuff like "here's > what a for loop is" rather than practical stuff like "here's how to sort > out the different kinds of array-whatsits and byte-whatsats" or "here's how > the entry point of a java library works" or whatnot. > > I'm hoping there's something out there (that goes a bit deeper than the > wonderful-but-not-quite-what-i-need interop chapter in Brave and True) that > someone can recommend. > > thanks! > > -Paul > > -- > 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.
Java learning resources for Clojurists?
Hi there, Can anyone recommend decent resources for learning Java for experienced Clojurists who don't do enough interop? After writing Clojure for about a year and a half, I find that the most continuous barrier I encounter is in understanding how to drop down to the JVM. And it's even a barrier in using some core CLJ libraries. Here's an illustration of the problem I often have. I was writing a web application using Reagent/Immutant, and I wanted to pass data from frontend to backend over a websocket in transit format. But the only example in the github readme for Transit-CLJ involves dealing with data as a Java bytestream. And it was just too daunting to try to figure out what flavor of JVM string the stuff being received over the websocket was under the hood, how to cast it into a bytearrayinputstream or whatever else can fit into a transit "writer," etc. Or even just like where to start translating from "here, I have a Clojure string" to "oh god, now it has to turn into some kind of low-level object that isn't a string and isn't a file but is something in between and maybe it has to be a stream and maybe it doesn't Yet almost all "how to learn java" materials I can turn up seem to be directed at total beginner programmers, and start with stuff like "here's what a for loop is" rather than practical stuff like "here's how to sort out the different kinds of array-whatsits and byte-whatsats" or "here's how the entry point of a java library works" or whatnot. I'm hoping there's something out there (that goes a bit deeper than the wonderful-but-not-quite-what-i-need interop chapter in Brave and True) that someone can recommend. thanks! -Paul -- 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.