Getting .NET Version of Clojure to run

2009-08-14 Thread Mark
j:692 - call to unchecked_dec can't be resolved. I have copied the bootstrap version of core.clj and it is successfully being found but I am not quite sure about where to go from there. If this is not the right forum for this question please just let me know where to redirect it to. Th

Re: Getting .NET Version of Clojure to run

2009-08-15 Thread Mark
; Please let me know if you have problems or if the instructions are > unclear. > > -David > > > On Aug 14, 4:39 pm, Mark wrote: > > I am trying to learn Clojure and since I am also a .NET developer I > > thought I would compile the CLR version. > > > &g

Re: Getting .NET Version of Clojure to run

2009-08-16 Thread Mark
On Sat, Aug 15, 2009 at 11:38 PM, David Miller wrote: > [snip description of problem] > Thanks David. All the wiki steps succeed now and I can move forward. -- mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: into function

2009-10-02 Thread Mark
This seems to work: (reduce into '([1 2] [3 4] [5 6])) although it does lack the simplicity. On Oct 2, 7:10 am, Mark Volkmann wrote: > (into [1 2] [3 4]) -> [1 2 3 4] > > (into [1 2] [3 4] [5 6]) -> wrong number of arguments > > It's seems more Clojure-like to

immutable defs?

2009-10-02 Thread Mark
Is there a way to make a declaration in Clojure that cannot be rebound later? Ideally, I'd like something that fails if I try to do this: (def myname "mark") ; ...more code, elided... (def myname "Mark") Perhaps this is obvious, but I see a lot of discussion of immutab

Re: creating maps out of sql

2013-05-24 Thread Mark
You might want to consider a federated database tool like http://teiid.org It would be pretty easy to link DB2 and SQL Server. Hooking up the Atom feed would require a bit more work but probably not too bad. On Friday, May 24, 2013 7:55:17 AM UTC-7, Mond Ray wrote: > > I am starting out to use C

Re: which one would you prefer (instantiate vs. new-instance)?

2013-07-04 Thread Mark
The HOF can achieve very good performance if by caching the constructor object. Just be careful to clear the cache when the class is GC'd, otherwise you can end up with memory leaks and/or class cast exceptions. On Thursday, July 4, 2013 4:31:40 AM UTC-7, Robert Stuttaford wrote: > > Looks like

clojure.java.jdbc - jdbc metadata support?

2013-07-24 Thread Mark
I'm pretty interested in getting at least a subset of jdbc metadata support into clojure.java.jdbc. I've forked the repo and will start crafting the API if there is no else has a similar effort going on. I'm mostly interested in result set metadata. My first thought is to extend the query fu

Re: clojure.java.jdbc - jdbc metadata support?

2013-07-24 Thread Mark
r more details. > > Sean > > On Wed, Jul 24, 2013 at 4:03 PM, Mark > > wrote: > > I'm pretty interested in getting at least a subset of jdbc metadata > support > > into clojure.java.jdbc. I've forked the repo and will start crafting > the > &

Re: clojure.java.jdbc - jdbc metadata support?

2013-07-24 Thread Mark
al places that will need to be addressed > and definitely some refactoring to do... > > Sean > > On Wed, Jul 24, 2013 at 6:47 PM, Mark > > wrote: > > re Signing the CA: Definitely. I'll get that sent in ASAP. > > > > In the meantime, can y

Re: is intellij idea a good ide for clojure development?

2013-07-27 Thread Mark
On Friday, July 26, 2013 2:23:33 PM UTC-5, Andy Fingerhut wrote: > > There are many who agree with Richard Stallman that it is unethical to > distribute software without the source code. > And there are many who think it's unethical to have a philosophy that it's unethical to distribute softwa

Re: is intellij idea a good ide for clojure development?

2013-07-28 Thread Mark
understand his position. Hint, it's just as much about Stallman, as it is about any concern he has about "defending users rights". On Saturday, July 27, 2013 4:18:08 PM UTC-5, Cedric Greevey wrote: > > On Sat, Jul 27, 2013 at 5:47 AM, Mark >wrote: > >> >&

Re: Interest in a commercial IDE for Clojure?

2013-07-28 Thread Mark
I think you get more bang for the buck if you start off with Intellij's open source community edition. On Saturday, July 27, 2013 6:12:06 PM UTC-5, Frank Hale wrote: > > Hanging off the last couple comments on extracting IntelliJ's components > which I think is quite interesting; Has anyone co

Re: is intellij idea a good ide for clojure development?

2013-07-28 Thread Mark
On Sunday, July 28, 2013 6:52:37 AM UTC-5, Cedric Greevey wrote: > > On Sun, Jul 28, 2013 at 7:28 AM, Mark >wrote: > >> Ok, then you consider Stallman's philosophy unethical since it considers >> the philosophy of distributing close-source unethical. >

Re: Interest in a commercial IDE for Clojure?

2013-08-10 Thread Mark
Instead of doing a plugin and instead of starting something from scratch like Nightcode, would it make more sense to take some of the open source components of Intellij and use that as a basis for a Clojure-based IDE? It seems to me that one of the biggest problems with IDEs like Eclipse and I

core.logic - getting good at writing non-terminating programs

2013-08-12 Thread Mark
I needed to extend rembero to handle removing multiple items. For example (rememberallo [1 2 3] [1 2 3 4 5] [4 5]) is true. My relation is: (l/defne remberallo [s l o] ([() l l]) ([[h . r] _ _] (l/fresh [o-h] (l/rembero h l o-h) (remberallo r o-h o It's go

Re: Searching for Regular Expressions in a file

2013-08-12 Thread Mark
Clojure's regex functions are built on top of Java's and Java's regex support is built on the CharSequence abstraction, not String as we normally think of them. You could adapt files to CharSequence without much trouble. I think this approach would keep the memory requirements to a minimum.

Re: core.logic - getting good at writing non-terminating programs

2013-08-14 Thread Mark
Thanks! On Tuesday, August 13, 2013 12:18:33 PM UTC-7, Norman Richards wrote: > > > > > On Mon, Aug 12, 2013 at 4:03 PM, Mark >wrote: > >> >> At run level 6, I get all the permutations of [1 2 3], just as expected. >> However, at 7, the program does n

Re: Storing Clojure code in a data store

2013-08-15 Thread Mark
How is quicklisp different that clojars + leiningen? On Thursday, August 15, 2013 8:41:16 AM UTC-7, da...@axiom-developer.org wrote: > > It might be useful to set up a website similar to quicklisp for clojure. > I've found quicklisp to be very effective as it not only delivers code > but resolv

Re: Java Metadata Wrapper

2013-09-01 Thread Mark
I think the general solution would be a weak identity map. On Sunday, September 1, 2013 6:58:25 AM UTC-7, Colin Jones wrote: > > I thought of protocols initially here too, but protocols just define > functions, so where would the data live that you want as metadata? > > A closure over the data

A macro for writing defn-like macros?

2013-09-03 Thread Mark
I find the vast majority of the time I'm tempted to write a macro (yeah, yeah, I know the first rule of macro club), is to defn-like things. Writing a defn-like macro to handle all the stuff defn does is pretty tough so I end up writing a barebones thing that doesn't support doc-string, doesn'

Performant string concatenation (of many, large strings)

2015-02-11 Thread mark
I'm looking for the most performant way to transform a huge seq (size 25) of maps into a single CSV. The data structure looks something like: (def data-struct (repeat 25 {:one 1 :two 2 :three 3 :four 4})) A naive implementation would be: (let [f #(->> % (map (comp str val)) (clojur

Disrupt SF Hackathon Clojure Group

2014-08-19 Thread mark
jure for a year now, mainly writing RESTful web services, but I've touched a little ClojureScipt as well. Let me know! -Mark -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: [ANN] data.int-map 0.1.0

2014-09-15 Thread Mark
This looks interesting because of how my app manipulates data from Datomic but it brings up the question, does "int" mean Java primitive 32-bit int or 64-bit long? On Monday, September 15, 2014 11:51:47 AM UTC-7, Zach Tellman wrote: > > https://github.com/clojure/data.int-map > > This contrib li

Re: [ANN] data.int-map 0.1.0

2014-09-15 Thread Mark
ir normal Clojure counterparts. > The keys must be in the range of [0, Long/MAX_VALUE]." > > On Mon, Sep 15, 2014 at 12:07 PM, Mark > > wrote: > >> This looks interesting because of how my app manipulates data from >> Datomic but it brings up the question, does &qu

Amazonica DynamoDB Atomic Counter

2014-09-17 Thread mark
Has anyone used Amazonica to implement an atomic counter in DynamoDB? I plan on having a Dynamo table with only one entry, something t

Re: Amazonica DynamoDB Atomic Counter

2014-09-17 Thread mark
If anyone is interested, my solution was: > (dynamo-client/update-item cred :table-name "atomic-counter" :key "counter" :attributeUpdates {:count {:value 1 :action "ADD"}}) {:consumed-capacity-units 1.0} > (dynamo-client/get-item cred :table-name "atomic-counter" :key "c

Re: [PSA] Clojars scp disabled until further notice

2014-09-26 Thread Mark
I'm not very familiar with Clojars so please forgive the naive question: Why not host jar files themsevles on Maven central and Clojars becomes a catalog of Clojure related artifacts? On Friday, September 26, 2014 8:09:55 AM UTC-7, Nelson Morris wrote: > > Clojars has become a critical part of

Spec without global registry?

2017-06-10 Thread Mark
I'm embarking on a new project and I think spec can be a central component not just to the developer-users of the system but to my end-users as well. I'm thinking of providing something like a graphical mechanism to describe specs in EDN to bring spec goodness to user created data pipelines. M

Re: Spec without global registry?

2017-06-12 Thread Mark
I'm a bit surprised by this. It seems that the use of the global registry limits spec to development use cases. Is that intentional? Maybe I'm worried over nothing On Saturday, June 10, 2017 at 11:04:17 AM UTC-7, Alex Miller wrote: > > We don't have any plans at the moment to support anything

Re: Spec without global registry?

2017-06-12 Thread Mark
use cases. I believe I'll want a different lifecycle for specs written by end users. On Monday, June 12, 2017 at 12:19:04 PM UTC-7, Sean Corfield wrote: > > Can you explain why you think this is the case Mark? > > > > We use spec heavily in production (and have been d

Re: Spec without global registry?

2017-06-12 Thread Mark
hing beyond the global > registry, that also doesn't rule out the idea of something else in the > future. > > On Mon, Jun 12, 2017 at 12:37 PM, Mark > >> wrote: >> >>> I'm a bit surprised by this. It seems that the use of the global >>> r

Re: Spec without global registry?

2017-06-12 Thread Mark
y alive." > -- Margaret Atwood > > > > On 6/12/17, 12:34 PM, "Mark" on > behalf of markad...@gmail.com > wrote: > > > > 'm thinking of exposing the spec machinery to my app's end users who would > build specs (probably using a grap

Re: Spec without global registry?

2017-06-12 Thread Mark
ne 12, 2017 at 2:06:26 PM UTC-7, Alan Forrester wrote: > > On 12 Jun 2017, at 20:41, Mark > wrote: > > > > I don't see how that limits it to dev use cases. Can you explain more > why you say that? > > > > I understand (and completely agree with) the assumpti

Re: Spec without global registry?

2017-06-13 Thread Mark
On Monday, June 12, 2017 at 7:03:13 PM UTC-5, Mark wrote: >> >> Yes, I think most of the problems can be solved through prefixing >> (although the solution is a bit hacky, IMO) but the real problem with the >> global registry is that its not based on an abstraction bu

Datomic document store library?

2017-07-08 Thread Mark
My Google fu fails me. I recall a clojure library that will serialize arbitrary edn structures and store it in Datomic but I can't find it now that I need it. Anybody recall such a thing? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Datomic document store library?

2017-07-10 Thread Mark
2017 at 6:20:32 AM UTC-7, Ivan Willig wrote: > > Mark, > > Are you looking for https://github.com/Datomic/fressian? > > Ivan Willig > > > On Sat, Jul 8, 2017 at 9:37 PM, Mark > > wrote: > >> My Google fu fails me. I recall a clojure library that will seri

spec'ing relationship of values in a sequence?

2017-08-20 Thread Mark
What's the 'right' way to spec relationship between values in a sequence? For example, the following spec defines a sequence of number in increasing order: > > > > (s/conform (s/and (s/coll-of number?) > #(->> % > (partition 2 1) >

Re: spec'ing relationship of values in a sequence?

2017-08-22 Thread Mark
ply < coll)) > #'user/increasing? > user=> (increasing? [1 2 3]) > true > user=> (increasing? [1 2 2]) > false > (s/and (s/coll-of number?) increasing?) > > > On Sunday, August 20, 2017 at 7:53:48 PM UTC-4, Mark wrote: >> >> What's the '

Re: [ANN] tools.deps.alpha 0.5.425, clj 1.9.0.375

2018-04-14 Thread Mark
Is there an option to specify the directory for the local deps repository? I was playing around with deps on AWS lambda and discovered that the default directory (I think it's ~/.m2) is read-only. On lambda, the only writable directory is /tmp. On Saturday, April 14, 2018 at 6:01:52 AM UTC-

Re: [ANN] tools.deps.alpha 0.5.425, clj 1.9.0.375

2018-04-14 Thread Mark
Great. Thanks! On Saturday, April 14, 2018 at 5:47:00 PM UTC-7, Alex Miller wrote: > > Yes, you can use a top level setting in your deps.edn file of: > > {:mvn/local-repo "/tmp/m2"} > > > On Saturday, April 14, 2018 at 7:41:34 PM UTC-5, Mark wrote: >>

Re: [ANN] Clojure 1.10.0-RC5

2018-12-13 Thread Mark
Hi Alex - Not sure if this is a bug or spec'd behavior. When combining the reader literal for comments with the reader literal for metadata, I get unexpected behavior: > (meta #_^:hello []) > yields a compilation error. I get the same error in 1.9.0. On Wednesday, December 12, 2018 at 8:43

Re: [ANN] Clojure 1.10.0-RC5

2018-12-13 Thread Mark
Ah. Makes sense. Thanks -- 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 post. To unsubscribe from this gr

Re: [ANN] Sente - Clojure(Script) + core.async + WebSockets/Ajax

2014-03-02 Thread Mark
Hi Peter - I'm trying to learn Sente using the LightTable browser connected repl. I try to evaluate the following code: (let [{:keys [chsk ch-recv send-fn]} (sente/make-channel-socket! "http://localhost:6100/chsk"; ; Note the same URL as before {})] (def chsk chsk) (def

Re: [ANN] Sente - Clojure(Script) + core.async + WebSockets/Ajax

2014-03-02 Thread Mark
eter Taoussanis wrote: > > Hi Mark, > > I'm trying to learn Sente using the LightTable browser connected repl. >> > > Ahh, nice. Haven't tried LightTable yet myself, but I'd think it should > work okay. > > > >> From the JS console, I se

Rolling back transactions with clojure.java.jdbc

2013-10-24 Thread Mark
lojure.java.jdbc docs and code, but I don't see an obvious problem with what I'm doing, although I presume that to someone who knows this library better, my problem is quite simple. Does anyone have any idea what I'm doing wrong? Can you point to an example that issues deletes (or inse

Re: Rolling back transactions with clojure.java.jdbc

2013-10-25 Thread Mark
k in Clojure. Thanks for your help! Mark On Friday, October 25, 2013 2:10:18 AM UTC-4, Sean Corfield wrote: > > Remove :transaction? true from the delete! call. > > You're telling delete! to run inside its own transaction - you don't > want that: that's why your

Re: Rolling back transactions with clojure.java.jdbc

2013-10-25 Thread Mark
cally. On Friday, October 25, 2013 9:17:03 AM UTC-4, Mark wrote: > > That doesn't seem to work. Neither does explicitly setting :transaction? > to false. > > Looking at the source of execute!, it looks like the statement is running > within a "with-open" on the

Re: SQL to logic rule mapping

2013-10-30 Thread Mark
On Wednesday, October 30, 2013 4:27:31 PM UTC-7, Christopher Allen wrote: > > If you just want to build up and apply constraints, Korma can do that. > > If you want something closer to Datalog with unification, then a Datalog > to SQL bridge is the most practical of largely impractical choices.

Scala interop (or, aliasing imported Java classes)

2013-11-01 Thread Mark
Java classes to be aliased, so I could do this: > (import '(org.fooinstitute.team.library.foo package :as foop)) => org.fooinstitute.team.library.foo.package > (foop/isFoo "foop") => false But to the best of my knowledge (and searching), that doesn't exist in Clojure. Has anyone encountere

core.logic merge substitutions map?

2013-11-16 Thread Mark
I stumbled across Timothy Baldridge's excellent video explaining how to incorporate data sources into core.logic. It reinvigorated my interest in using core.logic to query SQL RDBMS. I'm stumbling on a pretty simple thing, I think. I've got a table

Re: core.logic merge substitutions map?

2013-11-16 Thread Mark
d'oh! Answering my own question: Just compose the unify functions a la (unify (unify a v1 (:v1 r) v2 (:v2 r)) I have a feeling there is a library function/macro that would make this less messy but I can't find it from the cheatsheet. On Saturday, November 16, 2013 10:31:50 AM U

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-11-20 Thread Mark
Hi Carlo - I'm using the 2.0 snapshot. How should I express a join on multiple columns, ie SELECT blah FROM t1 JOIN t2 ON (t1.a=t2.b) AND (t1.c=t2.d) ? On Wednesday, July 3, 2013 1:48:07 AM UTC-7, Carlo wrote: > > Hey guys! > > I've been working on a small library to make writing SQL queries a

Re: core.logic merge substitutions map?

2013-11-20 Thread Mark
Thanks for the advice and code-snippet. On Monday, November 18, 2013 7:43:12 PM UTC-8, Norman Richards wrote: > > > On Mon, Nov 18, 2013 at 6:26 PM, Kevin Downey > > wrote: > >> >> https://github.com/sonian/Greenmail/blob/master/src/clj/greenmail/db.clj#L98-L126 >> has an example, using clojure

Re: [ANN] clojure-sql 0.1.0: relational algebra in clojure

2013-11-20 Thread Mark
nks for contribution! On Wednesday, November 20, 2013 7:54:19 PM UTC-8, Carlo wrote: > > Hi Mark! > > On Wed, Nov 20, 2013 at 01:11:11PM -0800, Mark wrote: > > I'm using the 2.0 snapshot. How should I express a join on multiple > > columns, ie > > SE

Re: Effects of diving into Clojure

2014-01-14 Thread Mark
I have felt your pain. I started life with Smalltalk and more or less spent the last 15 years in Java. When I started Clojure, it was very hard to break my thinking habits. Particularly, I was lost without manifest typing. I didn't realize how much types documented my system and allowed ver

Re: Effects of diving into Clojure

2014-01-14 Thread Mark
Under A Microscope" > just to find out what was going on. I found it very easy to switch to > Clojure because everything is so much more transparent. Now Ruby just > feels awkward though I still need to use it due to its mindshare in the > web development domain. > > g

Re: A ClojureScript Tutorial For Light Table Users

2014-01-15 Thread Mark
The concept seems cool but I can't figure out the mechanics. What are the magic keystrokes to directly evaluate in the Light Table UI Connection? On Wednesday, January 15, 2014 5:44:06 AM UTC-8, David Nolen wrote: > > I've started what I hope will be a collaborative and comprehensive > reference

Re: A ClojureScript Tutorial For Light Table Users

2014-01-15 Thread Mark
ould now be able to evaluate forms in the > tutorial. > > > On Wed, Jan 15, 2014 at 6:54 PM, Mark >wrote: > >> The concept seems cool but I can't figure out the mechanics. What are the >> magic keystrokes to directly evaluate in the Light Table UI Connection? &g

Re: `let` to automatically add metadata / fn names?

2013-02-09 Thread Mark
Going the build route, probably use maven to produce debug and production artifacts of differing versions: blah-1.0.0-DEBUG.jar and blah-1.0.0.jar. Rather than go that route and the ensuing naming convention madness, I wonder how much we could rely on the JIT to push the decision of debug vs

Re: `let` to automatically add metadata / fn names?

2013-02-09 Thread Mark
Are you thinking that the client developer (the person using the library) would maintain the proper magic ear-muffs in lein profiles? On Saturday, February 9, 2013 3:17:51 PM UTC-8, vemv wrote: > > Going the build route, probably use maven to produce debug and production >> artifacts of differin

Re: [ANN] 12th modern-cljs tutorial

2013-02-13 Thread Mark
I love these tutorials. Very useful! Thanks On Wednesday, January 23, 2013 6:10:21 PM UTC-8, Mimmo Cosenza wrote: > > Hi, > here is the 12th modern-cljs tutorial. > > https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-12.md > > In this short tutorial, whose title is "The highest

Names and clojure.core

2013-03-28 Thread Mark
caused name collisions with two or three other existing functions in clojure.core. Do other people have this problem? Am I just too uncreative? Am I being too terse? Mark -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Names and clojure.core

2013-03-28 Thread Mark
later on in your > function, you may run into issues. But I often use clojure.core names as > variables if it makes a given function cleaner. > > Timothy > > > On Thu, Mar 28, 2013 at 7:53 AM, Michael Klishin > > > wrote: > >> >> 2013/3/28 Mark >

Re: Names and clojure.core

2013-03-28 Thread Mark
Nice. I think in a couple of places I can safely do this. Thanks! On Thursday, March 28, 2013 9:53:19 AM UTC-4, Michael Klishin wrote: > > > 2013/3/28 Mark > > >> Do other people have this problem? Am I just too uncreative? Am I being >> too terse? > > &

Re: Names and clojure.core

2013-03-28 Thread Mark
a time to work on my hobby projects outside of work. Thanks! On Thursday, March 28, 2013 11:21:18 AM UTC-4, Gregg Reynolds wrote: > > On Thursday, March 28, 2013 8:51:15 AM UTC-5, Mark wrote: >> >> I'm still just a Clojure hobbyist, but I have a question for folks who >&

Re: Clojure/West 2013 videos?

2013-04-05 Thread Mark
Geraldo, Did you read this thread - including the one from Rich, and also the one below it about patience and little kids? On Friday, April 5, 2013 6:04:59 PM UTC-5, Geraldo Lopes de Souza wrote: > > 14 days from your post and no infoq clojurewest content :( > > On Thursday, March 21, 2013 1:29:

Re: Good Clojure style?

2013-04-10 Thread Mark
I agree that this seems a bit terse and magical. However, there are a couple of mitigating factors to consider. 1. frequencies is a Clojure core function. It's simple enough to understand on its own, but if you haven't encountered it, you'd need to look it up to be sure what it's returning. Som

Re: Why is using (not (empty? coll)) not idiomatic?

2013-05-13 Thread Mark
That's a fair point, but do you always know that what you've gotten back is a sequence or a data structure, if you aren't looking directly at the code that you're calling? On Monday, May 13, 2013 10:08:00 AM UTC-4, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > Am Montag, 13. Mai 2013 13:57:57

Re: SQL queries on csv-files

2011-06-14 Thread Mark
Although it may be overkill for you, take a look at Teiid: http://teiid.org On Jun 14, 5:30 am, finbeu wrote: > Hello, > > I have a couple of csv files that are actually dumped data from SQL > tables. These tables have proper relationships with key, foreign keys > so they can be easily joined u

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Mark
The compiler might not be able to do better but the runtime system certainly could. In this case, both filtered and more information is what's needed. Why couldn't the runtime generate a message like: Symbol "fac" of type clojure.lang.IFn is used where type java.lang.Number is expected in #2 o

Functions knowing whether they're thread-bound or not?

2012-03-08 Thread Mark
Over in the clojure dev group, there's a discussion going on the overhead of sending thread-bound functions (by which, I think means a function that takes input from a thread-local) to an agent. Functions that are thread-bound require the overhead of copying thread-local state to the agent's t

Re: New(er) Clojure cheatsheet hot off the presses

2012-03-27 Thread Mark
Love the new cheatsheet! Because no good deed go unpunished: Can you make hiding the popup a little less sensitve? I find myself looking at a popup and then unconsciously moving the mouse into the popup text and that causes the popup to disappear. On Monday, March 26, 2012 2:25:17 PM UTC-7,

Re: kibit 0.0.3

2012-04-02 Thread Mark
Have you thought about a downloadable plugin system for rules? I imagine various libraries embedding rule sets in jar files with magic manifest markers indicating their specific location. Something like: Kibit-RuleSet-URL: jar:///kibit/ruleset.clj or, online: Kibit-RuleSet-URL: https://github.c

Data vs API

2012-05-02 Thread Mark
I've read in some recent posts that Clorujians prefer data to APIs. I'm not sure I understand what this means, in practice. When I'm in the early stages of developing an application, the data structures undergo a great deal of change. One of the ways, I isolate parts of the code from these s

Re: Data vs API

2012-05-05 Thread Mark
Thanks all, folks. Rich's video helped tremendously. The a-ha moment was the realization that the biggest reason to abstract data access in Java is the non-uniform built-in access to data: accessing fields in objects is different from hashmaps which is different from instance access which is

Accessing collections from Datomic datalog queries

2012-05-06 Thread Mark
I've seen hinted (and I'm pretty sure I've seen examples, but I can't remember where) that Datomic can incorporate data from regular Clojure collections. Is there some doc for this or an example? Thanks in advance -- You received this message because you are subscribed to the Google Groups

core.logic and aggregates: am i doing it wrong?

2012-05-25 Thread Mark
I confess that the last time I cracked open a Prolog book was lo these many years ago in college and that I need to re-read The Art but I'm hoping that someone can point out how I'm thinking about this problem wrongly: I'd like to write a goal that succeeds when given a set of required items and

Re: core.logic and aggregates: am i doing it wrong?

2012-05-25 Thread Mark
tests pass. I'd love some feedback on the approach. On Friday, May 25, 2012 4:58:14 PM UTC-7, Mark wrote: > > I confess that the last time I cracked open a Prolog book was lo these > many years ago in college and that I need to re-read The Art but I'm hoping > that some

Re: core.logic and aggregates: am i doing it wrong?

2012-05-25 Thread Mark
I'm embarrassed to say how many more scotches it took to come up with: (defn satisfes-requirements-o [required given] > (fresh [e] >(appendo required e given))) > On Friday, May 25, 2012 6:35:09 PM UTC-7, Mark wrote: > > Two scotches later, I came up with

Re: Clojure (Slim 1.4.0) and Azul don't like each other

2012-06-13 Thread Mark
I'm speaking from ignorance but this kind of error smacks of a version mismatch between the Java runtime library and what Clojure is expecting. What version of Java runtime are you using? Also, is the Azul Java library the same as Sun's? What's the entire stacktrace? On Wednesday, June 13, 2

Re: Clojure (Slim 1.4.0) and Azul don't like each other

2012-06-13 Thread Mark
29] > at clojure.lang.Compiler$StaticFieldExpr.(Compiler.java:1180) > at clojure.lang.Compiler$HostExpr$Parser.parse(Compiler.java:923) > at clojure.lang.Compiler.analyzeSeq(Compiler.java:6455) > ... 52 common frames omitted > > Cheers, > Edward > > --

Re: Idea around SCMs and Clojure

2012-07-19 Thread Mark
That's what I was thinking. Is Envy still around? The Google didn't give me much after a quick search. On Wednesday, July 18, 2012 1:19:01 AM UTC-7, Mark Derricutt wrote: > > On 17/07/12 10:27 PM, N8Dawgrr wrote: > > > In a nutshell its about why use files for sou

Re: Preferred business rules engines in or used by Clojure?

2012-10-08 Thread Mark
On Sunday, October 7, 2012 10:16:58 AM UTC-7, Grant Rettke wrote: > > Hi, > > May you please share your experience or preferences for rules engines > written in or used from Clojure? > > My goal is to: > > 1. Allow rule definitions separate from the code (though I view rule > definitions as

Re: pmap performance degradation after 30-40 min of work?

2012-10-13 Thread Mark
This feels like a memory leak problem. Try adding -XX:-HeapDumpOnOutOfMemoryError. You might try lowering the max heap to try and force an OOM earlier. Heap dumps can be analyzed using a variety of tools. My favorite is eclipse.org/mat On Saturday, October 13, 2012 8:16:54 AM UTC-7, Jim foo

Re: Run Counterclockwise nREPL on specific port

2012-11-20 Thread Mark
My first thought is to make it a launch configuration similar to remote debug of Java problems. On Tuesday, November 20, 2012 2:21:12 PM UTC-8, Chas Emerick wrote: > > On Nov 20, 2012, at 3:22 PM, Vladimir Tsichevski wrote: > > CCW has a 'connect to repl' option under 'Window'. It asks doe an IP

Re: Run Counterclockwise nREPL on specific port

2012-11-20 Thread Mark
My first thought is to make it a launch configuration similar to remote debug of Java programs. On Tuesday, November 20, 2012 2:21:12 PM UTC-8, Chas Emerick wrote: > > On Nov 20, 2012, at 3:22 PM, Vladimir Tsichevski wrote: > > CCW has a 'connect to repl' option under 'Window'. It asks doe an IP

Defining comparison functions for complex data types

2012-11-27 Thread Mark
type, defrecord, multimethods, or protocols, but I'm having a hard time figuring out where to start my education on these topics - there's a lot to know about all of this stuff. Can anyone suggest a place where I can get started? Thanks! Mark -- You received this message because

EOF when executing lein trampoline cljsbuild repl-listen

2012-12-23 Thread Mark
Hi, I'm trying to make my way through the modern-cljs tutorials and running into a blocker: I'm on tutorial 2 (https://github.com/magomimmo/modern-cljs/blob/master/doc/tutorial-02.md?.mdown) and when I try lein trampoline cljsbuild repl-listen, I get Exception in thread "main" clojure.lang

Re: EOF when executing lein trampoline cljsbuild repl-listen

2012-12-24 Thread Mark
Thanks guys. I switched to a Linux environment and it works fine. On Monday, December 24, 2012 3:49:54 AM UTC-8, David Powell wrote: > > I can confirm the same problem > > > On Sun, Dec 23, 2012 at 11:30 PM, Mark >wrote: > >> Hi, >> I'm trying to make my

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Mark
As a long time Eclipse user who dabbles with Clojure using CCW, I'd love to hear your experience of emacs after you get used to it. Would you consider writing up a blog entry? On Wednesday, January 16, 2013 6:29:36 AM UTC-8, Colin Yates wrote: > > Hi all, > > After 15 off years of using IDEs I

Re: Fund raising's goal has been reached !

2011-09-19 Thread Mark
I just gave so hopefully you have enough for a decent dinner while you're there! Enjoy and thanks for your work. -- 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 m

Re: Are futures garbage-collected?

2011-09-28 Thread Mark
The future object itself is garbage collected but the thread is not, so you should be 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 -

core.logic questions

2011-11-09 Thread Mark
I'm working through the core.logic examples on http://objectcommando.com. I want to develop a query that returns the child and his parents. The gives me what I want: (run* [q] (fresh [m f c] (== c 'Sonny) (parent m c) (parent f c) (!= m f)

[core.logic] Incorporating a database as a source of facts

2011-11-23 Thread Mark
I'd like to incorporate a relational database as a source of facts into the core.logic fact system. Several years ago, I worked with a Java backwards reasoning system called Mandarax (http://mandarax.sourceforge.net/) which defined an interface between the logic engine and a fact store. The v

Re: [core.logic] Incorporating a database as a source of facts

2011-11-23 Thread Mark
Let's take a specific example: Suppose I have a Person table with id, name and gender columns. Then, I have a Parent-Child table that contains two id columns, both of which are foreign keys back into the Person table. I'd could use the logic system to define a set of rules about family rela

Re: [core.logic] Incorporating a database as a source of facts

2011-11-23 Thread Mark
iving additional queries. I'm not familiar with core.logic internals but I suspect that the constrains could be expressed as a vector of relation names and maps. Something like [Parent-Child {:parent "Mark" :child nil}]. My SQL implementation would translate that into SELECT name FROM P

Re: [core.logic] Incorporating a database as a source of facts

2011-11-23 Thread Mark
Cool! I'll keep an eye out for the update. Thanks -- 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 pos

Re: [core.logic] Incorporating a database as a source of facts

2011-11-24 Thread Mark
I can't speak to the duplicates issue, though I know it's common in logic-based solutions. In specific cases, I suspect the problem could be solved (or ameliorated) by tabling but I'm just getting into logic programming so I'm not too sure about that. Overall, your use case sounds very similar

Re: core.logic, leiningen, clj-stacktrace: someone eats my backtraces

2012-01-06 Thread Mark
I'm very interested in using core.logic to query a relational database or other data store. I figure querying custom java objects is a good example of how to tackle this problem. Would you mind posting your code somewhere? -- You received this message because you are subscribed to the Google

  1   2   3   4   5   6   7   8   9   10   >