[ANN] "Real" air traffic control system + flight simulator

2016-03-22 Thread ru
ights from the cockpit. 2. You can control your aircrafts. Enjoy! Sincerely, Ru -- 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

cljs-ajax question

2016-04-20 Thread ru
Hi, cljs-ajax transforms vector parameter into map during transfer like this: [40.328 -68.348] -> { 0 40.328, 1 -68.348}. What does it mean and how avoid this? Thanks. Sincerely, Ru -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

[ANN] es-boat - an expert system for coastal navigation

2016-04-22 Thread ru
visualization, - different auxiliary Clojure and ClojureScript libraries. Work in progress. Enjoy, --ru -- 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 m

Re: [ANN] es-boat - an expert system for coastal navigation

2016-04-22 Thread ru
Thank you, Ivh, for finding my project! пятница, 22 апреля 2016 г., 16:57:31 UTC+3 пользователь lvh ‌ написал: > > I couldn’t find a link to your project, but I think this is it: > https://github.com/rururu/es-boat > > Looks awesome!! Thanks for showing :D > > On Apr 22,

[ANN] es-boat - expert system for coastal navigation. New functionality

2016-05-17 Thread ru
cemetries, schools and so on, and shows them on a HUD. Work in progress. Stay tuned. Enjoy, --ru -- 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 member

How to use function "doubles" ?

2014-03-09 Thread ru
(doubles (into-array [1.2 2.2])) # ??? -- 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 unsubscr

[ANN] Clojure RETE implementation - CLIPS-like expert system shell. New version 4.3

2014-05-12 Thread ru
New feature: added Java interface. Eclipse project example. Home: https://github.com/rururu/rete4frames Have fun! Sincerely, Ru -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: [ANN] Clojure RETE implementation - CLIPS-like expert system shell. New version 4.3

2014-05-12 Thread ru
performance. понедельник, 12 мая 2014 г., 17:47:44 UTC+4 пользователь ru написал: > > New feature: added Java interface. Eclipse project example. > > Home: https://github.com/rururu/rete4frames > > Have fun! > > Sincerely, > Ru > -- You received this message bec

Re: [ANN] Clojure RETE implementation - CLIPS-like expert system shell. New version 4.3

2014-05-12 Thread ru
Manners example of Drools in the last version I looked at was brocken. I wrote to Mark Proctor about this and he promised to fix this but I did not look at that ever since.. :( Hope I will find time to accomplish this comparison. понедельник, 12 мая 2014 г., 17:47:44 UTC+4 пользователь ru

Re: [ANN] Clojure RETE implementation - CLIPS-like expert system shell. New version 4.3

2014-05-13 Thread ru
Alan. You absolutely right! Clojure must return thinking of programmers back to solving problems from vanity and narcissism of unnecessary complexity :) I certainly will look on Clara more attentively and may be switch to it in my applications. cheers, Ru понедельник, 12 мая 2014 г., 17:47

Re: [ANN] Clojure RETE implementation - CLIPS-like expert system shell. New version 4.3

2014-05-14 Thread ru
be very appreciated if someone point out other good examples as candidates on benchmark tests. Sincerely, Ru понедельник, 12 мая 2014 г., 17:47:44 UTC+4 пользователь ru написал: > > New feature: added Java interface. Eclipse project example. > > Home: https://github.com/rururu

Re: [ANN] Clojure RETE implementation - CLIPS-like expert system shell. New version 4.3

2014-05-14 Thread ru
Hello Ryan, Have you look at Waltz test? You may be interested of this. Its CLIPS source is in examples folder of rete4frames. -Ru понедельник, 12 мая 2014 г., 17:47:44 UTC+4 пользователь ru написал: > > New feature: added Java interface. Eclipse project example. > > Home: https:

[ANN] Version 4.3.1 of Rete for Frames Rule Engine (CLIPS-like Expert System Shell)

2014-06-13 Thread ru
ururu/rete4frames Sincerely, Ru -- 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

Order of keys and vals results for sorted maps?

2013-10-20 Thread ru
Dear clojure people! Do results of functions "keys" and "vals" ordered for sorted maps accordingly? Does it guaranteed? Thanks in advance. Sincerely, Ru -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: Order of keys and vals results for sorted maps?

2013-10-20 Thread ru
that for sorted maps such features must be mandatory and obviously specified. May by Clojure team would noticed this and correct documentation accordingly? воскресенье, 20 октября 2013 г., 16:25:02 UTC+4 пользователь ru написал: > > Dear clojure people! > > Do results of function

Does apply function works correctly?

2013-10-26 Thread ru
Dear Clojure users and team! What does it mean: Last login: Sat Oct 26 12:41:48 on ttys001 Ruslan-Sorokins-iMac:~ ru$ cd clojure/clojure-1.5.1/ Ruslan-Sorokins-iMac:clojure-1.5.1 ru$ java -jar clojure-1.5.1.jar Clojure 1.5.1 user=> (not= 256 256) false user=> (apply 'not= '(25

StackOverflowError

2013-11-08 Thread ru
Dear clojure-users, StackOverflowError clojure.lang.RT.nthFrom (RT.java:789) I got this error message during evaluation of "count" function call on a quite short list (about 200 elements). What can be reasons of the error. Any hints would be greatly appreciated. Since

Re: StackOverflowError

2013-11-08 Thread ru
filling against my will...? пятница, 8 ноября 2013 г., 13:17:28 UTC+4 пользователь ru написал: > > Dear clojure-users, > > StackOverflowError clojure.lang.RT.nthFrom (RT.java:789) > > I got this error message during evaluation of "count" function call on a > quite

Re: StackOverflowError

2013-11-08 Thread ru
clojure.lang.RT.nth (RT.java:764) rete.core=> I am afraid, that I am not sure where to put (clojure.stacktrace/e) to make it work :( Or, may be this is not an exception? пятница, 8 ноября 2013 г., 13:17:28 UTC+4 пользователь ru написал: > > Dear clojure-users, > > StackOverflowError clojure.

Re: StackOverflowError

2013-11-08 Thread ru
o, the question is: What can I do to avoid recursive *remove* operation? May be I should rewrite it using *loop*? Does this help? Or recursion remains inside *loop*? пятница, 8 ноября 2013 г., 13:17:28 UTC+4 пользователь ru написал: > > Dear clojure-users, > >

Re: StackOverflowError

2013-11-08 Thread ru
(retract-b fid (.get =FIDS= fid)) (def =CFSET= (filter #(not (some #{fid} (:FIDS (second % =CFSET=)) (.remove =FIDS= fid) frame))) Thank you very much once more! Best regards, Ru пятница, 8 ноября 2013 г., 13:17:28 UTC+4 пользователь ru напис

Re: StackOverflowError

2013-11-08 Thread ru
Jim, please, recommend a correct solution for global variable assignment. John, Indeed I would prefere technique with better performance. But, as I understand from scarce documentation, disj works with sets. And doesn't it recursive? пятница, 8 ноября 2013 г., 13:17:28 UTC+4 пользовате

Re: StackOverflowError

2013-11-08 Thread ru
No, I am not in a hurry :) Thanks in advance. пятница, 8 ноября 2013 г., 13:17:28 UTC+4 пользователь ru написал: > > Dear clojure-users, > > StackOverflowError clojure.lang.RT.nthFrom (RT.java:789) > > I got this error message during evaluation of "count" function c

Re: StackOverflowError

2013-11-09 Thread ru
? суббота, 9 ноября 2013 г., 13:47:54 UTC+3 пользователь Jim foo.bar написал: > > Hi Ru, > > Think of it this way...In Java you can't declare something as public from > within a method. Ok, in Java this would break the object's contract butО©╫ > even if you look at lang

[ANN] Clojure RETE algorithm implementation (CLIPS-like expert system shell)

2013-11-12 Thread ru
Dear Clojure users, For those interested in the Clojure RETE algorithm implementation or CLIPS-like expert system shells, on https://github.com/rururu/rete4frames published a simple version. Leiningen integration is [rete "4.0.0-SNAPSHOT"] Sincerely, Ru -- -- You rec

How does contains? work?

2010-06-25 Thread ru
Hello, Explain me this, please: user=> (def x (cons 'a nil)) #'user/x user=> x (a) user=> (contains? x 'a) false user=> And, what is Clojure analogue of Lisp "member" function. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: How does contains? work?

2010-06-27 Thread ru
Thank you very much to all for comprehensive explanations. As newcomer to Clojure dare to remark that this is not very consistent semantics of "contains" :) On 25 июн, 21:25, ataggart wrote: > My sense from reading Rich's writing on the subject is that 'contains? > was named with the use of sets

New version of ClojureTab plug-in to Protege announcement

2010-07-08 Thread ru
reTab on a project main frame. 3. Added examples of using GeoNames web services. Merry clojuring :) Sincerely, Ru ___ -- 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

Seems like bug in clojure-1.4.0

2012-11-04 Thread ru
ru@ru-maclin:~/ProtegeClojureOMTabs-1.5/lib_ext$ java -jar clojure-1.4.0.jar Clojure 1.4.0 user=> (read-string "07") 7 user=> (read-string "09") NumberFormatException Invalid number: 09 clojure.lang.LispReader.readNumber (LispReader.java:253) user=> (read-strin

Re: Seems like bug in clojure-1.4.0

2012-11-04 Thread ru
Thank you, Bronsa! Sincerely, Ru воскресенье, 4 ноября 2012 г., 14:27:30 UTC+4 пользователь Bronsa написал: > > Number prefixed by 0 are read by the clojure reader as octals. > So the decimal 8 is 010 > > 2012/11/4 ru > > >> ru@ru-maclin:~/ProtegeClojureOMTabs-1.5/lib

Re: Exception: Can't define method not in interfaces: fly

2011-09-20 Thread ru
Thanks Simon, This form is working: (ns fly.bird) (defprotocol Fly (fly [this]) (fly2 [this x])) (defrecord Bird [nom species] Fly (fly [this] (str (:nom this) " flies..")) (fly2 [this x] (str (:nom this) " flies " x))) So, we can't define the same method

Re: Exception: Can't define method not in interfaces: fly

2011-09-21 Thread ru
Oops! Sorry, my fault :( Sincerely, ru On 20 сен, 21:11, Meikel Brandmeyer wrote: > Hi, > > Am 20.09.2011 um 18:47 schrieb ru: > > > So, we can't define the same method with different signatures in one > > protocol. Is it justifiably? > > ??? You were shown t

Re: Exception: Can't define method not in interfaces: fly

2011-09-21 Thread ru
Oops! Sorry, my fault :( Sincerely, ru On 20 сен, 21:11, Meikel Brandmeyer wrote: > Hi, > > Am 20.09.2011 um 18:47 schrieb ru: > > > So, we can't define the same method with different signatures in one > > protocol. Is it justifiably? > > ??? You were shown t

Re: Does macros evaluates its arguments before?

2011-09-26 Thread ru
user=> (defmacro infix [[x f y]] `(~f ~x ~y)) #'user/infix user=> (infix (5 + 4)) 9 Ok, this is working! But, what's the difference? -- 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 th

Re: Does macros evaluates its arguments before?

2011-09-26 Thread ru
Timothy! Thank you for the explanation. I understand quite well about performance. I do'nt understand why it evaluates argument (5 + 4) during expansion in my case? Ru -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Does macros evaluates its arguments before?

2011-09-26 Thread ru
Well, Tassilo. That's exactly means evaluation of argument that's contradict to mentioned above documentation! On 26 сен, 18:18, Tassilo Horn wrote: > ru writes: > > user=> (defmacro infix [[x f y]] `(~f ~x ~y)) > > #'user/infix > > user=> (infix (5

Re: Does macros evaluates its arguments before?

2011-09-26 Thread ru
Clojure compiler does not handling quite strictly language specification requirements. I.e., this single quote compiler should substitute itself to fulfill requirement of unevaluation arguments of macro. Sincerely, Ru -- You received this message because you are subscribed to the Google Group

Re: Does macros evaluates its arguments before?

2011-09-26 Thread ru
Tassilo! Thank you very much, really grand job! By the way, I was preparing this example for students. So, you've done all the work for me! :) Best regards, Ru On 26 сен, 22:31, Tassilo Horn wrote: > Hi again, > > just for the fun of doing it, here's a recursive versio

Re: Does macros evaluates its arguments before?

2011-09-27 Thread ru
t they look themselves up in maps. The > "map" 5 does not contain the symbol '+, so the not-found value of 4 is > returned. > > On Sep 26, 10:22 am, ru wrote: > > > > > > > > > Thanks to all! > > > With your help I have found the solut

Re: Does macros evaluates its arguments before?

2011-09-27 Thread ru
On 27 сен, 16:45, Mark Rathwell wrote: > > And in this case Closure compiler behave itself also unpredictably and > > quite the contrary: > > Where it must evaluate a symbol (like in this case), it doesn't. > > Symbols need to be namespace resolved in order to be evaluated > properly.  This is s

Re: Does macros evaluates its arguments before?

2011-09-27 Thread ru
i i i i i i i ooooo o o I I I I I I I 8 8 8 8 8 o 88 I \ `+' / I 8 8 8 888 \ `-+-' / 8 8 8 o 8 `-__|__-'8 8

Re: Does macros evaluates its arguments before?

2011-09-27 Thread ru
, Ru On 27 сен, 23:23, Alan Malloy wrote: > It seems you are enjoying spewing accusations at Clojure, but if your > goal is to actually get something done, you would get a lot more out > of this discussion if your attitude were "Huh, I expected x but see y! > Is that a bug or am

Re: Does macros evaluates its arguments before?

2011-09-28 Thread ru
guage using macros. On 28 сен, 00:35, Michał Marczyk wrote: > Hi Ru, > > let's input your macro definition at the REPL: > > user> (defmacro infix [e] `(let [[x# f# y#] ~e] (f# x# y#))) > #'user/infix > > So far so good. Now let's try use it in a function: &

Re: Does macros evaluates its arguments before?

2011-09-28 Thread ru
If the macro arguments are evaluated, the macro does not need to expand the language. All you can do with functions: (eval-some-code '(.. some code here ..)) Even VisualBasic can do this: eval_some_code ".. some code here .." On 28 сен, 12:57, ru wrote: > Dear Michal,

Re: Does macros evaluates its arguments before?

2011-09-28 Thread ru
Baishampayan! Thank you very much! Your explanation is best. At last I understand my gap in understanding of the situation. Sincerely, Ru On 28 сен, 13:06, Baishampayan Ghose wrote: > On Wed, Sep 28, 2011 at 2:27 PM, ru wrote: > > The documentation says that the macro function

Re: Does macros evaluates its arguments before?

2011-09-28 Thread ru
On 28 сен, 13:13, Michał Marczyk wrote: > You know, in many Lisps let is a macro too. In Clojure it expands to > the special form let* (an implementation detail); a Scheme > implementation might implement it as ((lambda (binding-symbol ...) > expr . exprs) binding-val ...). > > Now, would you ex

Protege Clojure Tab plugin 1.4

2011-11-03 Thread ru
debuging, and storing programs in Protege projects. It includes a slot plug-in of type "ClojureActionButton" transforming ordinary Protege forms into active GUI forms for Clojure processing. Enjoy Protege and Clojure power synergism! Sincerely, Ru -- You received this message becau

Re: Protege Clojure Tab plugin 1.4

2011-11-03 Thread ru
into the /Users/devin/ ProtegeClojureTab-1.4/lib_ext/ folder. 3. Put clojure-1.x.x.jar from the Clojure distribution into the /Users/ devin/ProtegeClojureTab-1.4/lib_ext/ folder too. 4. Run /Users/devin/ProtegeClojureTab-1.4/run_protege.sh script in the Terminal. Hope this helps, Ru On 3 ноя

clojure.java.io/reader vs clojure.stacktrace/print-cause-trace call

2011-11-21 Thread ru
compilation: java.lang.RuntimeException: java.lang.ClassNotFoundException: clojure.stacktrace ! What's wrong? Thanks in advance. Sincerely, Ru -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google

examples of using protocols for extending functionality of existing classes?

2011-11-24 Thread ru
Can anybody point out good (idiomatic) examples of using protocols for extending functionality of existing classes? Thanks in advance. Sincerely, Ru -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: examples of using protocols for extending functionality of existing classes?

2011-11-24 Thread ru
Thank you very much, Meikel! Excelent example! On 24 ноя, 14:27, "Meikel Brandmeyer (kotarak)" wrote: > Hi, > > here is a nice example of a small DSL example, which also uses existing > data structures to denote different things in the DSL. It uses a protocol > under the hood, which is extended t

Re: examples of using protocols for extending functionality of existing classes?

2011-11-27 Thread ru
Thank you very much, Tassilo! Are Graph and Vertex classes from the public API? On 24 ноя, 13:02, Tassilo Horn wrote: > ru writes: > > Can anybody point out good (idiomatic) examples of using protocols for > > extending functionality of existing classes? > > Here's

Re: examples of using protocols for extending functionality of existing classes?

2011-11-27 Thread ru
Thank you very much, Tassilo! Are Graph and Vertex classes from the public API? On 24 ноя, 12:02, Tassilo Horn wrote: > ru writes: > > Can anybody point out good (idiomatic) examples of using protocols for > > extending functionality of existing classes? > > Here's

ProtegeClojureOMTabs-1.5 announcement

2012-01-08 Thread ru
e map. ProtegeClojureTab can be used as simple IDE for Clojure that uses Protege for visual knowledge representation and OpenMap for visual spatial information representation. Enjoy Protege OpenMap and Clojure! Sincerely, Ru -- You received this message because you are subscribed to the Google Groups &qu

<    1   2