Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Colin Fleming
Hi Zach, Congratulations, Nightcode looks very impressive - it looks like a worthy Clooj successor. I'll definitely download it and check it out. Cheers, Colin On 3 August 2013 07:07, Dave Ray wrote: > In Seesaw [1] you can specify your shortcuts as "menu S" instead of "ctrl > S" and it will

Re: Robo VM

2013-08-02 Thread Niklas Therning
I'm not very familiar with how RubyMotion works but I guess it's similar. RoboVM takes Java bytecode and compiles it into machine code ahead of time. For each .class file an object file is produced. The object files are linked together with a runtime library into an executable. RoboVM uses the Boeh

Re: Two Dimensional Associative Map

2013-08-02 Thread JvJ
Actually, what I'm looking for is a way to use arbitrary types of keys rather than integers. I have this so far: Table data structure. For now, the table data structure is a map of maps. (defn row "Get a row of the table. If only the key is passed, a row lookup function is returned

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread guns
On Fri 2 Aug 2013 at 04:32:32PM -0400, Lee Spector wrote: > I can believe that these assertions are true in some (maybe many) > programming contexts, but from other perspectives anything that > requires you to type stuff that's not directly about the problem > you're trying to solve or the idea y

Re: Hiring Clojure Programmer(s)

2013-08-02 Thread Marcus Blankenship
Unless that doesn't matter… On Aug 2, 2013, at 12:27 PM, Andrew Stine wrote: > Might help if you said what part of the world you're in. > > On Friday, August 2, 2013 12:47:21 PM UTC-4, Quinn Finney wrote: > Hello all, > > My company is looking to hire a Clojure programmer to help assess and f

Re: RPC over channels

2013-08-02 Thread David Pollak
This is a tough and interesting issue. Let's put aside the whole RPC issue for a moment and look at how code progressed from C-land to Java-land. In C, the developer had to check return values from function calls to see if the function succeeded. That led to ignoring return values or testing with

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread Lee Spector
On Aug 2, 2013, at 9:16 AM, Laurent PETIT wrote: > 2013/8/2 Anthony Grimes : >> Keep in mind that you should almost never do this. It's much better to >> require :as or explicitly refer which things you want from each namespace. >> When you do :refer :all, you pollute your namespace with tons of v

Re: Hiring Clojure Programmer(s)

2013-08-02 Thread Andrew Stine
Might help if you said what part of the world you're in. On Friday, August 2, 2013 12:47:21 PM UTC-4, Quinn Finney wrote: > > Hello all, > > My company is looking to hire a Clojure programmer to help assess and > finish our product, a server architecture system for Java instances. The > product

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Dave Ray
In Seesaw [1] you can specify your shortcuts as "menu S" instead of "ctrl S" and it will pick the right one for the platform. Cheers, Dave [1] my memory's a little fuzzy here :) On Fri, Aug 2, 2013 at 12:00 PM, Zach Oakes wrote: > That's a good point, I should be using command instead of co

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Zach Oakes
That's a good point, I should be using command instead of control on OSX. I don't have a Mac so that slipped my mind; I'll make a note of it. On Friday, August 2, 2013 2:54:45 PM UTC-4, Lee wrote: > > > On Aug 2, 2013, at 1:53 PM, Jeff Heon wrote: > > If I can suggest the one feature that I coul

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Lee Spector
On Aug 2, 2013, at 1:53 PM, Jeff Heon wrote: > If I can suggest the one feature that I couldn't bear to use an IDE without: > Strict Structural Editing Mode (paredit-style) But please note that while many love paredit, many others hate it -- so if you implement this I would make it optional. Al

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Zach Oakes
I agree that better parenthesis and indentation behavior is a must; I'll add that to my list. The REPL at the bottom left is not associated with your project; I thought it would be nice to just have a bare, always-on REPL to test clojure commands. The "Run with REPL" button should use the leini

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread John Gabriele
On Friday, August 2, 2013 9:03:03 AM UTC-4, Zach Oakes wrote: > > I’ve been working on a simple IDE for the past few months. It started as > an attempt to add Leiningen integration to Clooj, but eventually I decided > to start a new project from scratch. It is very alpha-quality, so please be >

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Jeff Heon
That's really cool. Thank you for doing this! I really like the import feature, coloring and keyboard friendlyness. If I can suggest the one feature that I couldn't bear to use an IDE without: Strict Structural Editing Mode (paredit-style)

Re: Two Dimensional Associative Map

2013-08-02 Thread Kevin Downey
On 8/1/13 5:59 PM, JvJ wrote: > I'm looking for an associative data structure that can be accessed by both > rows and columns, and could potentially be sparse. > > Suppose the following table is called t: > > | | :A | :B | :C ||---+--+--+--|| 1 | | > | '[x

Hiring Clojure Programmer(s)

2013-08-02 Thread Quinn Finney
Hello all, My company is looking to hire a Clojure programmer to help assess and finish our product, a server architecture system for Java instances. The product involves receiving input from a web control panel and making changes based on that. To our knowledge, the product is currently 85% c

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Zach Oakes
I have no problem using third-party code that is copyright-licensed, but for the sake of sanity I'd prefer that modifications to my own code be public domain -- it can get really absurd if one line of code in a file is EPL-licensed and the rest is public domain. There should not be any issue wi

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Laurent PETIT
2013/8/2 Zach Oakes : > I definitely plan on continuing development of Nightcode. As of yesterday, I > am unemployed, so for the time being I have a lot of time on my hands. I am > hoping to support myself with freelancing and tutoring in the Pittsburgh > area. If that works out, I should be able t

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Zach Oakes
I definitely plan on continuing development of Nightcode. As of yesterday, I am unemployed, so for the time being I have a lot of time on my hands. I am hoping to support myself with freelancing and tutoring in the Pittsburgh area. If that works out, I should be able to work on Nightcode (and my

Re: Two Dimensional Associative Map

2013-08-02 Thread Mikera
It wasn't designed for Clojure originally, but I have an immutable "grid" persistent data structure in Java that I've used with some success in Clojure. It works nicely and efficiently with Clojure idioms because it is a proper persistent data structure (with a 64-way branching factor). https:/

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Laurent PETIT
Great initiative ! Is it okay if I ask what your plans are? Asking because in the past, there have been similar initiative which are now either dead or at a slow pace, so it'd be good to know if it's a between-2-jobs project that might not be pursued in the future, or if you're serious about givin

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Arie van Wingerden
What a fantastic initiative! It already looks great and promises a lot. I love the leight weight approach, still having lots of features. Keep up the good work! 2013/8/2 Alexander Yakushev > This initial version looks very mature already! I wonder what will become > of it by the time of the rel

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Steven Degutis
Excited to try it out! Thanks for your hard work :) On Fri, Aug 2, 2013 at 8:03 AM, Zach Oakes wrote: > I’ve been working on a simple IDE for the past few months. It started as > an attempt to add Leiningen integration to Clooj, but eventually I decided > to start a new project from scratch. It

Re: RPC over channels

2013-08-02 Thread James Ashley
> > > RPC over channels > > > > >toberepla...@gmail.com Aug 01 10:09AM -0700 > > With >ZeroMQ, it might be a router that delivers your request to the machine >it >thinks is most likely to be able to handle the request.

Re: RPC over channels

2013-08-02 Thread ToBeReplaced
I'm uneducated here since I've not used Erlang in any real capacity. I thought that typically if A sent a message to B that caused B to raise an exception, that B would send an exception back to A and that A would error out. Thus, the client is blamed for the exception. Is this correct? In

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Alexander Yakushev
This initial version looks very mature already! I wonder what will become of it by the time of the release. Great job, Zach! Eagerly waiting to see Nightcode's future. On Friday, August 2, 2013 4:03:03 PM UTC+3, Zach Oakes wrote: > > I’ve been working on a simple IDE for the past few months. It

Re: Two Dimensional Associative Map

2013-08-02 Thread glow
This simple solution is symetrical, stores both rows and colums and this way you get instant access both to any column and row with constant penalty on get, assoc and update. It feels a bit messy because you decided to not differentiate between horizontal and vertical indices. That may be a goo

Re: RPC over channels

2013-08-02 Thread Marc Hämmerle
On Erlang: sometimes you *want* to block on a node and wait for the answer of a remote node. It's implemented as message passing under the hood - the process gets de-scheduled, restarted in case of crash if you want et al. - but the semantics are clearly sequential and blocking. Erlang obviously al

the snake game with core.async and swing

2013-08-02 Thread eliassonaand
Below is a little (stupid) snake game I wrote using core.async and swing. It uses channels for timer, keyboard input and repaint to make everything nice and sequential. Thought it could be a nice example of the power of core.async. I'm not an experienced clojure/lisp developer so I'd be happy if

Re: [ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Lee Spector
On Aug 2, 2013, at 9:03 AM, Zach Oakes wrote: > I’ve been working on a simple IDE for the past few months. It started as an > attempt to add Leiningen integration to Clooj, but eventually I decided to > start a new project from scratch. It is very alpha-quality, so please be > gentle: > > htt

Re: Displaying objects in REPL: Clojure equivalent of Java's toString?

2013-08-02 Thread Dragan Djuric
Thanks a lot, guys :) On Friday, August 2, 2013 5:07:37 AM UTC+2, Armando Blancas wrote: > > Adding to that... have a look at the implemented methods in > core_print.clj. The print-method will get called on print and println with > your instance as the first argument. In this example prints a pa

Re: extend-type on

2013-08-02 Thread Phillip Lord
Well, this is certainly a possibility. Especially if I do it at compilation time, I can put the match functions for each class into an array, and then combine them by climbing the class hierarchies. Phil "Jim - FooBar();" writes: > On 02/08/13 12:46, Jim - FooBar(); wrote: >> or programmatical

Re: RPC over channels

2013-08-02 Thread Timothy Baldridge
RPC ties a local process (and all the memory its currently using) to a remote process. It glosses over the fact that that the link between these two processes is quite unreliable. In his thesis, Joe Armstrong also points that this system is not only susceptible to hardware/network failure, it's als

Re: extend-type on

2013-08-02 Thread Meikel Brandmeyer
You could spice things a bit up: (defn extend-to [protocol & class-impl-mappings] (doseq [[class impl] (partition 2 class-impl-mappings)] (extend class protocol impl))) (extend-to PThree Long{:hello long-hello} Integer {:hello long-hello} Number

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread Laurent PETIT
2013/8/2 Anthony Grimes : > Keep in mind that you should almost never do this. It's much better to > require :as or explicitly refer which things you want from each namespace. > When you do :refer :all, you pollute your namespace with tons of vars and > when you use them, nobody has any clue where

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread Anthony Grimes
Keep in mind that you should almost never do this. It's much better to require :as or explicitly refer which things you want from each namespace. When you do :refer :all, you pollute your namespace with tons of vars and when you use them, nobody has any clue where they're coming from so they ha

[ANN] Nightcode, an IDE for Clojure and Java

2013-08-02 Thread Zach Oakes
I’ve been working on a simple IDE for the past few months. It started as an attempt to add Leiningen integration to Clooj, but eventually I decided to start a new project from scratch. It is very alpha-quality, so please be gentle: http://nightcode.info/ Here’s what it has: -Written in Cloj

Re: extend-type on

2013-08-02 Thread Phillip Lord
"Meikel Brandmeyer (kotarak)" writes: >> Sure, I understand why it's not working! I just don't know how to fix it. >> >> > Plain old functions: > > (defn number-hello > [n] > (when (= n 10) > "hello")) > > (defn long-hello > [n] > (if (= n 5) > "goo

Re: extend-type on

2013-08-02 Thread Jim - FooBar();
On 02/08/13 12:46, Jim - FooBar(); wrote: or programmatically emit identical extension points for all subinterfaces/subclasses ;;adopted from clojure/core/protocols.clj (def ^:private co-stub '(run [this text] (if (instance? edu.stanford.nlp.pipeline.Annotation text) (do (.annotate thi

Re: extend-type on

2013-08-02 Thread Jim - FooBar();
On 02/08/13 12:24, Phillip Lord wrote: "Jim - FooBar();" writes: your extension point on Number is never fired because 10 is a Long. Sure, I understand why it's not working! I just don't know how to fix it. there is nothing to fix in this particular example...everything works as expected.

Re: extend-type on

2013-08-02 Thread Meikel Brandmeyer (kotarak)
Hi, Am Freitag, 2. August 2013 13:24:07 UTC+2 schrieb Phillip Lord: > > "Jim - FooBar();" > writes: > > your extension point on Number is never fired because 10 is a Long. > > Sure, I understand why it's not working! I just don't know how to fix it. > > Plain old functions: (defn number-he

Re: extend-type on

2013-08-02 Thread Phillip Lord
"Jim - FooBar();" writes: > your extension point on Number is never fired because 10 is a Long. Sure, I understand why it's not working! I just don't know how to fix it. > Generally speaking extending protocols to interfaces is not > suggested... I'm extending an API which is interface driven

Re: extend-type on

2013-08-02 Thread Jim - FooBar();
Moreover, if you're going to extend a particular protocol to many types, it's better to use 'extend-protocol' which expands to a bunch of 'extend-type' forms...if you need a point of reference I recently finished extending a 'DataSet' protocol to all clojure/java data-structures. YOu can find

Re: extend-type on

2013-08-02 Thread Jim - FooBar();
your extension point on Number is never fired because 10 is a Long. Generally speaking extending protocols to interfaces is not suggested...I've been bitten a couple of times in particular whenever I'm extending to 2 different interfaces that *are* related...You can certainly do it but you have

extend-type on

2013-08-02 Thread Phillip Lord
I want to use extend-type to support a protocol both on a class and it's subclasses. But I don't know how to do a superclass call. So for instance, with this code (defprotocol PThree (hello [this])) (extend-type Number PThree (hello [this] (if (= 10 this) "hello")))