Anatoly Yakovenko a écrit :
> basically i am dealing with a 3rd party library, (interactive brokers
> tws api), that takes an interface with lots of different methods that
> it calls when an event occurs. like received market data, received
> order, etc... It provides another interface that basi
Hello, I'm trying to start learning Clojure, but I fail miserably at
some point trying to get a decent IDE to work.
- First, Enclojure for Netbeans has lot of bugs, it is inusable for me
at this stage.
- I'm not used to Eclipse nor Intellijea, so I discard both.
- I'm used to Emacs, and have used
Hello Mark and fellow Vimmers,
Am 14.03.2009 um 03:56 schrieb Mark Feeney:
Anyway, user error, as you predicted above :) Things are working much
better now.
I hope I didn't sound too harsh! If so, I apologise!
But this is really my experience from my daily life (also on the real
user side
Ok, I can answer myself, thanks to maacl in the IRC:
Download clojure-mode:
git clone git://github.com/jochu/clojure-mode.git
And put this:
(add-to-list 'load-path "/path/to/clojure-mode")
(require 'clojure-mode)
in .emacs, restart, and M-x clojure-install.
Really fantastic.
The guide I tri
On 6 Mrz., 17:07, lprefonta...@softaddicts.ca wrote:
> I know some business where HR and IT managers come back with this mantra
> that they can find Java and .Net coders, anything else is too risky or
> too scarce on the market.
Right. I am sure a lot of those managers really think that way.
If
On 6 Mrz., 19:21, Phil Hagelberg wrote:
> The only other thing I can think of is short-lived command-line tools
> that need subsecond launch times.
The Lisp repl is the command-line. There is no starting time
of the JVM involved.
--~--~-~--~~~---~--~~
You receive
On 9 Mrz., 16:34, Stuart Sierra wrote:
> On Mar 8, 3:20 pm, André Thieme wrote:
>
> > I regularily stumble upon the (first (filter predicate coll)) pattern.
> > Maybe we can add a filter1 for that?
> > In the Clojure project itself I found this two times, in core.clj for
> > the ns macro,
> > an
On 9 Mrz., 20:42, Raoul Duke wrote:
> ok oops that didn't work, sorry -- i mean to send this link:
>
> http://www.ccs.neu.edu/home/samth/typed-scheme/manual/
That is not too far away of what I had in mind.
What I would like is if it were even a bit more optional.
Typed Scheme allows to have a sp
Hi,
Am 14.03.2009 um 12:38 schrieb André Thieme:
At two places we would need a hook to add typing
information. This could happen via metadata. Those places
are: variable binding (such as def, let or function
parameters), and the return values of functions.
A global or namespace based switch wou
When I try to read a clojure source file, I have the following
exception:
Error detected while processing function
vimclojure#ExecuteNailWithInput:
line 23:
E605: Exception not caught: Couldn't execute Nail! /home/steph/src/
vimclojure
-2.0.0/ng de.kotka.vimclojure.nails.NamespaceOfFile 5_LoadF
Hi all. I've been working on a piece of code (an xml-rpc server) in
Python (actually Jython), and one of its features is the capability of
loading modules (connectors in Java) during runtime. Not only are
these modules dynamically loaded on request (their names passed as
arguments in a string), bu
Hi,
Am 14.03.2009 um 13:33 schrieb stephaner:
When I try to read a clojure source file, I have the following
exception:
Error detected while processing function
vimclojure#ExecuteNailWithInput:
line 23:
E605: Exception not caught: Couldn't execute Nail! /home/steph/src/
vimclojure
-2.0.0/ng
>
> Christophe Grand suggest (seek ...), which I personally like.
>
> IMHO
seek is pretty good for a number of reasons: short, implies first result.
Minor objection would be that folks may not think it's what they want
because of how it's used in C where they'd expect it to take a number of
bytes a
Hi Mr Brandmeyer,
The server is running:
NGServer started on 127.0.0.1, port 2113.
Here is the output using the client alone:
~/src/vimclojure-2.0.0$ ./ng de.kotka.vimclojure.nails.NamespaceOfFile
< /home/steph/testsrc/test.clj java.lang.ClassNotFoundException:
de.kotka.vimclojure.nails.Namespa
Hi Meikel,
Regarding namespaces, I would appreciate help understanding what looks
like a heisenbug.
I have a file at t2/data/core.clj, with namespace t2.data.core
The namespace (ns t2.data.core) does not :import or :use anything.
I open such file by :edit t2/data/core.clj
When switching to anot
What about overloading first to accept a predicate?
(first even? (iterate inc 1)) => 2
On Sat, Mar 14, 2009 at 8:58 AM, e wrote:
>
>>
>> Christophe Grand suggest (seek ...), which I personally like.
>>
> IMHO
> seek is pretty good for a number of reasons: short, implies first result.
> Minor ob
Meikel,
Another error I don't understand:
I have called :split so there are two buffers visible.
Then I shift+V and y to copy a line.
Then I control+w j to go to the upper window.
Then I p, and a new line pastes, not what I copied.
To paste, I have to "0p, i.e. paste the last user-yanked data.
Hi,
Am 14.03.2009 um 14:50 schrieb stephaner:
Here is the output using the client alone:
~/src/vimclojure-2.0.0$ ./ng de.kotka.vimclojure.nails.NamespaceOfFile
< /home/steph/testsrc/test.clj java.lang.ClassNotFoundException:
de.kotka.vimclojure.nails.NamespaceOfFile
at java.net.URLClass
hi
I have soluved the same problem. the conclusion is when ant made
vimclojure.jar, ant failed compiling it. Please check local.propaties
out. or you modify 'CLOJURE', 'CLOJURECONTRIB' and 'VIMCOLJUREHOME' of
my installer.sh. This script works on sh/bash/zsh ...
installer.sh
#!/bin/sh
# insta
Hi again,
I did try using your install script, build with ant seems ok, but
still get the same error:
./ng de.kotka.vimclojure.nails.NamespaceOfFile < /home/steph/testsrc/
test.clj
java.lang.ClassNotFoundException:
de.kotka.vimclojure.nails.NamespaceOfFile
at java.net.URLClassLoader$1.r
On Mar 14, 1:08 pm, Meikel Brandmeyer wrote:
> I remember some presentation of someone doing this for,
> I think, Python. There you hint things, where the type is
> known and the compiler inferred the rest as far as possible.
> What cannot be inferred was cast to a special type called
> "dynamic"
On Mar 14, 11:44 am, Rock wrote:
> Now, I would love to recode this stuff in Lisp, especially Clojure.
> But is it possible to pull this off? From what I've been reading, it
> actually doesn't seem like it.
It's certainly possible to load in resource at runtime. Indeed, that's
how Clojure's use,
I've added a "seek" function to clojure.contrib.seq-utils:
(defn seek
"Returns the first item of coll for which (pred item) returns
logical true.
Consumes sequences up to the first match, will consume the entire
sequence
and return nil if no match is found."
[pred coll]
(first (filter p
On Mar 14, 12:44 pm, Rock wrote:
> Hi all. I've been working on a piece of code (an xml-rpc server) in
> Python (actually Jython), and one of its features is the capability of
> loading modules (connectors in Java) during runtime. Not only are
> these modules dynamically loaded on request (their
Hi,
Am 14.03.2009 um 16:16 schrieb stephaner:
de/kotka/vimclojure/backend.clj
de/kotka/vimclojure/nails.clj
de/kotka/vimclojure/repl.clj
These don't get compiled. There is definitively
an error in the ant build. How do you invoce
ant? Did you create the local.properties file
as the README sta
Hi again,
There are some errors in the build process. First here is my
local.properties
clojure.jar=/home/stephane/src/clojure/clojure.jar
clojure-contrib.jar=/home/stephane/src/clojure-contrib/clojure-
contrib.jar
nailgun-client=ng
I did built it with either a single : ant
and a build script:
Hi I did get it working,
I had to pull out of svn and rebuild clojure and clojure-contrib.
Thank you everyone for your help,
Stéphane
On Mar 14, 11:53 am, stephaner wrote:
> Hi again,
>
> There are some errors in the build process. First here is my
> local.properties
>
> clojure.jar=/home/ste
Hi,
Am 14.03.2009 um 16:53 schrieb stephaner:
[java] java.lang.Exception: Unable to resolve symbol: type in
this context (util.clj:285)
You are missing the type function, which was added in a recent
SVN version (rev 1307). At the moment VimClojure relies on a
more recent SVN revision. Ple
On Mar 14, 4:27 pm, pmf wrote:
> On Mar 14, 12:44 pm, Rock wrote:
>
> > Hi all. I've been working on a piece of code (an xml-rpc server) in
> > Python (actually Jython), and one of its features is the capability of
> > loading modules (connectors in Java) during runtime. Not only are
> > these
I just tried it, this is fantastic! We'll finally be able to debug
macros while keeping our sanity. Many thanks for this and I hope it
will be added directly into Clojure.
On Mar 12, 3:05 am, Tom Faulhaber wrote:
> I have now "released" the first version of my pretty printer as part
> of my cl-f
>
>
>
> (first even? (iterate inc 1)) => 2
to me that sounds like something with real staying power ... like it should
have always worked that way ... but I don't have much experience with lisp
--~--~-~--~~~---~--~~
You received this message because you are subscr
On Mar 14, 5:06 pm, Rock wrote:
> proxy = __import__(name) # where name is a string
> proxy.doOperation(*args)
>
> After leaving the method where the above two lines of code are
> located, the module stored in proxy is no longer accessible, and the
> resources are released. That's cool becaus
Try frequently doing:
(use :reload 'fully.qualified.name.of.my.file)
When you are interactively adding code to the REPL (by typing or through
Slime or whatever) it doesn't know the line number. If you reload the file
containing the offending code, it will.
I usually have a comment block like thi
Hasn't someone been working on a Clojure vesion of Parsec?
On Sat, Mar 14, 2009 at 4:31 AM, Christophe Grand wrote:
>
> Anatoly Yakovenko a écrit :
> > basically i am dealing with a 3rd party library, (interactive brokers
> > tws api), that takes an interface with lots of different methods that
>
Hi,
Am 14.03.2009 um 18:42 schrieb Jeffrey Straszheim:
Hasn't someone been working on a Clojure vesion of Parsec?
I started a port of Parsec, but it is not in a usable state.
But there are alternatives like, eg. http://github.com/joshua-choi/fnparse
Sincerely
Meikel
smime.p7s
Description:
On Mar 14, 5:42 am, Javier wrote:
> Ok, I can answer myself, thanks to maacl in the IRC:
>
> Download clojure-mode:
>
> git clone git://github.com/jochu/clojure-mode.git
>
> And put this:
>
> (add-to-list 'load-path "/path/to/clojure-mode")
> (require 'clojure-mode)
>
> in .emacs, restart, and M-
Hi Mark,
The classpaths for the IntelliJ plugin are not quite setup properly.
This is how I'm working around this.
Clojure requires the folder that contains the clojure source code to
be in the classpath.
I did this in IntelliJ, by attaching a new library to the current
project which points to th
Rich has done a lot of work to make sure that when you are working with
primitives, the JVM bytecode ends up being very similar to what Java would
generate. See http://clojure.org/java_interop#toc36
Thanks,
Stu
On Thu, Mar 12, 2009 at 6:20 PM, Howard Lewis Ship wrote:
>
> Well, at some point I'
There is a interface 'Counted' that a lot of Clojure data structures
implement to indicate that they provide O(1) for (count).
Thanks,
Stu
On Fri, Mar 13, 2009 at 4:59 AM, Christophe Grand wrote:
>
> Christian Vest Hansen a écrit :
> > I think that count is O(n) for lists, no?
> >
>
> Count is O
> Try frequently doing:
all of this sounds like it would be great if i understood enough of it
all to make some patches to the source code -- it strikes me as rather
newbie-unfriendly the way it currently all works. $0.02.
sincerely.
--~--~-~--~~~---~--~~
You rec
Oops, my bad.
Could you create appropriate ticket for us to fix it?
With best regards,
Ilya
2009/3/14 CuppoJava
>
> Hi Mark,
> The classpaths for the IntelliJ plugin are not quite setup properly.
> This is how I'm working around this.
>
> Clojure requires the folder that contains the clojure so
Is it a good idea or a bad idea to provide a main() function as the
program's entry point?
As an example, I have a program at http://is.gd/ndTV. If you look at
the bottom you'll see (unless and until I change it) the specification
of a main function, and then a call to it. I'm aware that I coul
i really am curious about how good clojure can be as a language for
prototyping new *languages* (and new paradigms). this has always been
a strength of lisp and scheme, but they both support imperative as
well as functional programming. as an example: how easy would it be to
implement a language l
43 matches
Mail list logo