[?] How to enumerate the ClojureScript macros in ClojureScript REPL such as figwheel REPL?

2018-04-05 Thread Philos Kim
I ran the follwoing code in the figwheel REPL and the result is an empty 
list. 

How can I enumerate the ClojureScript macros?

dev:cljs.user=> (->> (ns-publics 'cljs.core)
 vals
 (filter #(get (meta %) :macro)))
()


Thanks in advance.

-- 
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 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" 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.


Re: D&D + Clojure?

2018-04-05 Thread Davide Taviani
Hey!
I'm a DM, a user of OrcPub2 and a full-time clojure + cljs developer (for 
data science stuff).
I'm definitely interested, let me know!
Also, I play with another colleague, so there's definitely a few more D&D + 
Clojure nerds out there.

Davide

On Tuesday, March 27, 2018 at 11:12:25 PM UTC+3, Larry Christensen wrote:
>
> I have a Dungeons & Dragons app built in Clojure and ClojureScript. With The 
> Original OrcPub  and The New OrcPub 
>  I have about 300K monthly users and have been 
> used by millions of people over the past few years. I'm looking for people 
> who might want to contribute to building some cool features for a fun app!
>
> -Larry Christensen a.k.a RedOrc
> Supreme Leader
> OrcPub
>
>

-- 
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 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" 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.


Re: D&D + Clojure?

2018-04-05 Thread Brian
I'm interested.

For my own uses I would be curious to see how difficult it would be to
update (degrade? retrograde? :) ) to 3.5/Pathfinder.


On Thu, Apr 5, 2018 at 11:04 AM, Davide Taviani  wrote:

> Hey!
> I'm a DM, a user of OrcPub2 and a full-time clojure + cljs developer (for
> data science stuff).
> I'm definitely interested, let me know!
> Also, I play with another colleague, so there's definitely a few more D&D
> + Clojure nerds out there.
>
> Davide
>
>
> On Tuesday, March 27, 2018 at 11:12:25 PM UTC+3, Larry Christensen wrote:
>>
>> I have a Dungeons & Dragons app built in Clojure and ClojureScript. With The
>> Original OrcPub  and The New OrcPub
>>  I have about 300K monthly users and have been
>> used by millions of people over the past few years. I'm looking for people
>> who might want to contribute to building some cool features for a fun app!
>>
>> -Larry Christensen a.k.a RedOrc
>> Supreme Leader
>> OrcPub
>>
>> --
> 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 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" 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.
>

-- 
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 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" 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.


Re: [ANN] A couple of libraries for functional reactive web programming - Ulmus & Recurrent

2018-04-05 Thread Robert Levy
Oh, I misunderstood what jeremykross/recurrent was at first. I thought it
was a cyclejs wrapper, like the various clojurescript wrappers for
reactjs.  It turns out it's a ClojureScript implementation of the approach
that cyclejs implements.

On Wed, Apr 4, 2018 at 8:18 AM, Robert Levy  wrote:

> Hi Jeremy,
>
> These look great!  This might be the wrong forum for it (or maybe it's the
> best forum for it), but I'd be curious to get your take on why one might
> choose Cycle over React with something like Reagent+Re-frame to do
> event-driven dataflow programming in the browser.  Surely Cycle is a much
> smaller community with a less active supporting library ecosystem.  It's
> true that React has more unnecessary complexity and OO-ish cruft, even with
> nice tools like re-frame to make things better.
>
> Rob
>
> On Fri, Mar 30, 2018 at 8:47 PM, Jeremy Kross 
> wrote:
>
>> Hey everybody,
>>
>> I've been hacking on these for about two years, but I only recently got
>> around to documenting them to a place where they're semi-presentable.
>>
>> First up in Ulmus, a library for doing frp style programming in
>> Clojurescript.  I apes the Elm API to some degree.  Really just
>> higher-level core.async, but I've found it pretty great to work with.
>>
>> https://github.com/jeremykross/ulmus
>>
>> Second is Recurrent, a library for building functionally reactive web
>> components.  It's inspired most directly by cycle.js but I think there's
>> good bit of novelty there as well.  Can't say that it's for everybody, but
>> the way my mind works, it's been real joy to develop and use.
>>
>> https://github.com/jeremykross/recurrent
>>
>> Hope somebody else will find these cool as well.
>>
>> --
>> 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 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" 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.
>>
>
>

-- 
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 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" 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.


[ANN] dont-give-up: Common Lisp style restarts

2018-04-05 Thread Carlo Zancanaro

Hey!

I've been playing around a little bit with Common Lisp lately, and 
I've found the interactive restarts to be pretty amazing. So, I've 
implemented something similar to them in Clojure/Cider!


 https://github.com/czan/dont-give-up

It has support for programmatic restarts, but also includes some 
nrepl middleware which will (when paired with the additional elisp 
code) prompt the user for what to do upon failure.


The restarts should interact sensibly with normal JVM exception 
handling. I've put a lot more thought into the exception/restart 
code than I have into the middleware/elisp code, so the cider 
interface is pretty hacky at the moment. If you have experience 
writing nrepl middleware or extending Cider, I'd love your help!


One big problem with this at the moment is that Cider doesn't let 
you do multiple evaluations in parallel, and the interactive 
prompt blocks the thread until you tell it what to do. This means 
you can't evaluate anything else until you have chosen a restart, 
which limits how interactive the system really feels. Fixing this 
has to be done in Cider itself, I believe.


It still needs a polish/improvement to be as good as slime, but 
it's a start!


Carlo

--
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 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" 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.


signature.asc
Description: PGP signature


Re: [ANN] A couple of libraries for functional reactive web programming - Ulmus & Recurrent

2018-04-05 Thread Jeremy Kross
Hey Rob,

That's a great question.  As you can imagine, I like cycle.js a lot, and am 
not a huge fan of React.

The problem with React, imo, isn't (just) that they're addicted to making 
their APIs look like OOP when they're not.  The problem is that they built 
a system on the same [event callback]->[state update] system that's 
inherent to mutational programming.

A Recurrent (or cycle.js) app can be written (conceptually) without state 
altogether.  Components are just functions that take some data, and produce 
other data.  The catch being that the data can change over time, but that's 
actually meaningless from a programming perspective.  You write the code as 
though you were writing pure functions over static data, and (magically 
kinda) it's all wired up and moving at the end.

I think this is a much better model overall, than React.  Components are no 
longer dependent on a giant state ball that can be updated from anywhere 
and cause code to fire off all through the system.  The burden of writing a 
bunch of extraneous constants, actions, reducers, and event handlers is 
lifted.  Functions can't be "connected" to anything.  They get passed some 
data, and return other data, that's all.  

So, I think the cycle.js/fully-reactive model is really brilliant.  That 
may just be the way my brain works, I dunno.  Cycle.js hasn't particularly 
set the world on fire and Recurrent definitely still has some rough edges. 
 But having written a couple of moderately sized apps in Recurrent now, I 
definitely don't want to go back.

Jeremy

On Thursday, April 5, 2018 at 2:18:27 PM UTC-4, rob wrote:
>
> Oh, I misunderstood what jeremykross/recurrent was at first. I thought it 
> was a cyclejs wrapper, like the various clojurescript wrappers for 
> reactjs.  It turns out it's a ClojureScript implementation of the approach 
> that cyclejs implements.
>
> On Wed, Apr 4, 2018 at 8:18 AM, Robert Levy  > wrote:
>
>> Hi Jeremy,
>>
>> These look great!  This might be the wrong forum for it (or maybe it's 
>> the best forum for it), but I'd be curious to get your take on why one 
>> might choose Cycle over React with something like Reagent+Re-frame to do 
>> event-driven dataflow programming in the browser.  Surely Cycle is a much 
>> smaller community with a less active supporting library ecosystem.  It's 
>> true that React has more unnecessary complexity and OO-ish cruft, even with 
>> nice tools like re-frame to make things better.
>>
>> Rob
>>
>> On Fri, Mar 30, 2018 at 8:47 PM, Jeremy Kross > > wrote:
>>
>>> Hey everybody,
>>>
>>> I've been hacking on these for about two years, but I only recently got 
>>> around to documenting them to a place where they're semi-presentable.
>>>
>>> First up in Ulmus, a library for doing frp style programming in 
>>> Clojurescript.  I apes the Elm API to some degree.  Really just 
>>> higher-level core.async, but I've found it pretty great to work with. 
>>>
>>> https://github.com/jeremykross/ulmus
>>>
>>> Second is Recurrent, a library for building functionally reactive web 
>>> components.  It's inspired most directly by cycle.js but I think there's 
>>> good bit of novelty there as well.  Can't say that it's for everybody, but 
>>> the way my mind works, it's been real joy to develop and use.
>>>
>>> https://github.com/jeremykross/recurrent
>>>
>>> Hope somebody else will find these cool as well.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@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+u...@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" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to clojure+u...@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.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/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, visit https://groups.google.com/d/optout.