Re: Compiler error message misses the target

2019-05-07 Thread Andy Fingerhut
You can check with Alex Miller if you have doubts, but given that error
messages, and in particular the one you show, is at this moment an area of
active changes in Clojure 1.10.1 beta versions, they may be open to fixes
to such things right now.

Andy

On Tue, May 7, 2019 at 9:21 PM Alan Thompson  wrote:

> 
>
> So I get a strange error from the compiler after a few minor edits:
>
> Syntax error compiling at (tupelo/forest.clj:7:1).
> Unable to resolve symbol: d in this context
> Full report at: /tmp/clojure-18236661144073611223.edn
>
>
> with the following EDN message:
>
> {:clojure.main/message
>  "Syntax error compiling at (tupelo/forest.clj:7:1).\nUnable to resolve
> symbol: d in this context\n",
>  :clojure.main/triage
>  {:clojure.error/phase :compile-syntax-check,
>   :clojure.error/line 7,
>   :clojure.error/column 1,
>   :clojure.error/source "forest.clj",
>   :clojure.error/path "tupelo/forest.clj",
>   :clojure.error/class java.lang.RuntimeException,
>   :clojure.error/cause "Unable to resolve symbol: d in this context"},
>  :clojure.main/trace
>  {:via
>   [{:type clojure.lang.Compiler$CompilerException,
> :message "Syntax error compiling at (tupelo/forest.clj:7:1).",
> :data
> {:clojure.error/phase :compile-syntax-check,
>  :clojure.error/line 7,
>  :clojure.error/column 1,
>  :clojure.error/source "tupelo/forest.clj"},
> :at [clojure.lang.Compiler analyze "Compiler.java" 6808]}
>{:type java.lang.RuntimeException,
> :message "Unable to resolve symbol: d in this context",
> :at [clojure.lang.Util runtimeException "Util.java" 221]}],
>
> .
>
> and I figure I accidentally got a typo somewhere.  Look at the top of the
> file:
>
> [image: Screenshot from 2019-05-07 21-08-39.png]
> Hmmm, no stray characters there...
>   head-scratching, finally looks at random near edit site...Ah ha!>
> Oh, look at this on line 159:
> [image: Screenshot from 2019-05-07 21-12-11.png]
>
> So, I got a random character inserted, and the compiler directs me to a
> line 152 lines away from the actual error location.  Any we wonder why
> Clojure has slow adoption
>
> 
>
> I could probably figure out a fix for problems like this, but I'm worried
> that it wouldn't be accepted.
>
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/CAN67zA1vrk_%2BTx0LcmznPNnZzW7GZFsOGaSn1AdWWJ1Fyc%2BZGg%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CAKvLtDZUj5Ne0A%3D-M_70Yj9KwUnJevmaiypo_dE5gacCH6ac_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Compiler error message misses the target

2019-05-07 Thread Alan Thompson


So I get a strange error from the compiler after a few minor edits:

Syntax error compiling at (tupelo/forest.clj:7:1).
Unable to resolve symbol: d in this context
Full report at: /tmp/clojure-18236661144073611223.edn


with the following EDN message:

{:clojure.main/message
 "Syntax error compiling at (tupelo/forest.clj:7:1).\nUnable to resolve
symbol: d in this context\n",
 :clojure.main/triage
 {:clojure.error/phase :compile-syntax-check,
  :clojure.error/line 7,
  :clojure.error/column 1,
  :clojure.error/source "forest.clj",
  :clojure.error/path "tupelo/forest.clj",
  :clojure.error/class java.lang.RuntimeException,
  :clojure.error/cause "Unable to resolve symbol: d in this context"},
 :clojure.main/trace
 {:via
  [{:type clojure.lang.Compiler$CompilerException,
:message "Syntax error compiling at (tupelo/forest.clj:7:1).",
:data
{:clojure.error/phase :compile-syntax-check,
 :clojure.error/line 7,
 :clojure.error/column 1,
 :clojure.error/source "tupelo/forest.clj"},
:at [clojure.lang.Compiler analyze "Compiler.java" 6808]}
   {:type java.lang.RuntimeException,
:message "Unable to resolve symbol: d in this context",
:at [clojure.lang.Util runtimeException "Util.java" 221]}],

.

and I figure I accidentally got a typo somewhere.  Look at the top of the
file:

[image: Screenshot from 2019-05-07 21-08-39.png]
Hmmm, no stray characters there...
 
Oh, look at this on line 159:
[image: Screenshot from 2019-05-07 21-12-11.png]

So, I got a random character inserted, and the compiler directs me to a
line 152 lines away from the actual error location.  Any we wonder why
Clojure has slow adoption



I could probably figure out a fix for problems like this, but I'm worried
that it wouldn't be accepted.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CAN67zA1vrk_%2BTx0LcmznPNnZzW7GZFsOGaSn1AdWWJ1Fyc%2BZGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: No "clojure --version" switch

2019-05-07 Thread sean
Or just type:   clojureor:  clj And it announces the version and starts a REPL – which is documented usage. I think one of the “issues” here is that clojure / clj are scripts that have an inherent version behind them (clojure -Sdescribe) but the version of Clojure that they run with is context-dependent. deps.edn can specify any Clojure back to … Clojure 1.1 it seems: seanc@DESKTOP-QU2UJ1N:~$ clojure -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.1.0"}}}'Clojure 1.1.0user=> *clojure-version*{:major 1, :minor 1, :incremental 0, :qualifier ""}user=> Given that, I think that a –version option on clojure would be misleading since it is not reporting the version of the clojure / clj scripts. Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEANAn Architect's View -- http://corfield.org/"If you're not annoying somebody, you're not really alive."-- Margaret Atwood From: Alan ThompsonSent: Tuesday, May 7, 2019 4:50 PMTo: clojureSubject: No "clojure --version" switch Seems we should have the "--version" switch that is pretty universal.  Right now, the best one can do is  > clojure --eval "(clojure-version)""1.10.0" which is hard for a new user to figure out.  Jira ticket? Alan-- You received this message because you are subscribed to the GoogleGroups "Clojure" group.To post to this group, send email to clojure@googlegroups.comNote that posts from new members are moderated - please be patient with your first post.To unsubscribe from this group, send email toclojure+unsubscr...@googlegroups.comFor more options, visit this group athttp://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/CAN67zA0yrhNhfx2vwH%3D-oy1kbJPA0EyGwwvg%2BFX3kyV4tgz3Qg%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/5cd24a6f.1c69fb81.bb91f.699f%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.


No "clojure --version" switch

2019-05-07 Thread Alan Thompson
Seems we should have the "--version" switch that is pretty universal.
Right now, the best one can do is

> clojure --eval "(clojure-version)"
"1.10.0"


which is hard for a new user to figure out.  Jira ticket?

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CAN67zA0yrhNhfx2vwH%3D-oy1kbJPA0EyGwwvg%2BFX3kyV4tgz3Qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: An online gathering: MXNet Deep Learning in Clojure

2019-05-07 Thread Daniel Slutsky
Registration and more details about next week's online gathering:
https://twitter.com/scicloj/status/1125890426752389120

On Thu, 18 Apr 2019 at 14:14, Daniel Slutsky 
wrote:

> Next month, on May 15h, 10pm UTC, we will have an online gathering.
>
> Agenda:
> • @*gigasquid*  about @*ApacheMXNet*
>  Deep Learning in Clojure
> • Broader discussion of our community challenges
>
> More details soon -- follow Scicloj on Twitter.
> https://twitter.com/scicloj/status/1118828437597192192
>
> See you there.
>

-- 
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/CADTWONMeZ6ZAYD3wm64ruyPKOs-TYD3OCQAGiB-qdfcQx%3DS9vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: results from sort-by are not sorted

2019-05-07 Thread Sean Corfield
Good catch, thank you! And that was my _second_ edit (my first draft was also 
wrong in a different way). Lesson: just try this stuff in the REPL to see what 
_really_ happens! 

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


From: clojure@googlegroups.com  on behalf of Justin 
Smith 
Sent: Monday, May 6, 2019 1:53:48 PM
To: Clojure
Subject: Re: results from sort-by are not sorted

minor nitpick to the answer Sean provided: #{:age} as a function returns :age 
for an argument equal to :age and nil for all other inputs, including a hash 
map containing that key.

On Sun, May 5, 2019, 22:22 
mailto:sheng.peisi@gmail.com>> wrote:
Thanks. What a newbie question.

在 2019年5月6日星期一 UTC+8上午11:34:36,se...@corfield.org写道:
(sort-by #{:age} …) will use the set #{:age} as the keyfn, and both (#{:age} 
{:age 3, :name “luo”}) and (#{:age} {:age 1, :name “sheng”}) both return :age – 
because both maps contain the key in the set. As far as sort-by is concerned, 
both hash maps compare equal.

What you want is (sort-by :age …) so you the keyfn pulls the value 
corresponding to :age out of the hash maps. That will produce 3 from {:age 3, 
:name “luo”} and 1 from {:age 1, :name “sheng”} so they will sort appropriately.

Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

From: sheng@gmail.com
Sent: Sunday, May 5, 2019 7:48 PM
To: Clojure
Subject: results from sort-by are not sorted

Hey there,

in my lein repl,

(sort-by #{:age} [{:age 3,:name "luo"},{:age 1,:name "sheng"}])

returns

({:age 3, :name "luo"} {:age 1, :name "sheng"})

rather than

({:age 1, :name "sheng"}, {:age 3, :name "luo"}).

Why?
--
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.
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.

--
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.

-- 
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/CY4PR2201MB11266635C48A625AD749EB33F4310%40CY4PR2201MB1126.namprd22.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


[ARTICLE] Shenandoah GC in production: experience report

2019-05-07 Thread Alex Miller
Excellent write up, thanks for doing that.

-- 
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/c4456ba3-a9a3-4205-9b3d-13b73ae0031b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


2nd Call for Contributions: Summer BOB 2019 [Aug 21, Berlin, deadline May 17]

2019-05-07 Thread Michael Sperber


Clojure talks extremely welcome at Summer BOB!

  Summer BOB Conference 2019
 "What happens when we use what's best for a change?"
http://bobkonf.de/2019-summer/cfc.html
  Berlin, August 21
  co-located with ICFP 2019
Call for Contributions
Deadline: May 17, 2019


You are engaged in software development or software architecture, and
have an interesting story to tell about an advanced tools, technique,
language or technology that you're using? Or a gnarly problems that
these tools fail to address but should?

Summer BOB is a one-time-only event, in the spirit of the spectacular
Winter BOB. The International Conference on Functional Programming is
coming to town, and Summer BOB will be right in the middle of it, on
the last day of ICFP proper, prior to all the workshops. Summer BOB
will feature two tracks: one from practitioners, and one from
researchers, and foster communication and cross-pollination between
these communities.

If you share our vision and want to contribute,
submit a proposal for a talk!

NOTE: The conference fee will be waived for presenters. Travel
expenses will not be covered (for exceptions see "Speaker Grants").

Topics
--

We are looking for talks about best-of-breed software technology, e.g.:

- functional programming
- persistent data structures and databases
- types
- formal methods for correctness and robustness
- abstractions for concurrency and parallelism
- metaprogramming
- probabilistic programming
- math and programming
- controlled side effects
- beyond REST and SOAP
- effective abstractions for data analytics
- … everything really that isn’t mainstream, but you think should be.

Presenters should provide the audience with information that is
practically useful for software developers.

We're especially interested in experience reports.  Other topics are
also relevant, e.g.:

- demos and how-tos
- reports on problems that cutting-edge languages and tools should address 
but don't
- overviews of a given field

Requirements


We accept proposals for presentations of 45 minutes (40 minutes talk +
5 minutes questions), as well as 90 minute tutorials for
beginners. The language of presentation should be either English.

Your proposal should include (in your presentation language of choice):

- An abstract of max. 1500 characters.
- A short bio/cv
- Contact information (including at least email address)
- A list of 3-5 concrete ideas of how your work can be applied in a 
developer's daily life
- additional material (websites, blogs, slides, videos of past 
presentations, …)
- Don't be confused: The system calls a submission event.

Submit here
---

https://bobcfc.active-group.de/bob2019-summer/cfp

Speaker Grants
--

BOB has Speaker Grants available to support speakers from groups
under-represented in technology. We specifically seek women speakers
and speakers who are not be able to attend the conference for
financial reasons.  Shepherding

The program committee offers shepherding to all speakers. Shepherding
provides speakers assistance with preparing their sessions, as well as
a review of the talk slides. 

Organisation


- Direct questions to contact at bobkonf dot de
- Proposal deadline: May 17, 2019
- Notification: May 31, 2019
- Program announcement: June 14, 2019

Program Committee
-

- Matthias Fischmann, zerobuzz UG
- Matthias Neubauer, SICK AG
- Nicole Rauch, Softwareentwicklung und Entwicklungscoaching
- Michael Sperber, Active Group
- Stefan Wehr, factis research

Scientific Advisory Board

- Annette Bieniusa, TU Kaiserslautern
- Torsten Grust, Uni Tübingen
- Peter Thiemann, Uni Freiburg

More information here: http://bobkonf.de/2019-summer/programmkomitee.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/78e67ba9-bdb1-4bfc-8538-d478d538a4c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.