Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Travis Wellman
On Saturday, April 5, 2014 3:04:01 PM UTC-7, Gary Trakhman wrote: > > At least in my case, this process of mental macro/functioncall expansion, > or 'abstraction-surfing' as I like to call it, got easier over time. I > feel like it's been a general skill to hone for programming in general, and

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Travis Wellman
On Saturday, April 5, 2014 5:51:10 PM UTC-7, Jason Felice wrote: > > In the original post: > > > I had been writing elegant but deeply nested Clojure code that was very > difficult to read ... > > I focus on expressivity, specifically because of the write-only > phenomenom. This isn't peculiar

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Jason Felice
In the original post: > I had been writing elegant but deeply nested Clojure code that was very difficult to read ... I focus on expressivity, specifically because of the write-only phenomenom. This isn't peculiar to clojure; this happened a lot in the Perl days (so much so, that that's where I

Re: rant / cljs in cljs ? :-)

2014-04-05 Thread Dave Sann
or livejs http://livejs.com/ On Sunday, 6 April 2014 04:58:51 UTC+10, Henrik Eneroth wrote: > > If that is your criterion, use something that reloads the browser > automatically when the js is changed. I use CodeKit personally. > > On Wednesday, April 2, 2014 10:09:45 PM UTC+2, lypanov wrote: >>

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Curtis Gagliardi
It's a sincere no from me, but I can tell you I've met plenty of non-clojurites/lispers who sneer at lisp it seems solely due to the parentheses. It seems misguided to me though. On Saturday, April 5, 2014 1:14:36 PM UTC-7, Travis Wellman wrote: > > Francois Rey, > > Yes I've been following tha

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Gary Trakhman
At least in my case, this process of mental macro/functioncall expansion, or 'abstraction-surfing' as I like to call it, got easier over time. I feel like it's been a general skill to hone for programming in general, and lisp emphasizes this more than anything else I've seen, but maybe I just dran

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Tyler Anderson
Without parenthesis you have to resolve ambiguity through other means such as the off-side rule, additional operators. Clojure makes it easy to write dense code that is hard to maintain, but some of your trouble might be resolved by structuring your code differently. One example would be Prisma

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Travis Wellman
Francois Rey, Yes I've been following that project. They're going for purity, which means reimplementing a lot of standard java stuff in Frege. Cool project, but what I really want is Clojure. Everything Clojure without the parens. So you'd get lists, and homoiconicity, and all the Clojure libs

Re: rant / cljs in cljs ? :-)

2014-04-05 Thread Henrik Eneroth
If that is your criterion, use something that reloads the browser automatically when the js is changed. I use CodeKit personally. On Wednesday, April 2, 2014 10:09:45 PM UTC+2, lypanov wrote: > > I hate REPLs. I also hate large compile times. > For me the hardest part of the ~5s compile time is n

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread François Rey
On 05/04/14 19:35, Travis Wellman wrote: To be clear, in this topic I'm not interested in the functional purity of Haskell, nor it's libraries or type system, but just the syntax. It's probably not the answer you're looking for but did you check https://github.com/Frege/frege? -- You received

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread greg r
I can't answer your question from my own experience, but there does seem to be a way to develop your own language on the JVM: https://www.eclipse.org/Xtext/index.html You could create a "DSL" to your precise specifications. Regards, Greg -- You received this message because you are subscribe

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Gary Trakhman
I always felt that clojure compared to java is about 10x more dense, but only 3x harder to read and write in lines, and the overhead is dependent on the level of abstraction, as it should be. Having only the essence removes noise. Also, in java, raising the level of abstraction generally creates

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread t x
The way I think about syntax is: Given: * my brain has limited processing power (measured in kilo-hertz ?) * my brain has very limited L1 cache Question: * do I want to store the operator-precedence + left/right associativity rules of Haskell operators in my brain * spend brain cycles p

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Joseph Smith
Clojure syntax (I.e. parentheses) enable features in the language- you can't remove them without sacrificing functionality. Personally, I feel the uniformity of Clojure syntax makes it easier for me to reason about code. When I'm working in a language like, say, Ruby, I have to think ahead abo

Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread Timothy Baldridge
I find Haskell syntax completely unreadable. Just saying On Apr 5, 2014 11:36 AM, "Travis Wellman" wrote: > When I started learning Haskell after a year or more of Clojure, the > syntax was refreshing, and I found myself wishing I could write Clojure > with Haskell syntax. > > Later I left Cl

Re: Treating mutable Java objects as values

2014-04-05 Thread Travis Wellman
If it were my project I would simply not modify mutable values. If they're modified outside your own code, then model how they change. -- 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

alternative syntax for Clojure? Haskell?

2014-04-05 Thread Travis Wellman
When I started learning Haskell after a year or more of Clojure, the syntax was refreshing, and I found myself wishing I could write Clojure with Haskell syntax. Later I left Clojure behind for plain Java because of code maintenance issues. I had been writing elegant but deeply nested Clojure c

Re: Treating mutable Java objects as values

2014-04-05 Thread Gary Trakhman
I don't think there is a general answer to this fundamental impedance mismatch, but you might want to look at the implementation of clojure.core/bean: https://github.com/clojure/clojure/blob/master/src/clj/clojure/core_proxy.clj#L372 That doesn't provide a deep view but it's a start for approaches

Creating user interface for SubSurface Utility Engineering Program

2014-04-05 Thread Sunder Gautam
I am new at clojure, I have submitted a proposal named "SubSurface Utility Engineering Program". This program automatically plots the objects in autocad drawing using lisps which saves lots of time of an organization. I able to plot objects just with my lisps which is in only in coding manner.

Treating mutable Java objects as values

2014-04-05 Thread David Koontz
I am very new to Clojure so please forgive me if there is an obvious answer that I have missed. I'm trying to understand the effect of interop with Java objects, specifically on the polluting nature of non-values in a system. If I need to interop with a Java library, and that library will hav

Re: InvokeDynamic

2014-04-05 Thread Rohit Aggarwal
An interesting paper looking at the languages based on top of the JVM here: http://www.dcs.gla.ac.uk/%7Ewingli/jvm_language_study/jvmlanguages.pdf A presentation based on the above paper here: http://www.dcs.gla.ac.uk/~wingli/jvm_language_study/JVM_Languages_Presentation.pdf -- You received th

Re: Proxy vs. glue class

2014-04-05 Thread Colin Fleming
Yeah, it's annoying, no doubt. I have a bunch of classes that do nothing but override a protected method with a public one so I can proxy without warnings, some that I have to use because I can't create a non-trivial constructor, and so forth. Re: your proposal, I think I'd prefer to leave reify e

Re: Proxy vs. glue class

2014-04-05 Thread Mikera
On Saturday, 5 April 2014 08:08:13 UTC+8, Colin Fleming wrote: > > FWIW, in Cursive, which is a big ball of mixed Clojure + Java, I've given > up trying to use gen-class and have started using Java shims for > everything. I like it a lot more than gen-class, which I always feel like > I'm fighti