clojure.algo.monads - no tests for monadic laws

2021-03-30 Thread Rostislav Svoboda
Hi, the test_monads.clj contains test cases for some arbitrary values but no test cases against monadic laws. I wonder why is it so? It's not really necessary to have them (everything works), but it won't hurt to have them around, I'd say. At least for learning purposes. What do you think? Thanks

Re: symbol is not a symbol in (def (symbol "x") ...) ???

2020-10-05 Thread Rostislav Svoboda
re.core/symbol "foo")) > user=> (defmacro m2 [v] `(def ~(symbol v))) > #'user/m2 > user=> (macroexpand '(m2 "foo")) > (def foo) > > The trick here is that you need to convert v into a symbol when the macro > is expanded, not at runtime. > > On Oct 2,

symbol is not a symbol in (def (symbol "x") ...) ???

2020-10-02 Thread Rostislav Svoboda
I have a problem with `def` in macros. I'd like to create a bunch of following definitions: (def foo "FOO") (def bar "BAR") (def baz "BAZ") So I wrote a macro: user=> (defmacro def-stuff [v] `(def (symbol ~v) (clojure.string/upper-case ~v))) #'user/def-stuff And I'd like to do map this macro

Re: Building klipse demands too much

2020-06-27 Thread Rostislav Svoboda
> There are some instructions in the > https://github.com/viebel/klipse/blob/master/contributing.md > also about deploying to clojars (at the bottom): > lein with-profile deploy deploy clojars > but "deploy deploy" is really written twice there so I'm not sure if it's correct or not. The >

Re: Building klipse demands too much

2020-06-27 Thread Rostislav Svoboda
e it's meant to be compiled into a > js file, rather than a local maven dependency. > > On Sat, 27 Jun 2020 at 21:52, Rostislav Svoboda < > rostislav.svob...@gmail.com> wrote: > >> I'm trying to build klipse. I launched >> lein install >> more than 3

Building klipse demands too much

2020-06-27 Thread Rostislav Svoboda
I'm trying to build klipse. I launched lein install more than 3.5 hours ago. It's still running and the target/klipse-7.9.7.jar is >110GB (gigabytes) large and increasing... :( Is that normal? Does anybody know what the space and time requirements are? I issued a ticket

Re: Announcement: clj-paper-print Clojure library for easy printing on actual paper.

2020-06-14 Thread Rostislav Svoboda
> I just wanted to announce the release of my project: clj-paper-print Could you put a picture (i.e. a scan) of a document printed using your library in the README.md? So that people A) actually see what exactly to expect from your library and B) better remember your work. And just to have a

Re: WebApp authentication and authorization - up-to-date information?

2020-03-21 Thread Rostislav Svoboda
> Every year or two I go looking for something like this, or at least a guide or tutorial. And every time, I encounter at least one of the following: > - A key element of the guide is outdated or depends on a library which is outdated (and where in some cases there is a reference made that

WebApp authentication and authorization - up-to-date information?

2020-03-21 Thread Rostislav Svoboda
I have difficulties finding up-to-date information, tutorials, articles, blog posts etc. concerning WebApp authentication and authorization. The most "recent" useful articles I found are from 2015 and 2014: https://rundis.github.io/blog/2015/buddy_auth_part2.html

Re: Online Clojure COVID-19 Hackathon

2020-03-17 Thread Rostislav Svoboda
> > We are organizing an online Clojure hackathon for studying COVID-19 data. > > I think I'll a bit of a head start :) https://github.com/Bost/corona_cases. PRs appreciated. FYI my project consumes data from the https://github.com/ExpDev07/co ronavirus-tracker-api provided by this web service

Re: Online Clojure COVID-19 Hackathon

2020-03-17 Thread Rostislav Svoboda
> We are organizing an online Clojure hackathon for studying COVID-19 data. I think I'll a bit of a head start :) https://github.com/Bost/corona_cases Anyway, PRs very much appreciated. Bost Coronavirus disease 2019 (COVID-19) information on Telegram Messenger

Re: [ANN] nREPL 0.6

2019-02-06 Thread Rostislav Svoboda
> I’ve done 0 work on this release Out of Earth's population 7,682,276,358 there's not more than 10K aof people being capable of doing the "0 work" on this release. So: One big and great: Thank You All Guys! Bost PS: On the other hand: NOBODY, not even the comrade Stalin is so great, not fit in

Re: (gen/sample (s/gen #{'nil})): Couldn't satisfy such-that predicate

2019-01-31 Thread Rostislav Svoboda
Hi Alex, > quote is a special form that returns the value you pass it, without evaluation Aah! "without evaluation" is the key! Now it makes sense. Yea you mentioned it before already, but it takes twice the effort to undo and re-comprehend an acquired misconception. Thank you so much! Would

Re: (gen/sample (s/gen #{'nil})): Couldn't satisfy such-that predicate

2019-01-30 Thread Rostislav Svoboda
Hi Alex, > You can see the special cases of nil, false, and true in the LispReader here > if you're curious: > https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/LispReader.java#L393-L413 I think it's not the special case of nil, false and true what's causing me headache. I'm

Re: (gen/sample (s/gen #{'nil})): Couldn't satisfy such-that predicate

2019-01-29 Thread Rostislav Svoboda
Hi Alex, > Sets are treated as predicate functions which are valid when they produce a > logically true value. So then my question boils down to: Why is then (boolean (quote nil)) => false and (boolean (quote anything)) => true? And this boils down to: Why a type of quoted symbol (type

(gen/sample (s/gen #{'nil})): Couldn't satisfy such-that predicate

2019-01-29 Thread Rostislav Svoboda
Could anybody explain please why I can't get a sample of falses or quoted nils / falses here? foo.core> (clojure-version) "1.10.0" foo.core> (require '[clojure.spec.gen.alpha :as gen] '[clojure.spec.alpha :as s]) nil foo.core> (gen/sample (s/gen #{'nil})) Error printing return

Re: [ANN] clj 1.9.0.358

2018-03-03 Thread Rostislav Svoboda
@linux_users_not_using_the_bash_shell: clj & clojure are bash scripts and are to be found in https://github.com/clojure/brew-install.git 2018-03-03 15:27 GMT+01:00 Alex Miller : > A new version of the Clojure tools (clj, clojure) is now available (see >

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Rostislav Svoboda
To give you a bit of an explanation - I'd like to use clojure/clojurescript for scripting... I was reading the: http://blog.brunobonacci.com/2017/08/10/lumo-vs-planck-vs-clojure-vs-pixie/ and got curious how does the 1.9.0 behave when talking about startup times. (Oh BTW notice that lumo and

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-08 Thread Rostislav Svoboda
Hi, first of all: thanks for the 1.9.0! And now issue: it looks like the 1.9.0 is slower than 1.8.0. Is there any --turbo switch to flip? Bost time java -jar /home/bost/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar -e '(defn Σ [n] (reduce + (range (inc n (println (Σ (* 1000

Re: mysql and clojure

2017-10-19 Thread Rostislav Svoboda
Have a look at dbcon.clj and db.clj in my https://github.com/Bost/ufo It's a rather minimal example of clojure/clojurescript + mysql 2017-10-19 15:10 GMT+02:00 Damien Mattei : > Thank Lubomir, > it works, i'm new to Clojure and did not use the name space the right way, i

Re: [ANN] Automatically generate your specs and types

2017-10-13 Thread Rostislav Svoboda
A hint to a casual reader just trying stuff out: $ lein new hello $ cd hello # added {:user {:plugins [[lein-typed "0.4.2"]]}} to ~/.lein/profiles.clj # added [org.clojure/core.typed "0.4.2"] to project.clj $ lein typed infer-type hello.core CompilerException java.lang.RuntimeException: No such

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-03 Thread Rostislav Svoboda
> Which part(s) is preventing you from contributing? Please the remove that sign-up wall, Terms-of-service nonse and alike. You know what we mean, don't you? If you think your users (= us) need some kind notifications, suspend-resume (i.e. save-load) functionality etc. then make it optional

Re: Clojurecademy: Learning Clojure Made Easy

2017-10-02 Thread Rostislav Svoboda
It looks like I can't learn clojure using your site unless I sign up with my email and such. Hmm... Until now I went pretty far with learning clojure without signing up anywhere. So what are your reasons for demanding a sign up? Thanks. 2017-10-02 18:47 GMT+02:00 Ertuğrul Çetin

Re: [ANN] Clojure 1.9.0-alpha19

2017-09-02 Thread Rostislav Svoboda
Next time I'll send you the Contributor Agreement and a pull request just to get to the list of contributors :) 2017-09-02 5:45 GMT+02:00 Alex Miller : > Due to the new dependence on external jars, these instructions will be > different in Clojure 1.9. We will be providing

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-02 Thread Rostislav Svoboda
Aaaah! :) My math books say booleans can't be true and false in the same time. I made a mistake assuming that the identity function just because it exists somewhere as an object in the memory is of a boolean type and as such it's boolean value is true. Well, everybody here - thank you! Just for

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-01 Thread Rostislav Svoboda
t; > On Fri, Sep 1, 2017 at 9:01 PM Rostislav Svoboda > <rostislav.svob...@gmail.com> wrote: >> >> > (true? identity) -> false >> > (false? identity) -> false >> > (= false false) -> true >> >> Well: >> (= identity identity) -&

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-01 Thread Rostislav Svoboda
alue false, false otherwise. > nil > > > On Fri, Sep 1, 2017 at 8:57 PM Rostislav Svoboda > <rostislav.svob...@gmail.com> wrote: >> >> > This is what I would expect - the identity function is neither the value >> > true, or the value false >> >>

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-01 Thread Rostislav Svoboda
> (true? identity) -> false > (false? identity) -> false > (= false false) -> true Well: (= identity identity) -> true My math books say booleans can't be true and false in the same time. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-01 Thread Rostislav Svoboda
0 Mark Engelberg <mark.engelb...@gmail.com>: > (true? identity) -> false > (false? identity) -> false > (= false false) -> true > > On Fri, Sep 1, 2017 at 8:43 PM, Rostislav Svoboda > <rostislav.svob...@gmail.com> wrote: >> >> Hi, can anyb

SRSLY? (= (true? identity) (false? identity)) => true

2017-09-01 Thread Rostislav Svoboda
Hi, can anybody explain it please? $ java -cp clojure-1.8.0.jar clojure.main Clojure 1.8.0 user=> (= (true? identity) (false? identity)) true And in 1.9.0-alpha19 it behaves the same. thx Bost -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: [Off-Topic] Does Clojure have relations with this site?

2017-03-24 Thread Rostislav Svoboda
> Wow, looks like pretty brazen theft of the Clojure logo. Or alternativelly: the idea of "ownership" might be simply overrated. Especially so when it comes to intelectual property. The real reason why things get stolen or - when talking about programms - hacks is not because there are ugly

Re: Getting information from a hashmap that is inside anothe hashmap

2016-11-22 Thread Rostislav Svoboda
(->> human2 :char :eye-colour) or (-> human2 :char :eye-colour) or ((human2 :char) :eye-colour) or (:eye-colour (:char human2)) all variants work. Either way it looks like you're asking a very basic question. I recomend you to go over http://clojurekoans.com/ or read some tutorial, quick start

Re: complex made simple?

2016-10-18 Thread Rostislav Svoboda
1. Use Yoneda Lemma. Its intuitive explanation is: You work at a particle accelerator. You want to understand some particle. All you can do are throw other particles at it and see what happens. If you understand how your mystery particle responds to all possible test particles at all possible test

Re: Upgrading to Clojure 1.8 (direct linking)

2016-04-06 Thread Rostislav Svoboda
I think I have. But I didn't do any particular measurements around it. I have a habit of living on a rather bleeding edge. So it might be a bunch cumulative performance improvements starting in linux-kernel going all the way through java 1.8, clojure 1.8, emacs-25, cider and I dunno what else

Re: internet access required?

2016-02-20 Thread Rostislav Svoboda
have you tried lein deps :tree ? 2016-02-20 20:27 GMT+01:00 andrea crotti : > This might be a Cider issue more than Clojure but I'm not sure. > > Sometimes on train/plane I try to work on some Clojure project and I > normally don't manage to start the REPL inside

Re: CIDER 0.10 is out!

2015-12-04 Thread Rostislav Svoboda
Yea :) 2015-12-04 1:49 GMT+01:00 Mimmo Cosenza : > thanks. You rock > mimmo > >> On 04 Dec 2015, at 01:10, Edward Knyshov wrote: >> >> Congratulations! You made a great work. >> >> -- >> You received this message because you are subscribed to the Google

Re: [ANN] Dominator - Virtual DOM in ClojureScript

2015-05-12 Thread Rostislav Svoboda
Dominator brings the simplicity and performance of the Virtual-DOM project to ClojureScript. Is this the same kind of Virtual DOM as in facebook react? I.e. is Dominator a react replacement (written in cljs, of course)? -- You received this message because you are subscribed to the Google

Re: [ANN] Chestnut 0.7.0

2015-03-07 Thread Rostislav Svoboda
I tested the v 0.7.0 of chestnut and I encountered the following error. The v 0.6.0 works fine. $ lein new chestnut test-app Retrieving chestnut/lein-template/0.7.0/lein-template-0.7.0.pom from clojars Retrieving chestnut/lein-template/0.7.0/lein-template-0.7.0.jar from clojars Exception in

Re: [ANN] Understanding the Persistent Vector

2015-03-03 Thread Rostislav Svoboda
Great work! Thank you On 28 February 2015 at 17:14, Jean Niklas L'orange jeann...@hypirion.com wrote: Hello fellow Clojurians, I am happy to announce that I have finished my blogpost series on the persistent vector. It consists of five parts: The basic algorithms Indexing The tail

Re: [ANN] Understanding the Persistent Vector

2015-03-03 Thread Rostislav Svoboda
Hi Jean The tail optimisation http://hypirion.com/musings/understanding-clojure-transients It took me a second to find out how the graphs for the vector-trie and tail correspond to each other. Please consider slightly deeper explanation or add some visual clues. Something like:

Re: [ANN] Clojure Videos (with options for Linux users)

2014-10-14 Thread Rostislav Svoboda
+1 Bitcoins I can't use paypal. On 10 October 2014 06:46, Eric Normand ericwnorm...@gmail.com wrote: Hello, To plug my own videos, the LispCast core.async videos are coming out soon! I have a strict deadline of before the conj. You can get on the mailing list to get a discount when they

Re: [ANN] om-bootstrap 0.2.6 released

2014-09-21 Thread Rostislav Svoboda
Thank you Daniel. IDidMount/did-mount works for me. BTW good om lifecycle explanation can be found here: http://josf.info/blog/2014/09/18/first-ompressions-a-conceptual-look-at-om/ On 18 September 2014 10:18, Daniel Kersten dkers...@gmail.com wrote: Forgot to add: IDidMount/did-mount only gets

Re: [ANN] om-bootstrap 0.2.6 released

2014-09-17 Thread Rostislav Svoboda
Concerning sortable tables, at the moment I do following (don't laugh): cp https://github.com/google/closure-library/blob/master/closure/goog/ui/ tablesorter.js resources/public/js/out/goog/ui/ index.html: html ... body div id=dbase0/div script

Re: ANN: Om 0.7.0

2014-08-01 Thread Rostislav Svoboda
Thanx a lot guys! The biggest change is depending on ClojureScript 0.0-2277 and BTW the Using it section of README.md still says 0.0-2173: (defproject foo 0.1.0 ... :dependencies [[org.clojure/clojure 1.5.1] [org.clojure/clojurescript 0.0-2173] [om 0.7.0]]

Re: cider status

2013-12-13 Thread Rostislav Svoboda
I can’t know what problems people encounter is they don’t tell me. You may ask somebody to test your changes before you publish them. Pardon me in case you did so. It seems like people were not listening. Anyway you should be prepared for this eventuality too and have an undo-scenario. Bost --

Re: [ANN] Clojure Cheatsheet for Emacs

2013-08-12 Thread Rostislav Svoboda
The number of cheatsheets is growing (this is a good thing IMO) It's not about having one brilliant cheatsheet. The ultimate goal is to get rid off them all. -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: [ANN] Clojure Cheatsheet for Emacs

2013-08-12 Thread Rostislav Svoboda
What would we like to have is a language easy to learn without any need for a cheatsheet. On 13 August 2013 02:10, Devin Walters dev...@gmail.com wrote: Could you clarify: Why is that a good goal? '(Devin Walters) On Aug 12, 2013, at 12:09 PM, Rostislav Svoboda rostislav.svob...@gmail.com

Re: I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger.

2013-05-28 Thread Rostislav Svoboda
This might not be the proper example: If (/ 2 n) throws Divide by zero then n == zero On 28 May 2013 15:40, Lee Spector lspec...@hampshire.edu wrote: On May 27, 2013, at 8:31 PM, Charles Harvey III wrote: If you haven't tried out Light Table, it shows you the values of local variables. It is

Re: unusual question: how do you get morale?(or moral support)

2013-05-12 Thread Rostislav Svoboda
Well everything in life - especially in engineering - has its ups and downs. Teamwork is the key! https://www.youtube.com/watch?v=Nebd9yoraac :) -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: What's the difference between a sequence and a seq?

2013-04-25 Thread Rostislav Svoboda
+100. Thx a lot! On 25 April 2013 13:45, fb friedrich.boe...@gmail.com wrote: the conceptional differences between collection and sequences are confusing quite a bit. A nice wrap up by Tim McCormack can be found here: http://www.brainonfire.net/files/seqs-and-colls/main.html (via Sean

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-16 Thread Rostislav Svoboda
Whata an [ANN] !!! Please change the subject to [linode-compromise 1.0.0] :) -- -- 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

Basic multiplication incorrent?!?

2013-04-09 Thread Rostislav Svoboda
Can anyone explain me please why I get: Clojure 1.5.1 user= (* 148.52 0.0256) 3.80211206 The correct result should be: https://www.google.com/search?q=148.52+*+0.0256 3.802112 If you don't believe me try it on: http://tryclj.com/ thx Bost -- -- You received this message because you

Re: Basic multiplication incorrent?!?

2013-04-09 Thread Rostislav Svoboda
I see. I did some testing. It's not clojure, it's not java, it's deeper. People of planet Earth! Stop wasting time on SETI if your machines can't properly calculate 148.52 * 0.0256 !!! -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: core.logic: Database context monad

2013-04-05 Thread Rostislav Svoboda
I found this http://gradworks.umi.com/3380156.pdf on http://www.cs.indiana.edu/~webyrd/ -- -- 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 -

Re: ANN Introducing Clochure: a better Clojure

2013-04-01 Thread Rostislav Svoboda
This is a step back. The only way for the future is xml: bracket+ 1 2/bracket Michael: I'm about to send you a patch. Just let me fill the contributor agreement... -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Short tutorials on ClojureScript

2012-11-05 Thread Rostislav Svoboda
Nice! Could you please add some screenshots? You know a picture attracts more attention than 100 words. (Thx in advance!) BTW You don't need to hope - it is useful! Bost On 5 November 2012 16:29, Mimmo Cosenza mimmo.cose...@gmail.com wrote: Hi, I started a short series of tutorials on

Re: ANN: codeq

2012-10-10 Thread Rostislav Svoboda
Isn't it somehow related to the thread we had here few X ago: Idea around SCMs and Clojure https://groups.google.com/forum/?fromgroups=#!topic/clojure/9N15TA_mJKo -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: appengine-magic: Argument must not be null.

2012-09-11 Thread Rostislav Svoboda
Ok, it has nothing to do with clojure it's a GAE issue. Just in case someone trips over it too, the app must be started using lein appengine-prepare lein appengine-dev-appserver foo-dev from bash, instead of (use 'foo.core) (in-ns 'foo.core) (ae/serve foo-app) from REPL. See the

appengine-magic: Argument must not be null.

2012-09-10 Thread Rostislav Svoboda
Hi, I'm trying to execute the multipart/form-data example from https://github.com/gcv/appengine-magic.git but it seems like the blob-key in the (GET /serve/:blob-key {{:strs [blob-key]} :params :as req} (blobs/serve req blob-key))) is null. The error is: Problem accessing

Re: Rich's The Value of Values and REST

2012-08-24 Thread Rostislav Svoboda
I just enjoy the speeches better by standing back a little bit. Actually I'm quite annoyed that Rich doesn't say anything about how important is to be able to forget facts, irreversibly filter things out and reinvent the wheel again. Imagine a huge database full of facts you're simply not

Re: The Value of Values

2012-08-24 Thread Rostislav Svoboda
See the thread The Value of Values started by Conrad Barski -- 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: Idea around SCMs and Clojure

2012-07-19 Thread Rostislav Svoboda
It would be more interesting to see a version control system based on storing an abstract syntax tree hmm, interesting idea... such a SCM would need to have the code compiled at every commit/checkout, right? How would that work for large projects? And what about let's say rebase -i master topic

Re: Idea around SCMs and Clojure

2012-07-17 Thread Rostislav Svoboda
You want do diffs I think you need to concentrate on a way how a diff is made and defined if you want to improve the way how a VCS works. I.e. current VCSs use something like this: @ some line numbers @ - replacing that old line... + ... with this new line which works well for a machine, but

Re: Idea around SCMs and Clojure

2012-07-17 Thread Rostislav Svoboda
I don't think so. After some practice you can read patches as if they were finest prose. ;-) Yea, for prose they work. I believe that. But I'm paid for writing code :) There are already special-purpose, format-dependent diff/patch tools, e.g., XMLdiff, various binary diff/patch tools, and

Re: Clojure and the Anti-If Campaign

2012-05-24 Thread Rostislav Svoboda
After seeing [1] from Rich Hickey I wondered what he means with replace if statements with polymorphic functions? Why and how exactly should I do it? Your blogpost opened my eyes. Thanks a lot Dominikus Bost [1] http://www.infoq.com/presentations/Simple-Made-Easy -- You received this message

Re: {ANN} Clojure-control 0.3.4 released

2012-05-10 Thread Rostislav Svoboda
I took the steps from your README.md and it seems like something's missing :( see below Bost bost@bost-desktop:~/dev$ rm -rf mycontrol/ bost@bost-desktop:~/dev$ lein1 version Leiningen 1.7.1 on Java 1.7.0_04 Java HotSpot(TM) Client VM bost@bost-desktop:~/dev$ lein1 plugin install control 0.3.5

Re: Getting started

2012-05-10 Thread Rostislav Svoboda
On 10 May 2012 19:57, Chris McBride cmm7...@gmail.com wrote: Also you generally don't invoke the clojure jar directly. Instead have lein do that for you. http://www.unexpected-vortices.com/clojure/brief-beginners-guide/development-env.html#clojure-projects No, please stop. Zeno, you MUST get

code as data vs. code injection vulnerability

2012-05-09 Thread Rostislav Svoboda
I think the topic 'code injection vulnerability' is never out of date especially if you treat data as a code. Unfortunately googling for - clojure code injection vulnerability - returns 'nil'. Any ideas? Comments? Opinions? Bost -- You received this message because you are subscribed to the

Re: code as data vs. code injection vulnerability

2012-05-09 Thread Rostislav Svoboda
On 9 May 2012 15:35, Tassilo Horn tass...@member.fsf.org wrote: Simply don't `eval` code/data from sources you don't trust. In a client-server architecture the thing I (i.e. the server) don't trust is the client... and I'm not sure if I can ignore him just like that :) Bost -- You received

Re: code as data vs. code injection vulnerability

2012-05-09 Thread Rostislav Svoboda
On 9 May 2012 15:57, Walter Tetzner robot.ninja.saus...@gmail.com wrote: I feel like *read-eval* should default to false, and you should have to explicitly bind it to true. Either that, or there should be 'safe' versions of Many people just copy-paste code snippets to their source files/repl

Re: code as data vs. code injection vulnerability

2012-05-09 Thread Rostislav Svoboda
On 9 May 2012 17:31, Tassilo Horn tass...@member.fsf.org wrote: you should bind *read-eval* to false when reading data from unknown sources. This is the point! On one hand I need to evaluate data from a client on the other hand I'd like to filter out things like rm -rf /, drop table users etc.

Re: [ANN] The It starts to look like a real App, 1.2.0 release of the Clojure Namespace Browser (clj-ns-browser)

2012-05-06 Thread Rostislav Svoboda
Hi Frank, I cleaned everything and created a new project from scratch. It still does not work but I get another error: $ rm -rf ~/.lein/ $ rm -rf ~/.m2/ $ lein new clj-browser-test $ cd clj-browser-test/ # here I added :dev-dependencies [[clj-ns-browser 1.2.0]] to the project.clj $ cat

clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
Hi, my project.clj contains :dependencies [[org.clojure/clojure 1.4.0] [noir-cljs 0.3.0] [jayq 0.1.0-alpha1] [fetch 0.1.0-alpha2] [crate 0.1.0-alpha3] [noir 1.3.0-beta2]] but 'lein deps' does not download any

Re: new with clojure, need help!

2012-05-05 Thread Rostislav Svoboda
i need a more basic guidence on how to install the nessecery plugins to eclipse, and what to do with them... eclipse IDE may look like a good idea but in the beginning it just increases the amount of work you need to do and troubles you need to overcome. Just start with the REPL and any

Re: [ANN] The It starts to look like a real App, 1.2.0 release of the Clojure Namespace Browser (clj-ns-browser)

2012-05-05 Thread Rostislav Svoboda
I put :dev-dependencies [[clj-ns-browser 1.2.0]] to my project.clj and did: $ lein deps Copying 46 files to /home/bost/dev/webcli/lib [WARNING] Overriding profile: 'null' (source: pom) with new instance from source: pom [WARNING] Overriding profile: 'null' (source: pom) with new instance from

Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
On 6 May 2012 01:37, Kurt Harriger kurtharri...@gmail.com wrote: When i first upgraded to clojure 1.4 i had a similar issue with lein not downloading updated dependencies. It tirned out to be an invalid version range dependency spec in midje that caused it to fail silently. Perhaps try

Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
Guys, I need to thank you both. Now it works: :dependencies [ [org.clojure/clojure 1.4.0] [colorize 0.1.1 :exclusions [org.clojure/clojure]] [noir-cljs 0.3.0] [jayq 0.1.0-alpha1] [fetch 0.1.0-alpha2]

Re: [ANN] lein-exec 0.2.0 – Scripting in Clojure

2012-04-23 Thread Rostislav Svoboda
yet another pearl on necklace -- 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

Re: xml: parse -- edit -- emit

2012-04-18 Thread Rostislav Svoboda
It seems build.clojure.org now uses Java 6 on the top of http://build.clojure.org/ stays: All projects build on Sun/Oracle JDK 1.5. -test-matrix jobs test multiple JDKs and Clojure versions. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to

Re: New(er) Clojure cheatsheet hot off the presses

2012-04-16 Thread Rostislav Svoboda
I just checked the http://clojure.org/cheatsheet seing there just the old version without any tooltips. Would anyone put there a new one with tooltips? Thx Bost -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Cheap way to find function (defn) name using a macro?

2012-03-28 Thread Rostislav Svoboda
Sorry, I should explained using code what I am looking for: Oh yea!!! (defmacro find-name []  ;; some magic here  ..) (defn foo []  ..  (println (find-name)) ; should print foo  ..) I am looking for a way to write the `find-name` macro. So, you can see I want to use it with regular

Re: Cheap way to find function (defn) name using a macro?

2012-03-28 Thread Rostislav Svoboda
Steve – Your example is already compact, but maybe it can be made even cheaper by specifying maxDepth of 1: http://docs.oracle.com/javase/6/docs/api/java/lang/management/ThreadMXBean.html#getThreadInfo(long, int) @Shantanu: What about the defn0 macro from Steve: (defmacro defn0 [name fdcls]

Re: Converting proxy to a macro

2012-03-27 Thread Rostislav Svoboda
If anyone could help that would be great. try to start with writing a function like: user= (def code '(proxy [java.util.Observer] [] (update [o arg] (println arg #'user/code user= (cons 'observer (list (first (first (next code))) (next (next code))) ) (observer java.util.Observer ([]

Re: Converting proxy to a macro

2012-03-27 Thread Rostislav Svoboda
user= (def c1 '(proxy [java.util.Observer] [] (update [o arg] (println arg #'user/c1 user= (def c2 (list (first (first (next c1))) (next (next c1 #'user/c2 user= (def c3 (first (next c2))) #'user/c3 user= (def c4 (first (next c3))) #'user/c4 user= (cons 'observer (list (first c2) [] c4))

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-27 Thread Rostislav Svoboda
I think a tool like you describe sounds like a fun hack to write but I don't see how it has anything to do with the cheat sheet. A tool that writes the code instead of you cannot be called a sheet anymore. It's cheating in its *purest* form :) But I repeat: Don't get excited too much. To make

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
if there are any strong feelings about how to make the cheatsheet more of a modular, queryable structure than it currently is. The key question is Why do we need a cheatsheet? Well, the learning curve is steep. I.e. there are things like [1] quite many functions and [2] they are hard to

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
It's certainly a non-trivial problem To solve this problem would mean 'to make computer think'. That's why I only mentioned 'frequently used patterns'. But it would be a great tool to help learn clojure. -- You received this message because you are subscribed to the Google Groups Clojure

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-26 Thread Rostislav Svoboda
I have a repo called sente that is largely a blank slate. Would you be interested in collaborating on this? Yes I'm *definitely* interested but I doubt I'd gonna be much useful for you. If so let me know your github username and ill add you to the project. Thank you but I think it brings

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-25 Thread Rostislav Svoboda
I personally find this one better: http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-tooltips/cheatsheet-title-attribute.html The tooltips appear right at the place where I'm looking and pointing my mouse, and they tend to appear always at the same place - below the mouse and

Re: Clojure cheatsheet with tooltips (alpha)

2012-03-24 Thread Rostislav Svoboda
Hi Andy On 24 March 2012 11:15, Andy Fingerhut andy.finger...@gmail.com wrote: There are still some problems with this, but it is ready for experimental use, at least.  Alex, please don't put this on clojure.org -- it ain't ready yet.

Clojure Toolbox

2012-03-24 Thread Rostislav Svoboda
A nice list of tools and libraries I stumbled upon. Enjoy! http://www.clojure-toolbox.com/ -- 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 -

Re: New(er) Clojure cheatsheet hot off the presses

2012-03-23 Thread Rostislav Svoboda
Hi Andy If anyone has suggestions for what you would like to see added to the cheatsheet It'd be great to have a tooltip appearing at every function I go over with my mouse. Typically I click on a function just to realize Oh, this is not the one I need so I have to go back. And this back

Re: clojure on android over CLI

2012-03-09 Thread Rostislav Svoboda
On 8 March 2012 11:14, Jim - FooBar(); jimpil1...@gmail.com wrote: There is a clojure repl for android... Jim, my goal is to be able to write android apps in clojure. But to develop an app in clojure on a PC is pain: The android emulator eats a lot of memory and takes minutes to start, 'ant

clojure on android over CLI

2012-03-07 Thread Rostislav Svoboda
Hi. I'm trying to run: java -cp clojure-${VERSION}.jar clojure.main on an Android phone from bash (using the 'terminal-ide' app) but I can't make it past the error bellow. I did the jar-to-dex conversion using: dx --verbose --dex --output=clojure-${VERSION}.dex.jar clojure-${VERSION}.jar

Re: Bret Victor's live editable game in ClojureScript

2012-03-02 Thread Rostislav Svoboda
Hi Chris I think you may have actually missed the point in the video :) There's no pausing necessary - if I made the guy move on his own and changed his speed, you'd see it happen immediately. The thing is, in order to change the speed of the guy you need to refocus your eyes from the guy and

Re: Bret Victor's live editable game in ClojureScript

2012-03-01 Thread Rostislav Svoboda
Hi Chris, While trying to modify the src/coding/client/editor.cljs I realised you put the resources/public/cljs/coding/client/*.js to the repository. It's just 2 hours ago I saw the ClojureScript for first time, but to me these files look like generated... (cljsc/build