Re: Sierra's Component

2024-04-06 Thread Paul Stadig
You can do either. If you pass the config as a dependency, then you have to access it in the `start` method after dependency injection has occurred. Sometimes it is useful to write a constructor function to initialize the component. If that constructor needs access to the config it must be passed

Re: variable name duplicate

2022-07-30 Thread Paul Stadig
I'm pretty sure what is happening is the Clojure compiler is munging "x-" into "x_" but since you already have an "x_" you get an exception. On Sat, Jul 30, 2022, 5:23 AM vinurs wrote: > hello, > i have the following code: > ``` > (let [x- 1 x_ 2] (fn [] [x- x_])) ; => Throws: Duplicate field na

Book project : compilation of Rich Hickey conferences transcripts translated in french

2022-05-24 Thread Paul schuhmacher
ou for reading this way too long message, I wish you a very pleasant day, Best regards, Paul Schuhmacher -- 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

Re: [?] alter-var-root and *out*

2021-09-01 Thread Paul Stadig
`*out*` may have a thread binding established. REPLs will often do this. If `*out*` is thread bound you should be able to use `thread-bound?` to check that and then `set!` to set it, but you have to be careful because https://clojure.atlassian.net/browse/CLJ-1077 On Wed, Sep 1, 2021 at 4:58 AM Ph

Re: Strange result for clojure.core/time

2020-04-11 Thread Paul Stadig
it is the use of `format` instead of `str`. Paul On Fri, Apr 10, 2020 at 8:46 PM Alan Thompson wrote: > I was doing some macro work and was curious about the cost of an inline > `eval` vs compiled code. I tried to time it with `clojure.core/time` and > got results I can&

[ANN] electron-app 1.0.0

2019-12-02 Thread Paul Butcher
I’ve just published a clj template for for an Electron application built with deps.edn, Figwheel Main, Reagent, and test integration via cljs-test-display: https://github.com/paulbutcher/electron-app -- paul.butcher->msgCount++ Silverstone, Brands Hatch, Donington Park... Who says I have a on

[ANN] com.vodori/schema-forms "0.1.0" - Convert prismatic schemas to JSON schema for react-jsonschema-form

2019-03-29 Thread Paul Rutledge
Schema-forms is a library for converting prismatic schemas into JSON schema that's compatible with Mozilla’s react-jsonschema-form component. It’s probably best suited for generating admin interfaces and the like. Feedback welcome! You can find more information in the readme: https://github.co

Re: [ANN] Calfpath (v0.7.1), a fast and flexible Ring request router

2019-01-06 Thread Paul deGrandis
does it suffer? What were the trade-offs made in the approach? I'm curious to know the answers myself. Thanks! Cheers, Paul -- 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

[ANN] com.vodori/reactors 0.1.0

2018-11-15 Thread Paul Rutledge
Vodori released [com.vodori/reactors "0.1.0"]. It’s our take on a reactive store (events/reducers/subscribers) atop clojure agents with event producers and subscribers expressed as core.async channels. As an example, we use it with database change streams as our event producers and websockets a

Re: IF, WHEN or SOME

2018-09-20 Thread Paul Rutledge
I haven't used them much myself but the idea of "reified control flow" is called a continuation . Some other lisps implement continuations, Clojure does not. I'm sure there's plenty of material out there about why Clojure/Rich did not provide continua

[ANN] com.vodori/chronology "0.1.0"

2018-09-13 Thread Paul Rutledge
Chronology is a small library for working with cron expressions and scheduling tasks. It provides infinite sequences of cron expressions (both forwards and backwards!) and provides a small layer to schedule functions as periodic tasks using core.async machinery. https://github.com/vodori/chrono

[ANN] Missing 0.1.0 - utility functions, transducers, locking by value, and topological sorting

2018-09-08 Thread Paul Rutledge
Missing is a lightweight complement to clojure.core containing general purpose functions and macros along similar veins of medley, plumbing, flatland, etc. - https://github.com/vodori/missing Vodori has been building products in Clojure for the last ~2 years and will be open sourcing sever

Re: core.async pipeline bug?

2018-09-04 Thread Paul Rutledge
Sure is. Thanks Alex! On Tue, Sep 4, 2018, 6:21 AM Alex Miller wrote: > Is the scenario this one? > > https://dev.clojure.org/jira/browse/ASYNC-217 > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure

core.async pipeline bug?

2018-09-03 Thread Paul Rutledge
ue I'm happy to create a jira ticket and attempt a patch. Minimal example here: https://gist.github.com/RutledgePaulV/6ddb7b29578de4442cd8d946885c38a8 Thanks, Paul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: [ANN] clj-embed | segmented clojure runtimes inside a single JVM process

2017-12-03 Thread Paul Rutledge
It certainly does seem like they overlap a lot! I'll have to take a closer look at pods to see what things I'm not solving well yet :) Thanks! On Sunday, December 3, 2017 at 6:09:27 PM UTC-6, Andrea Richiardi wrote: > > Haven't check the code, but this is similar to what boot pod is: > https

[ANN] clj-embed | segmented clojure runtimes inside a single JVM process

2017-12-02 Thread Paul Rutledge
I've been looking for something that would let me create REPL sessions that couldn't easily mess with the namespaces already being used by the process that's hosting the REPL server. That eventually led me to look at https://github.com/projectodd/shimdandy but the readme told me I couldn't have

Re: Java learning resources for Clojurists?

2017-08-15 Thread Paul Gowder
Oh, thank you, that looks like a great resource! On Tuesday, August 15, 2017 at 9:24:45 PM UTC-5, Daniel Compton wrote: > > Eric Normand has a course "JVM Fundamentals for Clojure" which might be > useful? https://purelyfunctional.tv/courses/jvm-clojure/ > > On Wed, Aug

Java learning resources for Clojurists?

2017-08-15 Thread Paul Gowder
nds of array-whatsits and byte-whatsats" or "here's how the entry point of a java library works" or whatnot. I'm hoping there's something out there (that goes a bit deeper than the wonderful-but-not-quite-what-i-need interop chapter in Brave and True) that someon

Re: slackpocalypse? (Alternatives to Slack like Matrix.org)

2017-05-18 Thread Paul Fernhout
ed on teams, not communities". The essay mentions some FOSS alternatives including Mattermost (which can import Slack history) and Matrix.org (which is decentralized). Perhaps someone knows if there is already a Clojure/ClojureScript frontend to Matrix.org? :-) --Paul Fernhout (pdfernhout

Re: with-open pattern

2017-05-10 Thread Paul Stadig
A reducible is like a spring with potential energy built in, and when it is sprung it springs. A lazy sequence is like a wheel, if you apply external force to it, it will turn, but otherwise it is inert. Probably a terrible analogy, but that's the best I can come up with. :) I hope that

Re: ANN: Cognitect acquired by Microsoft

2017-04-01 Thread Paul Gowder
AMAZING. -- 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 group, send email

Re: Combinatorics partitions that preserves adjacency?

2017-03-16 Thread Paul Gowder
For sake of completeness/if this is useful for anyone else, a full implementation of the number-the-possible-split-locations method, including the original API with :min and :max options. Could probably be tidied up with transducers and such for all those filters but does the job. (require '[c

Re: Combinatorics partitions that preserves adjacency?

2017-03-16 Thread Paul Gowder
Ooh, thank you---those are both lovely solutions! -- 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.

Combinatorics partitions that preserves adjacency?

2017-03-15 Thread Paul Gowder
n (c/partitions [:a :b :c] :min 2)) => (([:a :b] [:c]) ([:a] [:b :c]) ([:a] [:b] [:c])) ; Yay! :-) And that works, but, as noted, only when the original vector is sorted. What if someone wanted to preserve adjacencies in an unsorted vector? All thoughts appreciated, thanks! Cheers,

Re: ANN: ClojureScript 1.9.456, Externs Inference & Comprehensive JS Modules Support

2017-03-07 Thread Paul Gowder
Yeah, this is a recurrent problem---as far as I can determine, several database libraries (at least) have a dependency a layer or two down on an old version of guava; the latest closure compiler seems to be depending on the most recent guava. See eg this issue (which ai've been meaning to pr...)

[ANN] Vase: data-driven microservices

2017-01-31 Thread Paul deGrandis
sample application <https://github.com/cognitect-labs/vase/tree/master/samples/omnext-todo>. - - - - - - Thanks to everyone who helped make Vase what it is today and watch for upcoming enhancements! Cheers, Paul -- You received this message because you are subscribed to the Google Groups

Re: [ANN] Nightcoders.net, a cloud IDE for ClojureScript

2017-01-04 Thread Paul Gowder
That's really cool! The autosave is sweet. So is the fact that I can get it to work on ios---I was just thinking about buying an ipad pro and figuring out good ways to code on it... this could be a really cool solution for starting something on a real computer, leaving it in the cloud, workin

Re: Closure for object pattern? A good idea?

2016-12-11 Thread paul
Let me add a couple of comments, both from a clojure perspective and from other languages. First, I have used this pattern in clojure and similar languages. I find it is often useful when I need to deal with multiple functions mutating the same state. In clojure, I used this to make little slop

Re: Errors

2016-12-06 Thread Paul Walker
ctional uses though, like when she rebinds map. And a big pile of stack regexps is tricky to maintain beyond teaching use cases I could imagine. Anyway, thanks for the links and thanks for the thoughtful answers. I really appreciate it. It has me thinking. Be well, - Paul > On Dec

Re: Errors

2016-12-06 Thread Paul Walker
ments on the ticketing approach are appreciated and I will dig into them. Thank you for your rapid and thoughtful responses - Paul > On Dec 6, 2016, at 2:56 AM, Mars0i wrote: > > On Monday, December 5, 2016 at 10:36:59 PM UTC-6, Sean Corfield wrote: > Several of the Clojure/cor

Re: Errors

2016-12-05 Thread Paul Walker
Yeah I understand that tradeoff. I cherrypicked a case where the runtime difference would be tiny but others are harder I’m sure. I guess I will go figure out how spec applies to my project. Thanks as always. This group is so responsive. Appreciated. - Paul > On Dec 5, 2016, at 9

Errors

2016-12-05 Thread paul
in the spirit of being willing to help if there's help to be applied, I would ask if there's some sort of thinking on this topic for 1.9.1 or 1.10 or something? Thanks Paul -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: recursive bindings not available in let form?

2016-12-03 Thread Paul Gowder
That's a really neat post. Thank you for writing it! How do bindings created by let fit into that picture? > The question of how vars work comes up enough that I recently wrote a blog > post on the subject. Maybe it will be useful to you. > http://blog.cognitect.com/blog/2016/9/15/works-on-m

Re: recursive bindings not available in let form?

2016-12-02 Thread Paul Gowder
Thanks Bobby, Francis, Walter! Now trying to wrap my head around the idea of def as a ref... On Friday, December 2, 2016 at 2:57:13 PM UTC-6, Francis Avila wrote: > > Let bindings are immutable bindings, not refs. They must act as if their > value could be substituted at the moment they are re

recursive bindings not available in let form?

2016-12-02 Thread Paul Gowder
going on here? Why can a def binding get access to its own name in the body of a function, but not a let binding? thanks! -Paul -- 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: Getting information from a hashmap that is inside anothe hashmap

2016-11-24 Thread paul
Not quite. The -> operator basically puts the prior result in as argument number one of the next statement, so you need to create an expression who, when it has the result of :char put in position 1, returns a vector of eye color and hair color Luckily the core library has a function (juxt) whi

[ANN] functional-vaadin 0.2.1 released

2016-11-13 Thread Paul Bennett
I've just deployed a new release of functional-vaadin, a Clojure library that greatly improves the building of Vaadin-based web UI's. Latest version is 0.2.1, and adds - New builders for tree tables, upload and login form - Internal refactoring, including the use of clojure.spec for builde

Re: protocols and namespaces confusion (with an example from core.matrix)

2016-10-19 Thread Paul Gowder
Thanks Gregg and Alex! I didn't realize that protocols (or the black magic interfacing of core.matrix) were that fancy. Definitely going into my "code to really dig into" list. Cheers, -Paul -- You received this message because you are subscribed to the Google Groups &quo

protocols and namespaces confusion (with an example from core.matrix)

2016-10-19 Thread Paul Gowder
tocol. So can someone explain how this magic works? Is the compiler just way smarter than I thought it was, and capable of figuring this stuff out on its own? Thanks! -Paul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: Should I switch to Clojure after 3 years of learning another full stack ?

2016-10-13 Thread Paul Gowder
Another thing worth thinking about is that Cojure(script) is great for pure front-end applications ("single page applications"). The reagent library is a scarily magical way of just abstracting away the dom, and figwheel is a scarily effective build tool. This template is a convenient way to ge

Re: Idiom question

2016-09-28 Thread paul
All very interesting, and Sean that first/or threading pattern is very helpful. @puzzler - totally get that the language is extensible yup and appreciate the mainstream warning. When I read your cond-better version I got it; and I also thought "a return statement like thing could be useful in a

Re: Idiom question

2016-09-28 Thread paul
This is a super interesting thread. Thank you all for your input I think you are right, @puzzler, that for my case a let may be better. The original code is above. Using as-> it looks like this (using 'it' as the name) (as-> (MidiSystem/getMidiDeviceInfo) it (filter #(= (.getName ^MidiDe

Re: Idiom question

2016-09-28 Thread paul
(I chose 's')". Thank you. Reading the tupelo docs now. On Wednesday, September 28, 2016 at 4:02:38 PM UTC-4, Alan Thompson wrote: > > Hi Paul, > > Since you are interested in the threading macros, you might like to take a > look at one of my favorite variants from t

Re: Idiom question

2016-09-28 Thread paul
seems a bit ugly. I sort of want a let-with-test or a > thrush-with-test so something which looks like > > (-%?> (init) > (operator-1 %) (post-condition) > (operator-2 %) (post-condition) ) > > where if I don't have a post condition I could just use &#x

Idiom question

2016-09-28 Thread paul
throw...) but that's a crazy thing to want. So curious how you all tackle this. Thank you all for your consideration. And apologies again if this is covered elsewhere or I should have asked in a different forum. Best, Paul -- You received this message because you are subscribed to the

[ANN] pjstadig/reducible-stream 0.1.0

2016-08-19 Thread Paul Stadig
e feedback. Cheers! Paul -- 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 f

Should spec used to check the sematics of DSL arguments?

2016-07-29 Thread Paul Bennett
Hi All, I have a library that provides a DSL to build a composite hierarchy of UI objects for a server-side Web framework (https://github.com/wizardpb/functional-vaadin). RIght now, I have a whole bunch of custom code that checks the validity of arguments passed to the builder functions, and I

Re: Frustrations so far

2016-07-25 Thread Paul deGrandis
nt to know about shortcomings, missteps, or security risks. --Paul -- 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

[ANN] functional-vaadin 0.1.1

2016-07-01 Thread Paul Bennett
Hi Everyone, I'd like to announce functional-vaadin, a library for building Clojure webapps using the Vaadin UI framework. Since Vaadin is Java-based, this can already be done - but it's clunky: lots of doto and setter calls, temporaries to hold parts of the UI being constructed, etc. etc. This

Re: [ANN] pedestal-api 0.2.0 release - Swagger for pedestal

2016-06-09 Thread Paul deGrandis
Congrats! -- 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 group, send emai

Re: IoT: Clojurescript -> Jerryscript?

2016-05-31 Thread Paul deGrandis
Hi Gregg, I've previously used ClojureScript to target other JavaScript engines (on small devices and on Android), without any issue. You shouldn't need to do anything special, but if something comes up and you hit a snag, just post here. Good luck and have fun! Cheers, Pau

Re: Encapsulating Local Mutable State

2016-04-27 Thread Paul Mooser
One thing you can do is use 'reify', which will allow you to implement a protocol but also have your state atom hidden in a closure. You'll still be passing an 'object' to all of the protocol methods (obviously), but it won't be the atom itself. -- You received this message because you are su

Language-agnostic schema definition for Transit?

2016-03-23 Thread Paul Lam
Is there something like JSON Schema http://json-schema.org/examples.html specifically for Transit? Perhaps with a validator tool too. -- 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 t

Re: Clojure as first language

2016-03-20 Thread Paul Gowder
Thinking about this a little more, it seems to me that the real beginner-unfriendly bits of clojure that actually are a problem for basic learning (so not legitimately difficult stuff like quoting and macros) all come from the JVM. Errors that are incomprehensible? JVM. Classpath confusion? JVM

Re: Clojure as first language

2016-03-19 Thread Paul Gowder
On Thursday, March 17, 2016 at 12:10:21 PM UTC-5, blake watson wrote: > > On Sat, Mar 12, 2016 at 2:42 PM, Lee Spector > wrote: > > > Is "lein new app foo" that complicated? > > If I understand Paul correctly—and am not just imposing my own similar > fe

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2016-03-18 Thread Paul L. Snyder
It's definitely piqued my interest. Paul On Sat, 12 Mar 2016, Jason Zwolak wrote: > +1 JavaFX. > > I know this is an old thread... but in case anyone comes across it (like I > did just now) and wants to see where things are, they should know that > JavaFX has come a long way

Re: Clojure as first language

2016-03-11 Thread Paul Gowder
As a clojure beginner and programming semi-beginner (advanced beginner? I'm decent but not pro dev level at Python and R and have messed around with a few others), switching to clojure because the functional style feels more natural than all that object ick, I can speak from personal experience

Re: Welcome the new maintainer of Loom: Paul Snyder

2016-02-15 Thread Paul L. Snyder
On Mon, 15 Feb 2016, Gregg Reynolds wrote: > On Feb 11, 2016 6:19 AM, "Aysylu Greenberg" wrote: > > > > I'm pleased to announce that Paul Snyder > (@pataprogramming, pataprogramming on Github) has joined me in maintaining > Loom. I'm excited for the

Re: Welcome the new maintainer of Loom: Paul Snyder

2016-02-14 Thread Paul L. Snyder
On Thu, 11 Feb 2016, Aysylu Greenberg wrote: > I'm pleased to announce that Paul Snyder (@pataprogramming, pataprogramming > on Github <https://github.com/pataprogramming>) has joined me in > maintaining Loom. I'm excited for the coming year for Loom > <https:

Re: Clojure beyond Java 6 ?

2016-01-19 Thread Paul deGrandis
easy to get all the things listed in this thread. Cheers, Paul -- 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 pat

Re: [ANN] data.avl 0.0.13 – fast sorted collections with O(log n) slices and nth

2015-12-09 Thread ';Jan-Paul Bultmann' via Clojure
Very awesome :D! Cheers, Jan > On 09 Dec 2015, at 10:39, Michał Marczyk wrote: > > Hi, > > I am pleased to announce the 0.0.13 release of data.avl, a Clojure > Contrib library providing highly performant drop-in replacements for > Clojure(Script)'s built-in sorted maps and sets with the follow

Re: best practice with forked libraries

2015-11-17 Thread Paul deGrandis
In addition to Ray's response (which I would also suggest), I'd encourage you to reach out to the project maintainer/author with your additions - it's always nice to see how your project is being used and the shortcomings that others are hacking around. Cheers, Paul -- Yo

Re: [ANN] core.async-0.2.371

2015-11-01 Thread Paul Mooser
I think the problem isn't the name - it just isn't clear if a channel which behaves unlike any other channel when closed can qualify as having channel semantics. On Thursday, October 29, 2015 at 2:10:43 PM UTC-7, Alex Miller wrote: > > We are not going to change the name - it is a channel with p

Re: Awesome Clojure Engineer Opportunity

2015-10-12 Thread ';Jan-Paul Bultmann' via Clojure
Hey Rameen, Cool, I didn’t know that Apple was using Clojure internally. Cheers, Jan > On 12 Oct 2015, at 22:00, Rameen Fattahi wrote: > > Hi Everyone, > > My name is Rameen and I'm looking for a passionate Clojure engineer for a > very confidential project at one of the biggest companies in

Re: How is core.async/go related to go-lang's concurrency?

2015-10-12 Thread Paul deGrandis
there is a threadpool and execution happens in parallel when possible. Cheers, Paul -- 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

Re: rand-nth on empty collections

2015-09-30 Thread ';Jan-Paul Bultmann' via Clojure
Throwing an exception is probably the right thing to do if it's supposed to closely model the behavior of `nth`, but it wonder if it's the most usefull behavior in practice. I would guess that it introduces `not-empty` checks everywhere, instead of only for the cases where you want to be shure t

Re: Clojure/Pedestal vs Go

2015-09-14 Thread Paul deGrandis
l/pedestal#notable-capabilities>. Hope this helps! Reach out with any other questions you may have. Regards, Paul -- 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 po

Re: Advice on introducing a Java dev to Clojure

2015-07-23 Thread Paul deGrandis
tues of Clojure and its approach to problem solving by "walking the walk" on a small scale, where the stakes and risks are low. Build a tool, prototype an idea in half the time it would normally take, show the power of Protocols within your own existing system, etc. Regards, Paul

Re: [ANN] clj-kafka 0.3.1

2015-06-16 Thread Paul Ingles
2015 at 1:46:46 PM UTC-4, Ragnar Dahlén wrote: >> >> Hi Omri, >> >> There's clj-kafka.zk/set-offset! for exactly that purpose: >> https://pingles.github.io/clj-kafka/clj-kafka.zk.html#var-set-offset.21 >> >> Thanks, >> Ragnar >> >>

[ANN] clj-kafka 0.3.1

2015-06-12 Thread Paul Ingles
Hi all, I'm delighted to say 0.3.1 is released and available on Clojars. It's been a long while since we've made any big changes to clj-kafka so I'm very happy to say we've caught up over the past couple of days. Most of the changes were the result of submissions from the community but I h

Re: [ANN] Pedestal 0.4.0 and doc updates

2015-05-26 Thread Paul deGrandis
ompelling features within Pedestal that make it clearly stand out from the pack. Cheers, Paul -- 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 m

[ANN] Pedestal 0.4.0 and doc updates

2015-05-26 Thread Paul deGrandis
lding Clojure web services. I encourage everyone to give Pedestal another look! Cheers, Paul -- 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 m

Re: [ANN] darwin and algebolic - genetic algorithms, and evolving mathematics

2015-05-17 Thread Paul deGrandis
It's great to see all of these! Thank you both! Cheers, Paul -- 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 pa

Re: Embedded systems and transpiling Clojure to Nim

2015-05-11 Thread Paul deGrandis
just going to be C, so you should be able to cross-compile the base for whatever platform you need (someone recently blogged about putting Pixie on the Raspberry Pi). Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To po

Job opening at Teradata

2015-05-06 Thread Paul Gearon
detail.ftl?job=160789 For people unfamiliar with Teradata Loom, our team used to be with Revelytix until the company was acquired by Teradata last year. Regards, Paul Gearon -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Dynamic/Convention-based routing libraries? (was: Clojure needs a web framework with more momentum

2015-05-06 Thread Paul deGrandis
other best-practices for secure web services. You know how everything works in Pedestal. Release notes are very detailed: https://github.com/pedestal/pedestal/releases Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: Dynamic/Convention-based routing libraries? (was: Clojure needs a web framework with more momentum

2015-05-05 Thread Paul deGrandis
heers, Paul -- 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 group

Re: Embedded systems and transpiling Clojure to Nim

2015-05-05 Thread Paul deGrandis
a and Terra occasionally. I also recently used Oracle's Embedded JVM with great success (producing a custom JRE for exactly what I needed). Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: Clojure web server capacity

2015-04-22 Thread Paul deGrandis
rchitectural considerations of real systems? Food for thought! Good luck! Cheers, Paul -- 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

Re: Newbie question about filtrering defrecord

2015-04-04 Thread Paul L. Snyder
pe{:fname "test1", :lname "test2"}) ;; Clojure idioms tend toward vectors and vector literals rather than ;; lists. If you have a background in Common Lisp or Scheme, this can ;; take some getting used to. One nice consequence is you don't have ;; to worry about quotin

Re: How to coerce to bigint ?

2015-04-04 Thread Paul Roush
On Saturday, April 4, 2015 at 1:00:46 PM UTC-4, Michael Gardner wrote: > > On Sat, Apr 4, 2015 at 11:36 AM, Paul Roush > wrote: > >> (range 5N) => (0 1 2 3 4) ; i.e. the "bigint-ness" is lost >> >> So in this particular case I needed to "i

Re: How to coerce to bigint ?

2015-04-04 Thread Paul Roush
On Saturday, April 4, 2015 at 12:09:36 PM UTC-4, Andy Fingerhut wrote: > > > > On Sat, Apr 4, 2015 at 8:52 AM, Paul Roush > > wrote: > >> I have 2 questions related to bigints. >> >> 1) I've read things suggesting Clojure auto-converts between i

How to coerce to bigint ?

2015-04-04 Thread Paul Roush
I have 2 questions related to bigints. 1) I've read things suggesting Clojure auto-converts between int, long, and bigint to prevent overflow. That isn't the behavior I've experienced. Did something change from an older release of Clojure to more recent ones? 2) I found myself wanting to writ

Re: Immutant survey

2015-04-02 Thread Paul deGrandis
Thanks for the summary! I just want to publicly say thanks for Immutant and the hard work you, Toby, and others put into it. It's a fantastic set of tools and libraries and deserves more recognition than it receives. Cheers, Paul -- You received this message because you are subscrib

Re: State of the Art in Clojure Debugging

2015-03-30 Thread Paul deGrandis
thin a limited scope. I don't think this is a particularly good idea, but in certain contexts, it works nicely. While I've never used it, you may want to look at vim-redl - https://github.com/dgrnbrg/vim-redl. You could also use emacs with evil, and then use ritz for a true JVM

Re: Is this the good way to write get-percentage

2015-02-13 Thread Jan-Paul Bultmann
I really don't think that calculating percentages warrants a DSL. (I'm not even sure if percent warrants a function ;} ) `(round (percent ...)) (round-up (percent ...)) (round-down (percent ...))` Seems far more readable to me than having a function that does many things at once, be it higher

Re: Architectural doubts

2015-01-31 Thread Jan-Paul Bultmann
Why not stream frames directly into the datomic db as they fall out of gloss? This should be faster at query time anyhow due to indexes, and let's datomic handle the memory management. cheers Jan > On 31 Jan 2015, at 11:39, Milton Silva wrote: > > While using wireshark to analyse libpcap files

Re: if-not implementation

2015-01-22 Thread Jan-Paul Bultmann
Even with inlining the code is rather silly ;) [x] (if x false true) so you'd get, (if (if test false true) then else) Which relies a bit too much on the JVM's JIT for my taste :D I've always wondered what the reason for the original implementation is. Keep closer to the implementation

Re: DSL in RTL (Right to Left) languages.

2015-01-13 Thread Jan-Paul Bultmann
I would wrap everything in a tree walking macro that first reverses all lists and then starts evaluating other macros. I'd love to see an Arabic clojure file btw :D But non English source always makes me shudder a bit, one of the great things about programming is that everybody speaks English ;)

Re: A (foolish) plan to re-invent IO on top of core.async

2015-01-07 Thread Paul deGrandis
ssure when using core.async in certain combinations. Zach Tellman has covered the major points here: https://groups.google.com/d/msg/clojure/TVMQJwaij1U/dQxyBxxbIjQJ Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Author a Book on Clojure - Packt Publishing

2014-12-22 Thread Jan-Paul Bultmann
Just my 50 cent. I was asked to do a technical review on a Clojure podcasts by packtpub once. The "storyboard" they send me consisted of a word file containing a huge table with text and source code. Why would anybody send a technical reviewer source code in a word document, yet alone in a tab

Re: Getting sick and tired of "[trace missing]"

2014-12-03 Thread Paul L. Snyder
looks like this thread is going down the same path? I do not wish this community to become one that tolerates incivility. http://jacobian.org/writing/assholes/ Thanks to all of those on this list and behind the scenes who work to support this great programming language, its tooling, and

Re: If code is data why do we use text editors?

2014-11-14 Thread Jan-Paul Bultmann
Yeah this would be awesome, but sadly representing Clojure code as data is as hard as representing Java. All the reader macros make it a nightmare, and the closest thing you'll get is tools.analyzer AST nodes. Session is certainly a step in the right direction, and I wish more people would embr

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Paul English
You could use (-1)^{i+1}, which would be a bit more mathy but it may not be efficient. (defn altsum [n] (->> (range 1 (inc n)) (map #(* % (Math/pow -1 (inc % (reduce +))) On Nov 13, 2014, at 6:31 PM, Andy L wrote: > Hi, > > All I was able to come up with was this > > (de

Re: better way to group consecutive numbers in a vector?

2014-11-07 Thread Jan-Paul Bultmann
I think what you want is `partition-between` as implemented by amalloys useful lib (https://github.com/amalloy/useful/blob/develop/src/flatland/useful/seq.clj#L224 ). `(partition-between (fn [x y]

Re: [ANN] Quickie 0.3.5

2014-10-16 Thread Paul deGrandis
have two assertions. In this scenario, your test suite will actually run faster in a standard, serial test run, than in the parallel (by namespace) test run. Feel free to benchmark your testing tool against Pedestal's test suite - it's a good mix of different size testing namespace

Re: Schrodinger's cat in clojure?

2014-10-11 Thread Jan-Paul Bultmann
ve > to worry about keeping large data structures in memory, etc. But in many > situations, those features aren't needed.) > > That's what I mean by "turning off laziness": Replacing every function that > returns a lazy sequence with its closest non-lazy

Re: Schrodinger's cat in clojure?

2014-10-11 Thread Jan-Paul Bultmann
#x27;t want the properties of a seq, then use another data structure, like a vector. On 11 Oct 2014, at 18:14, Mars0i wrote: > Thanks Jan-Paul. That's helpful. I wonder whether, if all lazy functions > were rewritten in terms of transducers, it would then be easy to turn > laz

Re: Schrodinger's cat in clojure?

2014-10-11 Thread Jan-Paul Bultmann
Transducers build up transformation steps, with new generic operations like single arg `map` and `filter`, and then apply these transformations to a collection using an evaluation function. This function decides if operations are done lazily, eagerly, or on a channel. Note that while this makes

ANN: Pedestal 0.3.1

2014-10-10 Thread Paul deGrandis
all of the details: https://github.com/pedestal/pedestal/releases/tag/0.3.1 Thanks to everyone who helped out in anyway, and many thanks to those who are happily using Pedestal. There's even more great stuff coming up in the next release! Cheers, Paul -- You received this message because you

  1   2   3   4   5   6   7   8   9   >