Re: Clojure Games

2018-04-26 Thread Alistair Roche
FWIW, this series of blog posts from 2012 about making a roguelike in 
Clojure is what convinced me to start learning the language:

http://stevelosh.com/blog/2012/07/caves-of-clojure-01/

On Thursday, 26 April 2018 03:14:23 UTC+8, puzzler wrote:
>
> I created this game for last year's Hour of Code, using Clojurescript and 
> Phaser:
> http://robot-repair.thinkfun.com/
>
> On Wed, Apr 25, 2018 at 6:17 AM, Gerard Klijs  > wrote:
>
>> I worked on a snake game, where there is a function form one state to the 
>> next. You can play other client site, which can get slow on slow devices, 
>> or server-side, I also added some simple rule-based ai, 
>> https://github.com/gklijs/snake I continued working for a bit on it in a 
>> corparate repo, so don't really know what the status of the github stuff is.
>> I might sync it with the other one, and try to use wasm for updating the 
>> state from rust and/or kotlin. 
>>
>> Op woensdag 25 april 2018 13:16:54 UTC+2 schreef Kris Leech:
>>
>>> I'm currently working on a multi player game, when I have time. The 
>>> backend in Clojure, the frontend in Javascript (as in a HTML browser based 
>>> UI). So far it has been a really fun project and a great learning 
>>> experience.
>>>
>>> All communication is over web sockets (using http-kit). I send events 
>>> (which have a type key) as JSON between clients and server. I use `case` to 
>>> run a event handler function based on the type key of the event. I intend 
>>> to change this to use a multimethod instead.
>>>
>>> I'm storing state in atoms (but I'm going to switch to agents as they 
>>> are async).
>>>
>>> The first game is "tag", any number of players can join a game and one 
>>> is "it", they need to "tag" someone else and they become "it".
>>>
>>> The UI is using HTML div and CSS absolute positioning to move the 
>>> players. The idea being I will switch to using canvas once working and then 
>>> something like phaser.js. The idea being switching rendering from DOM to 
>>> Canvas should only require adding new JS functions.
>>>
>>> As you can see I'm starting with the simplest possible game.
>>>
>>>
>>> On Monday, 16 April 2018 13:00:21 UTC+1, Peter Ashford wrote:

 Hi There - Clojure noob here. I wanted to ask some question about games 
 programming in Clojure.  Is it ok to ask here or is there a better spot?  
 Most of my questions aren't super game-specific.

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


Re: [ANN] lein-nsorg - Leiningen plugin for keeping ns declarations organized

2018-04-26 Thread Alistair Roche
Awesome, thanks! Writing something like this has been on my to-do list for 
ages, I'm glad I don't have to now :)

On Wednesday, 18 April 2018 04:19:38 UTC+8, Immo Heikkinen wrote:
>
> I have written a small Leiningen plugin to help keeping Clojure(Script) ns 
> declarations lexicographically sorted:
>
> https://github.com/immoh/lein-nsorg
>
> The core functionality is also available as standalone Clojure library:
>
> https://github.com/immoh/nsorg
>
> Maybe someone else finds it also useful.
>
> Best regards,
> Immo
>
>

-- 
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: Clojure/flutter

2018-04-26 Thread Gregg Reynolds
On Wed, Apr 25, 2018 at 5:01 PM, Robert Levy  wrote:

> What would you say is the advantage of using Flutter instead of React
> Native?  Assuming you're not interested in Dart, what is the selling point?
>

I haven't used it yet but the interesting bits to me are efficiency (no
Javascript bridge) and the user-space rendering pipeline.

See What's Revolutionary about Flutter


Gregg

-- 
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: Clojure Games

2018-04-26 Thread Kris Leech
Great to read the snake code for inspiration. I see you use cond with contains? 
to branch on a map key.

I was thinking about how to manage game state which has physics, one thing 
which occurred to me would be have a headless browser running phaser.js, the 
clients do the same and are periodically corrected to match the server side 
browser.


Puzzler, do you have source online?

-- 
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: Clojure/flutter

2018-04-26 Thread Kees-Jochem Wehrmeijer
Flutter definitely looks interesting, but I guess to make it work with 
Clojure would require writing a 'ClojureDart', i.e. a Clojure that compiles 
to Dart code. Given Dart sits somewhere between Java and Javascript, this 
is maybe not undoable, but would certainly be a lot of work. 

On Thursday, April 26, 2018 at 8:09:13 AM UTC-7, Gregg Reynolds wrote:
>
>
>
> On Wed, Apr 25, 2018 at 5:01 PM, Robert Levy  > wrote:
>
>> What would you say is the advantage of using Flutter instead of React 
>> Native?  Assuming you're not interested in Dart, what is the selling point?
>>
>  
> I haven't used it yet but the interesting bits to me are efficiency (no 
> Javascript bridge) and the user-space rendering pipeline. 
>
> See What's Revolutionary about Flutter 
> 
>
> Gregg
>

-- 
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: Clojure/flutter

2018-04-26 Thread Gregg Reynolds
On Thu, Apr 26, 2018, 1:06 PM Kees-Jochem Wehrmeijer 
wrote:

> Flutter definitely looks interesting, but I guess to make it work with
> Clojure would require writing a 'ClojureDart', i.e. a Clojure that compiles
> to Dart code. Given Dart sits somewhere between Java and Javascript, this
> is maybe not undoable, but would certainly be a lot of work.
>

Yeah. I wonder how much "a lot" is, given that we already have clojure,
clojurescript, and the clojure .net compilers to steal from. Any idea how
long it took to get to the first working clojurescript compiler?

-- 
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: Clojure/flutter

2018-04-26 Thread Gregg Reynolds
On Thu, Apr 26, 2018, 10:08 AM Gregg Reynolds  wrote:

>
>
> On Wed, Apr 25, 2018 at 5:01 PM, Robert Levy  wrote:
>
>> What would you say is the advantage of using Flutter instead of React
>> Native?  Assuming you're not interested in Dart, what is the selling point?
>>
>
> I haven't used it yet but the interesting bits to me are efficiency (no
> Javascript bridge) and the user-space rendering pipeline.
>
> See What's Revolutionary about Flutter
> 
>

Oh yeah, I forgot to mention: hot reloading! Have you heard of it? It's
revolutionary! ;)

>
> Gregg
>

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


Looking for people interested in developing Eastwood lint tool

2018-04-26 Thread Andy Fingerhut
Jonas Enlund started the Eastwood project [1], and beginning around 2014 I
hacked on it fairly feverishly for a while, along with Nicola Mometto who
developed the tools.reader, tools.analyzer, and tools.analyzer.jvm
libraries upon which Eastwood is based.

I have not spent time to do much with Eastwood for the last couple of
years, other than to ensure that it doesn't break completely with new
Clojure releases (a few things in Eastwood sometimes do, given a few
internal Clojure details that Eastwood currently relies upon in its
checking).  I don't expect that time to increase in the future.

Thus this message, to ask if anyone out there is interested in hacking
Eastwood to scratch their particular itches.  Jonas was willing to give me
commit access to the repository when I started hacking on it in significant
ways, and I would guess he is willing to add others similarly interested.

I don't know how many developers use Eastwood, but I have tracked how many
downloads it gets from Clojars.org for a while.  During the previous 1
year, it has averaged close to 500 downloads per day.  I am sure that is
tiny compared to Clojure itself, or the most popular Clojure libraries like
Ring.  One feature that might make it more widely useful for developers is
if like other lint tools for other languages, there were a way to add
structured comments that disabled particular warnings that developers knew
to be false positives, so they didn't have to see them repeatedly in the
future.

Regards,
Andy Fingerhut

[1] https://github.com/jonase/eastwood

-- 
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: Clojure Games

2018-04-26 Thread Mark Engelberg
On Thu, Apr 26, 2018 at 8:15 AM, Kris Leech  wrote:

> Puzzler, do you have source online?
>

Sorry, no.  That project is closed source.

-- 
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: Looking for people interested in developing Eastwood lint tool

2018-04-26 Thread Erik Assum
Hi Andy, 

At ardoq, where I now work, and at Telenor Digital, where I previously worked, 
we had Eastwood running on all our Clojure projects, 
and it’s definitively one of the more under-appreciated tools in my tool box. 
It doesn’t make much of itself, but when it speaks, I listen.

I'd be more than happy to help out on this project. As you can see from the 
PR’s I’ve made against Eastwood,
some are simple and focussed, just fixing false positives, others are pointing 
to what you’re writing about, eg marking sections of code as
ignorable by Eastwood.

I would, however, be interesting in discussing wether Eastwood (and other 
tools/libs) should be moved into some GitHub-org owned by the
community so that when vital pieces of Clojure infrastructure, as I consider 
Eastwood to be, is in need of new stewardship, help can be found within the 
community. Furthermore, projects in this GitHub-org would be somewhat curated, 
and could share accounts in CI-tools etc.

But that might just be a discussion for another day.

Bottom line is, yes, I’d be happy to help out with Eastwood.

Thanks for all your great work!

Erik.

> On 27 Apr 2018, at 03:07, Andy Fingerhut  wrote:
> 
> Jonas Enlund started the Eastwood project [1], and beginning around 2014 I 
> hacked on it fairly feverishly for a while, along with Nicola Mometto who 
> developed the tools.reader, tools.analyzer, and tools.analyzer.jvm libraries 
> upon which Eastwood is based.
> 
> I have not spent time to do much with Eastwood for the last couple of years, 
> other than to ensure that it doesn't break completely with new Clojure 
> releases (a few things in Eastwood sometimes do, given a few internal Clojure 
> details that Eastwood currently relies upon in its checking).  I don't expect 
> that time to increase in the future.
> 
> Thus this message, to ask if anyone out there is interested in hacking 
> Eastwood to scratch their particular itches.  Jonas was willing to give me 
> commit access to the repository when I started hacking on it in significant 
> ways, and I would guess he is willing to add others similarly interested.
> 
> I don't know how many developers use Eastwood, but I have tracked how many 
> downloads it gets from Clojars.org for a while.  During the previous 1 year, 
> it has averaged close to 500 downloads per day.  I am sure that is tiny 
> compared to Clojure itself, or the most popular Clojure libraries like Ring.  
> One feature that might make it more widely useful for developers is if like 
> other lint tools for other languages, there were a way to add structured 
> comments that disabled particular warnings that developers knew to be false 
> positives, so they didn't have to see them repeatedly in the future.
> 
> Regards,
> Andy Fingerhut
> 
> [1] https://github.com/jonase/eastwood 
> 
> 
> -- 
> 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.