Re: Clojure/West 2013 videos?

2013-03-25 Thread Cedric Greevey
On Mon, Mar 25, 2013 at 7:22 PM, Mark Engelberg wrote: > On Mon, Mar 25, 2013 at 12:13 PM, Cedric Greevey wrote: > >> In fact, your statement is wrong as to very basic economics. The value of >> being there at the conference isn't alterable by something that hasn't, at >> that point, even happened

Re: Accessing a resource inside a jar

2013-03-25 Thread John D. Hume
It looks like MimetypesFileTypeMap wants a path to a plain file. I can't try this right now, but I think you want the constructor that takes an InputStream. Something like (MimetypesFileTypeMap. (io/input-stream (io/resource "thefile"))) though if you just passed "/thefile" to io/input-stream, that

Re: Sweet-expressions

2013-03-25 Thread Joseph Smith
I never have understood the obsession with moving the parens in Lisp to the same place they are in C-like languages. I'm not typing any less, and it certainly undermines the code = data (i.e. lisp lists / function calls) homoiconic representation. Is it "clearer"? Maybe to someone unaccustomed t

Accessing a resource inside a jar

2013-03-25 Thread Clinton Dreisbach
My apologies for a simple question, but: I have a very small library I wrote that needs to read a file in its resources/ directory. In the project, this works fine. However, when I package the library as a JAR, it can't find the file. I thought I was following the best practice of getting the file

Re: Which is the most idiomatic way to go

2013-03-25 Thread Herwig Hochleitner
2013/3/25 Ryan > Thanks for your input Herwig. > > When talking to a database, there might already be record and >> list-of-records interface, for step 2. > > > I didn't fully understand what you meant with that. Can you please > explain? > For example clojure.java.jdbc/insert! [1] can take a nu

Re: [ANN] Amazonica: Clojure client for the entire AWS api

2013-03-25 Thread Herwig Hochleitner
2013/3/26 James Reeves > It looks very interesting, but I'm afraid I really don't like > "defcredential" macro. The Clojure API should really have *less*mutability > than the Java API, not more :) > Agreed! It would be nicer to pass a context to the api functions. The api functions could be ge

Re: Sweet-expressions

2013-03-25 Thread Jason Lewis
N Jason Lewis Email jasonlewi...@gmail.com Twitter@canweriotnow Blog http://decomplecting.org About http://about.me/jason.lewis On Mon, Mar 25, 2013 at 6:44 PM, Kris Jenkins wrote: > As an interesting

Re: Clojure/West 2013 videos?

2013-03-25 Thread Mark Engelberg
On Mon, Mar 25, 2013 at 12:13 PM, Cedric Greevey wrote: > In fact, your statement is wrong as to very basic economics. The value of > being there at the conference isn't alterable by something that hasn't, at > that point, even happened yet. A delayed release only takes value *away* > from the *v

Re: [ANN] Amazonica: Clojure client for the entire AWS api

2013-03-25 Thread James Reeves
It looks very interesting, but I'm afraid I really don't like "defcredential" macro. The Clojure API should really have *less* mutability than the Java API, not more :) - James On 25 March 2013 21:51, Michael Cohen wrote: > Curious to hear opinions on this: > > https://github.com/mcohen01/amaz

Re: FileNotFoundException when running lein droid new

2013-03-25 Thread Scott Thoman
Perfect! I'll grab master for now. > > Thanks! /stt -- -- 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

Re: [ANN] Amazonica: Clojure client for the entire AWS api

2013-03-25 Thread Herwig Hochleitner
Good one! That's just what I wanted to add cloudfront invalidation in my cms. Thanks! I suspect, that some of the reflective support code you implemented there, might be a good fit for the java.data contrib. -- -- You received this message because you are subscribed to the Google Groups "Clojur

Re: FileNotFoundException when running lein droid new

2013-03-25 Thread Colin Jones
On Monday, March 25, 2013 4:02:40 PM UTC-5, Scott Thoman wrote: > > All, > > I figured I'd give the leiningen droid plugin a shot now that I've got a > few spare moments to mess around with clojure for an android app. However, > when I attempt to bootstrap a new project, I get the following: > -

Re: Which is the most idiomatic way to go

2013-03-25 Thread Ryan
Thanks for your input Herwig. When talking to a database, there might already be record and > list-of-records interface, for step 2. I didn't fully understand what you meant with that. Can you please explain? On Tuesday, March 26, 2013 12:15:30 AM UTC+2, Herwig Hochleitner wrote: > > Yes, it'

Re: Sweet-expressions

2013-03-25 Thread Kris Jenkins
As an interesting point of trivia, the idea of abandoning S-expressions for some other notation actually pre-dates the first implementation of Lisp. S-expressions were originally intended as a temporary measure, before a more familiar representation - deemed M-expressions - could be formalized.

[ANN] Amazonica: Clojure client for the entire AWS api

2013-03-25 Thread Michael Cohen
Curious to hear opinions on this: https://github.com/mcohen01/amazonica -- -- 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 pati

Re: Which is the most idiomatic way to go

2013-03-25 Thread Herwig Hochleitner
Yes, it's almost always a good thing to separate the formatting of data from processing its side effects. When talking to a database, there might already be record and list-of-records interface, for step 2. 2013/3/25 Ryan > Thanks a lot Leif :) It's really good to have a second opinion on these

Re: why am I hitting the 64k method limit on a var?

2013-03-25 Thread David Powell
You might be better off putting the config into a file, and then "read"-ing it. That way it never gets compiled into a class, and just stays as a data structure. On Mon, Mar 25, 2013 at 9:23 PM, larry google groups < lawrencecloj...@gmail.com> wrote: > Are vars subject to Java's 64k limit on met

why am I hitting the 64k method limit on a var?

2013-03-25 Thread larry google groups
Are vars subject to Java's 64k limit on methods? I started an app a few months ago and I was putting all the config into into a var: (def app-config { :cites { ;; more here } :slides { ;; more here } :questions { ;; more here

Re: Clojure/West 2013 videos?

2013-03-25 Thread Gary Trakhman
I've volunteered on the pycon AV team, in 2009, it's 1000x more work than what you described further up in the thread, a minimum wage worker holding something steady. It requires a lot of coordination, and I think the cost to the conference would be much higher than InfoQ as well. On Monday, M

FileNotFoundException when running lein droid new

2013-03-25 Thread Scott Thoman
All, I figured I'd give the leiningen droid plugin a shot now that I've got a few spare moments to mess around with clojure for an android app. However, when I attempt to bootstrap a new project, I get the following: - $ lein --version

problems with clojurescript

2013-03-25 Thread Răzvan Rotaru
Hi, I am trying to use some compiled clojurescript and I'm getting following error: Error: No protocol method ILookup.-lookup defined for type object: [object HTMLSpanElement] - core.js (line 85) My HTML is following: http://ajax.googleapis.com/ajax/libs/dojo/1.8.3/dijit/themes/claro/claro.cs

Re: Clojure/West 2013 videos?

2013-03-25 Thread Laurent PETIT
2013/3/25 Andy Fingerhut : > I would suggest that the finer points of economical video production and > distribution be discussed further in another forum. I know we started out > on Clojure, but have drifted fairly far afield for a while. > > Andy > > P.S.: It is OK to go to bed now. http://xkcd

Re: Clojure/West 2013 videos?

2013-03-25 Thread Andy Fingerhut
I would suggest that the finer points of economical video production and distribution be discussed further in another forum. I know we started out on Clojure, but have drifted fairly far afield for a while. Andy P.S.: It is OK to go to bed now. http://xkcd.com/386/ -- -- You received this me

Re: Clojure/West 2013 videos?

2013-03-25 Thread Michael Klishin
2013/3/25 Cedric Greevey > How so? Is it "trivializing and criticizing" if I point out that an > elaborately-carved buggy whip handle is obsolescent, if not already > obsolete? A thing can be both "fantastic work" and "obsolescent, if not > already obsolete" at the same time. The two are not mutu

Re: Clojure/West 2013 videos?

2013-03-25 Thread Aaron Miller
> > > I have breaking news from 2008 or so for you: there are consumer video > cameras that shoot high definition. Also, Youtube supports high definition. > > I do think it's worth pointing out that *high definition* does not a watchable video make. There are camera phones that can shoot "high

Re: Including the same require/refers in every namespace

2013-03-25 Thread Colin Jones
On Monday, March 25, 2013 2:26:11 PM UTC-5, Clinton Dreisbach wrote: > This may be a ridiculous idea/question, but: > > I have an application with many namespaces and every single one of > them has the same require/refer statement in the ns to add logging and > string manipulation. Is there a w

Including the same require/refers in every namespace

2013-03-25 Thread Clinton Dreisbach
This may be a ridiculous idea/question, but: I have an application with many namespaces and every single one of them has the same require/refer statement in the ns to add logging and string manipulation. Is there a way to have this happen automatically in the same way that clojure.core is used in

Re: Clojure/West 2013 videos?

2013-03-25 Thread Cedric Greevey
On Mon, Mar 25, 2013 at 1:52 PM, Phil Hagelberg wrote: > > Cedric Greevey writes: > > >> Outfits like InfoQ and Confreaks do a very good job, but > >> they use professional staff (who expect to be paid). > > > > And I'm guessing what they're doing is obsolescent, if not already > > obsolete, in t

Re: Clojure/West 2013 videos?

2013-03-25 Thread Cedric Greevey
On Mon, Mar 25, 2013 at 1:35 PM, Mark Engelberg wrote: > I've been impressed with the quality of the InfoQ videos. Most other tech > videos I see are unwatchable precisely because there isn't enough > resolution to see the content on the presenter's screen clearly. Having > the slides side-by-si

Re: Clojure/West 2013 videos?

2013-03-25 Thread Michael Bevilacqua-Linn
Second this, I like the high quality of the InfoQ stuff. It's consistently good, watchable video. Sure it can be a bummer to wait a bit for em, but hey, high quality free videos! Now *could* Alex somehow figure out some scheme that gets them up the next day and little cost, involving organ

Re: predictability of sequential treatment of maps

2013-03-25 Thread Herwig Hochleitner
I don't know about the guarantees that implementing j.u.Map implies, but for persistent maps, the iteration sequence is definitely stable. (zipmap (map kfn (keys m)) (map vfn (vals m))) is a common idiom. If there is no such guarantee for j.u.Map, maybe we should document it for clojure

Re: Sweet-expressions

2013-03-25 Thread Timothy Baldridge
(first | first coll) ; (first (first coll)) (count | first | second coll) ; (count (first (second coll))) (nth % 2 | first coll) ; (nth (first coll) 2) How is this better than the threading macro? (-> coll first first) (-> coll second first count) (-> coll first (nth 2)) Timothy Baldridge O

Re: Sweet-expressions

2013-03-25 Thread Antoine Noo
Some idea for alternative clojure syntax: (first | first coll) ; (first (first coll)) (count | first | second coll) ; (count (first (second coll))) (nth % 2 | first coll) ; (nth (first coll) 2) (+ 1)# ; (partial + 1) (+ 1 (* 2))## ; (fn [nb] (+ 1 (* 2 %)) (count | first | second)## ; (fn [coll]

Re: Clojure/West 2013 videos?

2013-03-25 Thread Herwig Hochleitner
2013/3/25 Cedric Greevey > Another minute, another straw man. My point is that the needed video > hosting capability already exists (and even has monetize options). > You are great at identifying logical fallacies in other's arguments. You are not so great at remembering your own lines of argum

Re: Clojure/West 2013 videos?

2013-03-25 Thread Alan Thompson
Thank you for the conferences! I missed this one but really want to attend the next one. And a double thank you for having such high-quality videos from past conferences available on-line! Alan Thompson On Mon, Mar 25, 2013 at 10:35 AM, Mark Engelberg wrote: > I've been impressed with the quali

predictability of sequential treatment of maps

2013-03-25 Thread Steven Feist
Maybe I'm just paranoid, or maybe I'm missing something, but there are some facts about maps that I believe to be true in general, that I'd like to count on, and that as far as I can tell are not explicitly documented as being true. What it comes down to is whether the same (identical, not just

Re: Clojure/West 2013 videos?

2013-03-25 Thread Bruce Durling
Phil and Alex, On Mon, Mar 25, 2013 at 5:52 PM, Phil Hagelberg wrote: > It bums me out that Alex's fantastic work is being trivialized and > criticized by people with a huge entitlement complex and no idea what > they're talking about. > > If you think you can do better, try running your own conf

Re: Clojure/West 2013 videos?

2013-03-25 Thread Phil Hagelberg
Cedric Greevey writes: >> Outfits like InfoQ and Confreaks do a very good job, but >> they use professional staff (who expect to be paid). > > And I'm guessing what they're doing is obsolescent, if not already > obsolete, in that it can be done about as well for a lot less money. If > they're cha

Re: Clojure/West 2013 videos?

2013-03-25 Thread Mark Engelberg
I've been impressed with the quality of the InfoQ videos. Most other tech videos I see are unwatchable precisely because there isn't enough resolution to see the content on the presenter's screen clearly. Having the slides side-by-side makes an enormous difference. Waiting several months for a q

Re: Sweet-expressions

2013-03-25 Thread Laurent PETIT
As stated in the web site, there are sometimes different needs while creating/editing, and while reading. I see no need to create a second edition syntax. It may be interesting (and potentially way easier to prototype / play with the idea) to only provide alternative "views" of clojure code. My

Re: Sweet-expressions

2013-03-25 Thread Ben Wolfson
One difficulty in that transformation for clojure might be that "{" already has significance to the clojure reader, denoting the beginning of a map literal. If { in that notation is exclusively used for infix binary operations, you could get around it, because in that context the {...} expression

Re: Sweet-expressions

2013-03-25 Thread Herwig Hochleitner
Oh, it's this thread again. Please read https://groups.google.com/d/topic/clojure/TB4i3ATmrEE/discussion before discussing further. TLDR: If you want to demonstrate the merits of significant white space for clojure, please implement a reader with the alternative rules you envision. Right now, the

Re: Clojure/West 2013 videos?

2013-03-25 Thread Cedric Greevey
On Mon, Mar 25, 2013 at 12:41 PM, Michael Klishin < michael.s.klis...@gmail.com> wrote: > > 2013/3/25 Cedric Greevey > >> Don't forget that Youtube has MILLIONS of visitors per month. >> >> Imagine the impact if the videos were available when demand for them was >> actually at its peak, rather th

Re: Clojure/West 2013 videos?

2013-03-25 Thread Michael Klishin
2013/3/25 Cedric Greevey > Don't forget that Youtube has MILLIONS of visitors per month. > > Imagine the impact if the videos were available when demand for them was > actually at its peak, rather than after half the people that had been > interested have forgotten all about them. I challenge y

Re: Clojure/West 2013 videos?

2013-03-25 Thread Timothy Baldridge
+1 to what Michael said. Once the videos do start rolling in, InfoQ will have at least one Clojure video on the front page for months on end. I once said to a friend after Clojure/West last year,"InfoQ? Oh! You mean the Clojure Channel." On Mon, Mar 25, 2013 at 10:19 AM, Michael Klishin < michael

Re: Clojure/West 2013 videos?

2013-03-25 Thread Cedric Greevey
Let's see. What do we have here? First there's an ad hominem argument, and then a straw man (the costs under discussion are those of producing *the video*, not *the entire conference*), and finally another ad hominem argument, but this time laced with a small amount of what might actually be termed

Re: Clojure/West 2013 videos?

2013-03-25 Thread Michael Klishin
2013/3/25 Cedric Greevey > > Don't lecture me about what software is or is not capable of. Nobody even mentioned what software is capable of. You cannot produce great content without experienced people involved. Shooting something only looks trivial. There are all kinds of issues that we viewer

Re: Clojure/West 2013 videos?

2013-03-25 Thread Paul deGrandis
I propose a challenge: Cedric, you pull together a top-notch conference, of high quality speakers with high-quality content. I expect... demand... I demand the following: - It must be in a beautiful, unique city within the united states. - The venue must provide me with free snacks and unlimi

Re: Clojure/West 2013 videos?

2013-03-25 Thread Herwig Hochleitner
Cedric, I'm not going to challenge the validity of your points, or even the way you argue your points, since you know how to handle yourself, intellectually. And since you have been known to back your claims with verifyable examples and deeds, I fully expect you to publish a full set of videos

Re: cannot get more than 94 fibonacci numbers -> integer overflow

2013-03-25 Thread Jim foo.bar
Cool, thanks guys :) Jim On 25/03/13 15:34, David Powell wrote: On Mon, Mar 25, 2013 at 3:24 PM, Jim foo.bar > wrote: On 25/03/13 15:22, Ben Wolfson wrote: The 94th fibonacci number is greater than Long/MAX_VALUE, so it overflows. It is usi

Re: cannot get more than 94 fibonacci numbers -> integer overflow

2013-03-25 Thread David Powell
On Mon, Mar 25, 2013 at 3:24 PM, Jim foo.bar wrote: > On 25/03/13 15:22, Ben Wolfson wrote: > >> The 94th fibonacci number is greater than Long/MAX_VALUE, so it >> overflows. It is using longs. >> > > I seeshouldn't Clojure auto-promote it to a BigInt then? It doesn't by default. There are

Re: cannot get more than 94 fibonacci numbers -> integer overflow

2013-03-25 Thread Akhil Wali
Use 0N instead of 0. On Mar 25, 2013 8:52 PM, "Ben Wolfson" wrote: > On Mon, Mar 25, 2013 at 8:05 AM, Jim foo.bar wrote: > > > > Since Clojure prefers longs to ints and since I'm not using any type > hints, > > I don't understand why I get an integer overflow... > > In the traceback I get for th

Re: cannot get more than 94 fibonacci numbers -> integer overflow

2013-03-25 Thread Jim foo.bar
On 25/03/13 15:22, Ben Wolfson wrote: The 94th fibonacci number is greater than Long/MAX_VALUE, so it overflows. It is using longs. I seeshouldn't Clojure auto-promote it to a BigInt then? Jim -- -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: cannot get more than 94 fibonacci numbers -> integer overflow

2013-03-25 Thread Ben Wolfson
On Mon, Mar 25, 2013 at 8:22 AM, Ben Wolfson wrote: > On Mon, Mar 25, 2013 at 8:05 AM, Jim foo.bar wrote: >> >> Since Clojure prefers longs to ints and since I'm not using any type hints, >> I don't understand why I get an integer overflow... > > In the traceback I get for this: > (take 94 (lazy-

Re: cannot get more than 94 fibonacci numbers -> integer overflow

2013-03-25 Thread Ben Wolfson
On Mon, Mar 25, 2013 at 8:05 AM, Jim foo.bar wrote: > > Since Clojure prefers longs to ints and since I'm not using any type hints, > I don't understand why I get an integer overflow... In the traceback I get for this: (take 94 (lazy-seq (cons 0 (lazy-seq (cons 1 (map + fibs (rest fibs))) Ar

Re: Clojure/West 2013 videos?

2013-03-25 Thread SteveSuehs
While I'd love for the whole conference to be downloaded to my iPad, I'm happy enough with the InfoQ situation. The quality and slide matching is great. The frequency is about what I can keep up with once they start coming. If I want more I guess I'll have to get my work settled and in orde

cannot get more than 94 fibonacci numbers -> integer overflow

2013-03-25 Thread Jim foo.bar
I've literally tried all the variations of fibonaci sequences i could find! all of them throw an ArithmeticException integer overflow clojure.lang.Numbers.throwIntOverflow (Numbers.java:1388) as soon as I try more than 94 elements! my favourite version is this (from Christophe Grand ): (defn

Re: Clojure/West 2013 videos?

2013-03-25 Thread Cedric Greevey
On Mon, Mar 25, 2013 at 9:13 AM, Alex Miller wrote: > > > On Sunday, March 24, 2013 11:53:32 PM UTC-5, Cedric Greevey wrote: > >> On Sun, Mar 24, 2013 at 11:24 PM, Rich Morin wrote: >> >>> On Mar 24, 2013, at 18:44, Cedric Greevey wrote: >>> > Where are these costs coming from? ... >>> >>> To ge

Re: Clojure/West 2013 videos?

2013-03-25 Thread Cedric Greevey
On Mon, Mar 25, 2013 at 9:00 AM, Alex Miller wrote: > > > On Sunday, March 24, 2013 8:44:09 PM UTC-5, Cedric Greevey wrote: > >> On Sun, Mar 24, 2013 at 7:23 PM, Alex Miller wrote: >> >>> I have done a fair amount of polling on this for Strange Loop and it's >>> problematic. >>> >>> - there are a

Re: Clojure/West 2013 videos?

2013-03-25 Thread Rick Moynihan
On 25 March 2013 13:51, Roger Austin (@RogerTheGeek) wrote: > Thanks to everyone involved for the Clojure/West videos. I'd just like to second this! I continue to be amazed at the amount and quality of Clojure related videos online; the vast majority due to conferences such as this. Though I've

Re: Clojure/West 2013 videos?

2013-03-25 Thread Roger Austin (@RogerTheGeek)
Thanks to everyone involved for the Clojure/West videos. I can't afford to go to all the conferences and I appreciate the professional videos. I've seen too many bad videos that are so distracting that the content is lost. I don't mind them coming out on a longer schedule since I have enough tr

[ANN] core.typed 0.1.9, jvm.tools.analyzer 0.3.2

2013-03-25 Thread Ambrose Bonnaire-Sergeant
Hi, I have pushed two minor releases, with minor breaking changes. core.typed There's a new release of core.typed , the first with the contrib infrastructure. Check the changelog for the set of changes. The most important change is the group id has changed

Re: Clojure/West 2013 videos?

2013-03-25 Thread Alex Miller
On Monday, March 25, 2013 4:19:12 AM UTC-5, Ustun Ozgur wrote: > > To compare, PyCon videos are usually up in less than 1 week, see > http://pyvideo.org/. Probably the production of those videos are > supported by the PSF, but it might still be a good idea to see how they do > it. I made some

Re: Clojure/West 2013 videos?

2013-03-25 Thread Michael Fogus
> You have no idea what you're talking about. That's never stopped him before. On Mon, Mar 25, 2013 at 9:22 AM, Alex Miller wrote: > > > On Monday, March 25, 2013 12:16:45 AM UTC-5, Sean Grove wrote: >> >> I'm sure that having nice videos (which have all been awesome) aren't >> cheap, nor are

Re: Clojure/West 2013 videos?

2013-03-25 Thread Alex Miller
On Monday, March 25, 2013 12:16:45 AM UTC-5, Sean Grove wrote: > > I'm sure that having nice videos (which have all been awesome) aren't > cheap, nor are they easy to produce. It's unfair to trivialize the > production and editing of high-quality material. > > That said, a thought I've been sur

Re: Concurrency and custom types.

2013-03-25 Thread Jim foo.bar
On 25/03/13 12:55, Michael Klishin wrote: Take a look at https://blogs.oracle.com/jrose/entry/value_types_in_the_vm, it indicates that there is interest in "true value types" on the JVM but at best they will make it in JDK 9 in 2015. thanks for thisvery interesting stuff indeed... :) Jim

Convite para utilizar o Google Talk

2013-03-25 Thread Google Talk
--- Foi convidado(a) por joao andrade para utilizar o Google Talk. Caso já possua uma conta Google, inicie sessão em Gmail e aceite este convite de chat: http://mail.google.com/mail/b-b5347cded5-6673828921-o_6hQO3jyoqWfDQm-Te0jik

Re: Clojure/West 2013 videos?

2013-03-25 Thread Alex Miller
On Monday, March 25, 2013 12:47:51 AM UTC-5, Michael Klishin wrote: > > > 2013/3/25 Cedric Greevey > > >> A lot of computers are shipping with free no-frills video editing >> software these days that probably suffices for this. > > > Do those computers also ship with a person who has a lot of ex

Re: Clojure/West 2013 videos?

2013-03-25 Thread Alex Miller
On Sunday, March 24, 2013 11:53:32 PM UTC-5, Cedric Greevey wrote: > > On Sun, Mar 24, 2013 at 11:24 PM, Rich Morin >wrote: > >> On Mar 24, 2013, at 18:44, Cedric Greevey wrote: >> > Where are these costs coming from? ... >> >> To get professional results, you need more than a camera >> on a tri

Re: Concurrency and custom types.

2013-03-25 Thread Shantanu Kumar
On Monday, 25 March 2013 18:23:25 UTC+5:30, Jim foo.bar wrote: > > On 25/03/13 12:50, Shantanu Kumar wrote: > > However, I'd consider they are just implementation details and intended > for idiomatic use from within the Clojure language. > > > I think you meant "*not* intended for idiomatic u

Re: Clojure/West 2013 videos?

2013-03-25 Thread Alex Miller
On Sunday, March 24, 2013 10:24:39 PM UTC-5, Rich Morin wrote: > > On Mar 24, 2013, at 18:44, Cedric Greevey wrote: > > Where are these costs coming from? ... > > To get professional results, you need more than a camera > on a tripod. For example, someone has to: > > * keep the camera on

Re: Clojure/West 2013 videos?

2013-03-25 Thread Alex Miller
On Sunday, March 24, 2013 8:44:09 PM UTC-5, Cedric Greevey wrote: > > On Sun, Mar 24, 2013 at 7:23 PM, Alex Miller > > > wrote: > >> I have done a fair amount of polling on this for Strange Loop and it's >> problematic. >> >> - there are a small number of interested people which thus requires

Re: Concurrency and custom types.

2013-03-25 Thread Michael Klishin
2013/3/25 Jim foo.bar > I only asked because you said there is no 100% immutability on the JVM I see. I was referring to the fact that JDK collections and maps are mutable, (at least some comonly used) .NET collections are mutable and JavaScript arrays and objects are mutable. Take a look at

Re: Concurrency and custom types.

2013-03-25 Thread Jim foo.bar
On 25/03/13 12:50, Shantanu Kumar wrote: However, I'd consider they are just implementation details and intended for idiomatic use from within the Clojure language. I think you meant "*not* intended for idiomatic use from within the Clojure language." Jim -- -- You received this message bec

Re: Concurrency and custom types.

2013-03-25 Thread Jim foo.bar
On 25/03/13 12:45, Michael Klishin wrote: Not sure how strings and numerical types fit into this discussion about collection mutability. I only asked because you said there is no 100% immutability on the JVM. I also found this blog-post where Doug Lea joined in for a discussion... http://w

Re: Concurrency and custom types.

2013-03-25 Thread Shantanu Kumar
On Monday, 25 March 2013 18:07:33 UTC+5:30, Jim foo.bar wrote: > > On 25/03/13 12:28, Michael Klishin wrote: > > There is no absolute immutability on the JVM, .NET, in JavaScript. > > There is always a backdoor to mutability. > > But 99.9% of projects won't use it. > > Andy hinted this last n

Sweet-expressions

2013-03-25 Thread poetix
I really like the look of this: http://readable.sourceforge.net/ which defines a completely reversible transformation between e.g. define fibfast(n) if {n < 2} n fibup(n 2 1 0) and (define (fibfast n) (if (< n 2) n (fibup n 2 1 0))) and wonder how difficult it would be to

Portugal Clojure

2013-03-25 Thread joao . miguel . andrade
Viva, Gostaria de abrir um tema de discussão sobre a utilização do Clojure em Portugal, a sua receptividade, as vantagens e desvantagens, os riscos, etc... Qual o futuro do Clojure em Portugal? Alguém está a trabalhar em Clojure? Follow me on https://github.com/jmaandrade /orchestration

Re: Concurrency and custom types.

2013-03-25 Thread Michael Klishin
2013/3/25 Jim foo.bar > if I declare a Integer/String object as private & final within a class, is > there a way to mutate it? Strings are immutable but they are backed by arrays. You can create a native extension that will mess with that array. Does this count as "true immutability" to you? It

Re: Concurrency and custom types.

2013-03-25 Thread Dave Sann
how could it not be true? it's in data represented in memory. On Monday, 25 March 2013 23:37:33 UTC+11, Jim foo.bar wrote: > > On 25/03/13 12:28, Michael Klishin wrote: > > There is no absolute immutability on the JVM, .NET, in JavaScript. > > There is always a backdoor to mutability. > > Bu

Re: Concurrency and custom types.

2013-03-25 Thread Jim foo.bar
On 25/03/13 12:28, Michael Klishin wrote: There is no absolute immutability on the JVM, .NET, in JavaScript. There is always a backdoor to mutability. But 99.9% of projects won't use it. Andy hinted this last night as well...is this true? if I declare a Integer/String object as private & fina

Re: Concurrency and custom types.

2013-03-25 Thread Michael Klishin
2013/3/25 Jim foo.bar > I've never seen that in Clojure code but is 'how responsible a programmer > is' what really matters? In other words, are clojure's collection > persistent by covention (up to the programmer)? I'd argue that when you > call a collection 'persistent' what matters is 'persis

Re: Concurrency and custom types.

2013-03-25 Thread Jim foo.bar
On 25/03/13 12:08, Michael Klishin wrote: How often do you see implementation details such as PersistentVector#tail used in Clojure code? That is what matters. I've never seen that in Clojure code but is 'how responsible a programmer is' what really matters? In other words, are clojure's co

Re: Concurrency and custom types.

2013-03-25 Thread Michael Klishin
2013/3/25 Jim foo.bar > Moreover, consider the following scenario: > > -someone has heard about clojure's collections and wants to use them from > Java. > -he opens up his favourite IDE, imports Clojure and starts using a > persistent vector-let's call it 'v'. > -he types 'v.' and the IDE autocom

Re: Concurrency and custom types.

2013-03-25 Thread Michael Klishin
2013/3/25 Jim foo.bar > OMG! I read your message very quickly late last night and honestly I > thought you were pulling my leg...I just tried this at a repl though, and > you're indeed right...Am I the only one who finds this slightly disturbing? > For almost 4 years, I've been hearing of how bea

Re: Concurrency and custom types.

2013-03-25 Thread Jim foo.bar
On 24/03/13 22:59, Andy Fingerhut wrote: It might not be obvious at first, but Clojure's "immutable" types are *not* immutable in the sense of "they cannot be modified in place from within the JVM", but only in the sense of "they cannot be modified in place by using Clojure's functions alone on

Re: Which is the most idiomatic way to go

2013-03-25 Thread Ryan
Thanks a lot Leif :) It's really good to have a second opinion on these matter since I am new to clojure. On Monday, March 25, 2013 3:37:47 AM UTC+2, Leif wrote: > > I'm totally in favor of your alternate approach, for these reasons: > > 1. As you noted, it's easier to test. > 2. I separates yo

Re: Seeking advice on a safe way to mock/stub fns

2013-03-25 Thread Shantanu Kumar
On Monday, 25 March 2013 06:45:32 UTC+5:30, Leif wrote: > > Hello, fellow Clojurians. > > One problem I've run into when stubbing fns is that with-redefs doesn't > play well with concurrency. E.g. > http://clojuredocs.org/clojure_core/clojure.core/with-redefs#example_994 > The problem arises

Re: Clojure/West 2013 videos?

2013-03-25 Thread Ustun Ozgur
On Monday, March 25, 2013 7:47:51 AM UTC+2, Michael Klishin wrote: > > 2013/3/25 Cedric Greevey > > >> A lot of computers are shipping with free no-frills video editing >> software these days that probably suffices for this. > > > Do those computers also ship with a person who has a lot of experi

Re: [ANN] Pedestal Application Framework

2013-03-25 Thread Si
Errr, sorry. I see questions can go to https://groups.google.com/d/forum/pedestal-dev. I'll get on to it after I wake up properly :) On Friday, March 22, 2013 3:52:07 PM UTC+1, Alex Redinton wrote: > > Hello! > > At Relevance, we have been working on a way to build applications > delivered over

Re: [ANN] Pedestal Application Framework

2013-03-25 Thread Si
I spent this weekend getting my head around Pedestal, and am liking a lot it so far. Thanks! Where is the best place to ask for help regarding Pedestal specific issues? >From the templates, I created a service and an app, and would now like to hook them up in my development aspect. Considering

Re: Debug prints don't execute on multimethod dispatch functions

2013-03-25 Thread Alf Kristian Støyle
println works fine in this example at least: Clojure 1.5.1 user=> (defn meta-type "Gets the metadata type." [o] (when-let [m (meta o)] (:type m))) #'user/meta-type user=> (defn debug-switch [o & rest] (println "Received switch args : " o ", " rest) (meta-type o)) #'user/debug-swit

Re: Redefinition of datatypes

2013-03-25 Thread Ambrose Bonnaire-Sergeant
I think I figured out how to disable compilation. Seems to work. (just failing unit tests now) http://build.clojure.org/job/core.typed/17/console Thanks! Ambrose On Mon, Mar 25, 2013 at 9:30 AM, Ambrose Bonnaire-Sergeant < abonnaireserge...@gmail.com> wrote: > Hi Stuart, > > I think the problem