Re: Entity–component–system and Clojure

2017-08-15 Thread Mark Mandel
A while ago, I wrote a library called *brute *as an ECS library for Clojure + ClojureScript. Articles: http://www.compoundtheory.com/category/brute/ Github: https://github.com/markmandel/brute https://github.com/markmandel/brute-play-pong Mark On 15 August 2017 at 18:49, James Reeves

Re: What's the best option similar to Vert.x, Reactor, Nodejs for use with Clojure?

2016-01-23 Thread Mark Mandel
+1 to what Andrey said. You could also run Redis as a backend and use it's pubsub service [1], if being more language agnostic is more your thing. Depending on where you are hosting, you could also use a hosted pubsub mechanism, such as Google Cloud PubSub[2] or AWS SNS[3]. There are definitely

[ANN] Brute 0.4.0 - A lightweight Entity Component System library for writing games

2016-01-21 Thread Mark Mandel
Brute is a simple and lightweight Entity Component System library for writing games with Clojure and ClojureScript. This release is essentially just a move from CLJX to Reader Conditionals to implement support for both CLJ and CLJS. Full details, and how the conversation process went can be

Re: Better/more idiomatic way to read EDNs than using java.io.PushbackReader

2015-03-06 Thread Mark Mandel
Totally off the top of my head, but this should work - (edn/read-string (join (line-seq r))) Mark On 7 March 2015 at 14:18, Sam Raker sam.ra...@gmail.com wrote: I'm experimenting a little with EDN files. I've currently got this function: (defn from-edn [edn-file] (with-open [r

Re: Unmarshalling EDN to Java Object

2014-10-08 Thread Mark Mandel
I'm sure you can, but you would need to implement your own custom methods to do it, using :readers or :default options in edn/read / edn/read-string It would very much depend on the format of the outputted EDN as to which approach to take. Mark On 9 October 2014 07:12, Timur

[ANN] Brute 0.3.0 - A lightweight Entity Component System library for writing games

2014-07-16 Thread Mark Mandel
Brute is a simple and lightweight Entity Component System library for writing games with Clojure and now also **ClojureScript**. Big thanks to Martin Janiczek https://github.com/Janiczek for porting Brute over to CLJX and making everything work. There are also some new functions - including:

Re: working intellij plugin?

2014-07-13 Thread Mark Mandel
Try this for IntelliJ instead. It's far better: https://cursiveclojure.com/ Mark On Mon, Jul 14, 2014 at 11:35 AM, Brian Craft craft.br...@gmail.com wrote: In need of a way to breakpoint in java code, I decided to look at intellij. I tried the directions here:

Re: [ANN] Clojure cheatsheet variants with links to Grimoire

2014-07-11 Thread Mark Mandel
Brilliant work :) This is definitely my new goto for Clojure docs. Mark On Sat, Jul 12, 2014 at 8:38 AM, Reid McKenzie rmckenzi...@gmail.com wrote: Sorta kinda on the automated synchronization. Whenever I rebuild/update Grimoire (and you can too!) it fetches the latest examples from

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-07 Thread Mark Mandel
Nice work! I've been using Grimoire all day :) Two small suggestions, which you have probably thought of: (1) search (2) a copy of the clojure cheat sheet that points to grimoire instead. (Maybe Grimoire needs it's own domain?) CrossClj is *awesome* as well. I've been wanting something similar

Re: Game logic with Clojure

2014-06-23 Thread Mark Mandel
If you are looking for another example, here is my pong clone with play-clj, and my own Entity Component system, brute. https://github.com/markmandel/brute-play-pong I also use an atom that I reset! on each game loop. Because it's integrated with play-clj (and therefore libgdx) there is a bit

Re: IntelliJ Cursive ClojureScript IDE slowdown

2014-06-22 Thread Mark Mandel
Yah, I noticed this as well. I figured it was something in the terminal plugin. Sent from my mobile doohickey On 22/06/2014 3:13 PM, Colin Fleming colin.mailingl...@gmail.com wrote: Hmm, thanks for the report - I'll take a look at this and see if I can figure out what's happening. One

Runnable.com + Clojure

2014-06-03 Thread Mark Mandel
I got bored and set up a simple Clojure project to fork if they want on Runnable.com http://runnable.com/U46bKu4Y8pZgeAW9/clojure-%2B-leiningen-example For some reason, the editor currently can't open .clj files, but that's easy enough to work around with a text editor in the terminal. (Bug:

[ANN] brute 0.2.0 - A lightweight Entity Component System library for writing games

2014-05-12 Thread Mark Mandel
Brute is a simple and lightweight Entity Component System library for writing games with Clojure. This is a rewrite of Brute 0.1.1, to get rid of all the global internal refs, and make it so that Brute simply passes around an immutable collection. This makes things far nicer to deal with, and

Re: Unity 3d and Clojure

2014-04-28 Thread Mark Mandel
That's awesome. I'll be keeping an eye this project for sure. Sent from my mobile doohickey On 28/04/2014 4:51 PM, Tims Gardner timsgard...@gmail.com wrote: Hi Jacob, thanks for your interest! As Max said, this project is definitely still in the mostly functional hack phase, but it should be

Re: Dealing with edn for the first time

2014-04-20 Thread Mark Mandel
I wrote a blog post a while back on working with EDN, which could be helpful: http://www.compoundtheory.com/clojure-edn-walkthrough/ From there, fire up a REPL, load in clojure.edn, and start converting vectors and maps to EDN and see what the format looks like :) Mark On Mon, Apr 21, 2014 at

Re: Light table

2014-04-16 Thread Mark Mandel
I use Cursive for my Clojure development and it's great! I'm a big fan. Standard disclaimer: I was already firmly entrenched in Intellij beforehand. Sent from my mobile doohickey On 17/04/2014 11:12 AM, Mark Engelberg mark.engelb...@gmail.com wrote: On Wed, Apr 16, 2014 at 6:01 PM, Colin

[ANN] brute 0.1.1 - A lightweight Entity Component System library for writing games

2014-04-14 Thread Mark Mandel
Heya! First real Clojure library release, so exciting/scary stuff, but feedback would very much be appreciated. Brute is a a simple and lightweight Entity Component System library for writing games with Clojure. The aim of this project was to use basic Clojure building blocks to form an Entity

Re: [ANN] brute 0.1.1 - A lightweight Entity Component System library for writing games

2014-04-14 Thread Mark Mandel
Great! Would love to have contributions! Mark On Tue, Apr 15, 2014 at 9:45 AM, Reid McKenzie rmckenzi...@gmail.comwrote: Cool project! I just hammered out my own CES in the last few weeks for a private project, I'll be interested to see how they compare and whether there's anything I can add

Re: [ANN] - purnam 0.4.3 released - Javascript Language Extensions for Clojurescript

2014-03-02 Thread Mark Mandel
Awesome. Glad to have this complete. I had some pending pull requests I wanted to drop in. Mark On Sun, Mar 2, 2014 at 8:22 AM, zcaudate z...@caudate.me wrote: I'm also looking for collaborators as it is getting to a stage where I'm having trouble managing it by myself. if anybody is

Re: core.async over websocket + cljs + clojure

2014-01-23 Thread Mark Mandel
I'm sure Plugh probably does similar things, but my learning clojure app has my own custom RPC mechanism over websockets that I wrote (because it was fun) that is all based around core.async and uses edn to transfer data back and forth. https://github.com/markmandel/chaperone Server Side:

Re: go kill infinite loop

2014-01-14 Thread Mark Mandel
On Wed, Jan 15, 2014 at 12:39 AM, Alex Miller a...@puredanger.com wrote: 2) Be careful using when using falsey tests like when or if - these will stop on nil but will also stop on false coming through the channel. Might be ok here, but it's something to be aware of. Oooh! that is a really

Re: How to handle configuration in Clojure?

2014-01-13 Thread Mark Mandel
+1 for environ as well. I also have combined that with the Stuart Sierra reloaded workflow (started it before Components, don't know if I want to switch). http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded Finding it a great fit, as it's easy to switch out environ variables in

Re: go kill infinite loop

2014-01-13 Thread Mark Mandel
I found this macro I wrote really useful for exactly this type of thing: https://github.com/markmandel/while-let As long as you are happy for your go loop to stop when nil comes through (i.e. when it gets closed). (go (while-let [data (! (channel))] (println data))) Mark On

Re: How do I serve clojure pages with nginx

2013-12-28 Thread Mark Mandel
I have found in the past I needed to reload-configuration of initctl. Maybe try that? Mark Sent from my mobile doohickey On 29/12/2013 9:14 AM, James Reeves ja...@booleanknot.com wrote: The script I included in my example assumes that there is a deploy user that owns the /deploy directory

Re: [ClojureScript] ANN: ClojureScript 0.0-2075

2013-11-24 Thread Mark Mandel
I just upgraded from 0.0-2030 And now when I run lein-cljsbuild, I keep getting the error: Compiling resources/public/js/main.js from [src-cljs]... Compiling resources/public/js/main.js failed. java.lang.AssertionError: Assert failed: :output-dir

Re: How to interrupt execution and open a debugger/REPL?

2013-11-12 Thread Mark Mandel
Gah! Thank you, thank you, thank you. That was one thing I was dying for in Clojure (coming from Pry in Ruby). That just made my day. Mark On Wed, Nov 13, 2013 at 1:56 PM, Jason Gilman ja...@element84.com wrote: The debug-repl library (https://github.com/georgejahad/debug-repl) is what you

Re: Testing with Angular.js, Clojurescript and Purnam - Code and Part 1

2013-11-05 Thread Mark Mandel
This is actually really relevant to me - I'm *just* about to start writing angular tests with purnam.test.angular. Thanks! Mark On Tue, Nov 5, 2013 at 9:56 PM, Chris Zheng z...@caudate.me wrote: I'm sorry ;-) but I've written that many clojure macros for this library that i think the post

Re: clojars.org image for latest version of a project

2013-10-10 Thread Mark Mandel
Thanks for that recommendation! I was thinking about this exactly this issue. Mark On Fri, Oct 11, 2013 at 10:19 AM, Karsten Schmidt i...@toxi.co.uk wrote: On 11 October 2013 00:01, Adam Clements adam.cleme...@gmail.com wrote: I find it ridiculously useful not having to go to my browser to

Separate Leiningen Profile for ClojureScript compilation?

2013-09-29 Thread Mark Mandel
Just wondering if this is a common thing or not, or if it was just me. For the full project file in question, is here: https://github.com/markmandel/chaperone/blob/master/project.clj#L29-L46 I found that when trying to compile my clojurescript with lein-cljsbuild, it would error out, as the

Re: [ANN] Introducing VDD Core - Visualization Driven Development in Clojure

2013-09-10 Thread Mark Mandel
Thanks for posting this - at first glance it looks very cool :) See you at Strangeloop - I've been looking forward to this talk :) Mark On Wed, Sep 11, 2013 at 10:13 AM, Jason Gilman jason.gil...@gmail.comwrote: I've just released a new open source tool, VDD Core, to help enable

Best way to pass through named arguments (destructured map)?

2013-09-09 Thread Mark Mandel
Hey all, Relatively new to Clojure, and I'm wondering if there is a better/simpler way to handle what I'm doing. I'm working with the Elastisch library for interacting with ElasticSearch, and it has the following function:

Re: Best way to pass through named arguments (destructured map)?

2013-09-09 Thread Mark Mandel
Thanks for the help all, that gave me some things to think about. Cheers, Mark On Mon, Sep 9, 2013 at 9:22 PM, Meikel Brandmeyer (kotarak) m...@kotka.dewrote: Hi, Am Montag, 9. September 2013 12:31:30 UTC+2 schrieb Alex Fowler: I would also add that in case, if you *need* to destructure

Re: Best way to pass through named arguments (destructured map)?

2013-09-09 Thread Mark Mandel
, Sep 10, 2013 at 8:57 AM, Mark Mandel mark.man...@gmail.com wrote: Thanks for the help all, that gave me some things to think about. Cheers, Mark On Mon, Sep 9, 2013 at 9:22 PM, Meikel Brandmeyer (kotarak) m...@kotka.dewrote: Hi, Am Montag, 9. September 2013 12:31:30 UTC+2 schrieb Alex

Re: Best way to pass through named arguments (destructured map)?

2013-09-09 Thread Mark Mandel
go with Meikel's solution, though. It seems the nicest. --Leif On Monday, September 9, 2013 7:02:43 PM UTC-4, Mark Mandel wrote: The solution I've actually gone with is: (apply esd/search es-index mapping-type (- options seq flatten)) Seems the most consise and shows the intent of what

Re: Interest in a commercial IDE for Clojure?

2013-08-24 Thread Mark Mandel
I'd be keen on this too - but probably more as a plugin than a standalone IDE (a'la WebStorm, RubyMine, etc). I already have a licence for IntelliJ, so would be wanting to have a better plugin than La Clojure. I just started trying to work out my workflow with IntelliJ and Clojure, and found it

Re: Current state of the art in Web deployment?

2013-08-17 Thread Mark Mandel
On Sun, Aug 18, 2013 at 6:52 AM, John Jacobsen eigenhom...@gmail.comwrote: After some prototyping and development, we are now getting to the stage where lein run and a Jetty server running from -main aren't going to cut it. At the risk of asking a dumb question, but being quite new to