Re: Thread contention on GroovyClassLoader sourceCache

2018-02-23 Thread Daniel Sun
Hi Jochen, As a Groovy user, I prefer higher level API, e.g. `GroovyShell`, `GroovyClassLoader` ;-) Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Thread contention on GroovyClassLoader sourceCache

2018-02-23 Thread Jochen Theodorou
On 23.02.2018 23:24, Divij Vaidya wrote: Hello, My name is Divij and I am working on an application which requires concurrent script compilation with a high throughput. I am using version 2.4.12 and currently, I am not able to achieve high throughput because the threads are waiting at the sy

Re: Thread contention on GroovyClassLoader sourceCache

2018-02-23 Thread Daniel Sun
Another thread for your reference: http://groovy.329449.n5.nabble.com/Executing-Groovy-DSL-scripts-concurrently-tp5747234.html Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Thread contention on GroovyClassLoader sourceCache

2018-02-23 Thread Daniel Sun
Hi Divij, `ConcurrentHashMap` does not provide atomic operation(e.g. check-and-put) util Java8. So I have achieved a fine-grained access control to these caches[1], which is available in 2.5+. 2.5 beta-3[2] is out and RC will be released soon, so please give it a try :) Cheers, Daniel.Sun [

Re: Java raw string literals

2018-02-23 Thread Daniel Sun
It's not difficult to support Java's raw string in the Parrot parser. But it's a pity that Java use Backtick(`) character... which could have been used more expressively in Groovy... It recalls me that the exprimental feature "Custom Operator"[1] ... Cheers, Daniel.Sun [1] https://github.com/dan

Thread contention on GroovyClassLoader sourceCache

2018-02-23 Thread Divij Vaidya
Hello, My name is Divij and I am working on an application which requires concurrent script compilation with a high throughput. I am using version 2.4.12 and currently, I am not able to achieve high throughput because the threads are waiting at the synchronized code block at [1]. I propose remov

Re: Java raw string literals

2018-02-23 Thread Jochen Theodorou
On 23.02.2018 21:31, Paolo Di Tommaso wrote: Hi people, I was wondering if there any plan to include in the new parrot parser the support the new Java raw string literals. http://openjdk.java.net/jeps/8196004 Thoughts? we have """ and we have ''', so there is no functional gap to close by

Java raw string literals

2018-02-23 Thread Paolo Di Tommaso
Hi people, I was wondering if there any plan to include in the new parrot parser the support the new Java raw string literals. http://openjdk.java.net/jeps/8196004 Thoughts? Cheers, Paolo

[ANNOUNCE] Apache Groovy 2.5.0-beta-3 released

2018-02-23 Thread Paul King
[Apologies for the duplicate email - the previous one was missing the subject line] Dear community, The Apache Groovy team is pleased to announce version 2.5.0-beta-3 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groo

[ANNOUNCE]

2018-02-23 Thread Paul King
Dear community, The Apache Groovy team is pleased to announce version 2.5.0-beta-3 of Apache Groovy. Apache Groovy is a multi-facet programming language for the JVM. Further details can be found at the http://groovy.apache.org website. This is a pre-release of a new version of Groovy. There are s