Tickets still available for reClojure 2025

2025-05-14 Thread James Reeves
atered and there will be talks on Rama, Electric Clojure, Replicant, Datomic, LLMs, brain-computer interfaces and more. It's also a great opportunity to meet and chat with other Clojurians about our favourite, functional Lisp. -- James Reeves -- You received this message because you are su

Re: Python dataclass equivalent

2022-01-20 Thread James Reeves
e.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > To view this di

Re: Rationale of behavior when invoking composite data type as 0-arity function

2021-11-21 Thread James Reeves
ap a very common operation, treating a map as a function makes intuitive sense. A function is a mapping between two sets; a map is also a mapping between two sets. It's logical that they might share an interface. -- James Reeves booleanknot.com -- You received this message because yo

Re: clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-19 Thread James Reeves
On Mon, 19 Jul 2021, at 2:00 PM, SideStep wrote: > Thanks James, will for something like it I think. Still, would be nice if > code was manipulatable with ease - clojure style. Code-is-data such a > powerful idea. > > On Sunday, July 18, 2021 at 7:43:20 PM UTC+2 James Reev

Re: Strange Vector failure

2021-07-18 Thread James Reeves
Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/clojure/CAMZDCY3B

Re: Strange Vector failure

2021-07-18 Thread James Reeves
visit > https://groups.google.com/d/msgid/clojure/f67cfcd0-8e1e-4780-bc00-f6993979e7afn%40googlegroups.com > > <https://groups.google.com/d/msgid/clojure/f67cfcd0-8e1e-4780-bc00-f6993979e7afn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- James Reeves booleanknot.co

Re: clojure is supposed to be 'code is data' yet I can't add to the end of a list?

2021-07-18 Thread James Reeves
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 group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this

Re: [ANN] Important upcoming changes to Clojars

2021-03-01 Thread James Reeves
ved 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 group

Re: Idiomatic program for someone new to Clojure

2020-12-15 Thread James Lorenzen
just doing that to sort of document the method. That sound about right? On Tuesday, December 15, 2020 at 2:33:08 PM UTC-6 James Lorenzen wrote: > Thanks for the suggestions aditya. I definitely like where you are headed. > I have a few questions. This syntax in `pipeline-build-co

Re: Idiomatic program for someone new to Clojure

2020-12-15 Thread James Lorenzen
gt; be much more general than fetching pipeline counts from an HTTP endpoint... > > Enjoy Clojuring! :) > > On Monday, December 14, 2020 at 10:51:52 PM UTC+5:30 jamesl...@gmail.com > wrote: > >> Very cool everyone. This is exactly the kind of feedback I was hoping >> for. I

Re: Idiomatic program for someone new to Clojure

2020-12-14 Thread James Lorenzen
@gmail.com wrote: > Hey James, > > Another small suggestion is you can just pass println to map, since it > takes 1 argument in your case. > > (map println (sort builds)) > > But here, since you just want to perform side effects, maybe run! would > be a better fun

Idiomatic program for someone new to Clojure

2020-12-14 Thread James Lorenzen
can I prevent it from returning the nils at the end? I know this is returning nil for each map'd item; I just don't know the best way to prevent that. Thanks, James Lorenzen -- You received this message because you are subscribed to the Google Groups "Clojure" group

Re: clojure.edn/read isn't spec compliant

2020-10-20 Thread James Reeves
On Wednesday, 21 October 2020 at 00:42:32 UTC+1 EuAndreh wrote: > But that doesn't apply to clojure.edn: it is code for a format with an > specification, and it goes against the specification. > Where in the specification does it say that the edn reader should throw exceptions on errors? -- Y

Re: Building klipse demands too much

2020-06-27 Thread James Reeves
Z327ANPOyG%3DrM4L%2Bs6du-hY3RSvD3rbA%40mail.gmail.com > <https://groups.google.com/d/msgid/clojure/CAEtmmez6_488LoQzw%2BZ327ANPOyG%3DrM4L%2Bs6du-hY3RSvD3rbA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- James Reeves booleanknot.com -- You received this message be

Re: first time without state - and I'm lost

2020-05-13 Thread James Reeves
On Wed, 13 May 2020 at 12:16, Matthew Downey wrote: > The most similar thing you could do to your Java code would be keeping > the token in an atom inside of a connection record. > As a quick note, if you don't need polymorphism, maps should be favoured over records. --

Re: Concurrency Talk materials

2020-04-24 Thread James Every
Twelve years later, the Java code still works in the very latest Clojure, and I have used the Clojerl compiler to run the original code on the BEAM virtual machine! The agents have been converted to processes, and Swing to WXWidgets, otherwise I left the code unchanged where possible. Rich's or

Re: Conceptual difference between map and class

2020-04-05 Thread James Gatannah
t; idea that I can evaluate stuff that I've 'printed' (data is code is data). > Other than that, they are messing with my head by redefining existing > abstraction and making them 'almost equal but slightly different'. > > kind regards, > Dieter > > On We

Re: Conceptual difference between map and class

2020-03-31 Thread James Gatannah
ny of that. Just call the business logic function with appropriate values and double-check the results. You absolutely can write python code that way. But your pythonic colleagues will hate you for it. Hope that helps, James -- You received this message because you are subscribed to the Google Group

Re: COVID-19 related layoffs

2020-03-18 Thread James Reeves
msgid/clojure/ff7de3a8-744a-4ac8-8ca7-697522fe2ecd%40googlegroups.com > <https://groups.google.com/d/msgid/clojure/ff7de3a8-744a-4ac8-8ca7-697522fe2ecd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- James Reeves booleanknot.com -- You received this message bec

Re: Bit rot and leiningen?

2020-02-04 Thread James Reeves
ns, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsu

Re: Keys in EDN maps: keywords or symbols

2019-10-25 Thread James Reeves
t; "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/clojure/68a3fce8-b63a-420b-9fbd-904f911a746b%40googlegro

Re: Keys in EDN maps: keywords or symbols

2019-10-24 Thread James Reeves
ond itself, then it should be a keyword. Contrast that to a symbol like: clojure.core/conj We know that symbol identifies a clojure function. Even outside of a map, it has an external identity. -- James Reeves booleanknot.com -- You received this message because you are subscribed to t

Re: Keys in EDN maps: keywords or symbols

2019-10-24 Thread James Reeves
le.com/d/msgid/clojure/b4c1d021-a624-482b-9e75-fa5c08057a42%40googlegroups.com > <https://groups.google.com/d/msgid/clojure/b4c1d021-a624-482b-9e75-fa5c08057a42%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- James Reeves booleanknot.com -- You received this mes

Re: The magic of Lisps

2019-04-28 Thread James Reeves
s.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. >

Re: Silly ns question

2019-02-26 Thread James Gatannah
;s about what I expect. And now the original '.shared.connection-test ns fails with the same error. On Sun, Feb 17, 2019 at 9:40 PM James Gatannah wrote: > > Oops, yes. I typoed the file name. > > On Sun, Feb 17, 2019 at 9:26 AM Daniel wrote: > > > > Weird. Also I th

Re: Disable swagger.ui in production

2019-02-22 Thread James Gatannah
I'm going to buck a trend here. Why do you want to do this? (That's rhetorical. Don't feel like you need to answer). One of the fundamental principles behind REST is that it is discoverable. Maybe even that it's explorable. Maybe you aren't building a REST end-point. It's totally possible that

Re: Silly ns question

2019-02-17 Thread James Gatannah
Oops, yes. I typoed the file name. On Sun, Feb 17, 2019 at 9:26 AM Daniel wrote: > > Weird. Also I thought your file name would need an underscore. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@

Re: Silly ns question

2019-02-16 Thread James Gatannah
I haven't messed with it extensively, but it works from the REPL. On Sat, Feb 16, 2019 at 5:35 AM Matching Socks wrote: > > Haha! (Can .shared.connection-test be require'd by another ns?) > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To p

Silly ns question

2019-02-15 Thread James Gatannah
it generated is ".shared.connection-test". I haven't seen that leading dot before. My first reaction was "That can't be legal." But, so far, the compiler doesn't seem to mind. Does anyone have a pointer to docs that explain what's going on? Thanks, James --

Re: Noob question on the --> macro implementation

2019-01-26 Thread James Reeves
please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed

Re: undocumented one-argument call of reducer

2019-01-25 Thread James Reeves
ribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- James Reeves booleanknot.com --

Re: transducer parallelism

2019-01-25 Thread James Reeves
re+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- James Reeves booleanknot.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

Re: How should I debug a poorly performing small web app, using Jetty?

2019-01-19 Thread James Reeves
t > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@goog

Re: Any way to replace function body?

2019-01-19 Thread James Reeves
gle.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more optio

Re: Custom vectors/maps and sequence functions

2019-01-15 Thread James Reeves
on of IPersistentCollection and where xform is your transducer. So for example: (into (empty table) (comp (filter process?) (map process)) table) -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: What do Clojure developers use for recurring functions, other than at-at

2018-12-17 Thread James Reeves
group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visi

Re: [ANN] Clojure 1.10 has been released!

2018-12-17 Thread James Reeves
e.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options,

Re: What's the end goal for tools.deps?

2018-11-04 Thread James Reeves
7;s a case of Leiningen not being "official", but that it's design isn't quite in the direction the core devs want to head toward. -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Mail queue thread

2018-10-27 Thread James Reeves
t; are interested in the status (no use case yet), it would be easy to just > add more return channels to the email. Does this also seem over-enginereed > compared to just returning the future from the worker and letting it bubble > up to however is interested? > > Thanks

Re: Mail queue thread

2018-10-26 Thread James Reeves
, and what's your reasoning for not handling it in your "send-email!" function? -- James Reeves booleanknot.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

Re: Mail queue thread

2018-10-25 Thread James Reeves
pool 0)(send-email unimportant-mail))] (prn @result1) (prn @result2)) Which is probably easier than messing around with the executor classes directly. -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: Mail queue thread

2018-10-25 Thread James Reeves
r under, and then make it configurable from an environment variable or system property. That way you can tune the service without changing the code. (def mail-pool-size (Integer/parseInt (or (System/getenv "MAIL_POOL_SIZE") "32"))) -- James Reeves booleanknot.com -- You rec

Re: Mail queue thread

2018-10-25 Thread James Reeves
If you want fewer emails to be sent at once, you can reduce the worker thread pool size. In my earlier example, I used an executor with only one worker thread. On Thu, 25 Oct 2018 at 18:17, wrote: > Hi James, > > Thanks! How would one create a thread that continuously monitors a mail &

Re: Mail queue thread

2018-10-25 Thread James Reeves
to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/cloj

Re: Keyword namespacing best practices

2018-10-01 Thread James Reeves
ou are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- James Reeves booleankn

Re: Clojure(Script) web apps in 2018

2018-09-24 Thread James Reeves
ps.google.com/d/optout. >>> >> -- >> - sent from my mobile >> >> -- >> 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 >> No

Re: How to escape a space in a keyword?

2018-08-09 Thread James Reeves
If Clojure lacks a type that exactly matches ION's symbol type, why not add your own type with a record, then add a data reader for it. For example: #ion/symbol "foo" On Thu, 9 Aug 2018, 05:48 Didier, wrote: > Thanks Andy, ya I actually realized this, I'm using a custom reader > literal now ins

Re: Using dynamically loaded namespaces like plug-ins

2018-07-29 Thread James Reeves
d 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 group, send

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-22 Thread James Reeves
why there are lists and vectors when they behave in the same way. Then you'd have the same problem, except worse, as you'd also need to explain that "comb" is just a crutch that shouldn't be used outside of the classroom. -- James Reeves booleanknot.com -- You

Re: How define alias for .indexOf? (def somealias .indexOf) does not work.

2018-07-19 Thread James Reeves
bscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Google Groups

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-18 Thread James Reeves
On Wed, 18 Jul 2018 at 20:40, Gregg Reynolds wrote: > > On Wed, Jul 18, 2018, 2:25 PM Robert Levy wrote: > >> Literals can be persisted to strings and read back in with no problem, >> whereas non-literals can't. >> > > That's a different defi

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-18 Thread James Reeves
On Wed, 18 Jul 2018 at 20:19, Gregg Reynolds wrote: > > On Wed, Jul 18, 2018, 1:55 PM James Reeves wrote: > >> >> Function expressions don't evaluate to themselves. >> > > To me that means either the definition is wrong or your literal? is > rigged. P

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-18 Thread James Reeves
On Wed, 18 Jul 2018 at 19:38, Gregg Reynolds wrote: > > On Tue, Jul 17, 2018, 4:11 PM James Reeves wrote: > >> >> A data literal evaluates to itself. So for example, `2` is a literal, >> because we only need to read it to know its value, whereas `(+ 1 1)` >>

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-17 Thread James Reeves
e a set. A set happens to also be efficient at checking whether an item is contained within it, but this efficiency follows from how the data is intended to be used. -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Google Groups "Clojure" group

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-17 Thread James Reeves
ticularly useful for students, as the teacher should be encouraging them to think *more* about the data structures they're using, not less. -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-17 Thread James Reeves
ls. For data that isn't a standard collection type, there are tagged literals. Clojure syntax starts from a representation of data, and in order to really understand it, I think it needs to be taught from this principle as well. -- James Reeves booleanknot.com -- You received this messa

Re: Spaces between brackets?

2018-06-22 Thread James Reeves
?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://gro

Re: accessing symbols in local context of a closure

2018-05-25 Thread James Gatannah
On Friday, May 25, 2018 at 7:40:12 AM UTC-5, Sonny To wrote: > > Hi James, > I'm trying to access the local bindings of the closure like it is an object > (.-x bar) should give 1. I can use a defrecord for this but I want to use > regular functions and no macro magic >

Re: accessing symbols in local context of a closure

2018-05-24 Thread James Gatannah
On Thursday, May 24, 2018 at 1:22:42 PM UTC-5, Sonny To wrote: > > (defn foo[] > (let [x 1] >(fn [] > (+ x 1) > ) > ) > > (def bar (foo)) > > Is there a way to get the value of x from closure bar? > I may be describing this incorrectly. You're creating a top-level var named bar

Re: Clojure Group

2018-04-16 Thread James Reeves
On 16 April 2018 at 17:36, Bijay Paudel wrote: > I post lots of questions but I did not get any response > Are you sure they're getting through? I just did a search for your email address in the Clojure group and got this thread as the only result. -- James Reeves booleanknot.c

Re: Clojure Games

2018-04-16 Thread James Reeves
d to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- James Reeves booleanknot.com -- You r

Question about tightly couple spec interactions

2018-03-29 Thread James Gatannah
x27;t make any sense in isolation. I really just broke them into smaller pieces out of a single gigantic main() function for the sake of my own sanity. And this is strictly internal. The library interface is just a function/callback thing to read/write. How do other people approach the sort of b

Re: Writing a text adventure in Clojure

2018-03-29 Thread James Reeves
roup. > 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 group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this g

Re: lein-codox custom writer

2018-03-05 Thread James Reeves
n > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: Transitive spec generation

2018-03-03 Thread James Gatannah
In case anyone was wondering, it looks like this is probably a known issue: https://dev.clojure.org/jira/browse/CLJ-2079 On Wednesday, February 28, 2018 at 12:05:31 AM UTC-6, James Gatannah wrote: > > > > On Tuesday, February 27, 2018 at 12:45:26 AM UTC-6, Didier wrote: >&

Re: Transitive spec generation

2018-02-27 Thread James Gatannah
;s name. Then it has to use that name/those names in the overriding map parameter to pick out the appropriate function to call to get the generator. I'm very skeptical, but could that possibly hold water? Thank you to anyone who actually took the time to read this! > > > On M

Re: Transitive spec generation

2018-02-26 Thread James Gatannah
isn't really what I'm doing. I'm trying to avoid adding extra runtime dependencies on a library like tools.check, so I'm trying to do this with overrides in the test namespaces to try to limit the extra dependencies to test time. Could that be where I'm breaking core assumpti

Transitive spec generation

2018-02-25 Thread James Gatannah
ther a minimalist example. But before I do that, I figured it might be asking whether anyone sees anything obviously wrong in what I'm trying to do, or whether there's a better way to do it. Thanks in advance, James -- You received this message because you are subscribed to the Google

Re: [?] Adding my own function to clojure.core namespace

2018-02-25 Thread James Reeves
you load in the dev namespace, and in production the prod namespace will contain the -main function that starts your application. You can omit the development namespace and anything it requires from the production classpath when you compile the jar. -- James Reeves booleanknot.com -- You rec

Re: Best Practices for Accessing Data Files That May Be Bundled?

2018-02-06 Thread James Gatannah
At first glance, it seems like you probably want http://clojuredocs.org/clojure.core/ns-resolve On Tuesday, February 6, 2018 at 2:38:06 PM UTC-6, Randy J. Ray wrote: > > First, some brief background/context: I've been playing around with > Clojure for a while, mostly just doing Project Euler pr

Re: Help please: New to clojure development

2018-02-05 Thread James Reeves
lt" "default" "default") > > -- > 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 patie

Re: what does future do after fn finish ?

2018-01-31 Thread James Reeves
future I suppose that the memory (data are > kept as #{} set) is not released. The task returns only integer so I do not > think that might cause the problem. > Can you provide more detail? You keep alluding to things that you don't provide code for, such as the sets of data. -- Jame

Re: Is str's behavior changed?

2018-01-14 Thread James Reeves
http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. >

Re: Port graphs: What would Rich Hickey do?

2018-01-07 Thread James Gatannah
to write a custom navigator or two. I haven't yet > found a good tutorial for getting beyond the most elementary concepts of > Specter, though. Can you recommend one? > FWIW, I think https://leanpub.com/specter looks extremely interesting. (Or it may be awful...I haven't had a

Re: Officially support Vert.x

2017-12-31 Thread James Gatannah
lone clojure microservices that used Vert.x as a communications library. Then I'd point out how much time/energy is being wasted on the java/kotlin portions. BTW, your devs can still use maven instead of leiningen/boot. That's usually just an example of using old, comfortable approaches i

Re: Clojure for beginners

2017-12-06 Thread James Gatannah
This isn't in the same league as any of those books, or the anything recommended by anyone else. And you probably already know everything it has to teach. But it seems worth mentioning. I threw this together a couple of years ago: https://github.com/jimrthy/clojure-introduction It's really mea

RE: Something that has a spec is said to be ???

2017-11-13 Thread James
Great question! The word spec is an informal abbreviation of the word specification. We have a word in English for something that has a specification and that is specified (the C is soft as in species). I have a small library that asserts a namespace is well specified, so I know of at least on

Re: What's up with IMeta?

2017-11-05 Thread James Reeves
Thus the implementation takes the second approach. > Why can't it just memoize the thunk when creating a new instance? -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: What's up with IMeta?

2017-11-04 Thread James Reeves
can only create a new IObj with new metadata. And then I'm confused as to why that would cause lazy-seq to realize their > head? Can't two lazy-seq share the same head? > This I'm not too certain about. It may just be an implementation detail. -- James Reeves booleanknot.c

Re: What's up with IMeta?

2017-11-04 Thread James Reeves
- an > object with different metadata is a different object. One consequence of > this is that applying metadata to a lazy sequence will realize the head of > the sequence so that both objects can share the same sequence. > What confuses you about it? Is it the "realize the head of

Re: What's up with IMeta?

2017-11-02 Thread James Reeves
ey will be considered to be equal: user=> (def m1 {:a 1}) #'user/m1 user=> (def m2 (with-meta m1 {:x 2})) #'user/m2 user=> (= m1 m2) true user=> (identical? m1 m2) false -- James Reeves booleanknot.com -- You received this message because you are subscribed to

Re: What's up with IMeta?

2017-11-01 Thread James Reeves
ge because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- James

Re: Using ring, jetty plugin: No reader function for tag object

2017-10-22 Thread James Reeves
> To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure&qu

Re: An idea to improve foundations of documentation in clojure

2017-10-17 Thread James Reeves
mbers are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because yo

Re: hello world question !!!

2017-10-13 Thread James Gatannah
mattei@moita ~]$ clojure >>>> Clojure 1.5.1 >>>> user=> (compile 'clojure.examples.hello) >>>> FileNotFoundException Could not locate >>>> clojure/examples/hello__init.class or clojure/examples/hello.clj on >>>> classpath:

Re: hello world question !!!

2017-10-13 Thread James Gatannah
e learning a better way to program than any amount of getting clojure to work the way I wanted/expected. I think it's a little sad that setting up a toy project is this painful. Then again, clojure really isn't *for* toy projects. Regards, James On Friday, October 13, 2017 at 4:06:12

Re: hello world question !!!

2017-10-13 Thread James Reeves
> user=> ^C[mattei@moita ~]$ > > [mattei@moita ~]$ cat clojure/examples/hello.clj > (ns clojure.examples.hello > (:gen-class)) > > (defn -main > [greetee] > (println (str "Hello " greetee "!"))) > > On Friday, October 13, 2017 at 4:48:40

Re: hello world question !!!

2017-10-13 Thread James Reeves
oogle.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more opti

Re: CLJS: experiencing "callback envy" re closures as DOM event handlers

2017-10-11 Thread James Reeves
st. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure&qu

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-09-28 Thread James Gatannah
#x27;m generally in favor of the "just stick it into a map" approach. But I'd love to hear from people with "That didn't work out well" experience. Assuming there are any. Thanks, James -- You received this message because you are subscribed to the Google Groups

Re: Ring, redirect with flash

2017-09-13 Thread James Reeves
tp://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more opti

Re: Question about Clojure parallelization

2017-09-12 Thread James Reeves
ated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscr

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-02 Thread James Reeves
;, and Clojure is telling you, "False, it's a function". Then you ask "Is identity the boolean value false?", and clojure replies, "Also false, it's still a function.". Then finally you ask, "Is false equal to false?" and Clojure says, "True."

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-22 Thread James Reeves
patible with "into" like functions: (def latest-values (async/into {} ch)) I don't see how you can say {k v} is somehow fine, but a stream of [k v] pairs over time is somehow bad. -- James Reeves booleanknot.com -- You received this message because you are subscribed to the Go

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-22 Thread James Reeves
On 23 August 2017 at 04:27, Timothy Baldridge wrote: > But Datomic has E in [e a v] which links multiple [a v] pairs into an > entity...which is basically a map. So I don't think that applies here. > Except that [e a v t] facts in Datomic are ordered and not necessarily unique, and that's my par

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-22 Thread James Reeves
und "Bob" > :data/key "444-434-3323" > :server/ip } > > Now not only do I know what data I got, but where it came from, the key I > originally used, etc. > Which is useful only if you plan on using that additional data. If you are only ever interested in th

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-22 Thread James Reeves
[:request/protocol "HTTP/1.1"] [:request/header ["host" "www.example.com"]] I'm not saying that variants should be favoured over maps in all situations; just that there are situations where you're certain that you need key/value pairings. -- James Reeves bool

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-22 Thread James Reeves
isn't the only way of representing data like this, but it is probably the most concise. -- James Reeves booleanknot.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

Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-22 Thread James Reeves
But if you just have a key/value pairing, the value alone doesn't tell you much: "Tim" Using a vector to represent a key/value seems to fit in well with how Clojure currently works: (find m :person/name) => [:person/name "Tim"] But there's no "s/variant&q

Re: Entity–component–system and Clojure

2017-08-15 Thread James Reeves
email to clojure+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.

  1   2   3   4   5   6   7   8   9   10   >