Re: [core.spec] Stricter map validations?

2017-11-14 Thread Seth Verrinder
I took part of the goal to be that specs themselves would remain compatible, so an old set of specs wouldn't start failing on data that conforms to a new but compatible set of specs. That sort of compatibility isn't possible when you go from disallowing something to allowing it. On Tuesday, Nov

Re: Using transducers in a new transducing context

2017-04-12 Thread Seth Verrinder
Reordering definitely matters: StepA: write to x StepB: read from x StepB: read from x StepA: write to x On Wednesday, April 12, 2017 at 7:15:09 AM UTC-5, Léo Noel wrote: > > I could have one thread that invokes a transduce step on odd seconds and >> another that invokes on even seconds. Or som

Re: Using transducers in a new transducing context

2017-04-11 Thread Seth Verrinder
f the next. All these techniques ensure > visibility of unsynchronized variables between two successive steps, even > when multiple threads are involved. > > > On Tuesday, April 11, 2017 at 1:36:30 PM UTC+2, Seth Verrinder wrote: >> >> The single thread at a time rule is impl

Re: Using transducers in a new transducing context

2017-04-11 Thread Seth Verrinder
The single thread at a time rule is implemented by the transducing context (transduce, into, core.async, etc). Inside of a transducer's implementation you just have to make the assumption that it's being used properly. volatile! is what ensures that there's a memory barrier. On Tue, Apr 11, 2017 a

Re: Using transducers in a new transducing context

2017-04-10 Thread Seth Verrinder
The problem is at a lower level. The memory model of the JVM doesn't guarantee that changes to an unsynchronized non-volatile reference are visible to other threads. Transducers don't have to worry about concurrency but they do have to worry about visibility of changes across different threads. On

Re: Using transducers in a new transducing context

2017-04-09 Thread Seth Verrinder
I'll defer to Timothy on the particulars of core.async but it looks like [1] the transducer in channel is protected by a lock. If that's the case volatile isn't adding anything in terms memory barriers. 1: https://github.com/clojure/core.async/blob/master/src/main/clojure/clojure/core/async/imp

Re: Using transducers in a new transducing context

2017-04-09 Thread Seth Verrinder
My guess is that partition-all and partition use non-volatile references because none of the built-in stuff will return control back to the caller at a finer resolution than output value (AFAIK). That's why take needs volatile but partition-all doesn't (because for take the state persists betwe

Re: Deploying multiple Clojure apps on one server using Reagent, Nginx, and Supervisor (Solved)

2017-01-06 Thread Seth Archambault
eap configured for Tomcat on each of a cluster of servers, each with > 64GB RAM (our database servers are in a separate cluster and have 128GB RAM > each, I believe). > > > > Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN > An Architect's View -- http://corfield.org/

Re: Deploying multiple Clojure apps on one server using Reagent, Nginx, and Supervisor (Solved)

2017-01-03 Thread Seth Archambault
Haha thanks for pointing that out - I mispoke - 1024 mb of ram - 1 gig of ram. Using a $10 a month Vultr account. 1000 gigs would be a tad expensive! On Monday, January 2, 2017 at 8:27:19 PM UTC-5, William la Forge wrote: > > Seth, something seems amiss. 1,000 GB is 1,000,000 MB. At 84

Re: Deploying multiple Clojure apps on one server using Reagent, Nginx, and Supervisor (Solved)

2017-01-02 Thread Seth Archambault
ere any technology I should look into, or practices I should implement for this? Being able to run many websites on one server is a critical issue for me... Anyone have any advice? Thanks! On Friday, December 23, 2016 at 11:56:19 AM UTC-5, Seth Archambault wrote: > > :-O > Th

Re: Deploying multiple Clojure apps on one server using Reagent, Nginx, and Supervisor (Solved)

2016-12-23 Thread Seth Archambault
nt.md>. Luminus is a commonly > used project template, but the deployment docs apply to most Clojure web > projects and cover a range of setups. > > - James > > > On 23 December 2016 at 14:11, Seth Archambault > wrote: > >> I'm posting this because right

Re: POST in Ajax - Invalid anti-forgery token

2016-12-23 Thread Seth Archambault
Okay, armed with the new clarity, I felt embolden to tackle this once more. Here's the next steps for those trying to tack CSRF protection onto a Reagent project created with lein new reagent. In handler.clj - you'll add the ring.middleware.anti-forgery and refer to *anti-forgery-token* (ns m

Re: POST in Ajax - Invalid anti-forgery token

2016-12-23 Thread Seth Archambault
reference that meta tag with javascript (that's how Laravel does it). ...but I'll cross that bridge when I come to it. Thanks! Seth On Friday, December 23, 2016 at 10:36:46 AM UTC-5, James Reeves wrote: > > The "use" function is a deprecated shortcut for "require&

POST in Ajax - Invalid anti-forgery token

2016-12-23 Thread Seth Archambault
the modern way to do CSRF protection? Secondly, I'm concerned I'm doing something wrong - ring.middleware feels like a magical thing where you apply wrappers, and then stuff just magically works. I'm not a big fan of magic, I want to be able to see a pathway for finding a solu

Deploying multiple Clojure apps on one server using Reagent, Nginx, and Supervisor (Solved)

2016-12-23 Thread Seth Archambault
d study the project.clj and determine that /src/clj/myapp/server.clj is used by anything. It just happens magicaly, the complexity is hidden... Again, I'm really enjoying clojure so far, and I really agree with the creators vision, but I'm concerned whenever really easy tasks take fore

Re: is this macro right?

2016-01-04 Thread Seth Verrinder
Hi, I posted another answer to this. There's an additional problem with the macro that explains what you're seeing in your first example. - Seth On Monday, December 28, 2015 at 2:47:39 AM UTC-6, Mian Pao wrote: > > > http://stackoverflow.com/questions/34448773/is-functi

Re: Output of printf is buffered

2014-06-24 Thread Seth Yuan
Yeah, this is definitely an annoying bug. On Thursday, April 10, 2014 8:03:02 PM UTC+8, Kevin Ilchmann Jørgensen wrote: > > nREPL server started on port 53667 on host 127.0.0.1 > REPL-y 0.3.0 > Clojure 1.5.1 > Docs: (doc function-name-here) > (find-doc "part-of-name-here") > Sourc

Re: Advice on data structure communication and awareness

2014-05-19 Thread Seth
Hi Mike! You might talk to Zack at CapClug. The session before the one you attended he walked through two small Clojure projects, with and without Prismatic schema. On Saturday, May 17, 2014 2:22:51 PM UTC, Mike Fikes wrote: > > I've never used a dynamically-typed language and an issue I've enco

Re: How to structure a Clojure day for noobs?

2012-12-20 Thread Seth Chandler
I would spend A LOT of time on working with the IDE be it Eclipse/Counterclockwise, IntelliJ or whatever. In my limited experience the main impediment to Clojure is not Clojure itself, which is very sensible, but in dealing with file locations, dependency management, projects, Leiningen, all o

Using gen-class to generate methods with same names and arities but different type signatures

2012-08-02 Thread Seth Chandler
Don't have an answer but I would sure enjoy hearing the group's wisdom on this. -- 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 p

Re: community interest in machine learning (?)

2012-07-19 Thread Seth Chandler
I'm extremely interested. I'm new to Clojure, coming mostly from a Mathematica background, but I just finished a major project linking Mathematica to Weka and am interested in doing something similar with Clojure. Weka, by the way, is 99% terrific, and so before people go completely reinvent

s-expression levels and higher order functions

2012-07-19 Thread Seth Chandler
I'm new both to Clojure and to this group, so please be gentle. I come to Clojure mostly from a Mathematica background, which has a certain Lispyness to it. One of the things one can do in Mathematica is to map a function to an s-expression but not at its top level, but rather at some user spe

defrecord/defprotocol documentation suggestions

2011-03-18 Thread Seth
I would suggest adding something on the lines of these - it is confusing to newcomers, and it really isnt complete documentation to not include. The crux of the matter is how clojure defines methods when a record has inline protocols, etc. Maybe i missed this in the documentations. 1. extend-prot

Re: with-timeout... ?

2011-03-09 Thread Seth
oooh ... I can definitely find a use for this in my project! Thanks for pointing it out. -- 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 - ple

Re: with-timeout... ?

2011-03-09 Thread Seth
Or you could just modify the source of promise ... i dont know why promises dont support timeouts (defprotocol PWait (wait-for [this timeout units] [this timeout])) ;;copied from clojure source, but adding timeout wait-for (defn promise "Alpha - subject to change. Returns a promise obje

Re: Serialising functions...

2011-03-01 Thread Seth
Now reflecting on it, and without looking exactly at source code, i think it is clear that functions are implemented as classes (which extend RestFn, etc). and the body are methods of the classes - so, one couldnt force function class names to be the same. And of course they need to be random enou

Re: Serialising functions...

2011-03-01 Thread Seth
> So, combine the ClassLoader hackery with slapping "implements > Serializable" on clojure.lang.IFn? Actually, I just looked at the implementation code -and this is not true. Actually, a variadic function is of type RestFn and otherwise it is of type AFunction. Restfn extends AFunction, and AFunct

Re: Arithmetic operations on custom types

2011-02-28 Thread Seth
whats wrong with clojure.contrib.generic.arithmetics? Too slow? The only other method that i know of is too : (a). use defprotocol, but this will only dispatch on the first value (b). use gen-class, but this require aot compilation For the first approach, see https://github.com/ztellman/cantor/bl

Re: Serialising functions...

2011-02-28 Thread Seth
back ; ; (def f "/home/seth/Desktop/test") (defn get-bytes "convert object to byte array" [obj] (let [bytes-out (java.io.ByteArrayOutputStream.) out-obj (java.io.ObjectOutputStream. bytes-out)] (try (do (.writeObject out-obj obj) (.toByteArray by

Re: type hinting record types?

2011-02-27 Thread Seth
Maybe records shouldnt be redefined if their definition hasnt changed? -- 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 wit

Re: slime warn-on-reflection?

2011-02-26 Thread Seth
Thanks! Works like a charm (except you cant turn it off - but thats ok!)! -- 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

Re: type hinting record types?

2011-02-26 Thread Seth
Makes sense - I was hoping there was a way around this in which the type hints would also work for the original class. -- 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 n

Re: type hinting record types?

2011-02-25 Thread Seth
Notice that this occurs even if i dont redefine record A - if i do (require :reload-all 'my-namespace), any old record object will now fail with type hinted functions. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email t

type hinting record types?

2011-02-25 Thread Seth
Ive recently started type hinting - however, when I have a record of, lets say type A, and then i change the definition of record A, all functions which have type hinted A now fail when i pass in the old A records that i have already defined (cannot cast from type A to type A is the error message

slime warn-on-reflection?

2011-02-25 Thread Seth
Has any gotten the warn-on-reflection to work in slime when compiling a buffer? Warning occur when i paste a function into the repl, but no reflections occur when i compile a buffer or when i load the file. -- You received this message because you are subscribed to the Google Groups "Clojure" gr

removing primitive support 4 or less restriction?

2011-02-24 Thread Seth
I know that this has come up - but when will the restriction of "fns taking primitives support only 4 or fewer args" be removed? -- 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 p

Re: deploying application updates to end users

2011-02-19 Thread Seth
Permissions seem a lot of hastle - also, im using a native library the user has to install (zeromq), so that would be even more of a pain . But thanks for the suggestion! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send emai

deploying application updates to end users

2011-02-18 Thread Seth
Has anyone had any experience in the best way to deploy updates to end users who have no programming experience? The application basically consists of a src directory, and a bat file which runs 'lein run' to start the program. It also consists of some extraneous files that have to be installed on t

Re: Best method for storing dynamic data in database

2011-02-13 Thread Seth
or i could have just used base64:) I love leiningen +maven+central repository! (import (java.io ByteArrayOutputStream ObjectOutputStream ByteArrayInputStream ObjectInputStream) org.apache.commons.codec.binary.Base64) (defn bytes-to-obj "convert string to object" [s]

Re: Best method for storing dynamic data in database

2011-02-13 Thread Seth
not fast, but it works:) any ideas on better code? ;code from http://www.mail-archive.com/clojure@googlegroups.com/msg19378.html ;;saving objects to strings and going back -slow, but it works (import (java.io ByteArrayOutputStream ObjectOutputStream ByteArrayInputStream Objec

Re: any good reason why defrecord/deftype doesn't support java class inheritence?

2011-02-13 Thread Seth
I know that IMeta is used with the (meta) function and with IObj, you can also implement with-meta. And fn? tests for 'true functions' , i.e. only the function created by (fn). Not sure about the rest... -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: Best method for storing dynamic data in database

2011-02-13 Thread Seth
any serializable java object should be supported. hmmm... i guess that would work - simply output the object as a byte string and then decode that. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: any good reason why defrecord/deftype doesn't support java class inheritence?

2011-02-13 Thread Seth
whats wrong with implementing Fn and IMeta? On Feb 13, 9:35 pm, Ken Wesson wrote: > As for being able to attach metadata, you just have to implement IObj > on your functoids. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, sen

Re: any good reason why defrecord/deftype doesn't support java class inheritence?

2011-02-13 Thread Seth
and of course i forgot to include some utility functions. oh well... -- 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

Re: any good reason why defrecord/deftype doesn't support java class inheritence?

2011-02-13 Thread Seth
And just for the heck of it, if anyones interested - heres the hook code. (ns forex.util.emacs)) (defmacro is [val & message] `(let [result# ~val] (if (not result#) (throw (Exception. ~(or (and (first message) `(format ~@message)) (format "assert: %s" (str val) result#)))

Re: any good reason why defrecord/deftype doesn't support java class inheritence?

2011-02-13 Thread Seth
oh, and of course the funuction needs to be executable (they are after all just functions with metadata) - so we cant use ifn?, which would return true on record! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clo

Re: any good reason why defrecord/deftype doesn't support java class inheritence?

2011-02-13 Thread Seth
which namespace the function can from (or id, if supplied), so that i can overwrite the hook when adding a hook with similar ns/id. On Feb 13, 9:08 pm, Ken Wesson wrote: > On Sun, Feb 13, 2011 at 7:00 PM, Seth wrote: > > Cool, thats what I thought. Sometimes, i wish i could inher

Best method for storing dynamic data in database

2011-02-13 Thread Seth
I have an application which contains a number of running threads, each which has a state to it. A state is a single record. It contains some random stuff, but most importantly it a has a :var slot which contains a map in which the keys are vars and the values are whatever the vars are (if they can

Re: any good reason why defrecord/deftype doesn't support java class inheritence?

2011-02-13 Thread Seth
Cool, thats what I thought. Sometimes, i wish i could inherit from a class, but then i just use proxy to do it instead :) For example, i made a function which acted like a fn? , but had some metadata. At first i was going to use records, but couldnt because i needed to inherit from Afn, but proxies

any good reason why defrecord/deftype doesn't support java class inheritence?

2011-02-12 Thread Seth
As the question states - why doesnt defrecord support java class inheritence? Is it just because people think it wouldnt be 'good' or are there true technical issues with doing it? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: Time/size bounded cache?

2011-02-06 Thread Seth
do you really need that? How about an infinite lazy sequence? (defn infinite [arg] (lazy-seq (Thread/sleep 2000) ;;simulate 2 second retrieval time (concat (for [i (range 0 arg)] i) (infinite arg (def a (infinite 3)) (first a) ;;=> sleep 2 seconds, return 0 (take 3 (filter

Re: overriding seq in defrecord

2011-02-06 Thread Seth
I also found it useful to define my own clojure.core. This is because i wanted swap! and reset! to work on my AtomHash. So i did something like this, using clj-nstools. http://code.google.com/p/clj-nstools/ ns+ is sort of slow for large projects, but im sure that can be improved. (ns clj.core (:

Re: overriding seq in defrecord

2011-02-06 Thread Seth
The problem is that defrecord explicitly defines the interface you are trying to implement, so you are effectively attempting to declare the interface twice. And since clojure.lang.seqable isnt a protocol, you cant redefine it with extend. So, you will have to rewrite the defrecord macro or similar

Re: how to print-dup records?

2011-02-04 Thread Seth
cool! thought you had to refer or something the namespace, but i guess the reader works differently. changes are here https://github.com/Storkle/defrecord2 basically, i modified it to work with print-dup and i got rid of the pprint methods and changed the way constructor names are specified. so n

Re: how to print-dup records?

2011-02-02 Thread Seth
Ive just thought up that using print-dup for records might become a nightmare. This is because it will now matter which ns you load it from. If it loads an ns where the constructor function isnt defined or isnt imported, it will throw an error. This will become a nightmare when mixes records from v

Re: how to print-dup records?

2011-02-01 Thread Seth
Looks like it will do! One change, though, that I made for myself is that (defrecord2 (name constructor-name) [args] Protocol1 ...) so you can do protocols or (defrecord2 name [args] Protocol1...) for default -- You received this message because you are subscribed to the Google Groups "Clojure"

how to print-dup records?

2011-01-31 Thread Seth
d r)] rec))) However, it appears that the reader cant read classes For example (defrecord Foo [a]) (frm-save "/home/seth/Desktop/test" (Foo. 2)) (frm-load "/home/seth/Desktop/test") Another problem is that it saves it as the ns it is in, for example my- ns.Foo, and w

Re: best way to define alias for all publics in ns?

2011-01-19 Thread Seth
The core actually wouldn't have to be modified, as it already does something similar. After all, the function 'use' already does it - if we 'use' error-kit, it adds to the symbol map (seen by (ns-refers *ns*)) a map from the symbol to the actual var in error-kit. Thus, in ns A where we have used er

Re: best way to define alias for all publics in ns?

2011-01-18 Thread Seth
espace - a clear contradiction. Therefore, it is not possible to use the function 'use'. One would have to create a different function to get this to work - maybe put a 'export' metadata and have the new use function search for that. On Jan 17, 10:12 pm, Ken Wesson wrote: > On M

Re: best way to define alias for all publics in ns?

2011-01-17 Thread Seth
if you 'use' ns A in ns B, ns C which uses B will not see the functions of A. Im trying to create a ns which collects functions from various other ns and exports them so that all you have to do is use that one uber ns. -- You received this message because you are subscribed to the Google Groups "

Re: best way to define alias for all publics in ns?

2011-01-17 Thread Seth
woops, mistake (defn ns-export [from-ns] (count (doall (map (fn [[sym var]] (let [v (if (.hasRoot var) (var-get var)) var-obj (if v (intern *ns* sym v))] (when var-obj

best way to define alias for all publics in ns?

2011-01-17 Thread Seth
I have this function which takes all of the publics from one ns and exports them in the current ns. My question is, is this the best way to do it? Is there another method which doesnt use eval? I know eval is supposed to be 'evil ' :) (defn ns-export [from-ns] (map (fn [[sym var]] (let

Re: map destructuring with defaults

2011-01-06 Thread Seth
Ah. But a new map is being created with the default :or operation. I guess the ability to get this entire map with defaults is not available directly from clojure destructuring binding. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-05 Thread Seth
Now that i think of it, it is mostly a fear of having decreased productivity in writing code that affected my statement that i liked the little files. Im used to, i suppose, developing code for a specific function in a file, being able to compile, goto line numbers where there are errors, send code

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-05 Thread Seth
>Just discovered org-mode myself --- does anyone know of guide to using >it with clojure for a total newbie? I havent actually used it for clojure per se. I was just imagining how it could be used. You have the ability to embed arbitrary code (from many different languages). You can edit the code

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-05 Thread Seth
The literate programming is actually a contrib to org-mode. http://orgmode.org/worg/org-contrib/babel/ Ive actually used it to create my emacs.el, by having code in emacs.org and have init.el tangle out the emacs code. Of course i never documented anything and did it for the novelty of being able

map destructuring with defaults

2011-01-04 Thread Seth
Is there any way to get the entire map when destructuring plus the defaults? (let [{:keys [a] :or {a 4} :as b} {:b 3}] b) returns {:b 3} but i would like it to return {:b 3 :a 4} -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Seth
have you guys checked out org-mode + babel for emacs? This would be an excellent place to start to do literate programming. Interesting ideas ... maybe i will try this in my own code ... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: pods?

2010-12-24 Thread Seth
> It's planned to be new reference type, which handles transients inside. So > you send it functions living over transients for update. On deref the pod > automatically converts things back into a persistent value. So updates will > be fast, but things are transparently switched back to Clojure

pods?

2010-12-23 Thread Seth
I am interested in the references to pods that are floating around the internet. However, when i downloaded the github master repository, i couldn't find pod anywhere. Of course there are 17 other branches... Clojures support for mutable multithreading is great if there are no side effects, but som

Re: Calling methods with a dollar sign in them

2010-12-22 Thread Seth
ok, thats what i thought. Any change of a literal syntax for symbols like in lisp, |symbol|?? -- 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

Re: Calling methods with a dollar sign in them

2010-12-21 Thread Seth
oh, and the public var is defined as private in the .class file, so i can't use set! -- 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

Calling methods with a dollar sign in them

2010-12-21 Thread Seth
I am attempting to interop with scala. In scala, if you have a class which is a var, a method is defined in the .class file called varname_ $eq which will set the var. Problem is, clojure apprent converts dollar signs to the text _DOLLARSIGN_. Is there any way to prevent this? -- You received t

Re: using swig in clojure

2010-11-19 Thread Seth
unfortunately doesnt work. The library loads succesfully but i still get the error when calling add. Note that compiling on the top is a workaround to get it working on the repl. i added the loadlibrary to an init function which is good and i decided to ahead of time compile it - and it worked! I

Re: Reloading java classes

2010-11-04 Thread Seth
All i need to do is a function to reload a class I specify, nothing fancy. Surely there is some way? -- 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 mod

using swig in clojure

2010-11-04 Thread Seth
code in a clojure file (test.clj) (System/loadLibrary "Seth") and go (compile 'test) on the REPL, i get No such file or directory [Thrown class java.io.IOException] Restarts: 0: [QUIT] Quit to the SLIME top level Backtrace: 0: java.io.UnixFileSystem.createFileExclu

Reloading java classes

2010-11-03 Thread Seth
Is it possible to reload modified classes? I would likely to quickly test my java classes with clojure. -- 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

Best syntax for clojure-clr generics

2010-10-18 Thread Seth
I would like to start a discussion on the best syntax for clojure-clr generics because in most large pieces of software on CLR you have to specify types to create generic classes. Heres my proposal. <> Reader macro expands to the macro g example: (AGenericClass. arg1 arg2) expands to (AGenericCl

Re: Conj arrivals and Thursday night...

2010-10-18 Thread Seth
What's this about an after party? On Oct 18, 5:59 pm, Eric Lavigne wrote: > > Hey Conj goers, > > > I'm scheduled to arrive around 6:30, and after I check in am planning > > to spend the rest of the night writing code. Anyone want to help > > commandeer a random lobby to join in on the fun? > > >

Re: The vsClojure Project

2010-10-03 Thread Seth
Yay! Following. On Oct 2, 9:33 pm, jmis wrote: >         I'd like to announce my Visual Studio 2010 Clojure extension project, > vsClojure.  The extension is not yet complete but provides a base for > further enhancements.  Currently, it supports syntax highlighting, > auto-indentation, brace mat

Re: how to use leiningen install

2010-09-12 Thread Seth
take that back, all i had to do was go to project.clj and remove the offending entry! -- 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

Re: how to use leiningen install

2010-09-12 Thread Seth
tried it out, looks good! except i accidently broke it by doing cljr install /home/seth/.m2/helloworld 0.1, from then on it didn't work so i had to reinstall it :( (i though i could directly give address to repository) -- You received this message because you are subscribed to the Google G

Re: how to use leiningen install

2010-09-12 Thread Seth
Woops, i left out a 0 on the version number, so i did ".1" instead of "0.1"! Now it works! Also, is there any way to use a library from the local maven repository in a fresh clojure repl. By fresh, i mean i have set up emacs to run a new clojure repl not related to previous projects. Is there any

how to use leiningen install

2010-09-11 Thread Seth
Im attempting a 'hello world' leiningen in which i install a simply hello world library using lein install and then i create a new project , hello2, which depends on that project. However, leiningen does not seem to look in the local maven repository for the dependencies so i get 1) helloworld:hel

how to use leiningen install

2010-09-11 Thread Seth
Im attempting a 'hello world' leiningen in which i install a simply hello world library using lein install and then i create a new project , hello2, which depends on that project. However, leiningen does not seem to look in the local maven repository for the dependencies so i get 1) helloworld:hel

Re: lisp error system in clojure

2010-09-09 Thread Seth
exact what i want! Heres a nice link which describes it http://pragprog.com/magazines/2009-07/when-things-go-wrong On Sep 9, 6:20 am, Meikel Brandmeyer wrote: > Hi, > > On 9 Sep., 05:31, Seth wrote: > > > Is there any code out there which reproduces common lisp's res

lisp error system in clojure

2010-09-09 Thread Seth
Is there any code out there which reproduces common lisp's restart error handling capabilities? -- 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 moderate

Re: Is it possible in theory to write/modify a Clojure compiler that doesn't

2010-08-28 Thread Seth
This sounds very similar to groovyc: http://groovyland.wordpress.com/2009/03/03/groovyscalajava/ On Aug 28, 12:50 pm, Luke VanderHart wrote: > For the past week or two, I've been investigating what it would take > to write something that would allow *.clj  and *.java files to > seamlessly compil

Re: What is the best way to parasitically invade a java project with clojure goodness?

2010-08-23 Thread Seth
Going from Java to Clojure isn't quite as easy as going the other way, as @brweber2 demonstrated at the local Clojure meetup. Here's the code he used in the presentation, might send him a direct message on Twitter for more info: http://github.com/brweber2/javacallclj On Aug 22, 7:48 pm, Robert M

Re: More urgency for CinC & CLR given Oracle's lawsuit against Google?

2010-08-13 Thread Seth
rested in better CLR support for Clojure. While it's not a strength of mine, I'm sure I will find some way to contribute to that. Sorry again for any off topic churning, and here's hoping the JVM will continue to be a good place for Clojure to be for quite some time. Seth On Aug 13, 4

More urgency for CinC & CLR given Oracle's lawsuit against Google?

2010-08-13 Thread Seth
t anniversary of SCOracle day (2010-08-12). This would have to be an organized effort since big meaty chunks like CinC are probably within scope of only a few Clojurians (i.e. not me). Just my personal opinion -- questions, comments, and corrections are welcome. Seth -- You received this messag

Re: Building mixed clojure and java code

2010-07-14 Thread Seth
It appears that lein-javac is not compatible with Leiningen 1.2.0-RC2: % lein compile-java [...] Exception in thread "main" java.lang.Exception: Unable to resolve symbol: make-path in this context (compile_java.clj:10) On Jul 14, 9:19 am, Moritz Ulrich wrote: > There is lein-javac which integrat

Re: Any Clojure job out there?

2010-04-19 Thread Seth
It's not Clojure specific but I've seen a few mentions of it on http://lispjobs.wordpress.com/ RSS feed: http://lispjobs.wordpress.com/feed/ On Apr 18, 12:59 pm, Nicolas Buduroi wrote: > Hi, I've been having lots of fun in the past months working in Clojure > only on my own time and wonder if th

Re: New Recruit

2010-04-18 Thread Seth
Since you are really interested in both Clojure and statistics, might I recommend two RSS feeds: * The Incanter RSS feed -- you might already have this but just in case. @liebke pays close attention to documentation in Incanter and as well as comments to the blog. http://incanter-blog.org/feed/

Re: Choosing a Clojure build tool

2010-03-25 Thread Seth
executable. It would avoid a lot of questions about system configuration when reporting a bug. So many people and projects have RE-implemented a "clj" script! Seth On Mar 25, 5:32 pm, "Heinz N. Gies" wrote: > On Mar 25, 2010, at 19:55 , Chas Emerick wrote: > > &g

Re: Why I have chosen not to employ clojure

2010-03-21 Thread Seth
I hate to feed trolls, but this is a solid example of passive- aggresive behavior. Also, ignoring plausible sounding, spell-checked diatribes is bad. The installation of one or two jar files from a Maven repository is par for the JVM course. Deployment? Works on any reasonable JVM out there. Could

Re: Swank, ELPA and Emacs version do you use?

2010-03-20 Thread Seth
M-x version GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-08-16 on black.local Most of my configuration comes from the Emacs Stater Kit: http://github.com/technomancy/emacs-starter-kit On Mar 20, 3:46 pm, alux wrote: > Sorry to have so many questions. > > I lookes at

Re: Java method call irritation

2010-03-18 Thread Seth
Would :deprecated be a reasonable thing to include in a function's metadata? Just the presence of it seems good enough, but I guess pairing it with some programmer friendly message ("hey, use bar instead of foo") might be nice. Or... maybe 10,000 lines of XML as metadata! :-) On Mar 18, 10:50 am,

Re: Java method call irritation

2010-03-18 Thread Seth
This seems like a potential usecase for (memfn): - clojure.core/memfn ([name & args]) Macro Expands into code that creates a fn that expects to be passed an object and any args and calls the named instance method on the object passing the args. Use when you want to tr

Re: Full Disclojure - I Need Topics!

2010-02-05 Thread Seth
Laurent, Merci beaucoup! I have linked to the video. I will be presenting Clojure to the company I work for soon, and videos for Eclipse and NetBeans really help me out. The fewer times I mention Emacs the better, apparently :-| Seth On Feb 5, 12:10 am, Laurent PETIT wrote: > 2010/2/5 S

  1   2   >