ClojureTab publication announcement

2010-04-12 Thread ru
Yet another Clojure IDE - ClojureTab plug-in to Protege ontology
editor (http://protege.stanford.edu).
Very useful, simple and powerful tool for knowledge processing in
Protege environment:

http://oogis.ru/clojuretab

Free, open source.

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

To unsubscribe, reply using "remove me" as the subject.


java.lang.NoSuchMethodError: clojure.lang.RT.mapUniqueKeys

2013-05-27 Thread ru
Dear clojure-users,

What does this error message means:

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 
clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;

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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: java.lang.NoSuchMethodError: clojure.lang.RT.mapUniqueKeys

2013-05-27 Thread ru
Thank you very much, Michael and Andy!

понедельник, 27 мая 2013 г., 20:09:12 UTC+4 пользователь ru написал:
>
> Dear clojure-users,
>
> What does this error message means:
>
> Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 
> clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;
>
> 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Dear clojure-users,

Loading a file with such content:

(ns ru.rules
(:use 
  protege.core
  rete.core :exclude [rutime])
...

I get this error message:

java.lang.Exception: Unsupported option(s) supplied: :exclude
at clojure.core$load_libs.doInvoke(core.clj:5408)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:621)
at clojure.core$use.doInvoke(core.clj:5507)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at ru.rules$eval8$loading__4910__auto9.invoke(rules.clj:1)
at ru.rules$eval8.invoke(rules.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:6619)


This contradict to official API documentation on Clojure v1.5. Am I right?
Any help would be greatly appreciated.

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Thank you Jim. But, I mean this piece of API doc:

usefunction

Usage: (use & args)

Like 'require, but also refers to each lib's namespace using
clojure.core/refer. Use :use in the ns macro in preference to calling
this directly.

'use accepts additional options in libspecs: :exclude, :only, :rename.
The arguments and semantics for :exclude, :only, and :rename are the same
as those documented for clojure.core/refer.

Added in Clojure version 1.0
Source<https://github.com/clojure/clojure/blob/c6756a8bab137128c8119add29a25b0a88509900/src/clj/clojure/core.clj#L5498>


вторник, 28 мая 2013 г., 13:42:25 UTC+4 пользователь ru написал:
>
> Dear clojure-users,
>
> Loading a file with such content:
>
> (ns ru.rules
> (:use 
>   protege.core
>   rete.core :exclude [rutime])
> ...
>
> I get this error message:
>
> java.lang.Exception: Unsupported option(s) supplied: :exclude
> at clojure.core$load_libs.doInvoke(core.clj:5408)
> at clojure.lang.RestFn.applyTo(RestFn.java:137)
> at clojure.core$apply.invoke(core.clj:621)
> at clojure.core$use.doInvoke(core.clj:5507)
> at clojure.lang.RestFn.invoke(RestFn.java:457)
> at ru.rules$eval8$loading__4910__auto9.invoke(rules.clj:1)
> at ru.rules$eval8.invoke(rules.clj:1)
> at clojure.lang.Compiler.eval(Compiler.java:6619)
> 
>
> This contradict to official API documentation on Clojure v1.5. Am I right?
> Any help would be greatly appreciated.
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Michael,

Does (:require [protege.core :refer :all]) is equivalent to (:require 
protege.core)?

вторник, 28 мая 2013 г., 13:42:25 UTC+4 пользователь ru написал:
>
> Dear clojure-users,
>
> Loading a file with such content:
>
> (ns ru.rules
> (:use 
>   protege.core
>   rete.core :exclude [rutime])
> ...
>
> I get this error message:
>
> java.lang.Exception: Unsupported option(s) supplied: :exclude
> at clojure.core$load_libs.doInvoke(core.clj:5408)
> at clojure.lang.RestFn.applyTo(RestFn.java:137)
> at clojure.core$apply.invoke(core.clj:621)
> at clojure.core$use.doInvoke(core.clj:5507)
> at clojure.lang.RestFn.invoke(RestFn.java:457)
> at ru.rules$eval8$loading__4910__auto9.invoke(rules.clj:1)
> at ru.rules$eval8.invoke(rules.clj:1)
> at clojure.lang.Compiler.eval(Compiler.java:6619)
> 
>
> This contradict to official API documentation on Clojure v1.5. Am I right?
> Any help would be greatly appreciated.
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: java.lang.Exception: Unsupported option(s) supplied: :exclude

2013-05-28 Thread ru
Thank you, Michael, for the detailed  and comprehensive answer.

вторник, 28 мая 2013 г., 13:42:25 UTC+4 пользователь ru написал:
>
> Dear clojure-users,
>
> Loading a file with such content:
>
> (ns ru.rules
> (:use 
>   protege.core
>   rete.core :exclude [rutime])
> ...
>
> I get this error message:
>
> java.lang.Exception: Unsupported option(s) supplied: :exclude
> at clojure.core$load_libs.doInvoke(core.clj:5408)
> at clojure.lang.RestFn.applyTo(RestFn.java:137)
> at clojure.core$apply.invoke(core.clj:621)
> at clojure.core$use.doInvoke(core.clj:5507)
> at clojure.lang.RestFn.invoke(RestFn.java:457)
> at ru.rules$eval8$loading__4910__auto9.invoke(rules.clj:1)
> at ru.rules$eval8.invoke(rules.clj:1)
> at clojure.lang.Compiler.eval(Compiler.java:6619)
> 
>
> This contradict to official API documentation on Clojure v1.5. Am I right?
> Any help would be greatly appreciated.
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[ANN] rete4frames, v. 5.2.2 - CLIPS-like expert system shell

2015-02-19 Thread ru
Hello all,

New version 5.2.2 of rete4frames CLIPS-like expert system shell is 
published on https://github.com/rururu/rete4frames.

News:

1. Fixed several bugs.
2. Added several utility functions: load-facts, save-facts, slot-value, 
facts-with-slot-value.
3. Allowed comments in rules and facts files.
4. Added "Sudoku" game example (from CLIPS heritage)
5. Added "Hypertension" doctor's expert system example (The idea of this 
example was inspired by screencast of Ryan Brush on StrangeLoop 2014: 
(https://www.youtube.com/watch?v=Z6oVuYmRgkk))

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Does function core.async/poll! work?

2015-03-23 Thread ru
Hello all,

I can not use the poll! function in core.async namespace!
Getting an error message:

(ns navobs.core
  (:require ...
[clojure.core.async :as async :refer [chan poll! put!]]))
...
Compiling navobs.core
java.lang.IllegalAccessError: poll! does not exist, compiling:(core.clj:1:1)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3558)
at clojure.lang.Compiler.compile1(Compiler.java:7226)
at clojure.lang.Compiler.compile1(Compiler.java:7216)
at clojure.lang.Compiler.compile(Compiler.java:7292)
...

Thanx 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does function core.async/poll! work?

2015-03-23 Thread ru
[org.clojure/core.async "0.1.346.0-17112a-alpha"]

понедельник, 23 марта 2015 г., 17:41:32 UTC+3 пользователь ru написал:
>
> Hello all,
>
> I can not use the poll! function in core.async namespace!
> Getting an error message:
>
> (ns navobs.core
>   (:require ...
> [clojure.core.async :as async :refer [chan poll! put!]]))
> ...
> Compiling navobs.core
> java.lang.IllegalAccessError: poll! does not exist, 
> compiling:(core.clj:1:1)
> at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3558)
> at clojure.lang.Compiler.compile1(Compiler.java:7226)
> at clojure.lang.Compiler.compile1(Compiler.java:7216)
> at clojure.lang.Compiler.compile(Compiler.java:7292)
> ...
>
> Thanx 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does function core.async/poll! work?

2015-03-23 Thread ru
Thank you, Timothy! 
Ok. Would you be so kind to point me what I must put in my project.clj file 
(:dependencies tag) to get SNAPSHOT version?

понедельник, 23 марта 2015 г., 17:41:32 UTC+3 пользователь ru написал:
>
> Hello all,
>
> I can not use the poll! function in core.async namespace!
> Getting an error message:
>
> (ns navobs.core
>   (:require ...
> [clojure.core.async :as async :refer [chan poll! put!]]))
> ...
> Compiling navobs.core
> java.lang.IllegalAccessError: poll! does not exist, 
> compiling:(core.clj:1:1)
> at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3558)
> at clojure.lang.Compiler.compile1(Compiler.java:7226)
> at clojure.lang.Compiler.compile1(Compiler.java:7216)
> at clojure.lang.Compiler.compile(Compiler.java:7292)
> ...
>
> Thanx 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does function core.async/poll! work?

2015-03-23 Thread ru
But there is no stable core.async API Reference.
I decided to include definition of pull! from github source code into my 
code for now, till this contradiction will be resolved. Is this OK?

понедельник, 23 марта 2015 г., 17:41:32 UTC+3 пользователь ru написал:
>
> Hello all,
>
> I can not use the poll! function in core.async namespace!
> Getting an error message:
>
> (ns navobs.core
>   (:require ...
> [clojure.core.async :as async :refer [chan poll! put!]]))
> ...
> Compiling navobs.core
> java.lang.IllegalAccessError: poll! does not exist, 
> compiling:(core.clj:1:1)
> at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3558)
> at clojure.lang.Compiler.compile1(Compiler.java:7226)
> at clojure.lang.Compiler.compile1(Compiler.java:7216)
> at clojure.lang.Compiler.compile(Compiler.java:7292)
> ...
>
> Thanx 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Best tools for profiling Clojure programs?

2014-06-20 Thread ru
Hi all,

What performance profiling instrument somebody can recommend for Clojure 
programs and corresponding documents, articles or tutorials. 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best tools for profiling Clojure programs?

2014-07-03 Thread ru
Thank you Niels,

вторник, 1 июля 2014 г., 15:10:42 UTC+4 пользователь Niels van Klaveren 
написал:
>
> A new option for test purposes is included in JDK 1.7.0_40 and up and is 
> called Java Mission Control. It is located in the JDK as /bin/jmc.exe.
>

Is this tool only for Windows? 

>
> With it you can connect to a local java process, or remotely through RMI, 
> and record all kinds of performance characteristics in a Flight Recording. 
> Such a flight recording can be a defined for a limited time, or it can 
> buffer the recording to record only the latest x minutes. Overhead depends 
> on the monitoring template used, but is typically around 2%. These 
> recordings can then be browsed, analyzed and queried in a pretty good 
> interface after the recording has been saved.
>
> To do so, you need to have the following options in your project.clj, and 
> run your project on a JDK > 1.7.0_40
>
> :jvm-opts [
> ; add Flight Recording options
> "-XX:+UnlockCommercialFeatures"
> "-XX:+FlightRecorder"
> ; add RMI connection (to connect to process remotely or 
> running as service/daemon)
> ; this example has NO authentication enabled through the 
> RMI port
> "-Dcom.sun.management.jmxremote"
> "-Dcom.sun.management.jmxremote.port="
> "-Dcom.sun.management.jmxremote.authenticate=false"
> "-Dcom.sun.management.jmxremote.ssl=false"]
>
>
> On Friday, June 20, 2014 3:05:05 PM UTC+2, ru wrote:
>>
>> Hi all,
>>
>> What performance profiling instrument somebody can recommend for Clojure 
>> programs and corresponding documents, articles or tutorials. 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] rete4frames, v. 5.1.0 - CLIPS-like expert system shell

2014-08-19 Thread ru
Hello all,

New version 5.1.0 of rete4frames CLIPS-like expert system shell published 
on https://github.com/rururu/rete4frames.

New features:

1. Alpha-memory reimplemented as hash map. As a result gained better 
performance up to 47% on Mrs.Manners and Waltz benchmarks.
2. To "depth" conflict resolution strategy (default) added optional 
"breadth" strategy.
3. Added example of "classic" expert system. This expert system diagnoses 
some simple problems with a car.

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] rete4frames, v. 5.2.0 - CLIPS-like expert system shell

2014-10-11 Thread ru
Hello all,

New version 5.2.0 of rete4frames CLIPS-like expert system shell published 
on https://github.com/rururu/rete4frames.

News:

1. Tests can be used in negative condition
2. Because of this CLIPS examples reducted to canonical form
3. Several bug fixes including logical
4. Lot of code optimizations

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] rete4frames, v. 5.2.0 - CLIPS-like expert system shell

2014-10-13 Thread ru
Hi Shantanu,

1. I am waiting for bug reports from you, guys :)
2. Does this create some problems?

-- ru


суббота, 11 октября 2014 г., 20:59:43 UTC+4 пользователь ru написал:
>
> Hello all,
>
> New version 5.2.0 of rete4frames CLIPS-like expert system shell published 
> on https://github.com/rururu/rete4frames.
>
> News:
>
> 1. Tests can be used in negative condition
> 2. Because of this CLIPS examples reducted to canonical form
> 3. Several bug fixes including logical
> 4. Lot of code optimizations
>
> 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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] rete4frames, v. 5.2.0 - CLIPS-like expert system shell

2014-10-13 Thread ru
Hello kovasb,

I recommend you to have a quick look on this 3 pages:

1. http://en.wikipedia.org/wiki/CLIPS
2. http://en.wikipedia.org/wiki/Expert_system
3. http://clipsrules.sourceforge.net/

Rete4frames allows to embed this functionallity into Clojure programs.

Hope this helps.
Sincerely,
  Ru

понедельник, 13 октября 2014 г., 22:30:26 UTC+4 пользователь kovasb написал:
>
> This looks like a cool project. 
>
> One comment: I don't know what CLIPS or frames are (I've heard of rete 
> once or twice), so its hard for me to understand what rete4frames is 
> or what problem it might solve for me. Might be help to have some very 
> basic explanation of the use cases / advantages of this system to 
> orient simple Clojure programmers like myself. 
>
>
>
>
>
> On Mon, Oct 13, 2014 at 8:36 AM, Shantanu Kumar 
> > wrote: 
> > OK, I understand now - will report bugs if I find any, am at a newbie 
> level 
> > now. I was confused whether it's an Alpha release, because the subject 
> > didn't mention that. 
> > 
> > Shantanu 
> > 
> > 
> > On Monday, 13 October 2014 17:46:30 UTC+5:30, ru wrote: 
> >> 
> >> Hi Shantanu, 
> >> 
> >> 1. I am waiting for bug reports from you, guys :) 
> >> 2. Does this create some problems? 
> >> 
> >> -- ru 
> >> 
> >> 
> >> суббота, 11 октября 2014 г., 20:59:43 UTC+4 пользователь ru написал: 
> >>> 
> >>> Hello all, 
> >>> 
> >>> New version 5.2.0 of rete4frames CLIPS-like expert system shell 
> published 
> >>> on https://github.com/rururu/rete4frames. 
> >>> 
> >>> News: 
> >>> 
> >>> 1. Tests can be used in negative condition 
> >>> 2. Because of this CLIPS examples reducted to canonical form 
> >>> 3. Several bug fixes including logical 
> >>> 4. Lot of code optimizations 
> >>> 
> >>> 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 clo...@googlegroups.com 
>  
> > Note that posts from new members are moderated - please be patient with 
> your 
> > first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com  
> > For more options, visit this group at 
> > http://groups.google.com/group/clojure?hl=en 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Clojure" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to clojure+u...@googlegroups.com . 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] rete4frames, v. 5.2.0 - CLIPS-like expert system shell

2014-11-22 Thread ru
Hello all,

New version 5.2.1 of rete4frames CLIPS-like expert system shell published 
on https://github.com/rururu/rete4frames.

News:

1. Fixed nasty bug preventing matching of a variable slot in a pattern with 
an undefined slot in a fact.
2. Performance improvement by factor 2.
3. Corrected an example of an expert system for diagnoses some simple 
problems with a car, more conformity with the original CLIPS example.

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] rete4frames, v. 5.2.1 - CLIPS-like expert system shell

2014-11-22 Thread ru
Hello all,

New version 5.2.1 of rete4frames CLIPS-like expert system shell published 
on https://github.com/rururu/rete4frames.

News:

1. Fixed nasty bug preventing matching of a variable slot in a pattern with 
an undefined slot in a fact.
2. Performance improvement by factor 2.
3. Corrected an example of an expert system for diagnoses some simple 
problems with a car, more conformity with the original CLIPS example.

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] Clojure integrates 5 frameworks to create 3D virtual sailing environment

2021-05-04 Thread ru
Dear Clojure users!

Clojure integrates 5 frameworks to create 3D virtual sailing environment, 
namely:

1. Protege ontology editor https://protege.stanford.edu/
2. Openmap GIS library http://openmap-java.org/
3. Virtual Regatta popular game with VR Dashboard plugin 
https://www.virtualregatta.com/en/ , 
https://martinez58400.wixsite.com/navigationvirtuelle/vr-dashboard?lang=en
4. Cesiumjs  3D geospatial visualization platform 
https://cesium.com/platform/cesiumjs/
5. Expert system shell rete4frames for informatio processing 
https://github.com/rururu/rete4frames

It includes full multiwindowed Clojure IDE for further development.

Screencast: https://www.youtube.com/watch?v=LYRTzwEeJqw
Project page: https://github.com/rururu/sail-pro

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/e047fe0b-1907-4c55-9a81-4129b9577554n%40googlegroups.com.


Re: [ANN] Clojure integrates 5 frameworks to create 3D virtual sailing environment

2021-05-11 Thread ru
New version published.
Start simplified: no need to start intermediate NMEA server and other minor 
goodies.
Enjoy,
  Ru

вторник, 4 мая 2021 г. в 20:00:35 UTC+3, ru: 

> Dear Clojure users!
>
> Clojure integrates 5 frameworks to create 3D virtual sailing environment, 
> namely:
>
> 1. Protege ontology editor https://protege.stanford.edu/
> 2. Openmap GIS library http://openmap-java.org/
> 3. Virtual Regatta popular game with VR Dashboard plugin 
> https://www.virtualregatta.com/en/ , 
> https://martinez58400.wixsite.com/navigationvirtuelle/vr-dashboard?lang=en
> 4. Cesiumjs  3D geospatial visualization platform 
> https://cesium.com/platform/cesiumjs/
> 5. Expert system shell rete4frames for informatio processing 
> https://github.com/rururu/rete4frames
>
> It includes full multiwindowed Clojure IDE for further development.
>
> Screencast: https://www.youtube.com/watch?v=LYRTzwEeJqw
> Project page: https://github.com/rururu/sail-pro
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/9dc002da-6c19-45e1-8568-3a3e5f761273n%40googlegroups.com.


Re: [ANN] Clojure integrates 5 frameworks to create 3D virtual sailing environment

2021-05-17 Thread ru
Yet another version! 
New features: 

1. Direct java start (no need of Leiningen and CLJ) 
2. Acquaintance with neighborhood using Wikipedia while virtually sailing

Fixed bug of one-time NMEA data recieve.

Enjoy,
  Ru

среда, 12 мая 2021 г. в 09:47:34 UTC+3, ru: 

> New version published.
> Start simplified: no need to start intermediate NMEA server and other 
> minor goodies.
> Enjoy,
>   Ru
>
> вторник, 4 мая 2021 г. в 20:00:35 UTC+3, ru: 
>
>> Dear Clojure users!
>>
>> Clojure integrates 5 frameworks to create 3D virtual sailing environment, 
>> namely:
>>
>> 1. Protege ontology editor https://protege.stanford.edu/
>> 2. Openmap GIS library http://openmap-java.org/
>> 3. Virtual Regatta popular game with VR Dashboard plugin 
>> https://www.virtualregatta.com/en/ , 
>> https://martinez58400.wixsite.com/navigationvirtuelle/vr-dashboard?lang=en
>> 4. Cesiumjs  3D geospatial visualization platform 
>> https://cesium.com/platform/cesiumjs/
>> 5. Expert system shell rete4frames for informatio processing 
>> https://github.com/rururu/rete4frames
>>
>> It includes full multiwindowed Clojure IDE for further development.
>>
>> Screencast: https://www.youtube.com/watch?v=LYRTzwEeJqw
>> Project page: https://github.com/rururu/sail-pro
>>
>> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/2bf55473-aa01-49f3-8b8d-2bb8f1308b5an%40googlegroups.com.


Re: [ANN] Clojure integrates 5 frameworks to create 3D virtual sailing environment

2021-05-21 Thread ru
One more version!

New feature: Nearby yachts visibility: 
https://www.youtube.com/watch?v=57WU1qmrENQ

Enjoy,
  Ru

понедельник, 17 мая 2021 г. в 11:45:55 UTC+3, ru: 

> Yet another version! 
> New features: 
>
> 1. Direct java start (no need of Leiningen and CLJ) 
> 2. Acquaintance with neighborhood using Wikipedia while virtually sailing
>
> Fixed bug of one-time NMEA data recieve.
>
> Enjoy,
>   Ru
>
> среда, 12 мая 2021 г. в 09:47:34 UTC+3, ru: 
>
>> New version published.
>> Start simplified: no need to start intermediate NMEA server and other 
>> minor goodies.
>> Enjoy,
>>   Ru
>>
>> вторник, 4 мая 2021 г. в 20:00:35 UTC+3, ru: 
>>
>>> Dear Clojure users!
>>>
>>> Clojure integrates 5 frameworks to create 3D virtual sailing 
>>> environment, namely:
>>>
>>> 1. Protege ontology editor https://protege.stanford.edu/
>>> 2. Openmap GIS library http://openmap-java.org/
>>> 3. Virtual Regatta popular game with VR Dashboard plugin 
>>> https://www.virtualregatta.com/en/ , 
>>> https://martinez58400.wixsite.com/navigationvirtuelle/vr-dashboard?lang=en
>>> 4. Cesiumjs  3D geospatial visualization platform 
>>> https://cesium.com/platform/cesiumjs/
>>> 5. Expert system shell rete4frames for informatio processing 
>>> https://github.com/rururu/rete4frames
>>>
>>> It includes full multiwindowed Clojure IDE for further development.
>>>
>>> Screencast: https://www.youtube.com/watch?v=LYRTzwEeJqw
>>> Project page: https://github.com/rururu/sail-pro
>>>
>>> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/ea11f991-caa5-46fe-8ea9-a4df879276e7n%40googlegroups.com.


How to get a value of a var in Java

2021-06-18 Thread ru
Dear Clojure users and team!
Citation 1 from Clojure documentation:

"Calling Clojure From Java..
IFn plus = Clojure.var("clojure.core", "+"); 
plus.invoke(1, 2);.."

With functions all well but with def..

Citation 2:

"(def *symbol* *doc-string*? *init*?)

Creates and interns or locates a global var 
<https://clojure.org/reference/vars> with the name of *symbol* and a 
namespace of the value of the current namespace (*ns*). "

I can not figure out how to get the value of the symbol, created with def 
construct in Clojure and, for example, print it with System.out.println in 
Java.

I tried everything, nothing works! :(

Any help would be greatly appreciated.

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com.


Re: How to get a value of a var in Java

2021-06-18 Thread ru
Thanx Alex!

Alas, with defn it works, with def - not! :(

пятница, 18 июня 2021 г. в 15:31:03 UTC+3, Alex Ott: 

> does this answer your q: 
> https://stackoverflow.com/questions/2181774/calling-clojure-from-java/2182608#2182608
>  
> ?
>
> On Fri, Jun 18, 2021 at 12:53 PM ru  wrote:
>
>> Dear Clojure users and team!
>> Citation 1 from Clojure documentation:
>>
>> "Calling Clojure From Java..
>> IFn plus = Clojure.var("clojure.core", "+"); 
>> plus.invoke(1, 2);.."
>>
>> With functions all well but with def..
>>
>> Citation 2:
>>
>> "(def *symbol* *doc-string*? *init*?)
>>
>> Creates and interns or locates a global var 
>> <https://clojure.org/reference/vars> with the name of *symbol* and a 
>> namespace of the value of the current namespace (*ns*). "
>>
>> I can not figure out how to get the value of the symbol, created with def 
>> construct in Clojure and, for example, print it with System.out.println in 
>> Java.
>>
>> I tried everything, nothing works! :(
>>
>> Any help would be greatly appreciated.
>>
>> Sincerely,
>>
>>   Ru
>>
>>
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> With best wishes,Alex Ott
> http://alexott.net/
> Twitter: alexott_en (English), alexott (Russian)
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/ff4cb2f0-b121-4c54-b060-a1e64fbb0e4an%40googlegroups.com.


Re: How to get a value of a var in Java

2021-06-18 Thread ru
Can you please rewrite your example in Java, that I can try it?
By the way, can you give a reference on javadoc in witch IDeref class 
documented? 
Thanks in advance.

пятница, 18 июня 2021 г. в 16:17:36 UTC+3, ch...@techascent.com: 

> Vars extend IDeref so one way to get the value of a var is to call .deref 
> on it:
>
> user> (def a)
> #'user/a
> user> (defn ab [] 1)
> #'user/ab
> user> (.deref (clojure.lang.RT/var "user" "a"))
> 2
> user> (.deref (clojure.lang.RT/var "user" "ab"))
> #function[user/ab]
>
>
>
> On Fri, Jun 18, 2021 at 7:12 AM ru  wrote:
>
>> Thanx Alex!
>>
>> Alas, with defn it works, with def - not! :(
>>
>> пятница, 18 июня 2021 г. в 15:31:03 UTC+3, Alex Ott: 
>>
>>> does this answer your q: 
>>> https://stackoverflow.com/questions/2181774/calling-clojure-from-java/2182608#2182608
>>>  
>>> ?
>>>
>>> On Fri, Jun 18, 2021 at 12:53 PM ru  wrote:
>>>
>>>> Dear Clojure users and team!
>>>> Citation 1 from Clojure documentation:
>>>>
>>>> "Calling Clojure From Java..
>>>> IFn plus = Clojure.var("clojure.core", "+"); 
>>>> plus.invoke(1, 2);.."
>>>>
>>>> With functions all well but with def..
>>>>
>>>> Citation 2:
>>>>
>>>> "(def *symbol* *doc-string*? *init*?)
>>>>
>>>> Creates and interns or locates a global var 
>>>> <https://clojure.org/reference/vars> with the name of *symbol* and a 
>>>> namespace of the value of the current namespace (*ns*). "
>>>>
>>>> I can not figure out how to get the value of the symbol, created with 
>>>> def construct in Clojure and, for example, print it with 
>>>> System.out.println 
>>>> in Java.
>>>>
>>>> I tried everything, nothing works! :(
>>>>
>>>> Any help would be greatly appreciated.
>>>>
>>>> Sincerely,
>>>>
>>>>   Ru
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Clojure" group.
>>>> To post to this group, send email to clo...@googlegroups.com
>>>> Note that posts from new members are moderated - please be patient with 
>>>> your first post.
>>>> To unsubscribe from this group, send email to
>>>> clojure+u...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/clojure?hl=en
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Clojure" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to clojure+u...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> -- 
>>> With best wishes,Alex Ott
>>> http://alexott.net/
>>> Twitter: alexott_en (English), alexott (Russian)
>>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/clojure/ff4cb2f0-b121-4c54-b060-a1e64fbb0e4an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/clojure/ff4cb2f0-b121-4c54-b060-a1e64fbb0e4an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/e7f0c619-25eb-4245-b039-cbeb344da0acn%40googlegroups.com.


Re: How to get a value of a var in Java

2021-06-18 Thread ru
Thank you, Gary, for the comprehensive answer. I have a control over 
Clojure side, so I decide to add special functions to get values of needed 
vars.
Thanks to all for the help.

Best regards,
  Ru

пятница, 18 июня 2021 г. в 20:23:31 UTC+3, gary.ve...@gmail.com: 

> The official Clojure API for Java is defined here 
> <https://clojure.github.io/clojure/javadoc/clojure/java/api/Clojure.html> and 
> only supports importing Clojure vars under the IFn interface. In other 
> words, you can only import Clojure functions, not Clojure values, through 
> that API. What you are trying to do is not supported.
>
> That does not mean it's impossible. If you control the Clojure side, the 
> easiest approach is to just make a function and call that through the 
> official API. If for some reason that's not an option, you can try 
> gen-class <https://clojuredocs.org/clojure.core/gen-class>, which may be 
> faster.
>
> If you can't change the Clojure side, you'll have to use undocumented 
> APIs. The Clojure.var 
> <https://github.com/clojure/clojure/blob/master/src/jvm/clojure/java/api/Clojure.java#L82>
>  call 
> will return a Var 
> <https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Var.java>
>  (cast 
> to the IFn 
> <https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/IFn.java>
>  
> interface), which has a deref() 
> <https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Var.java#L199>
>  
> method that should get you the underlying value. This is undocumented so it 
> may break and all that, but it really looks like all you need to do is cast 
> that IFn back to a Var (or an IDeref 
> <https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/IDeref.java>,
>  
> as Chris suggested).
>
> Overall, I'd strongly recommend going through the documented API and just 
> add a no-arg function.
>
> On Fri, 18 Jun 2021 at 12:53, ru  wrote:
>
>> Dear Clojure users and team!
>> Citation 1 from Clojure documentation:
>>
>> "Calling Clojure From Java..
>> IFn plus = Clojure.var("clojure.core", "+"); 
>> plus.invoke(1, 2);.."
>>
>> With functions all well but with def..
>>
>> Citation 2:
>>
>> "(def *symbol* *doc-string*? *init*?)
>>
>> Creates and interns or locates a global var 
>> <https://clojure.org/reference/vars> with the name of *symbol* and a 
>> namespace of the value of the current namespace (*ns*). "
>>
>> I can not figure out how to get the value of the symbol, created with def 
>> construct in Clojure and, for example, print it with System.out.println in 
>> Java.
>>
>> I tried everything, nothing works! :(
>>
>> Any help would be greatly appreciated.
>>
>> Sincerely,
>>
>>   Ru
>>
>>
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/33e8dc71-7199-4f14-86d6-97b549b3b6e0n%40googlegroups.com.


Re: [ANN] Clojure integrates 5 frameworks to create 3D virtual sailing environment

2021-07-29 Thread ru
Added more new videos, including:

- Strait of Magellan https://www.youtube.com/watch?v=0VbBxUmGszg
- Rounding Cape Horn https://www.youtube.com/watch?v=eRwe14Fn5Ac
- more https://github.com/rururu/sail-pro/blob/main/doc/vr_videos.md

Enjoy,
  Ru
пятница, 21 мая 2021 г. в 11:28:16 UTC+3, ru: 

> One more version!
>
> New feature: Nearby yachts visibility: 
> https://www.youtube.com/watch?v=57WU1qmrENQ
>
> Enjoy,
>   Ru
>
> понедельник, 17 мая 2021 г. в 11:45:55 UTC+3, ru: 
>
>> Yet another version! 
>> New features: 
>>
>> 1. Direct java start (no need of Leiningen and CLJ) 
>> 2. Acquaintance with neighborhood using Wikipedia while virtually sailing
>>
>> Fixed bug of one-time NMEA data recieve.
>>
>> Enjoy,
>>   Ru
>>
>> среда, 12 мая 2021 г. в 09:47:34 UTC+3, ru: 
>>
>>> New version published.
>>> Start simplified: no need to start intermediate NMEA server and other 
>>> minor goodies.
>>> Enjoy,
>>>   Ru
>>>
>>> вторник, 4 мая 2021 г. в 20:00:35 UTC+3, ru: 
>>>
>>>> Dear Clojure users!
>>>>
>>>> Clojure integrates 5 frameworks to create 3D virtual sailing 
>>>> environment, namely:
>>>>
>>>> 1. Protege ontology editor https://protege.stanford.edu/
>>>> 2. Openmap GIS library http://openmap-java.org/
>>>> 3. Virtual Regatta popular game with VR Dashboard plugin 
>>>> https://www.virtualregatta.com/en/ , 
>>>> https://martinez58400.wixsite.com/navigationvirtuelle/vr-dashboard?lang=en
>>>> 4. Cesiumjs  3D geospatial visualization platform 
>>>> https://cesium.com/platform/cesiumjs/
>>>> 5. Expert system shell rete4frames for informatio processing 
>>>> https://github.com/rururu/rete4frames
>>>>
>>>> It includes full multiwindowed Clojure IDE for further development.
>>>>
>>>> Screencast: https://www.youtube.com/watch?v=LYRTzwEeJqw
>>>> Project page: https://github.com/rururu/sail-pro
>>>>
>>>> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/f612b5b7-a7ad-4739-b3bb-8649364de65an%40googlegroups.com.


core.logic question

2021-09-11 Thread ru
Dear clojure users and team!
I have a simple core.logic program:

(require '[clojure.core.logic :as l]
 '[clojure.core.logic.pldb :as db])
 
(db/db-rel In-zone t z)

(def bd (db/db-fact bd In-zone 'A 'B))

(println
  (db/with-db bd
(l/run* [q]
  (l/fresh [x y]
(In-zone x y)
(== q 'IN-ZONE)

Why I get this error message? 

user=> (load-file "../programs/corelogic/search2.clj")
CompilerException java.lang.ClassCastException: class 
clojure.core.logic.LVar cannot be cast to class java.lang.Number 
(clojure.core.logic.LVar is in unnamed module of loader 
clojure.lang.DynamicClassLoader @233ae292; java.lang.Number is in module 
java.base of loader 'bootstrap'), 
compiling:(/home/ru/clojure/core.logic/../programs/corelogic/search2.clj:8:1) 

No any mention about numbers!

Thanks in advance for the help.
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/9b74d145-0f03-4663-a760-463a3a925f5dn%40googlegroups.com.


Re: core.logic question

2021-09-29 Thread ru
Thanks to Tom: Mistake in "(== q 'IN-ZONE)". Must be "(l/== q 'IN-ZONE)"

By the way. Can anybody recommend comprehensive documentation on core.logic 
and its API, with examples and so on? All I have found is sketchy and 
fragmentary..

суббота, 11 сентября 2021 г. в 20:15:50 UTC+3, ru: 

> Dear clojure users and team!
> I have a simple core.logic program:
>
> (require '[clojure.core.logic :as l]
>  '[clojure.core.logic.pldb :as db])
>  
> (db/db-rel In-zone t z)
>
> (def bd (db/db-fact bd In-zone 'A 'B))
>
> (println
>   (db/with-db bd
> (l/run* [q]
>   (l/fresh [x y]
> (In-zone x y)
> (== q 'IN-ZONE)
>
> Why I get this error message? 
>
> user=> (load-file "../programs/corelogic/search2.clj")
> CompilerException java.lang.ClassCastException: class 
> clojure.core.logic.LVar cannot be cast to class java.lang.Number 
> (clojure.core.logic.LVar is in unnamed module of loader 
> clojure.lang.DynamicClassLoader @233ae292; java.lang.Number is in module 
> java.base of loader 'bootstrap'), 
> compiling:(/home/ru/clojure/core.logic/../programs/corelogic/search2.clj:8:1) 
>
> No any mention about numbers!
>
> Thanks in advance for the help.
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/8b7af56b-b561-469e-a54f-a846d62d6847n%40googlegroups.com.


Can't start figweel.main on other Linux-machine

2023-11-28 Thread ru
I moved a working project from one Linux-machine to other.
And that's what I got:

ru@ru-sitrol:~$ cd clojure/pro-figweel/
ru@ru-sitrol:~/clojure/pro-figweel$ clojure -m figweel.main -b dev -r
Downloading: com/bhauman/figwheel-main/0.2.6/figwheel-main-0.2.6.pom from 
clojars
Downloading: 
com/bhauman/rebel-readline-cljs/0.1.4/rebel-readline-cljs-0.1.4.pom from 
clojars
Downloading: com/bhauman/rebel-readline/0.1.4/rebel-readline-0.1.4.pom from 
clojars
Downloading: 
com/bhauman/cljs-test-display/0.1.1/cljs-test-display-0.1.1.pom from clojars
Downloading: com/bhauman/figwheel-repl/0.2.6/figwheel-repl-0.2.6.pom from 
clojars
Downloading: com/bhauman/figwheel-core/0.2.6/figwheel-core-0.2.6.pom from 
clojars
Downloading: com/bhauman/spell-spec/0.1.1/spell-spec-0.1.1.pom from clojars
Downloading: 
com/bhauman/cljs-test-display/0.1.1/cljs-test-display-0.1.1.jar from clojars
Downloading: com/bhauman/figwheel-repl/0.2.6/figwheel-repl-0.2.6.jar from 
clojars
Downloading: com/bhauman/rebel-readline/0.1.4/rebel-readline-0.1.4.jar from 
clojars
Downloading: com/bhauman/spell-spec/0.1.1/spell-spec-0.1.1.jar from clojars
Downloading: com/bhauman/figwheel-main/0.2.6/figwheel-main-0.2.6.jar from 
clojars
Downloading: com/bhauman/figwheel-core/0.2.6/figwheel-core-0.2.6.jar from 
clojars
Downloading: 
com/bhauman/rebel-readline-cljs/0.1.4/rebel-readline-cljs-0.1.4.jar from 
clojars
WARNING: Implicit use of clojure.main with options is deprecated, use -M
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
Could not locate figweel/main__init.class, figweel/main.clj or 
figweel/main.cljc on classpath.

Full report at:
/tmp/clojure-5895329516753450693.edn
ru@ru-sitrol:~/clojure/pro-figweel$ clojure -M -m figweel.main -b dev -r
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
Could not locate figweel/main__init.class, figweel/main.clj or 
figweel/main.cljc on classpath.

Full report at:
/tmp/clojure-8264509519616120954.edn
ru@ru-sitrol:~/clojure/pro-figweel$

Full report is:
{:clojure.main/message
 "Execution error (FileNotFoundException) at clojure.main/main 
(main.java:40).\nCould not locate figweel/main__init.class, 
figweel/main.clj or figweel/main.cljc on classpath.\n",
 :clojure.main/triage
 {:clojure.error/class java.io.FileNotFoundException,
  :clojure.error/line 40,
  :clojure.error/cause
  "Could not locate figweel/main__init.class, figweel/main.clj or 
figweel/main.cljc on classpath.",
  :clojure.error/symbol clojure.main/main,
  :clojure.error/source "main.java",
  :clojure.error/phase :execution},
 :clojure.main/trace
 {:via
  [{:type java.io.FileNotFoundException,
:message
"Could not locate figweel/main__init.class, figweel/main.clj or 
figweel/main.cljc on classpath.",
:at [clojure.lang.RT load "RT.java" 462]}],
  :trace
  [[clojure.lang.RT load "RT.java" 462]
   [clojure.lang.RT load "RT.java" 424]
   [clojure.core$load$fn__6908 invoke "core.clj" 6161]
   [clojure.core$load invokeStatic "core.clj" 6160]
   [clojure.core$load doInvoke "core.clj" 6144]
   [clojure.lang.RestFn invoke "RestFn.java" 408]
   [clojure.core$load_one invokeStatic "core.clj" 5933]
   [clojure.core$load_one invoke "core.clj" 5928]
   [clojure.core$load_lib$fn__6850 invoke "core.clj" 5975]
   [clojure.core$load_lib invokeStatic "core.clj" 5974]
   [clojure.core$load_lib doInvoke "core.clj" 5953]
   [clojure.lang.RestFn applyTo "RestFn.java" 142]
   [clojure.core$apply invokeStatic "core.clj" 669]
   [clojure.core$load_libs invokeStatic "core.clj" 6016]
   [clojure.core$load_libs doInvoke "core.clj" 6000]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.core$apply invokeStatic "core.clj" 669]
   [clojure.core$require invokeStatic "core.clj" 6038]
   [clojure.main$main_opt invokeStatic "main.clj" 514]
   [clojure.main$main_opt invoke "main.clj" 510]
   [clojure.main$main invokeStatic "main.clj" 664]
   [clojure.main$main doInvoke "main.clj" 616]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.main main "main.java" 40]],
  :cause
  "Could not locate figweel/main__init.class, figweel/main.clj or 
figweel/main.cljc on classpath."}}

, same as previous.
  

What can be reason of this?
Any help would be greatly appreciated.

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit 

Re: Can't start figweel.main on other Linux-machine

2023-12-07 Thread ru
Thank you, Gary! Sorry, my inadvertency.

среда, 29 ноября 2023 г. в 02:37:23 UTC+3, Gary Johnson: 

> ru  writes:
>
> > I moved a working project from one Linux-machine to other.
> > And that's what I got:
> >
> > ru@ru-sitrol:~$ cd clojure/pro-figweel/
> > ru@ru-sitrol:~/clojure/pro-figweel$ clojure -m figweel.main -b dev -r
>
> 8<-->8
>
> Downloading from clojars and error messages elided
>
> 8<-->8
>
> > "Could not locate figweel/main__init.class, figweel/main.clj or
> > figweel/main.cljc on classpath."}}
> >
> >
> > What can be reason of this?
> > Any help would be greatly appreciated.
> >
> > Sincerely,
> > Ru
>
> Hi Ru,
>
> You are the victim of a typo, I'm afraid. You forgot the "h" in
> "figwheel". The correct command should be:
>
> ```
> ru@ru-sitrol:~/clojure/pro-figweel$ clojure -m figwheel.main -b dev -r
> ```
>
> Have fun and happy hacking!
> Gary
>
> -- 
> GPG Key ID: 7BC158ED
> Use `gpg --search-keys lambda...@gmail.com' to find me
> Protect yourself from surveillance: https://emailselfdefense.fsf.org
> ===
> () ascii ribbon campaign - against html e-mail
> /\ www.asciiribbon.org - against proprietary attachments
>
> Why is HTML email a security nightmare? See https://useplaintext.email/
>
> Please avoid sending me MS-Office attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.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 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/e9174146-49ed-4f7b-bdf8-26461828f096n%40googlegroups.com.


[ANN] Simple Clojure/ClojureScript IDE based on Protege and Figwheel-main

2023-12-07 Thread ru
Dear clojure users and team!
I like to present a simple IDE that use an ontology editor Protege as GUI 
and data modeller and ClojureScript library Figwheel-main.
Project page: https://github.com/rururu/pro-figwheel
It has 3 short video lessons.
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 members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/9d632985-12a6-40ab-b7cd-48b33cf58551n%40googlegroups.com.


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

2016-07-04 Thread ru
Hi,

 A prototype of an expert system for coastal navigation - test example for 
the rete4frames <http://github.com/rururu/rete4frames> expert system shell 
- complex Clojure-ClojureScript client-server application. Project page: 
http://github.com/rururu/es-boat

It uses Protege-3.5 ontology editor <http://protege.stanford.edu/> as a 
knowledge representation system and GUI, OpenStreetMap 
<https://wiki.openstreetmap.org/wiki/API> API, Leaflet 
<http://leafletjs.com/> JavaScript library, Cesium <https://cesiumjs.org/> 
WebGL 
virtual globe and map engine, GeoNames <http://www.geonames.org/> geographical 
database and Wikipedia.

 New functionality: Expert system now connected to Wikipedia through 
GeoNames.

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 members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How I can access protected field of superclass from my generated by "gen-class" subclass?

2016-07-09 Thread ru
How I can access protected field of superclass from my generated by 
"gen-class" subclass. Explanation in API documentaion quite obscure:

"...
:exposes {protected-field-name {:get name :set name}, ...}

Since the implementations of the methods of the generated class
occur in Clojure functions, they have no access to the inherited
protected fields of the superclass. This parameter can be used to
generate public getter/setter methods exposing the protected field(s) 

for use in the implementation.
..."

I did not find examples :( My straightforward implementation gives error 
messages :( Can somebody point me out working examples, please. 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How I can access protected field of superclass from my generated by "gen-class" subclass?

2016-07-15 Thread ru
Ron! Thank you for the interesting example. I myself come to a simple 
solution, based on storing reference to the class object in THIS Var.

(:gen-class
  :name com.bbn.openmap.layer.etopo.ETOPOEleLayer
  :extends com.bbn.openmap.layer.etopo.ETOPOLayer
  :exposes {dataBuffer {:get getDataBuffer}
  bufferWidth {:get getBufferWidth}
  bufferHeight {:get getBufferHeight}}
  :post-init pinit)

(defn -pinit [this]
  *(def THIS this)*)

(defn elevation [[lat lon]]
  (let [bwd (or BUFWID (do (def BUFWID *(.getBufferWidth THIS))* BUFWID))
 scy (or SCY (do (def SCY (float (/ *(.getBufferHeight THIS)* 
180.0))) SCY))
 scx (or SCX (do (def SCX (float (/ bwd 360.0))) SCX))
 lat_idx (int (* (- 90.0 lat) scy))
 lon_idx (int (* lon scx))
 ofs (+ lon_idx (* lat_idx bwd))]
(aget *(.getDataBuffer THIS)* ofs)))

суббота, 9 июля 2016 г., 15:39:00 UTC+3 пользователь ru написал:
>
> How I can access protected field of superclass from my generated by 
> "gen-class" subclass. Explanation in API documentaion quite obscure:
>
> "...
> :exposes {protected-field-name {:get name :set name}, ...}
>
> Since the implementations of the methods of the generated class
> occur in Clojure functions, they have no access to the inherited
> protected fields of the superclass. This parameter can be used to
> generate public getter/setter methods exposing the protected field(s) 
>
> for use in the implementation.
> ..."
>
> I did not find examples :( My straightforward implementation gives error 
> messages :( Can somebody point me out working examples, please. 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-09-02 Thread ru
Hi,

 "Real" air traffic control system and flight simulator - client-server 
ClojureScript-Clojure application based on:

1. *rete4frames* expert system shell (http://github.com/rururu/rete4frames/
),
2. *Flightradar24*  web service (http://www.flightradar24.com/), 
3. *Leaflet* JavaScript GIS libraty (http://leafletjs.com/), 
4. *Cesium* webGL virtual globe and map engine (http://cesiumjs.org/),
5. *GeoNames* geographical database web service (http://www.geonames.org/),
6.. *httpkit, compojure, core.async* and others Clojure libraries. 

Appllication page: https://github.com/rururu/rete4flights 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Frururu%2Frete4flights&sa=D&sntz=1&usg=AFQjCNE86jQG2cjhFKhXRdNqb95z7UCvKg>
.

News: 

1. You can get information about interesting things along the route from 
Wikipedia automatically.
2. Dependency libraries updated to newest versions.
3. Parameters adjusted
4. Fixed several bugs

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-09-07 Thread ru
News:

1. No need for Leiningen to run application.
2. Fixed crashes on landing in Cesium v.1.25

суббота, 3 сентября 2016 г., 8:39:49 UTC+3 пользователь ru написал:
>
> Hi,
>
>  "Real" air traffic control system and flight simulator - client-server 
> ClojureScript-Clojure application based on:
>
> 1. *rete4frames* expert system shell (
> http://github.com/rururu/rete4frames/),
> 2. *Flightradar24*  web service (http://www.flightradar24.com/), 
> 3. *Leaflet* JavaScript GIS libraty (http://leafletjs.com/), 
> 4. *Cesium* webGL virtual globe and map engine (http://cesiumjs.org/),
> 5. *GeoNames* geographical database web service (http://www.geonames.org/
> ),
> 6.. *httpkit, compojure, core.async* and others Clojure libraries. 
>
> Appllication page: https://github.com/rururu/rete4flights 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Frururu%2Frete4flights&sa=D&sntz=1&usg=AFQjCNE86jQG2cjhFKhXRdNqb95z7UCvKg>
> .
>
> News: 
>
> 1. You can get information about interesting things along the route from 
> Wikipedia automatically.
> 2. Dependency libraries updated to newest versions.
> 3. Parameters adjusted
> 4. Fixed several bugs
>
> 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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] rete4frames, v. 5.2.5 - CLIPS-like expert system shell

2016-09-17 Thread ru
Hi,

New version 5.2.5 of rete4frames CLIPS-like expert system shell is 
published on https://github.com/rururu/rete4frames.

News:

Integrated Development Environment based on Protege-3.5 ontology editor 
(http://protege.stanford.edu) is added.

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] rete4frames, v. 5.2.5 - CLIPS-like expert system shell

2016-09-22 Thread ru
Fixed bug not loading local repository. Sorry for mistake :(

Ru

суббота, 17 сентября 2016 г., 20:57:48 UTC+3 пользователь ru написал:
>
> Hi,
>
> New version 5.2.5 of rete4frames CLIPS-like expert system shell is 
> published on https://github.com/rururu/rete4frames.
>
> News:
>
> Integrated Development Environment based on Protege-3.5 ontology editor (
> http://protege.stanford.edu) is added.
>
> 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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] rete4frames, v. 5.3.0 - CLIPS-like expert system shell

2016-10-20 Thread ru
Hi,

New version 5.3.0 of rete4frames CLIPS-like expert system shell is 
published on https://github.com/rururu/rete4frames.

News:


   1. 
   
   Vastly refined and simplified parts of algorithm relating to handling of 
   negative conditions and conflict set resolution.
   2. 
   
   As a result disappeared a bug that lead randomly to double assertion of 
   the same fact. On the dark side is a slight downfall of performance.
   3. 
   
   Added RHS-function "fact-id", that can be used to get facts matched to 
   conditions in LHS.
   4. 
   
   Added RHS-functions "problem-solved", that can be used to empty the 
   conflict set when it is clear that activations in it is no needed anymore.
   5. IDE moved to separate repository https://github.com/rururu/r4f-pro.


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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Nightlight, an embedded editor for Clojure

2016-10-29 Thread ru


Great work, Zach! Thank you. I would like to switch from 
Lifhttable+Terminal working environment that I use now, to Nightlight. But 
I definitely need "Refresh folder" and/or "Refresh file" actions, because 
sometimes I update source files from outside of a project. Is it possible 
to add something like that to Nightlight? 

Sincerely,
 Ru

воскресенье, 9 октября 2016 г., 5:03:58 UTC+3 пользователь Zach Oakes 
написал:
>
> Just when you thought I was done with my weird obsession with making 
> projects that start with “night”, I went and made another. This one is 
> called Nightlight, and it’s a Clojure editor with a unique twist: it is 
> meant to run *inside* your project, giving it direct access to the state of 
> your program. This might end up being a great idea, or an embarrassingly 
> stupid one.
>
> Website: https://sekao.net/nightlight/
>
> Github: https://github.com/oakes/Nightlight
>
> I’ve only been working on this for a few weeks. To explain the idea, I’ll 
> channel Uncle Bob and give it to you in the form of a socratic dialog 
> between myself (Z1) and myself from two weeks ago (Z2):
>
> Z2: Nightcode has a lot of crippling limitations. It has no code 
> completion, for starters. Its instaREPL is a toy, because it only works 
> with clojure core. Forget about refactoring support.
>
> Z1: It’s almost as if these are caused by the same core issue.
>
> Z2: Yeah almost. Anyway where was I...
>
> Z1: No, they actually are. Traditional editors and IDEs have the same 
> basic design -- they are standalone programs, so they have to use all sorts 
> of complicated maneuvers to understand your project. It’s a huge source of 
> complexity.
>
> Z2: What’s the alternative?
>
> Z1: Imagine completely reversing the relationship. Instead of an external 
> tool enveloping and running your program, what if your program ran your 
> development tool? What if they lived in the same process? Your editor would 
> have direct access to the state of your program, opening the doors to all 
> sorts of interactivity.
>
> Z2: So what’s the alternative?
>
> Z1: Are you serious? I just explained it.
>
> Z2: Right. Genius! Nobody has thought of this before.
>
> Z1: Plenty of people have, but for the most part those tools are not 
> mainstream. Various Lisp and Smalltalk tools blurred those lines. For 
> example, DrRacket can run your code in the same Racket instance that it is 
> running in.
>
> Z2: Doesn’t this mean if you crash your program, you crash your editor?
>
> Z1: Yeah...don’t do that.
>
> Z2: Got it. How do we build it? Should we just shoehorn Nightcode into 
> some kind of build task, so it pops up every time you start developing a 
> project?
>
> Z1: That would be pretty obnoxious, which I realize makes the idea more 
> appealing to you. But consider this: if it was a totally browser-based 
> editor, we could just run a little web server inside your project and the 
> user could interact with it via a browser.
>
> Z2: That sounds like a lot of work.
>
> Z1: Not really. Nightcode’s editor is already browser-based, so we just 
> need to make the rest of the interface. It should only take about a month, 
> or even less if a large hurricane happens to slam your city in the near 
> future, giving you nothing else to do but code and drink beer.
>
> Z2: Hah yeah that’s not going to happen.
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] flights-pro, "Real" air traffic control system + flight simulator

2017-05-07 Thread ru
Hi,

*flights-pro*, substantially revised version of:

Air traffic control system and flight simulator - a test example for the 
*rete4frames* (http://github.com/rururu/rete4frames) expert system shell.
It uses *Flightradar24* (http://www.flightradar24.com) web service, 
*Leaflet* (http://leafletjs.com) JavaScript library, *Cesium* 
(https://cesiumjs.org/) WebGL virtual globe and map engine, *geonames* 
(http://www.geonames.org) geographical data web service and *Protege-3.5* 
(http://protege.stanford.edu) ontology editor as server-side GUI and 
Clojure/ClojureScript IDE.

Site: https://github.com/rururu/flights-pro

New features:

1. IDE and server-side GUI based on Protege-3.5.
2. Unified codebase for Clojure and ClojureScript.
3. Online development and debugging of Clojure, ClojureScript, HTML and CSS.
4. Question-answering system based on Expert system.
5. Cumulative data base of airports and Wikipedia articles based on 
Protege-3.5 knowledge representation system.
6. GUI for adjustment of scheduled flight's plan.
7. Educational screencasts.

and more...

Enjoy flying!

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] flights-pro, "Real" air traffic control system + flight simulator

2017-05-29 Thread ru
Hi,

1. Added GUI to control airplane dynamics of your own flights (manual and 
scheduled).
2. Increased visual distance of other airplanes.
3. Fixed some bugs.

Regards,
  Ru

воскресенье, 7 мая 2017 г., 16:47:01 UTC+3 пользователь ru написал:
>
> Hi,
>
> *flights-pro*, substantially revised version of:
>
> Air traffic control system and flight simulator - a test example for the 
> *rete4frames* (http://github.com/rururu/rete4frames) expert system shell.
> It uses *Flightradar24* (http://www.flightradar24.com) web service, 
> *Leaflet* (http://leafletjs.com) JavaScript library, *Cesium* (
> https://cesiumjs.org/) WebGL virtual globe and map engine, *geonames* (
> http://www.geonames.org) geographical data web service and *Protege-3.5* (
> http://protege.stanford.edu) ontology editor as server-side GUI and 
> Clojure/ClojureScript IDE.
>
> Site: https://github.com/rururu/flights-pro
>
> New features:
>
> 1. IDE and server-side GUI based on Protege-3.5.
> 2. Unified codebase for Clojure and ClojureScript.
> 3. Online development and debugging of Clojure, ClojureScript, HTML and 
> CSS.
> 4. Question-answering system based on Expert system.
> 5. Cumulative data base of airports and Wikipedia articles based on 
> Protege-3.5 knowledge representation system.
> 6. GUI for adjustment of scheduled flight's plan.
> 7. Educational screencasts.
>
> and more...
>
> Enjoy flying!
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] r4f-pro: IDE for visual ontology-based, rule-based and algorithm-based software development

2017-07-10 Thread ru
Hi,

Update to r4f-pro project: https://github.com/rururu/r4f-pro

Integrated Development Environment for 
[rete4frames](https://github.com/rururu/rete4frames) rule engine and expert 
system shell based on [Protege-3.5 ontology 
editor](http://protege.stanford.edu) supplemented with visual creation of 
algorithms. It combines two well-known paradigms of software development: 
algorithms for strictly defined processes and rules for fuzzy, 
fragmentarily defined processes and phenomenons.

New feature: Algorithms.

Algorithms are created using drag-and-drop of standard blocks from a 
palette on a canvas of a flow-chart and following connection them by stream 
lines. After that the standard blocks are filled with *Clojure* code as of 
"let" macro body.  
Important distinction of these algorithms from a common notion of algorithm 
in that they can represent *parallel processes*. 

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] r4f-pro: IDE for visual ontology-based, rule-based and algorithm-based software development

2017-07-11 Thread ru
Hi Didier,

I believe that main use case is fast prototyping of new ideas. You model 
new concepts, classes, relations using native Protege capabilities and 
implement processes in this new area using rules and algorithms depending 
of what suits better. 
Important thing here is visual representation of all this things. It is 
useful for presentation, reasoning, etc. In general, people think better 
when visually represent subject (arguably). 

One use case is here: https://github.com/rururu/flights-pro

Sincerely,
  Ru

вторник, 11 июля 2017 г., 9:38:16 UTC+3 пользователь Didier написал:
>
> I feel like I'm missing out on this. It sounds very cool, but I'm not 
> sureI understand the use cases whereI should reach for it. Can you speak of 
> what kind of use case you can use rete and r4j for?

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] r4f-pro: IDE for visual ontology-based, rule-based and algorithm-based software development

2017-07-13 Thread ru
Arthur!

By the way, I must notice that Protege exists in two flavors: 
Protege-frames and Protege-OWL. Protege-frames historically precedes 
Protege-OWL. Protege-OWL theoretically is more powerful, but from practical 
point of view Protege-frames has more comprehensive application area (not 
only my opinion). So, I develop this variant of Protege.

Sincerely,
   Ru

среда, 12 июля 2017 г., 21:58:11 UTC+3 пользователь art...@signafire.com 
написал:
>
> Hey, this is pretty neat thanks for sharing. I've had to research 
> Ontologies for work the last few weeks, it'll help to dive into the source. 
> Very cool.
>
> On Monday, July 10, 2017 at 9:41:32 AM UTC-4, ru wrote:
>>
>> Hi,
>>
>> Update to r4f-pro project: https://github.com/rururu/r4f-pro
>>
>> Integrated Development Environment for [rete4frames](
>> https://github.com/rururu/rete4frames) rule engine and expert system 
>> shell based on [Protege-3.5 ontology editor](http://protege.stanford.edu) 
>> supplemented with visual creation of algorithms. It combines two well-known 
>> paradigms of software development: algorithms for strictly defined 
>> processes and rules for fuzzy, fragmentarily defined processes and 
>> phenomenons.
>>
>> New feature: Algorithms.
>>
>> Algorithms are created using drag-and-drop of standard blocks from a 
>> palette on a canvas of a flow-chart and following connection them by stream 
>> lines. After that the standard blocks are filled with *Clojure* code as 
>> of "let" macro body.  
>> Important distinction of these algorithms from a common notion of 
>> algorithm in that they can represent *parallel processes*. 
>>
>> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] r4f-pro: IDE for visual ontology-based, rule-based and algorithm-based software development

2017-07-13 Thread ru
Christopher!

OWL is extention of RDF.

--Ru

четверг, 13 июля 2017 г., 21:21:59 UTC+3 пользователь Christopher Small 
написал:
>
> Are these ontologies as in RDF ontologies?
>
> On Monday, July 10, 2017 at 6:41:32 AM UTC-7, ru wrote:
>>
>> Hi,
>>
>> Update to r4f-pro project: https://github.com/rururu/r4f-pro
>>
>> Integrated Development Environment for [rete4frames](
>> https://github.com/rururu/rete4frames) rule engine and expert system 
>> shell based on [Protege-3.5 ontology editor](http://protege.stanford.edu) 
>> supplemented with visual creation of algorithms. It combines two well-known 
>> paradigms of software development: algorithms for strictly defined 
>> processes and rules for fuzzy, fragmentarily defined processes and 
>> phenomenons.
>>
>> New feature: Algorithms.
>>
>> Algorithms are created using drag-and-drop of standard blocks from a 
>> palette on a canvas of a flow-chart and following connection them by stream 
>> lines. After that the standard blocks are filled with *Clojure* code as 
>> of "let" macro body.  
>> Important distinction of these algorithms from a common notion of 
>> algorithm in that they can represent *parallel processes*. 
>>
>> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] ClojureTab-1.5 plugin for Protege

2017-10-18 Thread ru
Dear Clojure users!

ClojureTab-1.5 plugin for Protege (https://protege.stanford.edu/) published 
on Protege Plugin Library 
page: https://protegewiki.stanford.edu/wiki/ClojureTab

Features:
1. Integrated development environment for Clojure language
2. Protege API for Clojure language
3. Rule engine and Expert system shell rete4frames 
(https://github.com/rururu/rete4frames)
4. Algorithms visual development environment 
   (short screencast 
(https://www.youtube.com/watch?v=oRCMw_rnLvg&feature=youtu.be), 
long screencast 
(https://www.youtube.com/watch?v=exca_ac2bj4&feature=youtu.be))

Homepage of ClojureTab project: https://github.com/rururu/r4f-pro

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] Integrated development environment for visual creation and simulation of spatial processes

2017-12-17 Thread ru
Hi,

Integrated development environment for visual creation and simulation of 
spatial processes (simpro-scene)

Homepage: https://github.com/rururu/simpro-scene 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Frururu%2Fsimpro-scene&sa=D&sntz=1&usg=AFQjCNF2BICPj5-4scueyBCHkGMHpJx7eQ>

Based on ontology editor Protege-frames (https://protege.stanford.edu/), 
GIS library OpenMap (http://openmap-java.org/) and rule engine and expert 
system shell  rete4frames (https://github.com/rururu/rete4frames). Uses 
concept of "Scenario" for describing spatial processes and programming 
language Clojure for executive parts of rules and auxilliary scripts.
Includes general IDE for Clojure.

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Integrated development environment for visual creation and simulation of spatial processes

2018-01-06 Thread ru
New examples screencasts. 
Full list of screencasts (to be continued):

   1. Collision <https://youtu.be/-fDo9IdJ7RA>
   2. Get started: Simple scenario <https://youtu.be/qb8EjnkyEFQ>
   3. Get started: New project <https://youtu.be/Y693nOxbWR0>
   4. Get started: Object Mission <https://youtu.be/eT-2CQzGuEA>
   5. Get started: Map Inspector <https://youtu.be/QoTo5qYyJdQ>
   6. Get started: Drawing Polygons <https://youtu.be/7P8Q9n0jLVM>
   7. Tsunami <https://youtu.be/pkF8BE74JAk>
   8. Shuffle Europe <https://youtu.be/Jh6r9ytpkKQ>
   9. France Roads <https://youtu.be/IvKkSpa8x9Y>
   10. France Roads: Stress test "Blue" <https://youtu.be/zp6VdtKYLtc>
   11. France Roads: Stress test "Three colors" 
   <https://youtu.be/x20pMyq5GV0>
   12. Finland Histoty <https://youtu.be/A4x9YU3V5k0>
   13. Pyongyang StPetersburg
   <https://youtu.be/xDyhu5_kVXE>


воскресенье, 17 декабря 2017 г., 21:56:13 UTC+3 пользователь ru написал:
>
> Hi,
>
> Integrated development environment for visual creation and simulation of 
> spatial processes (simpro-scene)
>
> Homepage: https://github.com/rururu/simpro-scene 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Frururu%2Fsimpro-scene&sa=D&sntz=1&usg=AFQjCNF2BICPj5-4scueyBCHkGMHpJx7eQ>
>
> Based on ontology editor Protege-frames (https://protege.stanford.edu/), 
> GIS library OpenMap (http://openmap-java.org/) and rule engine and expert 
> system shell  rete4frames (https://github.com/rururu/rete4frames). Uses 
> concept of "Scenario" for describing spatial processes and programming 
> language Clojure for executive parts of rules and auxilliary scripts.
> Includes general IDE for Clojure.
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Clojure integrates Cesium, Openstreetmap and OpenMap inside Protege

2018-02-06 Thread ru
Hi,

Clojure integrates Cesium, Openstreetmap and OpenMap inside Protege to 
simulate train movement.

Project page: *https://github.com/rururu/simpro-scene 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Frururu%2Fsimpro-scene&sa=D&sntz=1&usg=AFQjCNF2BICPj5-4scueyBCHkGMHpJx7eQ>*

*Screencast 1: https://www.youtube.com/watch?v=cT5h79w3wR4&feature=youtu.be 
<https://www.youtube.com/watch?v=cT5h79w3wR4&feature=youtu.be>*

*Screencast 2: https://www.youtube.com/watch?v=WEx2-rMCJag&feature=youtu.be 
<https://www.youtube.com/watch?v=WEx2-rMCJag&feature=youtu.be>*

*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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is the vector a sequence?

2018-04-20 Thread ru
Hi,

user=> (seq? [1 2 3 4 5])

false

user=> 


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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is the vector a sequence?

2018-04-20 Thread ru
 

user=> (seqable? [1 2])


CompilerException java.lang.RuntimeException: Unable to resolve symbol: 
seqable? in this context, 
compiling:(/private/var/folders/5j/k0rtjxqn3b57nykc_1jf2xnrgn/T/form-init6382892774167052117.clj:1:1)
 

user=> 

пятница, 20 апреля 2018 г., 18:35:45 UTC+3 пользователь tbc++ написал:
>
> It's not a seq, but it's seqable. 
>
> (seq? [1 2]) => false
> (seqable? [1 2]) => true
> (seq? (seq [1 2])) => true
>
>
>
> On Fri, Apr 20, 2018 at 9:33 AM, ru > wrote:
>
>> Hi,
>>
>> user=> (seq? [1 2 3 4 5])
>>
>> false
>>
>> user=> 
>>
>>
>> Sincerely,
>>
>>   Ru
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> “One of the main causes of the fall of the Roman Empire was that–lacking 
> zero–they had no way to indicate successful termination of their C 
> programs.”
> (Robert Firth) 
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is the vector a sequence?

2018-04-20 Thread ru
Thank you, Alex and tbc++

пятница, 20 апреля 2018 г., 18:55:59 UTC+3 пользователь tbc++ написал:
>
> seqable? was added in Clojure 1.9
>
> On Fri, Apr 20, 2018 at 9:54 AM, ru > wrote:
>
>> user=> (seqable? [1 2])
>>
>>
>> CompilerException java.lang.RuntimeException: Unable to resolve symbol: 
>> seqable? in this context, 
>> compiling:(/private/var/folders/5j/k0rtjxqn3b57nykc_1jf2xnrgn/T/form-init6382892774167052117.clj:1:1)
>>  
>>
>> user=> 
>>
>> пятница, 20 апреля 2018 г., 18:35:45 UTC+3 пользователь tbc++ написал:
>>>
>>> It's not a seq, but it's seqable. 
>>>
>>> (seq? [1 2]) => false
>>> (seqable? [1 2]) => true
>>> (seq? (seq [1 2])) => true
>>>
>>>
>>>
>>> On Fri, Apr 20, 2018 at 9:33 AM, ru  wrote:
>>>
>>>> Hi,
>>>>
>>>> user=> (seq? [1 2 3 4 5])
>>>>
>>>> false
>>>>
>>>> user=> 
>>>>
>>>>
>>>> Sincerely,
>>>>
>>>>   Ru
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Clojure" group.
>>>> To post to this group, send email to clo...@googlegroups.com
>>>> Note that posts from new members are moderated - please be patient with 
>>>> your first post.
>>>> To unsubscribe from this group, send email to
>>>> clojure+u...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/clojure?hl=en
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Clojure" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to clojure+u...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>> “One of the main causes of the fall of the Roman Empire was that–lacking 
>>> zero–they had no way to indicate successful termination of their C 
>>> programs.”
>>> (Robert Firth) 
>>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> “One of the main causes of the fall of the Roman Empire was that–lacking 
> zero–they had no way to indicate successful termination of their C 
> programs.”
> (Robert Firth) 
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


java command with deps.edn

2018-06-17 Thread ru
Dear Clojure users and team!

How to start clojure program with dependencies (deps.edn) without 
installing command line tools <https://clojure.org/guides/deps_and_cli>, 
leiningen, boot and so on, with only java command on command line? 

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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: java command with deps.edn

2018-06-18 Thread ru
Thank you, Alex!

In general, I think about simplest way to deploy clojure programs for 
non-programmers, who don't interested in additional installations. I have 
tried to use uberjar from Leiningen, but it did not work. May be, because 
of quite a lot of different libraries and jars in my build. 
What can you advice?

Thanks in advance,
  Ru

понедельник, 18 июня 2018 г., 1:38:26 UTC+3 пользователь Alex Miller 
написал:
>
> If you want to start a Clojure program with deps, you need a tool with the 
> ability to determine transitive deps. So you’ll need something - clj is 
> probably the easiest. 
>
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: java command with deps.edn

2018-06-18 Thread ru
My project page is https://github.com/rururu/simpro-scene.
When I start as "lein run" all is well.
But, when I start throught "java -jar 
target/simpro-scene-0.1.0-SNAPSHOT-standalone.jar" I get this error message:

Ruslans-iMac:simpro-scene ru$ java -jar 
target/simpro-scene-0.1.0-SNAPSHOT-standalone.jar 


Protege-3.5

A free, open-source ontology editor and framework for building intelligent 
systems

(http://protege.stanford.edu/)


Exception in thread "main" java.lang.NoClassDefFoundError: 
edu/stanford/smi/protege/Application

at simpro_scene.core$_main.invokeStatic(core.clj:8)

at simpro_scene.core$_main.doInvoke(core.clj:4)

at clojure.lang.RestFn.invoke(RestFn.java:397)

at clojure.lang.AFn.applyToHelper(AFn.java:152)

at clojure.lang.RestFn.applyTo(RestFn.java:132)

at simpro_scene.core.main(Unknown Source)

Caused by: java.lang.ClassNotFoundException: 
edu.stanford.smi.protege.Application

at java.net.URLClassLoader$1.run(URLClassLoader.java:372)

at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:360)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

... 6 more



Class edu.stanford.smi.protege.Application exists in  

simpro-scene-0.1.0-SNAPSHOT-standalone.jar



понедельник, 18 июня 2018 г., 14:35:13 UTC+3 пользователь Alex Miller 
написал:
>
> What didn’t work?

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: java command with deps.edn

2018-06-18 Thread ru
Thanks for the advice. I'll try to search them in Maven repos and move my 
own one there.

Sincerely,
  Ru

понедельник, 18 июня 2018 г., 17:48:32 UTC+3 пользователь Alex Miller 
написал:
>
> You seem to be pulling in a bunch of jars by including them directly in 
> the project (https://github.com/rururu/simpro-scene/tree/master/lib) 
> rather than referring to them as Maven artifacts. uberjar doesn't know how 
> to pull in and integrate loose jars like that (afaik). Is there some reason 
> you're doing this?  Most (maybe all) of those jars are available in Maven 
> repos as artifacts. If you were able to move them into your lein deps, I 
> think uberjar would do the right thing.
>
>
>
> On Monday, June 18, 2018 at 9:17:54 AM UTC-5, ru wrote:
>>
>> My project page is https://github.com/rururu/simpro-scene.
>> When I start as "lein run" all is well.
>> But, when I start throught "java -jar 
>> target/simpro-scene-0.1.0-SNAPSHOT-standalone.jar" I get this error message:
>>
>> Ruslans-iMac:simpro-scene ru$ java -jar 
>> target/simpro-scene-0.1.0-SNAPSHOT-standalone.jar 
>>
>>
>> Protege-3.5
>>
>> A free, open-source ontology editor and framework for building 
>> intelligent systems
>>
>> (http://protege.stanford.edu/)
>>
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>> edu/stanford/smi/protege/Application
>>
>> at simpro_scene.core$_main.invokeStatic(core.clj:8)
>>
>> at simpro_scene.core$_main.doInvoke(core.clj:4)
>>
>> at clojure.lang.RestFn.invoke(RestFn.java:397)
>>
>> at clojure.lang.AFn.applyToHelper(AFn.java:152)
>>
>> at clojure.lang.RestFn.applyTo(RestFn.java:132)
>>
>> at simpro_scene.core.main(Unknown Source)
>>
>> Caused by: java.lang.ClassNotFoundException: 
>> edu.stanford.smi.protege.Application
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>
>> ... 6 more
>>
>>
>>
>> Class edu.stanford.smi.protege.Application exists in  
>>
>> simpro-scene-0.1.0-SNAPSHOT-standalone.jar
>>
>>
>>
>> понедельник, 18 июня 2018 г., 14:35:13 UTC+3 пользователь Alex Miller 
>> написал:
>>>
>>> What didn’t work?
>>
>>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] Sailing Expert System (with Clojure/ClojureScript use)

2018-10-28 Thread ru
Dear Clojure users!

New application for *Simpro-scene* project (Integrated development 
environment for visual creation and simulation of spatial processes): *Sailing 
Expert System*.
References:

1. Screencast: Race of four yachts along Geiranger fiord 
https://youtu.be/_PJebZZJZDw
2. Project page on Cesium site https://cesiumjs.org/demos/simpro-scene/
3. Project page on Github https://github.com/rururu/simpro-scene

Enjoy Yachting!

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] Sailing Expert System (with Clojure use)

2018-10-29 Thread ru
Dear Clojure users!

New application for Simpro-scene project (Integrated development 
environment for visual creation and simulation of spatial processes): *Sailing 
Expert System*.
References:

1. Screencast: Race of four yachts along Geiranger fiord 
https://youtu.be/OS_t7uoZvX0
2. Project page on Cesium site https://cesiumjs.org/demos/simpro-scene/
3. Project page on Github https://github.com/rururu/simpro-scene

Enjoy Yachting!

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clojure integrates Cesium, Openstreetmap and OpenMap inside Protege

2018-10-30 Thread ru
Hi, Alan!

New application for Simpro-scene project (Integrated development 
environment for visual creation and simulation of spatial processes): *Sailing 
Expert System*.
References:

1. Screencast: Race of four yacht along Geiranger fiord 
https://youtu.be/_PJebZZJZDw
2. Project page on Cesium site https://cesiumjs.org/demos/simpro-scene/
3. Project page on Github https://github.com/rururu/simpro-scene

Enjoy Yachting!

Sincerely,
   Ru


среда, 7 февраля 2018 г., 2:50:12 UTC+3 пользователь Alan Moore написал:
>
> Ru, 
>
> You’ve done some impressive work on this and previous projects. I 
> especially like the level of integration with other tools. Thanks! 
>
> Alan

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(float 0.819869321599107) = 0.81986934 ?

2018-12-15 Thread ru
Dear Clojure users and team!

Please explain me this result:

Ruslans-iMac:clojure ru$ lein repl

nREPL server started on port 54147 on host 127.0.0.1 - 
nrepl://127.0.0.1:54147

REPL-y 0.3.7, nREPL 0.2.12

Clojure 1.8.0

Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS

Docs: (doc function-name-here)

  (find-doc "part-of-name-here")

  Source: (source function-name-here)

 Javadoc: (javadoc java-object-or-class-here)

Exit: Control+D or (exit) or (quit)

 Results: Stored in vars *1, *2, *3, an exception in *e


user=> (float 0.819869321599107)

0.81986934

user=> 


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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: (float 0.819869321599107) = 0.81986934 ?

2018-12-15 Thread ru
I have to use float in one application.
I just thought that a reasonable implementation of the float function could 
use the rounding we were used to, that is, (float 0.819869321599107) = 
0.81986932

суббота, 15 декабря 2018 г., 21:10:54 UTC+3 пользователь ru написал:
>
> Dear Clojure users and team!
>
> Please explain me this result:
>
> Ruslans-iMac:clojure ru$ lein repl
>
> nREPL server started on port 54147 on host 127.0.0.1 - nrepl://
> 127.0.0.1:54147
>
> REPL-y 0.3.7, nREPL 0.2.12
>
> Clojure 1.8.0
>
> Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
>
> Docs: (doc function-name-here)
>
>   (find-doc "part-of-name-here")
>
>   Source: (source function-name-here)
>
>  Javadoc: (javadoc java-object-or-class-here)
>
> Exit: Control+D or (exit) or (quit)
>
>  Results: Stored in vars *1, *2, *3, an exception in *e
>
>
> user=> (float 0.819869321599107)
>
> 0.81986934
>
> user=> 
>
>
> 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: (float 0.819869321599107) = 0.81986934 ?

2018-12-15 Thread ru
Thank you all for an exhaustive explanation.

Sincerely,
  Ru

воскресенье, 16 декабря 2018 г., 3:11:56 UTC+3 пользователь Gary Fredericks 
написал:
>
> 0.81986932 is not a valid float -- the next smallest one is 0.81986930, so 
> the one you were given is the closest that can be rounded to.
>
> Try (Math/nextUp x) and (Math/nextDown x) to see what floats are possible.
>
> On Saturday, December 15, 2018 at 4:21:05 PM UTC-6, ru wrote:
>>
>> I have to use float in one application.
>> I just thought that a reasonable implementation of the float function 
>> could use the rounding we were used to, that is, (float 
>> 0.819869321599107) = 0.81986932
>>
>> суббота, 15 декабря 2018 г., 21:10:54 UTC+3 пользователь ru написал:
>>>
>>> Dear Clojure users and team!
>>>
>>> Please explain me this result:
>>>
>>> Ruslans-iMac:clojure ru$ lein repl
>>>
>>> nREPL server started on port 54147 on host 127.0.0.1 - nrepl://
>>> 127.0.0.1:54147
>>>
>>> REPL-y 0.3.7, nREPL 0.2.12
>>>
>>> Clojure 1.8.0
>>>
>>> Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
>>>
>>> Docs: (doc function-name-here)
>>>
>>>   (find-doc "part-of-name-here")
>>>
>>>   Source: (source function-name-here)
>>>
>>>  Javadoc: (javadoc java-object-or-class-here)
>>>
>>> Exit: Control+D or (exit) or (quit)
>>>
>>>  Results: Stored in vars *1, *2, *3, an exception in *e
>>>
>>>
>>> user=> (float 0.819869321599107)
>>>
>>> 0.81986934
>>>
>>> user=> 
>>>
>>>
>>> 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@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] 3D models in Simpro-scene project

2019-03-18 Thread ru
Hello Clojure users and team!

Using of 3D models examples are added to Simpro-scene project (
https://github.com/rururu/simpro-scene):

1. Sailing Expert: Race with 3D models of yachts (
https://youtu.be/VG87r7_gVz8)
2. Landing on aircraft carrier (https://youtu.be/gkRWfLXRaoo)

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Calling Java from Clojure

2019-06-17 Thread ru
Excuse me, please, may be this is a naive question. As I understand, we 
want to call Clojure from Java when we want to use advantages of 
implementation of some functionality in Clojure. But, in this example I see 
implementation of the functionallity in Java. Am I right?

понедельник, 10 июня 2019 г., 7:21:28 UTC+3 пользователь Alex Miller 
написал:
>
> Looks like the title for this is backwards if I understand the intent, 
> should be calling Clojure from Java, right?
>
> Java code is going to invoke methods on classes (that's all it knows how 
> to do). You have several options:
>
> 1) Use the Clojure Java API to invoke the Clojure runtime - here you're 
> leveraging the Clojure runtime's Java impl core to call into Clojure (Stu's 
> example)
> 2) Use protocols, records, and/or genclass to actually produce Java 
> classes (your example, I think). 
> 3) Define your interface as a set of Java interfaces. Implement this 
> interface in Clojure. You will need a small amount of glue code to provide 
> the API impl (some kind of a factory to give you the impl of the Java 
> interface - either written in Java or using #1). 
>
> #1 is straightforward but tedious - it's really only worthwhile if you 
> have a small amount of this code and hide the use of it.
> #2 has significant downsides - needing to compile everything, all methods 
> are just going to take/return Java Objects, no javadoc on apis,  etc. 
> #3 has advantages in all those areas. You write your Java interface where 
> you can best write it ... in Java (with Javadoc, and Java interfaces, and 
> all the niceties Java users want). IDEs can autocomplete on the Java 
> interfaces. You don't have to AOT - factories can reify or load protocol 
> instances as needed as they return objects. You can even reload internal 
> vars with a connected REPL without restarting the app.
>
> The last does take a bit of planning to set up - you need API code (in 
> Java), and Clojure code that relies on that Java code. lein makes it pretty 
> trivial to put those in one project and compile in that order.
>
> I pushed an example up here:
>
> https://github.com/puredanger/clojure-from-java
>
> It defines a Java interface (java/cfj/Event.java 
> ),
>  
> a static helper to hook the Clojure (java/cfj/Support.java 
> ),
>  
> which uses the Clojure Java API to load the Clojure instance in 
> clj/core/cfj.clj 
> .
>  
> Just `lein uberjar` and you're done. Use the Support API from Java as any 
> other Java class. No AOT required.
>
>
>
> On Sunday, June 9, 2019 at 9:53:56 PM UTC-5, eglue wrote:
>>
>> I've been stalking Clojure for a while but now doing it professionally 
>> full-time (woo hoo!).
>>
>> I saw a Stuart Halloway tweet responding to someone who'd found it a 
>> "soul-crushing, miserable experience."
>>
>> I had a similar miserable experience and figured it was just me, but am 
>> now suspecting that's not the case. (Happy to be shown the light however.)
>>
>> Stuart H posted https://github.com/stuarthalloway/clojure-from-java 
>> 
>>  to 
>> demonstrate the ease of Java consuming Clojure, but I find it far more 
>> important to be able to *compile* Java against Clojure interfaces not 
>> invoke it dynamically from Javabecause dynamic invocation from Java is 
>> unwieldy to the point of it being a likely deal breaker for any Java shop. 
>> Dynamically loading classes and invoking methods c'mon, no one's going 
>> to ask their Java devs to do this.
>>
>> If Clojure doesn't have a good compile-time consumption story for Java 
>> consumers, I think that's a loss. (Even if it is just providing better docs 
>> or archetype/bootstrap examples in this regard.) Because otherwise Java 
>> code bases around the world could be eaten away by (compiled) Clojure from 
>> the inside out, giving Java dev teams enough time to be overtaken by the 
>> miracle that is Clojure.
>>
>> Inspired by Stuart's example, I was successful in putting together a 
>> quick build to achieve this ideal: 
>> https://github.com/atdixon/clojure-from-java 
>> 
>>
>> However, I have a few open questions:
>>
>> - when I tried to AOT only the public-facing clojure code that I needed 
>> to compile against, I found out at runtime that this wasn't going to work. 
>> Dynamic clojure code was loading my same types into DynamicClassLoader and 
>> when my statically-compiled, root-class-loaded code was getting executed 
>> the ClassCastExceptions of course were flying. So am I right to think

Re: Calling Java from Clojure

2019-06-17 Thread ru
core.clj defines only names "getTimestamp" and "getName", but meaning of 
these names defined in Support.java. For example, that "getTimestamp" means 
result of a new java.util.Date.

понедельник, 17 июня 2019 г., 23:35:30 UTC+3 пользователь Alex Miller 
написал:
>
> No, there is a bit of Java code just to load the Clojure 
> code, but then it’s Clojure after that (the entity record impl). 
>
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/c7ef72fe-b062-49b6-a3bb-5183e1a73d6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Calling Java from Clojure

2019-06-17 Thread ru
I understand it. And the approach seems promising and powerful. But the 
example seems to me not too successful. And I drew your attention to this 
fact in the hope of seeing a more convincing example. Thank you.

вторник, 18 июня 2019 г., 0:33:23 UTC+3 пользователь Alex Miller написал:
>
> Yes, the whole point of this approach is to define the interface in Java 
> and the implementation in Clojure.
>
> On Jun 17, 2019, at 5:07 PM, ru > wrote:
>
> core.clj defines only names "getTimestamp" and "getName", but meaning of 
> these names defined in Support.java. For example, that "getTimestamp" means 
> result of a new java.util.Date.
>
> понедельник, 17 июня 2019 г., 23:35:30 UTC+3 пользователь Alex Miller 
> написал:
>>
>> No, there is a bit of Java code just to load the Clojure 
>> code, but then it’s Clojure after that (the entity record impl). 
>>
>> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com 
> Note that posts from new members are moderated - please be patient with 
> your first post.
> To unsubscribe from this group, send email to
> clo...@googlegroups.com 
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> --- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/clojure/aejqMwraPk8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> clo...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/clojure/c7ef72fe-b062-49b6-a3bb-5183e1a73d6c%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/clojure/c7ef72fe-b062-49b6-a3bb-5183e1a73d6c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/87503e82-0be3-4d55-92a7-e610a7f772d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Strange with "clj" tool

2019-07-31 Thread ru
Hi,

The tool "clj" starts normally in any folder, except in one, that I cloned 
from github:

[image: error.png]


Please, explain me this behavior.


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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/3d705af9-9ed9-4142-871f-303a91e80236%40googlegroups.com.


Re: Strange with "clj" tool

2019-07-31 Thread ru
>From the error message, we can conclude that "cojure.main" is present in 
all folders except this one.

среда, 31 июля 2019 г., 14:16:31 UTC+3 пользователь ru написал:
>
> Hi,
>
> The tool "clj" starts normally in any folder, except in one, that I cloned 
> from github:
>
> [image: error.png]
>
>
> Please, explain me this behavior.
>
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/0aaea920-f671-44e4-8fa7-8b0c6df0d4d2%40googlegroups.com.


Re: Strange with "clj" tool

2019-07-31 Thread ru
Thanks Alex!
All paths in PATH are absolute. I did not know about Ctrl+D before :( Tnx 
for this.

среда, 31 июля 2019 г., 14:41:36 UTC+3 пользователь Oleksandr Shulgin 
написал:
>
> On Wed, Jul 31, 2019 at 1:16 PM ru > wrote:
>
>>
>> The tool "clj" starts normally in any folder, except in one, that I 
>> cloned from github:
>>
>> [image: error.png]
>>
>>
>> Please, explain me this behavior.
>>
> Do you by chance have some non-absolute path in your PATH environment 
> variable in that shell session?  Something like "bin" or "." ?
>
> I also wonder if you are intentionally stopping the prompts of clj 
> invokations that did work (using Ctrl+Z?) instead of making them exit (by 
> sending EOF: Ctrl+D)?
>
> --
> Alex
>
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/74f25413-87d4-4fa9-89a4-03837232e15f%40googlegroups.com.


Re: Strange with "clj" tool

2019-07-31 Thread ru
One time use of "clj -Sforce" solved the problem.

Thanks, Alex (and others).

-- cheers,

   Ru

среда, 31 июля 2019 г., 22:12:23 UTC+3 пользователь Alex Miller написал:
>
> The error indicates a classpath that does not include the clojure 
> dependency. That shouldn't ever happen (as clojure is included as the 
> default dependency set).
>
> So not sure what would cause that, but it would help to know if there is a 
> deps.edn file at the location of the failure and what it is in it.
>
> Also, you might have something bad in the ./.cpcache/ dir in that folder - 
> you could try either using clj -Sforce (to avoid using it) or just deleting 
> the directory if it exists.
>
>
>
> On Wednesday, July 31, 2019 at 6:16:31 AM UTC-5, ru wrote:
>>
>> Hi,
>>
>> The tool "clj" starts normally in any folder, except in one, that I 
>> cloned from github:
>>
>> [image: error.png]
>>
>>
>> Please, explain me this behavior.
>>
>>
>> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/0fd30fda-a4bd-48b4-824c-086c4e4015e2%40googlegroups.com.


Can't use my macro in fuction definition

2019-10-19 Thread ru
Dear Clojure users and team!

I have defined a macros to get an instance of arbitrary Java class and 
tried to test it:

ru@ru-iMacMint:~$ lein repl
nREPL server started on port 46225 on host 127.0.0.1 - 
nrepl://127.0.0.1:46225
WARNING: cat already refers to: #'clojure.core/cat in namespace: 
net.cgrand.regex, being replaced by: #'net.cgrand.regex/cat
REPL-y 0.3.7, nREPL 
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS
Docs: (doc function-name-here)
  (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> (defmacro instance [x & args] `(new ~x ~@args))
#'user/instance
user=> (instance javax.swing.JLabel "Ru")
#object[javax.swing.JLabel 0x53754b7 
"javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=Ru,verticalAlignment=CENTER,verticalTextPosition=CENTER]"]
user=> (defn test [x] (let [i (instance x)] i))
WARNING: test already refers to: #'clojure.core/test in namespace: user, 
being replaced by: #'user/test

CompilerException java.lang.IllegalArgumentException: Unable to resolve 
classname: x, compiling:(null:1:24) 
user=> (defn itest [x] (let [i (instance x)] i))

CompilerException java.lang.IllegalArgumentException: Unable to resolve 
classname: x, compiling:(null:1:25) 
user=> 


Why I can't use my macro in a function definition?

Any help would be greatly appreciated.

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/d7482483-633e-40b7-9d6a-f5444a86dbdf%40googlegroups.com.


Re: Can't use my macro in fuction definition

2019-10-19 Thread ru
Ok,  Matching Socks.

On what name should I replace the variable name "x" in the function 
definition so that the macro like it?

суббота, 19 октября 2019 г., 14:09:01 UTC+3 пользователь Matching Socks 
написал:
>
> The macro is a code generator, with which the compiler computes the actual 
> definition of the "test" function.  What's there is x, and the macro does 
> not like x.  The REPL definition of JLabel worked because JLabel was the 
> literal argument.  See https://clojure.org/reference/macros, which is 
> subtle about this point, or the excellent book "Mastering Clojure Macros". 
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/4bdd8dee-0b87-42a1-8d3a-4a2cf60f3aff%40googlegroups.com.


Re: Can't use my macro in fuction definition

2019-10-19 Thread ru


суббота, 19 октября 2019 г., 17:15:23 UTC+3 пользователь Chris Nuernberger 
написал:
>
> Hey Ru,
>
> Renaming x to anything will result in roughly the same error in your 
> function.  The problem is that your instance macro needs to know the 
> classname at compile time.  As x is a runtime variable, the compiler cannot 
> see the literal value of x at compile time.  Put another way, in your test 
> function, with no other changes, you need a switch statement that tests if 
> x is a known type and then calls the macro with the 
> now-known-at-compile-time literal classname.
>
>
> An instance function that found the constructor of x via reflection and 
> then called that is what you want here.
>
> May be this reflection should do "new" macro? 

>
> Chris
>
> On Sat, Oct 19, 2019 at 8:03 AM ru > wrote:
>
>> Ok,  Matching Socks.
>>
>> On what name should I replace the variable name "x" in the function 
>> definition so that the macro like it?
>>
>> суббота, 19 октября 2019 г., 14:09:01 UTC+3 пользователь Matching Socks 
>> написал:
>>>
>>> The macro is a code generator, with which the compiler computes the 
>>> actual definition of the "test" function.  What's there is x, and the macro 
>>> does not like x.  The REPL definition of JLabel worked because JLabel was 
>>> the literal argument.  See https://clojure.org/reference/macros, which 
>>> is subtle about this point, or the excellent book "Mastering Clojure 
>>> Macros". 
>>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clo...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clo...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/clojure/4bdd8dee-0b87-42a1-8d3a-4a2cf60f3aff%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/clojure/4bdd8dee-0b87-42a1-8d3a-4a2cf60f3aff%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/fdee132a-474d-40b8-9960-7d4e2b150f66%40googlegroups.com.


Re: Can't use my macro in fuction definition

2019-10-20 Thread ru
Thank you, Marc!

I will try to use your example to develop more general "instance" function.

Sincerely,
  Ru
воскресенье, 20 октября 2019 г., 15:35:48 UTC+3 пользователь mlimotte 
написал:
>
> Hey Ru,
>
> I'd also add that `new` is a special form, not a function.  It is 
> evaluated at compile-time, which is why the macro doesn't work.  You can 
> also try macro-expansion to see what's going on:
>
>
> (defn itest [x] (macroexpand-1 '(instance x)))
> => #'user/itest
> (itest java.lang.String)
> => (new x)
>
>
> So, after macro-expansion, this would be like typing the following code:
>
> (defn itest [x] (new x))
> Syntax error (IllegalArgumentException) compiling new at [...]
> Unable to resolve classname: x
>
>
> This doesn't work as a straight up function, so it won't work as a macro. 
> Macros are "shortcuts".  They won't let you do anything you couldn't do 
> with "regular" code.
>  
> Finally, as Chris suggested above, reflection is probably what you want.  
> Here's a sample to get you started:
>
> (defn itest [x & args] 
>   (let [cnstr (.getConstructor x (into-array java.lang.Class [String]))]
> (.newInstance cnstr (into-array java.lang.Object args
> => #'user/itest
> (itest java.lang.String "Hello")
> => "Hello"
>
>  
> This is only a start though, because as written (line 2 in particular), it 
> only works for constructors that take exactly one String argument.  To do 
> this for real, you would need to build the [String] array dynamically by 
> introspecting the args list.
>
> Marc
>
>
>
>
> On Sat, Oct 19, 2019 at 3:02 PM > wrote:
>
>> Macros also allow you to create a dsl to make your code easier to use or 
>> understand by obfuscating away bits. For example a macro that times a 
>> function call by proxying the call or wrapping a call to defn.
>>
>> That said, I consider many uses of macros that I’ve seen to be 
>> antipatterns that lead to hard to understand code. They should almost 
>> always be considered a last resort. 
>>
>>
>> On Oct 19, 2019, at 12:12 PM, Matching Socks > > wrote:
>>
>> Macros manipulate program symbols.  Macros fill the role that is filled 
>> by Perl scripts in the Java world, when they pre-process stuff (a database 
>> schema, or a gui model, for example) into actual Java code before you 
>> compile it.  If a task could not be solved by pre-processing the source 
>> code before the program starts to run, then it is not a task for a macro.  
>>
>> On the bright side, using Java reflection is less tedious in Clojure than 
>> it is in Java.
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clo...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clo...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/clojure/2c56ec62-9908-40b8-aacc-aecaf157049c%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/clojure/2c56ec62-9908-40b8-aacc-aecaf157049c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clo...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clo...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/clojure/E0B8D5A1-AC56-4FD6-BAC9-220E628FC510%40chartbeat.com
>>  
>> <ht

[ANN] Protege(MAS + Clojure + GIS) = NatureSimulation

2019-12-24 Thread ru
Hi,

Integration of multi-agent systems with geographic information systems by 
Clojure in Protege ontology editor based environment for natural phenomena 
simulation.

Screencast example: 
https://www.youtube.com/watch?v=Snd3VKUevNg&feature=youtu.be
Project page: https://github.com/rururu/simpro-scene

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/cc848769-8f2a-4d30-abc2-421279d40995%40googlegroups.com.


cond->: Using of threading expression in tests?

2015-10-02 Thread ru
Hi,

Can I use in tests threading expression of cond->, and how?

Thanx in advance,
  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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cond->: Using of threading expression in tests?

2015-10-02 Thread ru
Hi, Colin

For example, (cond-> {:x 5} (> (get ??? :x) 3) (assoc :y 6))

пятница, 2 октября 2015 г., 17:49:28 UTC+3 пользователь ru написал:
>
> Hi,
>
> Can I use in tests threading expression of cond->, and how?
>
> Thanx in advance,
>   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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cond->: Using of threading expression in tests?

2015-10-02 Thread ru
Thank you, Colin.

This works:

user=> (as-> {:x 5} x1 (if (> (get x1 :x) 3) (assoc x1 :y 6) x1) (if (<= 
(get x1 :x) 3) (assoc x1 :y 12) x1))
{:y 6, :x 5}

But without cond-> at all :( :)

пятница, 2 октября 2015 г., 17:49:28 UTC+3 пользователь ru написал:
>
> Hi,
>
> Can I use in tests threading expression of cond->, and how?
>
> Thanx in advance,
>   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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cond->: Using of threading expression in tests?

2015-10-02 Thread ru
This is remarkable improvement and it shows that test is a function of the 
threading expression.

user=> (cond-> {:x 1} #(= (:x %) 1) (assoc :y 2))
{:y 2, :x 1}

also works.

Thanks a lot

пятница, 2 октября 2015 г., 17:49:28 UTC+3 пользователь ru написал:
>
> Hi,
>
> Can I use in tests threading expression of cond->, and how?
>
> Thanx in advance,
>   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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cond->: Using of threading expression in tests?

2015-10-03 Thread ru
So am I! Sean, can you share code for condp->> too, please.

пятница, 2 октября 2015 г., 17:49:28 UTC+3 пользователь ru написал:
>
> Hi,
>
> Can I use in tests threading expression of cond->, and how?
>
> Thanx in advance,
>   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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cond->: Using of threading expression in tests?

2015-10-05 Thread ru
Thank you very much, Sean and Oliver!

condas-> really awesome!

пятница, 2 октября 2015 г., 17:49:28 UTC+3 пользователь ru написал:
>
> Hi,
>
> Can I use in tests threading expression of cond->, and how?
>
> Thanx in advance,
>   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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] rete4frames, v. 5.2.4 - CLIPS-like expert system shell

2016-02-04 Thread ru
Hi,

New version 5.2.4 of rete4frames CLIPS-like expert system shell is 
published on https://github.com/rururu/rete4frames.

News:

1. Refactored functions "dissoc-in" and "remove-fmem" for better 
performance and reliability.
2. New compound example of expert system:  "Real" air traffic control 
system - client-server ClojureScript-Clojure application based on 
Flightradar24  web service (http://www.flightradar24.com/), Leaflet 
JavaScript libraty (http://leafletjs.com/), httpkit, compojure, core.async 
and others Clojure libraries. This example is in a separate repository 
https://github.com/rururu/rete4flights.

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] rete4frames, v. 5.2.4 - CLIPS-like expert system shell

2016-02-07 Thread ru
Atameret,

It is interesting sugession. Thank you. Initially readme was oriented on 
folks having experience with CLIPS, Jess and similar frameworks. I will 
consider to rework it.

Sincerely,
  Ru

четверг, 4 февраля 2016 г., 17:19:46 UTC+3 пользователь ru написал:
>
> Hi,
>
> New version 5.2.4 of rete4frames CLIPS-like expert system shell is 
> published on https://github.com/rururu/rete4frames.
>
> News:
>
> 1. Refactored functions "dissoc-in" and "remove-fmem" for better 
> performance and reliability.
> 2. New compound example of expert system:  "Real" air traffic control 
> system - client-server ClojureScript-Clojure application based on 
> Flightradar24  web service (http://www.flightradar24.com/), Leaflet 
> JavaScript libraty (http://leafletjs.com/), httpkit, compojure, 
> core.async and others Clojure libraries. This example is in a separate 
> repository https://github.com/rururu/rete4flights.
>
> 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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


No eval in ClojureScript!?

2016-02-13 Thread ru
Dear ClojureScript users and team!

Without "eval" function ClojureScript can't be recognized as a full-fledged 
LISP. "Code as data" paradigm can't be implemented without "eval". What 
purpose of code constructed programmatically, if it can not be evaluated?! 
In that sence plain old JavaScript is more LISP than ClojureScript. Am I 
right? May be I have mised something important in that problem?

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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No eval in ClojureScript!?

2016-02-13 Thread ru
LISP implementations often have a compiler and an interpreter 
simulteniously. As I know LISP interpreter is a very simple program and 
often used as an example in classes. Maybe ClojureScript should include 
such interpreter for such important task as evaluation of dinamically 
generated code? 

-Ru

суббота, 13 февраля 2016 г., 18:25:46 UTC+3 пользователь ru написал:
>
> Dear ClojureScript users and team!
>
> Without "eval" function ClojureScript can't be recognized as a 
> full-fledged LISP. "Code as data" paradigm can't be implemented without 
> "eval". What purpose of code constructed programmatically, if it can not be 
> evaluated?! In that sence plain old JavaScript is more LISP than 
> ClojureScript. Am I right? May be I have mised something important in that 
> problem?
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No eval in ClojureScript!?

2016-02-13 Thread ru
All we know that JIT is a Just In Time compiler and that JIT is an 
important part of Java compiler nowerdays. Maybe JIT ideas can be applied 
to ClojureScript "eval problem" solution?

-Ru

суббота, 13 февраля 2016 г., 18:25:46 UTC+3 пользователь ru написал:
>
> Dear ClojureScript users and team!
>
> Without "eval" function ClojureScript can't be recognized as a 
> full-fledged LISP. "Code as data" paradigm can't be implemented without 
> "eval". What purpose of code constructed programmatically, if it can not be 
> evaluated?! In that sence plain old JavaScript is more LISP than 
> ClojureScript. Am I right? May be I have mised something important in that 
> problem?
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No eval in ClojureScript!?

2016-02-13 Thread ru
First thing that comes to my mind is MAXIMA Computer Algebra Program from 
LISP ecosystem. That is a system for the manipulation of symbolic and 
numerical expressions, including differentiation, integration and many 
other useful things. It will be  nice to have such a power in 
ClojureScript, is'nt it? I don't think that all those symbolic comutations 
can be simply programmed without eval.

-Ru

суббота, 13 февраля 2016 г., 18:25:46 UTC+3 пользователь ru написал:
>
> Dear ClojureScript users and team!
>
> Without "eval" function ClojureScript can't be recognized as a 
> full-fledged LISP. "Code as data" paradigm can't be implemented without 
> "eval". What purpose of code constructed programmatically, if it can not be 
> evaluated?! In that sence plain old JavaScript is more LISP than 
> ClojureScript. Am I right? May be I have mised something important in that 
> problem?
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No eval in ClojureScript!?

2016-02-13 Thread ru
That I understand. Only one more question. Can I unload ClojureScript 
Compiler after I done with "eval"? This scenario is suitable very well to 
my task.

-Ru

суббота, 13 февраля 2016 г., 18:25:46 UTC+3 пользователь ru написал:
>
> Dear ClojureScript users and team!
>
> Without "eval" function ClojureScript can't be recognized as a 
> full-fledged LISP. "Code as data" paradigm can't be implemented without 
> "eval". What purpose of code constructed programmatically, if it can not be 
> evaluated?! In that sence plain old JavaScript is more LISP than 
> ClojureScript. Am I right? May be I have mised something important in that 
> problem?
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No eval in ClojureScript!?

2016-02-13 Thread ru
I think macros can't be of much help in my task. I am working on project 
rete4frame (https://github.com/rururu/rete4frames) and now want to port it 
to ClojureScript. It is CLIPS-like expert system shell with simplified 
version of RETE algorithm. It has its own language with LISP syntax and it 
is a superset of Clojure/ClojureScript in a sence that it contains inside 
rule descriptions pieces of arbitrary Clojure/ClojureScript code. Work of 
system consists of two phases: Translation and Run. I use "eval" during 
Translation phase in Clojure to get pieces of code "executeble" on Run 
phase. So, I need solution how it can be done in ClojureScript.

-Ru

суббота, 13 февраля 2016 г., 18:25:46 UTC+3 пользователь ru написал:
>
> Dear ClojureScript users and team!
>
> Without "eval" function ClojureScript can't be recognized as a 
> full-fledged LISP. "Code as data" paradigm can't be implemented without 
> "eval". What purpose of code constructed programmatically, if it can not be 
> evaluated?! In that sence plain old JavaScript is more LISP than 
> ClojureScript. Am I right? May be I have mised something important in that 
> problem?
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No eval in ClojureScript!?

2016-02-13 Thread ru
Many thanks for the explanations. I will be experimenting to deside where 
to go further.

-Ru

суббота, 13 февраля 2016 г., 18:25:46 UTC+3 пользователь ru написал:
>
> Dear ClojureScript users and team!
>
> Without "eval" function ClojureScript can't be recognized as a 
> full-fledged LISP. "Code as data" paradigm can't be implemented without 
> "eval". What purpose of code constructed programmatically, if it can not be 
> evaluated?! In that sence plain old JavaScript is more LISP than 
> ClojureScript. Am I right? May be I have mised something important in that 
> problem?
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No eval in ClojureScript!?

2016-02-14 Thread ru
Thank you Alan for very helpful information. I know about Clara but don't 
watch its progress attentively fore some time :(

Regards,
  Ru

суббота, 13 февраля 2016 г., 18:25:46 UTC+3 пользователь ru написал:
>
> Dear ClojureScript users and team!
>
> Without "eval" function ClojureScript can't be recognized as a 
> full-fledged LISP. "Code as data" paradigm can't be implemented without 
> "eval". What purpose of code constructed programmatically, if it can not be 
> evaluated?! In that sence plain old JavaScript is more LISP than 
> ClojureScript. Am I right? May be I have mised something important in that 
> problem?
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No eval in ClojureScript!?

2016-02-14 Thread ru
I took a look at the Clara's code. This is excerpt from the comment of 
"defsession" defmacro: "..Each source is eval'ed at compile time, in 
Clojure (not ClojureScript.)..".
So, this is a solution, but not clear ClojureScript solution :(

-Ru

суббота, 13 февраля 2016 г., 18:25:46 UTC+3 пользователь ru написал:
>
> Dear ClojureScript users and team!
>
> Without "eval" function ClojureScript can't be recognized as a 
> full-fledged LISP. "Code as data" paradigm can't be implemented without 
> "eval". What purpose of code constructed programmatically, if it can not be 
> evaluated?! In that sence plain old JavaScript is more LISP than 
> ClojureScript. Am I right? May be I have mised something important in that 
> problem?
>
> 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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] cljs-rete4f - CLIPS-like expert system shell on ClojureScript

2016-02-15 Thread ru
Hello All,

ClojureScript RETE for frames engine published on 
(https://github.com/rururu/cljs-rete4f). It uses recently added to 
ClojureScript "eval" function. This is only difference with core of 
rete4farmes (https://github.com/rururu/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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] "Real" air traffic control system - complex Clojure-ClojureScript example

2016-03-10 Thread ru
Hi,

 "Real" air traffic control system - client-server ClojureScript-Clojure 
application based on:

1. *rete4frames* expert system shell 
(http://github.com/rururu/rete4frames/),
2. *Flightradar24*  web service (http://www.flightradar24.com/), 
2. *Leaflet* JavaScript GIS libraty (http://leafletjs.com/), 
3.. *httpkit, compojure, core.async* and others Clojure libraries. 

This example is in the repository https://github.com/rururu/rete4flights.

New functionality: You can plan your own flights and add them to the real 
air traffic.

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] "Real" air traffic control system - complex Clojure-ClojureScript example

2016-03-11 Thread ru
So far I have had no problems with it. Very good library! Simple and fast.

пятница, 11 марта 2016 г., 15:44:50 UTC+3 пользователь Jason Gilman написал:
>
> That's really cool. Thanks for sharing. I want to do something similar 
> with leaflet and build integration into my REPL. Did you have any issues 
> with leaflet?

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] "Real" air traffic control system: 3D view from the cockpit of any aircraft during flights.

2016-03-13 Thread ru
Hi,

 "Real" air traffic control system - client-server ClojureScript-Clojure 
application based on:

1. *rete4frames* expert system shell (http://github.com/rururu/rete4frames/
),
2. *Flightradar24*  web service (http://www.flightradar24.com/), 
2. *Leaflet* JavaScript GIS libraty (http://leafletjs.com/), 
3. *Cesium* webGL virtual globe and map engine (http://cesiumjs.org/)
4.. *httpkit, compojure, core.async* and others Clojure libraries. 

This example is in the repository https://github.com/rururu/rete4flights.

New functionality: You have 3D view from the cockpit of any aircraft during 
flights.

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 - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   >