Re: [ANN] Clojure 1.10.0-beta1

2018-10-08 Thread Yehonathan Sharvit
This is very appreciated that it is now easy (and not only simple :) ) to test new Clojure versions with Clojure CLI: clj -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.10.0-beta1"}}}' On Saturday, 6 October 2018 15:19:07 UTC+3, Alex Miller wrote: > > Thanks for testing! > > On

Re: GSoC 2017 - KLIPSE

2017-03-07 Thread Yehonathan Sharvit
Hi Maitreya, I'm Yehonathan - the author of Klipse. I'd love to hear your ideas around Klipse and to be your mentor for GSoC 2017. You can reach me at: vie...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: fdef for defmulti?

2017-02-11 Thread Yehonathan Sharvit
Any update about defmulti and fdef? On Friday, 19 August 2016 12:42:27 UTC+2, Patrik Sundberg wrote: > > What I meant was that you can spec the defmulti, and code runs just fine, > but you can't instrument it. As then you end up with the instrumentation > wrapper not being a multimethod, so

The 1st interactive om.next tutorial

2017-01-03 Thread Yehonathan Sharvit
http://read.klipse.tech/om-next-interactive-tutorial/ -- 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

Wrapping a string as-is

2017-01-01 Thread Yehonathan Sharvit
I’d like to write a function `foo` that receives a string `s` and returns a list with the value of `s` without the quotes as a single element. A possible implementation, I wrote: ``` (defn foo [s] (list (symbol s))) (def my-string "[1 2]") (foo my-string) ; ([1 2]) ``` But it feels weird to me to

Re: [ANN] An exploration of Hash Array Mapped Tries

2016-12-06 Thread Yehonathan Sharvit
Looks good stuff. Would be very nice to port to cljs. Then you could have a very compelling demo in the browser. On Tuesday, 6 December 2016 23:32:29 UTC+2, Ambrose Bonnaire-Sergeant wrote: > > Link: https://github.com/frenchy64/optimized-kw-maps > > On Tue, Dec 6, 2016 at 4:16 PM, Ambrose

Re: is it always safe to read a string and converts it back to a string?

2016-11-25 Thread Yehonathan Sharvit
Thanks Mike. Fixed On Fri, 25 Nov 2016 at 07:58 Mike Rodriguez wrote: > Just FYI. The code part under "Tabs are printed as \t:" has a typo and > shows a new line instead of tab. > > Otherwise nice work. > > -- > You received this message because you are subscribed to the

Re: is it always safe to read a string and converts it back to a string?

2016-11-24 Thread Yehonathan Sharvit
ovide your > own printers for either built-in types or custom records or types by > extending things like print-method (human) or print-dup (data). > > If anyone wanted to write a mini Clojure book, this would be a killer > topic. > > Alex > > On Sunday, November 20, 201

Re: is it always safe to read a string and converts it back to a string?

2016-11-20 Thread Yehonathan Sharvit
Alex, what is the exact difference between pr-str and str (when passing a single arg)? On Sun, 20 Nov 2016 at 19:40 Alex Miller wrote: > pr-str is the companion to read-string > > Although, there are many many cases where this round trip will not result > in the same input.

is it always safe to read a string and converts it back to a string?

2016-11-20 Thread Yehonathan Sharvit
Let s be an s-expression in clojure. Is the following assertion always true? (= (str (read-string s)) s) -- 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

core.match interactive tutorial - with KLIPSE

2016-10-25 Thread Yehonathan Sharvit
http://blog.klipse.tech/clojure/2016/10/25/core-match.html -- 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

Re: Clojure advent calendar: call for contributions

2016-10-15 Thread Yehonathan Sharvit
I'm in also. I'd love to present this amazing lib https://github.com/ztellman/automat On Saturday, 15 October 2016 14:26:47 UTC+3, Borkdude wrote: > > I posted this call for contributors to Reddit. Maybe there are many people > like me there, who don't read this group regularly. > > Anyway, it

[ANN] codox-klipse-theme 0.0.1- Clojure[script] automatically generated live documentation

2016-10-10 Thread Yehonathan Sharvit
https://github.com/viebel/codox-klipse-theme codox is a great tool for generating API documentation from Clojure or ClojureScript source code. With the klipse theme for codox, you can make your codox documentation live and interactive powered by the KLIPSE

Re: [ANN] zprint, lein-zprint Pretty print your code and data [ALPHA]

2016-10-07 Thread Yehonathan Sharvit
lein-zprint works fine with cljs files. Taking it offline for further details On Fri, 7 Oct 2016 at 17:12 Kim Kinnear wrote: > > But for that I need zprint to be ported to clojurescript. > > Could you do it? > > > A Clojurescript port is certainly something I've been

Re: [ANN] zprint, lein-zprint Pretty print your code and data [ALPHA]

2016-10-06 Thread Yehonathan Sharvit
Looks very nice! I'd like to integrate zprint into KLIPSE . But for that I need zprint to be ported to clojurescript. Could you do it? On Friday, 7 October 2016 05:39:39 UTC+3, Kim Kinnear wrote: > > > I'm pleased to announce the ALPHA release of a new Clojure

Re: Recursive clojure.spec doesn't work

2016-10-06 Thread Yehonathan Sharvit
This recursive definition also works - the difference is that the inner :html/element is not wrapped in s/spec: (s/def :html/element (s/cat :tag keyword? :attrs map? :children (s/* (s/alt :element :html/element :string string? I'm a bit confused

Parsing with derivatives - Elegant matching of regular languages in clojure

2016-10-05 Thread Yehonathan Sharvit
This article http://blog.klipse.tech/clojure/2016/10/02/parsing-with-derivatives-regular.html is an interactive version of the first part of this paper: Parsive with derivatives - a Functional Pearl - the part that shows how to implement a

Interesting work by Mark Engleberg using regular expressions to solve (hard) programming riddles

2016-09-30 Thread Yehonathan Sharvit
http://blog.klipse.tech/clojure/2016/09/30/automata-segments-1.html -- 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

KLIPSE (repl + plugin) just hit the 400 stars on github!

2016-09-12 Thread Yehonathan Sharvit
KLIPSE (https://github.com/viebel/klipse) is both clojure[script] web repl and a plugin. The repl is at: http://app.klipse.tech The klipse plugin is a javascript tag that transforms static code snippets of an html page into live and interactive snippets: 1. Live: The code is executed in your

Re: Efficient comparison of persistent structures

2016-09-09 Thread Yehonathan Sharvit
Live code snippets that demonstrates the performance issues: app.klipse.tech?cljs_in=...

[ANN Y combinator] Lambda Calculus: Interactive Y combinator running in the browser

2016-08-09 Thread Yehonathan Sharvit
http://blog.klipse.tech/lambda/2016/08/07/pure-y-combinator-clojure.html This article is an attempt to share in an interactive way, one of the most aesthetic idea of computer science: the Y combinator. The Y combinator

Re: ANN: Klipse for Kids

2016-08-03 Thread Yehonathan Sharvit
Mars0i, as I see it interactivity is the key for effective learning - both for kids and adults. This is the whole point of Klipse - https://github.com/viebel/klipse. By the way, do you have any suggestion about how to make the errors less daunting? On Tuesday, 2 August 2016 20:52:30 UTC+3,

Re: ANN: Klipse for Kids

2016-08-03 Thread Yehonathan Sharvit
Thanks JvJ. I've fixed it. On Tuesday, 2 August 2016 22:47:41 UTC+3, JvJ wrote: > > Pretty good. However: In chapter 1, you might want to clear up the fact > that 7*8 is 7 x 8 early on. Kids may not be familiar with the * as a > multiplication symbol. I realize it's explained later, but it's

ANN: Klipse for Kids

2016-08-01 Thread Yehonathan Sharvit
Klipse for Kids - a fun and interactive way to teach clojure to your kids. Live at http://kids.klipse.tech/ (A note to the parents: This tutorial's goal is to teach the kids the foundations of functional programming, in a fun and interactive way. It is mostly based on Clojure and LISP.)

ANN: Lambda-Calculus with Clojure & Klipse: Boolean Algebra

2016-07-28 Thread Yehonathan Sharvit
http://blog.klipse.tech/lambda/2016/07/24/lambda-calculus-2.html The purpose of this article is to show how we represent boolean values in lambda calculus. And to show the code of the basic boolean operations: negation, conjunction and disjunction a.k.a not,and and or. -- You received this

[ANN] Klipse 0.2.0 - a simple and elegant online cljs compiler and evaluator.

2016-03-28 Thread Yehonathan Sharvit
[ANN] Klipse 0.2.0 - a simple and elegant online cljs compiler and evaluator. The latest additions: 1. mobile support 2. `js_only` and `eval_only` mode 3. share your KLIPSE: embed your code in `cljs_in` url parameter All the details here:

[ANN] Klipse 0.0.1 - a simple and elegant online cljs compiler and evaluator

2016-03-19 Thread Yehonathan Sharvit
We are happy to bring to the cljs community KLIPSE - a simple and elegant online cljs compiler and evaluator. You can give it a try here

Re: [ANN] Inlein 0.1.0

2016-03-19 Thread Yehonathan Sharvit
It would be nice to allow reload of the script from the REPL (with a special command). Another thing, is there a way to package the script and its dependencies into an executable (like lein bin does)? On Sunday, 13 March 2016 16:09:22 UTC+2, Jean Niklas L'orange wrote: > > Hi all Clojurians, >

Re: [ANN] Inlein 0.1.0

2016-03-14 Thread Yehonathan Sharvit
Really awesonme. Is there a way to use the repl while developing a script with inlein? On Monday, 14 March 2016 21:03:10 UTC+2, Erik Assum wrote: > > With regard to Planck, I don't think Inlein will be useful, since you'd > have to wait for the jvm startup. > > What Planck, in my opinion, is

Re: No recent activity for core.async?

2015-10-07 Thread Yehonathan Sharvit
any important new featres on perspective? -- 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

Re: No recent activity for core.async?

2015-10-06 Thread Yehonathan Sharvit
@Alex When is the next version of core.async expected? On Saturday, 3 October 2015 03:50:14 UTC+3, Daniel Compton wrote: > > If core.async is going to get out of alpha in the next version, does it > also make sense to rationalize the namespaces so that both Clojure and > ClojureScript use

Re: [ANN] Introducing Yagni, a Leiningen plugin for finding unused code

2015-06-30 Thread Yehonathan Sharvit
Yagni ignore `cljs` files. I have opened an issue here: https://github.com/venantius/yagni/issues/26 On Thu, Jun 25, 2015 at 1:53 AM, W. David Jarvis venant...@gmail.com wrote: Indeed. I'd argue it's better not to have unused code in the codebase in the first place, regardless of what the

Re: [ANN] Introducing Yagni, a Leiningen plugin for finding unused code

2015-06-24 Thread Yehonathan Sharvit
Does yagni work with cljs projects? On Wednesday, 24 June 2015 02:27:46 UTC+3, Andrew Oberstar wrote: Haven't tried it yet, but looks good. Nice work! Andrew Oberstar On Tue, Jun 23, 2015 at 12:39 PM W. David Jarvis vena...@gmail.com javascript: wrote: Hello everyone. I'm happy to

Re: How to create a core.async channel that will drop messages if no consumer is currently reading from the channel?

2015-01-07 Thread Yehonathan Sharvit
, or use mult. With mult, use tap/untap to control reading. Items sent to mult are dropped if there are no taps. Jozef On Mon, Dec 29, 2014 at 12:38 PM, Yehonathan Sharvit vie...@gmail.com javascript: wrote: Hello, I would like to create a channel that will drop messages if no consumer

Re: How to create a core.async channel that will drop messages if no consumer is currently reading from the channel?

2015-01-06 Thread Yehonathan Sharvit
tap/untap to control reading. Items sent to mult are dropped if there are no taps. Jozef On Mon, Dec 29, 2014 at 12:38 PM, Yehonathan Sharvit vie...@gmail.com wrote: Hello, I would like to create a channel that will drop messages if no consumer is currently reading from the channel

How to create a core.async channel that will drop messages if no consumer is currently reading from the channel?

2014-12-29 Thread Yehonathan Sharvit
Hello, I would like to create a channel that will drop messages if no consumer is currently reading from the channel. Something like a channel with a dropping-buffer of size 0. The problem is that the API doesn't allow to create a dropping-buffer of size 0. With the following code snippet,

Re: Using ClojureScript in Production?

2014-12-29 Thread Yehonathan Sharvit
I know that CircleCi (circleci.com) uses clojurescript. But it's not my company :) On Monday, 29 December 2014 19:03:57 UTC+2, David Nolen wrote: If you or your team are using ClojureScript in production add an entry here:

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2496, cljs.test - a clojure.test port

2014-12-24 Thread Yehonathan Sharvit
PM UTC-8, Yehonathan Sharvit wrote: What is the gap between clojure.test and cljs.test? For exmaple: is the `are` macro implemented in cljs.test? On Wednesday, 17 December 2014 23:54:09 UTC+2, David Nolen wrote: ClojureScript, the Clojure compiler that emits JavaScript source code

Re: ANN: ClojureScript 0.0-2496, cljs.test - a clojure.test port

2014-12-23 Thread Yehonathan Sharvit
What is the gap between clojure.test and cljs.test? For exmaple: is the `are` macro implemented in cljs.test? On Wednesday, 17 December 2014 23:54:09 UTC+2, David Nolen wrote: ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code:

Re: ANN: ClojureScript 0.0-2496, cljs.test - a clojure.test port

2014-12-21 Thread Yehonathan Sharvit
Now that var is implemented. Could we expect the support of private functions in cljs? On Wednesday, 17 December 2014 23:54:09 UTC+2, David Nolen wrote: ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript

Re: ANN: core.match 0.3.0-alpha1, enhancements breaking changes

2014-12-13 Thread Yehonathan Sharvit
On Saturday, 13 December 2014 15:14:37 UTC+2, David Nolen wrote: Yet another quick release - core.match 0.3.0-alpha4. The only change is fixing a regression around the test sharing of literal patterns. On Fri, Dec 12, 2014 at 12:54 PM, David Nolen dnolen.li...@gmail.com wrote: core.match,

Is there a tool to display all the references to a symbol in a project?

2014-12-03 Thread Yehonathan Sharvit
Is there a tool to display all the references to a symbol in a project? Preferably without using emacs. Thanks. -- 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

Re: Proof of concept: ClojureScript - Apple's Javascript for Automation.

2014-11-04 Thread Yehonathan Sharvit
Could you please elaborate a bit about what you are trying to achieve? On Thursday, 30 October 2014 02:16:55 UTC+2, Daniel Szmulewicz wrote: This is a proof of concept to show how ClojureScript can be used in the context of Apple's JavaScript for Automation that ships with Yosemite.

Re: [ANN] Amazonica: Clojure client for the entire AWS api

2014-10-21 Thread Yehonathan Sharvit
Do you plan to have a cljs version of America It would ne nice if you could support s3 api. On Monday, 25 March 2013 23:51:42 UTC+2, Michael Cohen wrote: Curious to hear opinions on this: https://github.com/mcohen01/amazonica -- You received this message because you are subscribed to

Re: 2014 State of Clojure ClojureScript Survey ends Oct 17th

2014-10-19 Thread Yehonathan Sharvit
On Tuesday, 14 October 2014 16:21:13 UTC+3, Alex Miller wrote: Just a reminder that this Friday is the last day to complete the 2014 State of Clojure ClojureScript surveys: http://blog.cognitect.com/blog/2014/10/3/2014-state-of-clojure-clojurescript-survey So far 1110 people have

Macro that modifies the body of a function

2014-08-31 Thread Yehonathan Sharvit
I tried to write a macro that wraps the code a function with a try/catch statement. It works fine for regular functions but it doesn't work for multimethods. I understand the reason, but I don't know how to fix it. Here is my code: (defmacro deftry [name args body]

Re: Macro that modifies the body of a function

2014-08-31 Thread Yehonathan Sharvit
caught: e#) (let [[name definitions] definition] `(defn ~name ~@(map (fn [[args body]] `(~args (try ~@body (catch Error e# (println err caught) definitions) On Sunday, August 31, 2014 8:26:12 PM UTC+10, Yehonathan Sharvit

Re: [ANN] core.cache 0.6.4

2014-08-05 Thread Yehonathan Sharvit
Does core.cache supports Clojurescript? On Wednesday, 6 August 2014 06:48:31 UTC+3, Ambrose Bonnaire-Sergeant wrote: Hi, core.cache 0.6.4 is released with various bug fixes and improvements. [org.clojure/core.cache 0.6.4] Readme https://github.com/clojure/core.cache Changelog

core.async and memoize

2014-07-12 Thread Yehonathan Sharvit
I'd like to use memoize for a function that uses core.async ! e.g *(defn foo [x] (go (! (timeout 2000)) (* 2 x)))* (In a real-life, it could be useful in order to cache the results of server calls) I was able to achieve that by writing a core.async version of memoize (almost the same

Re: [ClojureScript] Re: ClojureScript Clojure 1.6.0

2014-07-06 Thread Yehonathan Sharvit
Compiler - something for core.async to address. Thanks for the report! David On Tue, Jun 10, 2014 at 12:55 AM, Yehonathan Sharvit vie...@gmail.com wrote: I have compilation warnings related to core.async. Here is the log: Compiling resources/public/js/main.js from [src/cljs]... Jun 10

How to take a subsequence out of an infinite lazy sequence?

2014-06-15 Thread Yehonathan Sharvit
I have a infinite lazy sequence and I would like to create a lazy sub sequence with all the elements whose indices are between 100 and 1000. -- 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

Re: ClojureScript Clojure 1.6.0

2014-06-09 Thread Yehonathan Sharvit
I have compilation warnings related to core.async. Here is the log: Compiling resources/public/js/main.js from [src/cljs]... Jun 10, 2014 7:49:49 AM com.google.javascript.jscomp.LoggerErrorManager println WARNING: /Users/viebel/libs/klozzer/target/cljsbuild-compiler-0/cljs/core/async.js:127:

Re: finding value nearest x

2014-03-05 Thread Yehonathan Sharvit
In the sorted-set solution, you forgot to handle the case where all the values in the sorted-set are greater than 136... On Saturday, 25 September 2010 17:55:33 UTC+2, Chouser wrote: On Sat, Sep 25, 2010 at 10:44 AM, Nicolas Oury nicola...@gmail.comjavascript: wrote: On Sat, Sep 25, 2010