Re: Simulations in Clojure/Clojurescript

2018-01-10 Thread Michael Nardell
On Wednesday, January 10, 2018 at 4:56:24 PM UTC-8, Christopher Small wrote: You may be right about an object-oriented approach being the most natural > here. But, I'd encourage you to keep an open mind. Clojure has this > particular way of encouraging you to and rewarding you for describing you

Re: Simulations in Clojure/Clojurescript

2018-01-10 Thread Christopher Small
A Wize One once said > Closures are the poor man's objects It's easy to build "object-like" things in clojure. Just create a map pointing to whatever you like, including stateful things, like atoms. Then write functions which take that map and do stuff with it. Clojure's Records and Protocols

Re: Officially support Vert.x

2018-01-10 Thread Matching Socks
How do the aims of this undertaking compare with Pedestal? http://pedestal.io/ says, "Pedestal supports Tomcat, Jetty, Immutant (with Undertow), Vert.x, ..." -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: ANN: Pink 0.4.0 / Score 0.4.0

2018-01-10 Thread Steven Yi
Thanks for the kind words, I hope you enjoy it! On Wednesday, January 10, 2018 at 12:27:35 PM UTC-5, Shaun Gilchrist wrote: > > This looks like it will be a LOT of fun to play with. Also there is > nothing like waking up and finding in your inbox a project you only wished > you had the time to w

Simulations in Clojure/Clojurescript

2018-01-10 Thread Michael Nardell
Greetings :: I am new to Clojure and have not really gotten my feet wet with Clojurescript yet. The advice I always give someone when leaning programming or a new language is to pick a project that they are interested in and dive in. For me, that project would be creating educational simulation

Re: Port graphs: What would Rich Hickey do?

2018-01-10 Thread Ben Kovitz
On Monday, January 8, 2018 at 12:14:59 AM UTC-5, James Gatannah wrote: > FWIW, I think https://leanpub.com/specter looks extremely interesting. > (Or it may be awful...I haven't had a chance to read it yet, much less work > through the exercises). > Actually, I worked through that ebook last

Re: ANN: Pink 0.4.0 / Score 0.4.0

2018-01-10 Thread Shaun Gilchrist
This looks like it will be a LOT of fun to play with. Also there is nothing like waking up and finding in your inbox a project you only wished you had the time to work on but would much rather just use! Thank you! On Mon, Jan 8, 2018 at 1:41 PM, Steven Yi wrote: > Hi All, > > I'd like to announc

Re: Officially support Vert.x

2018-01-10 Thread Timothy Baldridge
A few other points of design: 1) Move the requires into the `ns` form: (ns example.simple-http-server (:require [io.vertx.clojure.core.core :as core] [io.vertex.lang.clojure.vertx :as vertx])) 2) If you make sure that your functions always return the first argument passed to th

Re: Officially support Vert.x

2018-01-10 Thread Feuer Au
Thanks a lot we modify the hello code to following: (ns examples.simple-http-server) (require '[io.vertx.clojure.core.core :as core] '[io.vertx.lang.clojure.vertx :as vertx] '[io.vertx.lang.clojure.http-server :as server] '[io.vertx.lang.clojure.http-server-request :as request] '[io.vertx.la

Re: Officially support Vert.x

2018-01-10 Thread Gary Verhaegen
It’s not clear what the "do" is supposed to mean in those defns (unless there’s some deep dark magic going on, they are currently not doing anything and you can just remove them), and you very likely want "let" instead of "def" for the local variables. def in Clojure does not follow lexical sco

Re: Officially support Vert.x

2018-01-10 Thread Feuer Au
And here is the simple example "Hello from Vert.x!" like other languages on the Vert.x official frontpage: (ns examples.simple-http-server) (require '[io.vertx.clojure.core.core :as core] '[io.vertx.lang.clojure.vertx :as vertx] '[io.vertx.lang.clojure.http-server :as server] '[io.vertx.lang

Re: Officially support Vert.x

2018-01-10 Thread Feuer Au
Hi Toby: We just complete most parts of vertx-lang-clojure, here is the project address: https://github.com/chengenzhao/vertx-lang-clojure all reviews and suggestions and issues and PRs are welcomed Cheers On Friday, December 29, 2017 at 8:50:53 PM UTC+8, Toby Crawley wrote: > > The short answe