Re: [ANN] core.rrb-vector 0.1.0 -- bug fixes

2019-10-03 Thread Terje Dahl
references to the rrb-vector. :-) Terje On Wednesday, October 2, 2019 at 3:53:13 PM UTC+2, Andy Fingerhut wrote: > > Also, maybe you are doing this already, but note that you can save > significant memory in Clojure and core.rrb-vector by using (vector-of :char > ...) to create

Re: [ANN] core.rrb-vector 0.1.0 -- bug fixes

2019-10-02 Thread Terje Dahl
Nice list of fixes. Great work! I use Vector as my text editor's char-buffer. I believe I have seen one or more of the fixed bugs surface, so I am upgrading immediately. :-D Terje On Monday, September 30, 2019 at 10:21:05 PM UTC+2, Andy Fingerhut wrote: > > I am pleased to a

Re: Validate XSD 1.1

2018-05-31 Thread Terje Sten Bjerkseth
For Leiningen, you can install the jar into your local Maven: https://stackoverflow.com/questions/20819060/xml-validation-against-xsd-1-1-with-xerces-in-java For the new deps and CLI tools, you can directly use a local jar: https://clojure.org/guides/deps_and_cli#local_jar. torsdag 31. mai 201

Re: hello world question !!!

2017-10-15 Thread terje
;2.1.0"] [cider/cider-nrepl "0.15.1"]] :immutant {:war {:nrepl {:port }}} and do a lein immutant war --nrepl-start when making your WAR (check your security on the nREPL port). Cheers, Terje (Haven't looked at WildFly 11 RC yet and don't know if Immutant works

Re: No :out in my nREPL responses

2017-03-18 Thread Terje Dahl
Hey, Collin. By "standard" REPL I mean "clojure.main REPL in JVM" - which worked fine. I don't think my issue has anything to do with Cursive's way of connecting to nREPL, but rather with nREPL itself, seeing as had the same problem in a terminal window running `l

Re: No :out in my nREPL responses

2017-03-16 Thread Terje Dahl
f nREPL - including: - Through IntelliJ/Cursive - In command-line via `lein repl` (which is simply nREPL) So I have a potential solution, (and a possible nREPL bug), but it would be valuable to understand the cause of the issue. On Thursday, March 16, 2017 at 10:24:21 PM UTC+1, Terje Dahl wrote:

No :out in my nREPL responses

2017-03-16 Thread Terje Dahl
I am attempting to embed an nREPL server in my application (version 0.2.12). Everything seems to work nicely, except I am not able to get any out from print statements et al. Even the basic example on the README "(time (reduce + (range 1e6)))" doesn't work for me: I do not get back the map co

Version control at the function level - a la Rich

2017-02-17 Thread Terje Dahl
I recall Rich Hickey talking about this a few years back, but can't find anything about it. Am I just imaging it? Or could someone point me in the right direction -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: [ANN] 2016 State of Clojure Community Survey

2016-12-13 Thread Terje Norderhaug
Should've been a separate question for choice of rank order... :-) On Tue, Dec 13, 2016 at 7:49 AM, Colin Yates wrote: > Oh the joys of a lack of a ubiquitous language :-). I was only > surprised it didn't start at 0 ;-). > > On 13 December 2016 at 15:46, Jose Figueroa Martinez > wrote: > > Me

Re: [ANN] New Clojure Podcast: defn

2016-05-23 Thread Terje Dahl
Loved it. Very good start. Looking forwards to your discussion on Reader. On Thursday, May 19, 2016 at 7:43:44 AM UTC+2, Vijay Kiran wrote: > > Hello Everyone, > > Just wanted to let you know that we started a new podcast about Clojure: > https://defn.audio > > We published our first episode a

Re: [ANN] ClojureCL now supports Linux, Windows and OS X (GPGPU and high performance parallel computing)

2016-05-19 Thread Terje Dahl
YESS! Just what I wanted to try. Now to figure out how to use this to do lots of FFT (on audio) in parallel. On Wednesday, May 18, 2016 at 1:37:50 AM UTC+2, Dragan Djuric wrote: > > http://clojurecl.uncomplicate.org > > > https://www.reddit.com/r/Clojure/comments/4jtqhm/clojurecl_gpu_programm

Listening to changes of/in namespaces

2016-05-19 Thread Terje Dahl
Stuart Halloway asks: Clojure namespace change watcher [..]? Any ideas/suggestions on how one might listen for changes to namespaces in the runtime itself? (Similar to add-watch for atoms.) I am working on a solution for dumping

Re: Clojure as first language

2016-03-11 Thread Terje Dahl
Thank you all for your wonderful feedback. It is both insightful, varied, deep. I intend to consolidate your feedback and more into some sort of report or paper which I will then publish. I will post back when I have something ready. Terje -- You received this message because you are

Re: Clojure as first language

2016-02-26 Thread Terje Dahl
Lee. About the confusion with parens - do you mean that an output-ed list/seq looks exactly like a callable s-expression? Please elaborate. Terje On Sunday, February 21, 2016 at 5:23:42 PM UTC+1, Lee wrote: > > > One little feature of the core language itself that I find to be

Re: Clojure as first language

2016-02-26 Thread Terje Dahl
Val. You (and others) mention Clojure Bridge. I am familiar with the concept. But do you know where I might find one or more compendiums or course curriculums used as part of Clojure Bridge? Terje On Sunday, February 21, 2016 at 12:45:52 PM UTC+1, Val Waeselynck wrote: > And of cou

Re: Clojure as first language

2016-02-26 Thread Terje Dahl
one move on from Turtle graphics? What other concepts or paradigms might also be used? Are there other different approaches that might work equally well (or better)? Any personal ideas/suggestions? Terje On Sunday, February 21, 2016 at 10:31:27 PM UTC+1, Elango wrote: > You should also l

Re: Clojure as first language

2016-02-26 Thread Terje Dahl
Michael. I what ways do the teaching languages in Racket differ from Clojure? What would *you* "hide" or change in Clojure to make a more suitable teaching language? Based on the Racket languages... Based on your experiences and/or opinions... Terje On Monday, February 22, 2016 at

Re: Clojure as first language

2016-02-26 Thread Terje Dahl
Blake. Would you elaborate on this last comment about Smalltalk? What did you do? What was the outcome relative to expectations? What were some good and bad aspects of Smalltalk? And how might this compare to Clojure? Any links/references? Terje On Thursday, February 25, 2016 at 9:29:10 PM UTC

Clojure as first language

2016-02-21 Thread Terje Dahl
I believe that the simplicity of Clojure's syntax in combination with its clean functional nature and prefix notation makes it ideal as a "first language" for anyone who wants to start programming - including, and perhaps especially kids. Is there anything written about this? Arguments ... exp

Re: defrecord == premature optimization?

2016-02-08 Thread Terje Dahl
would like to dispatch on type (defprotocol / defmethod). On Monday, September 5, 2011 at 3:46:37 PM UTC+2, Terje Dahl wrote: > > Ref: Stuart Halloway's talk: "Simplicity": > > http://blip.tv/clojure/stuart-halloway-simplicity-ain-t-easy-4842694 > > Found via

Splitting Read into 2 steps?

2016-02-07 Thread Terje Dahl
I have been studying and and implementing my own version of LispReader / tool.reader - for the purpose of syntax highlighting and visual token manipulation. My question is this: Why not split this into 2 steps? 1. Reads the input (from PushbackReader et al) and emits a stream of tokens,

Re: core.async mult "damaged" on reload

2016-01-30 Thread Terje Dahl
s awkward, but helps. The example which > inspired me to do this was in Overtone: > > https://github.com/overtone/overtone/blob/master/src/overtone/music/rhythm.clj#L7-L28 > > -James > > On Friday, November 13, 2015 at 2:50:10 PM UTC-6, Terje Dahl wrote: >> >> I pu

core.async - count mult

2015-11-21 Thread Terje Dahl
In addition to the function tap, untap, and untap-all I would like to propose a fourth function which returns a count of the number of target channels for a mult. I would call it "cnt" (or perhaps "cnt-taps" or "count-taps"), but probably not "count", as that would step on clojure.core/count. M

core.async mult "damaged" on reload

2015-11-13 Thread Terje Dahl
I put a core.async/mult instance in a map structure in a map. When i do load-file ... (from La Clojure in IntelliJ) the structure with the object instance is still there, but it isn't possible to use. I get: > CompilerException java.lang.IllegalArgumentException: No implementation of > method: :

Re: clojure.repl/doc - change request - print vs return-value

2015-10-28 Thread Terje Dahl
below as the problem in the jira description. > > Thanks, > Alex > > On Monday, October 19, 2015 at 11:23:43 AM UTC-5, Terje Dahl wrote: >> >> I am making a namespace inspector (using JavaFX) (somewhat like the >> Swing-based tree-inspector in Clojure), and when g

Re: clojure.repl/doc - change request - print vs return-value

2015-10-19 Thread Terje Dahl
I am making a namespace inspector (using JavaFX) (somewhat like the Swing-based tree-inspector in Clojure), and when getting a function, I would like to diplay the same meta-information as "doc" prints in the REPL - including the special forms data coded in a private var/map in Clojure. On Fri

clojure.repl/doc - change request - print vs return-value

2015-10-01 Thread Terje Dahl
Would it be possible to "break out" the functionality of the function "doc" into a second function named i.e. "doc-fn" - much as has been done with dir vs dir-fn? doc prints to *out* just like dir does. But dir-fn allows me to parse the output and use it as I need. I would like the same for doc(

Re: Relationship between .clj and .class files?

2013-10-04 Thread Terje Dahl
6 2011, Terje Dahl wrote: > > What is the relationship between the .clj source-file(s) and its gen- > > class compiled class-files? > > > > The reason I ask is that my app is an applet, written in Clojure > > (obviously), and compiled. > > The resulting class-f

Java Web Start (JWS), Clojure, and a security issue

2013-08-08 Thread Terje Dahl
I struggled for many working days a while back trying to get my Clojure-and-JavaFX app to run as JWS. The app ran fine when launched as a stand-alone (from the jar). And code signing and JNLP were supposedly done state-of-the-art. But I kept getting a security exception à la "accessing a rest

Re: Best IDE

2013-06-07 Thread Terje Norderhaug
On Thu, Jun 6, 2013 at 6:02 PM, Lee Spector wrote: > > 8) If you want to become a rock star eternal golden coder's hero then > develop an Emacs-like Clojure coding environment for which the features ARE > discoverable and for which the learning curve is gentle. This sort of thing > has been done

Re: Lisp In Summer Projects

2013-05-09 Thread Terje Norderhaug
I suggest allowing participants from the listed countries, but give an eventual prize to a charity of choice to avoid a cash payment. On Thu, May 9, 2013 at 12:59 PM, u1204 wrote: > I believe that cash payments are forbidden by law in the listed > countries. The contest will make cash payments.

Re: Proposed change to let-> syntax

2012-12-02 Thread Terje Norderhaug
Here is the short form of the proposal below: 1. Make as-> in Clojure 1.5 have a syntax and semantic matching how fn is used in pipelines. 2. Rename as-> to fn-> reflecting its similarity to fn. -- Terje Norderhaug On Sun, Dec 2, 2012 at 5:30 PM, Terje Norderhaug wrote: > On Thu,

Re: Proposed change to let-> syntax

2012-12-02 Thread Terje Norderhaug
n the list bound to foo is decremented with the resulting list returned (incidentally leaving the list as before). Keeping the syntax and semantics of fn-> similar to fn provides an smooth upgrade path from current uses of fn in pipelines. -- Terje Norderhaug > On Thursday, November 15, 2012

Re: [ANN] clj-xpath 1.3.3

2012-11-20 Thread Terje Norderhaug
in my commercial products. So I second the use of a group-id for clojure libraries that use the name of a standard/recommendation in their name. -- Terje Norderhaug -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gr

Re: Clojure on Heroku

2012-07-21 Thread Terje Norderhaug
On Jul 26, 2011, at 1:50 AM, Tarantoga wrote: > Does anyone know how to create an autoincrementing ID field for a > table schema on Heroku? In the schema for the table, define an id field like this: [:id :serial "PRIMARY KEY"] > It uses PostgreSQL and a common way for this DB is to create a > s

ns/use/require/import inconsistent an confusing

2011-11-30 Thread Terje Dahl
Consider the following: (ns my.namespace.here) (use 'my.namespace.here :reload) (require '[my.namespace.here :as something]) (import [my.package MyClass1 MyClass2]) 1. Why (at least!) 4 different ways of noting namspaces/domains: With or without the escape-mark (') and with or withou

Relationship between .clj and .class files?

2011-11-17 Thread Terje Dahl
What is the relationship between the .clj source-file(s) and its gen- class compiled class-files? The reason I ask is that my app is an applet, written in Clojure (obviously), and compiled. The resulting class-files are then bundled into a jar-file, but without the source clj-file. (I don't want t

defrecord == premature optimization?

2011-09-05 Thread Terje Dahl
Ref: Stuart Halloway's talk: "Simplicity": http://blip.tv/clojure/stuart-halloway-simplicity-ain-t-easy-4842694 Found via reading list: http://clojure.com/reading.html ) At one point in his talk he states that defrecord is in fact basically "documented, named [typed] structure". (as opposed to

mutability in the let-form!?

2011-08-27 Thread Terje Dahl
I was surprised to discover that the following was possible: (let [ x 1 y 2 x (+ x y) ] x ) This runs and returns 3! This feels an awful lot like variables and procedural programming. It is left up to the developer to not resetting a "variable" - by convention - and if

Re: Notation conventions

2011-08-26 Thread Terje Dahl
OK. Thanks. Regarding "why so many atoms": I have rewritten a GUI-based (Swing) app to Clojure (our company's product: A Java applet), and where I previously typically had extended JPanels, adding variables and methods to them, I have (for now) replaced them with maps in atoms, where the maps co

Notation conventions

2011-08-26 Thread Terje Dahl
I find myself making alot of mistakes when dealing with atoms. I usually remember the datatype and/or structure returned by a function, or held in a binding or symbol - but not wether it is an atom or not. Any naming-conventions for atoms, such as ending with "?" for predicate, or "!" for sideeffe

Re: I/O

2011-08-26 Thread Terje Dahl
I disagree. Simply use: (System/getProperty "user.home") This will give you a useful path to work with, no matter where you start from. Works on my Mac. Should work on Windows. >From there I would build a simple library which tests which OS I am on, and gives me the paths to the conventional lo

Re: I/O

2011-08-25 Thread Terje Dahl
Great question. And great answer. Seriously! I did not know it could be that easy. So an http GET just needs 1 lines!: (slurp (reader "http://google.com";)) (Don't forget: (use 'clojure.java.io) ) Is there an equally easy way to do an http POST? And also a multi-part (including one or mor

Re: mini-version of clojure.jar?

2011-08-25 Thread Terje Dahl
Yes. My applet is signed. So that is not a problem. Any thoughts about difference in performance between "slim" and "full"? My applet mostly does swing-stuff, http GETS and POSTS - and audio playback and recording. On 25 Aug, 10:40, David Powell wrote: > The slim jar probably won't work in a

mini-version of clojure.jar?

2011-08-25 Thread Terje Dahl
My company (read: I) develop an web-based educational application (a language lab) implemented as a Java applet. I have spendt the summer porting it to Clojure. I am very happy with the results. Except: The download (and therefore the download-time) has increased dramatically, as I now include t

Re: Understanding the Clojure source-code and functionality

2011-04-26 Thread Terje Dahl
This looks conceptually very interesting. This is the first time I have ever heard of "literate programming". However, the project is far from complete. And while I could even consider contributing to it later, for now, it doesn't give me much. And also, while converting clojure to a literate pr

Understanding the Clojure source-code and functionality

2011-04-17 Thread Terje Dahl
I would very much like to study and understand how Clojure works "under the hood". Yes, I have downloaded the source and looked at it. Yes, I have all the books about programming in Clojure. But what I am looking for is learning and understanding how the Clojure JVM-code actually works. And how i

Re: Namespace and file structuring

2011-03-28 Thread Terje Dahl
On Mar 26, 12:35 am, James Reeves wrote: > On 25 March 2011 01:05, Terje Dahl wrote: > > > In Java, the language forces you to have more or less one class pr > > class-file, and you are encouraged to group class-files in packages. > > So, is it as simple as saying

Namespace and file structuring

2011-03-25 Thread Terje Dahl
I would love to know how better to organize my code: I understand the basics of namespaces and how to use them. But when and why I should use different namespaces eludes me. In Java, the language forces you to have more or less one class pr class-file, and you are encouraged to group class-files i

[ANN] MCLIDE 1.0b3 Mac IDE for Clojure 1.2

2010-08-20 Thread Terje Norderhaug
platform available over the net. Enjoy! -- Terje Norderhaug te...@in-progress.com -- 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 -

Completions and XREFs [Re: Introduction + question re. diff between 'Programming Clojure']

2010-03-24 Thread Terje Norderhaug
completion, it is transformed back into .length in the editor ... -- Terje Norderhaug te...@in-progress.com -- 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 pos

Re: Why I have chosen not to employ clojure

2010-03-21 Thread Terje Norderhaug
lojure is very close already (three cheers for Terje!). -- Terje Norderhaug te...@in-progress.com -- 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 member

Re: Long post with some questions about getting started...

2010-03-19 Thread Terje Norderhaug
ased LISP whose error handler would let me fix the code on the fly and continue execution. Possibly I am misunderstanding "I've never seen a file-based LISP whose error handler would let me fix the code on the fly and continue execution" but that sounds like common

Re: Long post with some questions about getting started...

2010-03-19 Thread Terje Norderhaug
tor. For example, in the MCLIDE lisp editor, I evaluate lisp code in the editor by placing the cursor at the opening or closing parenthesis of an expression then hit the Enter key. Alternatively, I use a menu shortcut to (re) evaluate all definitions in the file I am editing. -- Terje N

Re: help with infinite loop: break and examine stack? dynamic tracing? circular lists?

2010-03-17 Thread Terje Norderhaug
ook at the function call stack (and local vars, if I'm in a nice CL environment), and probably figure it out pretty quickly.[...] Is there is a way to break and look around under slime? [...] I've also been doing some runs under MCLIDE, with help from Terje Norderhaug, and there

Re: clojure slides

2010-03-08 Thread Terje Norderhaug
, although the Clojure Swank server used with MCLIDE and emacs SLIME does not yet support *all* features implemented in the Common Lisp version. Inspection is still incomplete, and it lacks xref functionality such as listing the callers of a function. -- Terje Norderhaug te...@in

Meta for method definitions

2010-03-07 Thread Terje Norderhaug
} But what about getting this meta information for a method? Such as the result from a call to get-method: (get-method clojure.core/print-method 1) Calling meta on the result returns nil, even if this is true: (instance? clojure.lang.IMeta (get-method clojure.core/print-method 1)) -- Terje Nor

Re: newbie code (genetic programming) and questions (dev environments)

2010-03-01 Thread Terje Norderhaug
our teaching environment is Mac OS X (with a linux cluster for compute-intensive stuff). -- Terje Norderhaug te...@in-progress.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Re: Prefixed or suffixed symbols?

2010-02-26 Thread Terje Norderhaug
ls and clutter the code just to facilitate styling in editors. -- Terje Norderhaug On Feb 25, 10:50 pm, joshua-choi wrote: Ah, yes, it is a. (The only thing that I anticipate a computer would use this for is different syntax highlighting. Actually, can any Clojure editors change symbols’ colo

Re: ClojureCLR under slime / emacs?

2010-02-14 Thread Terje Norderhaug
y use of a Java standard library class would have to be replaced with an appropriate CLR base class library class. Perhaps this could be implemented like CL Swank <http://github.com/ technomancy/slime>, with a portable core and platform specific backend modules. -- Terje Norde

Swank Clojure [Re: clojure-dev: #55]

2010-02-14 Thread Terje Norderhaug
with more experience wants to jump in, I will begin applying patches, and working on open issues. Your participation is appreciated! Please consider joining the swank-clojure mailing list: http://groups.google.com/group/swank-clojure -- Terje Norderhaug te...@in-progress.com -- You received th

Swank Clojure [Re: clojure-dev: #55 ...]

2010-02-14 Thread Terje Norderhaug
mplementations, so I am in a good position to help making swank-clojure consistent with the normative CL swank server. I'd prefer to work with somebody familiar with swank-clojure that could review my contributions and integrate them in the codebase. -- Terje Norderhaug te...@i