Re: 4Clojure exersice question

2012-01-13 Thread markus
Computers don't accuse, they process data. And they are not (yet?) capable of reading a user's intentions. On 11 Jan., 19:02, Cedric Greevey wrote: > It seems dubious to me that it accuses users of cheating when they > clearly had no intent to cheat. Is this intended behavior of 4Clojure > or a b

Re: Clojure as first language

2020-10-02 Thread markus...@gmail.com
Concering your quote "my interest in programming is not limited to data science/ML...I am potentially interested in building apps": my repository https://github.com/kloimhardt/bb-web has a set of examples, starting with a 10 line html file (directly containing Clojure code to be edited, no com

Re: Announcing ClojureBridge Bangalore (3rd edition)

2021-02-19 Thread markus...@gmail.com
Dear Sezal, would you have a look at my project https://kloimhardt.github.io/cljtiles.html ? It is intended for Clojure beginners, one solves pzzles without using the keyboard. It has not been used in practice though. kind regards Markus sezal...@gmail.com schrieb am Donnerstag, 18. Februar

Re: Announcing ClojureBridge Bangalore (3rd edition)

2021-02-20 Thread markus...@gmail.com
cool, the code repository is https://github.com/kloimhardt/clj-tiles sezal...@gmail.com schrieb am Samstag, 20. Februar 2021 um 03:38:22 UTC+1: > Thanks Markus, > We are discussing the content for the workshop this Monday. We will go > through your project for this. > > -Sezal &

How do I use spec and deftype together?

2018-07-04 Thread markus . agwin
The same question was asked on https://clojurians-log.clojureverse.org/clojure-spec/2018-01-19 but I did not find an answer. An example, where defrecord works fine but deftype fails: (do (require '[clojure.spec.alpha :as s]) (defprotocol Foo (foo [this])) (defrecord Bar [bar] Foo (foo [this

Re: How do I use spec and deftype together?

2018-07-04 Thread markus . agwin
rks because > defrecord implements map. > > On Wednesday, July 4, 2018 at 12:47:26 PM UTC+2, markus...@gmail.com > wrote: >> >> The same question was asked on >> https://clojurians-log.clojureverse.org/clojure-spec/2018-01-19 >> but I did not find an answer. &

Re: How do I use spec and deftype together?

2018-07-04 Thread markus . agwin
So is it best practice to implement map in the deftype to make it spec-able? Are there examples somewhere that show how to do this in a canonical way? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Re: How do I use spec and deftype together?

2018-07-05 Thread markus . agwin
Just in case someone stumbles over this post, I found a simple solution which works for me: (do (require '[clojure.spec.alpha :as s]) (import '(clojure.lang ISeq)) (defprotocol Foo (foo [this])) (defrecord Bar [bar] Foo (foo [this] (.bar this))) (deftype Baz [bar] Foo (foo [this]

s/valid returns false, but s/explain prints "Success!"

2019-09-26 Thread Markus Agwin
Consider the following cloure.spec-alpha2 example: (def v [0]) (s/def ::thevec vector?) (s/def ::data (s/coll-of number? :kind ::thevec)) (s/valid? ::data v) ;;=> returns false, my expectation is that it should return true (s/explain ::data v) ;;=> prints "Success!", which inconsistent to s/va

Re: s/valid returns false, but s/explain prints "Success!"

2019-09-26 Thread Markus Agwin
PM UTC+2, Alex Miller wrote: > > > > On Thursday, September 26, 2019 at 7:41:20 AM UTC-5, Markus Agwin wrote: >> >> Consider the following cloure.spec-alpha2 example: >> >> (def v [0]) >> (s/def ::thevec vector?) >> (s/def ::data (s/coll-of numb

[GSoC Idea] Distributed Load Testing Tool in Clojure

2016-02-19 Thread Markus Hjort
*Knowledge prerequisites:* Clojure, performance tuning, Cloud computing *Mentor:* Markus Hjort -- 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

Comparing classes in case statement

2014-02-27 Thread Markus Bader
Hello, if I am not too dumb, it seems that comparing for classes does not work in case statements, like: => (class '(1 2 3)) clojure.lang.PersistentList => (case (class '(1 2 3)) clojure.lang.PersistentList :amazing :so-sad) :so-sad I do not need a workaround - that is already

Re: instaparse (1.2.4) perfomance issue a long string to parse

2013-12-18 Thread Markus Bader
Hi, I am Markus, also working on this project. Thanks for your reply. The errors on the grammar resulted from the reducing of the original one - just to give a minimal example. The original one featured the issues you mentioned in addition to other logial operators like nand, xor, equivalent

Re: Lazy sequence question

2011-11-30 Thread Kasper Galschiot Markus
Is conf what you're looking for? http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/cons ~Kasper On 11/30/11 2:27 PM, Paweł Łoziński wrote: Hi everybody, I'd like to create a lazy sequence which has first element x and all the rest from another lazy sequence. I couldn't find