Newbie Gloss questions - dynamic buffer structure

2015-01-03 Thread Tzach
I'm trying to work with Gloss binary encoder/decoder, and need some help to kick start. My first task is simple(not for me ;) I have the following binary buffer to read/write: - 4 byte (32 bit) - code (uint) - 8 bit - misc flags - 3 byte (24 bit) - the entire buffer length - 4 byte (

Re: beginner (fn) doubt

2015-01-03 Thread Erik Price
((fn [x] (* 5 x)) 5) is the same as (def my-function (fn [x] (* 5 x))) (my-function 5) ​ On Fri, Jan 2, 2015 at 8:13 PM, novato wrote: > I choose clojure as my first programming language after some research. I > am learning by doing Clojure Koans exercises. > I

Re: beginner (fn) doubt

2015-01-03 Thread Anthony Urena
It might help you understand what's going on to bind the fn to a name and poke at it a bit: (let [by-five (fn [x] (* 5 x))] [(by-five 5) (by-five 6) (by-five 7)]) ;; => [25 30 35] This results in a vector wi

Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
Oops that should be 0.0-2657 of course. David On Sat, Jan 3, 2015 at 5:30 PM, David Nolen wrote: > 0.0-2257 released, only change is the addition of `require-macros` > REPL special function for importing macros from libraries like > core.async. > > On Fri, Jan 2, 2015 at 6:18 PM, David Nolen wr

Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
0.0-2257 released, only change is the addition of `require-macros` REPL special function for importing macros from libraries like core.async. On Fri, Jan 2, 2015 at 6:18 PM, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: htt

Re: lein uberjar not creating class files with :aot

2015-01-03 Thread Michael Blume
(in the clojure.java.jdbc namespace, I should have said) On Sat Jan 03 2015 at 12:43:31 PM Michael Blume wrote: > it's hard to say exactly what's going on without tinkering with your > project, but Connectable is found in the clojure.java.jdbc, so I'd make > absolutely sure that namespace has be

Re: lein uberjar not creating class files with :aot

2015-01-03 Thread Michael Blume
it's hard to say exactly what's going on without tinkering with your project, but Connectable is found in the clojure.java.jdbc, so I'd make absolutely sure that namespace has been required before Connectable is referred to. And then, well, if it were me, I'd just ditch AOT. In my experience it cau

Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread David Nolen
Just pushed out 0.0-2655, the main change is that REPLs now respect Clojure semantics wrt. to `require`. Loaded libs are not reloaded unless `:reload` or `:reload-all` is supplied to the `ns` or `require` form same as Clojure. David ### Changes * add defonced cljs.core/*loaded-libs* dynamic var *

lein uberjar not creating class files with :aot

2015-01-03 Thread Shoeb Bhinderwala
When I create a uberjar with aot compilation I am surprised to see ".clj" files in there. Then when I run the jar with the "java -jar myuberjar" command I get a ClassNotFoundException. For example, I am have the following dependency in my project.clj file: [org.clojure/java.jdb

Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread Jony Hudson
I can't claim to know anything about it, but I did read this a while back which was interesting: https://blogs.oracle.com/nashorn/entry/nashorn_performance_work_in_the Jony On Saturday, 3 January 2015 14:02:29 UTC, Max Gonzih wrote: > > Any idea why Nashorn is slower? Is it related to type che

Re: How to handle refactoring with TDD and mocking/stubbing

2015-01-03 Thread Timothy Baldridge
>> Hacker News notwithstanding, "idiosyncratic interface" is not a synonym for abomination. True, however, reaching into code, and re-deffing a function's definition is. Not only is it not thread-safe (removing the possibility of ever running two tests in parallel), but it also hides main problem.

Re: The Essence of ClojureScript Redux

2015-01-03 Thread David Nolen
Open an issue in JIRA. Windows related issues will need help from Windows devs though. On Saturday, January 3, 2015, Angel Java Lopez wrote: > Nice! > > I'm working on Windows, how to write an issue for clojurescript project? > > after > > lein new mies mycljsprj > cd mycljsprj > > > Running > l

Re: ANN: ClojureScript 0.0-2644, enhanced REPLs

2015-01-03 Thread Max Gonzih
Any idea why Nashorn is slower? Is it related to type checks? -- 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 f

Re: [ClojureScript] The Essence of ClojureScript Redux

2015-01-03 Thread Angel Java Lopez
Nice! I'm working on Windows, how to write an issue for clojurescript project? after lein new mies mycljsprj cd mycljsprj Running lein trampoline run -m clojure.main scripts\repl.clj gives me: To quit, type: :cljs/quit ClojureScript Node.js REPL server listening on 58419 Error: ENOENT, no su