[m-users.] Greetings
anonymous
mucaho at yahoo.com
Mon Mar 31 23:16:29 AEDT 2014
Thank you both for the hearty welcome!
As you suggested Michael, I will keep my expectations in check, as it's a pretty new language. On the other hand, it's open source so the community can help out too :) . I'm sure Paul and other contributors are open to suggestions and would participate on discussions about adding new collections/predicates to the standard library for example.
Thank you Paul for pointing me to the right direction regarding parallelization and IDE support.
I would also like to add that I found an eclipse plugin which offers syntax highlighting, errors / warning (during editing) and from the looks of it you can interface with existing java code more conveniently (since you are in eclipse already :) ). http://kai.mercury.mind-era.com/home
If I encounter any problems, I will gratefully accept your offer and use the mailing-list and/or the freenode channel for further assistence.
Cheers
mucaho
On Monday, March 31, 2014 3:10 AM, Paul Bone <paul at bone.id.au> wrote:
On Sun, Mar 30, 2014 at 04:01:25PM -0700, anonymous wrote:
> Greetings fellow Mercury users!
>
> First of all, kudos to the developers & community of Mercury!
>
> I just recently started to discover the world beyond C, Java & Co and I am absolutely amazed.
>
> First I took a look at Scala. It's a great language to transition from Java and raised my appetite for declarative programming.
>
> After extensive search & comparison I found my hobby language of choice - Mercury:
> * It has JVM interoperability (Write frontend gui code in Java/Scala, use Mercury for backend business logic)
> * Logic rules (Horn clauses) -> in & out modes for parameters
> * Higher-order functions with good standard library (e.g. list and fold)
>
> * Typeclasses (sweet!)
> * It surely has more features I will need to discover (e.g. what about parallelization? IDE-support? etc.)
>
> On paper it sounds astonishing, I hope my future practical endeavours confirm that :)
Hello new Anonymous user!
We're pleased that your interested and hope that you find what you're
looking for. Personally I find that Mercury allows me to program in a very
high level way using many abstractions, some of which you've mentioned.
But I still feel as if I'm able to be /precise/ about my programs' semantics
and operations.
Mercury has a steep learning curve, it's quite different from many
developer's previous experiences. We're happy to answer specific questions
you might have while learning Mercury. Unfortunately there aren't many
resources online at the moment but we're continuing to improve this
situation.
To answer some questions you've raised already we do support parallelism and
concurrency. This support isn't perfect and we're continuing to improve it.
The low level backend supports the parallel conjunction operator (&) which
can be used to advise the runtime system (when compiled with support for
parallelism) that it may execute the conjuncts in parallel. There are many
things that can affect how much performance you actually achieve, I'm not
going to list them here but suggest some reading:
Language Reference Manual section 2.9 Goals.
Peter Wang's thesis describes how dependencies between parallel
conjuncts are handled:
http://www.mercurylang.org/documentation/papers.html#wangp-hons
My thesis describes how the runtime system currently handles parallel
conjunctions (information here supersedes Peter's thesis). I also
describe some pathological performance issues and their solution:
http://www.mercurylang.org/documentation/papers.html#pbone_phd_thesis
We also have very experimental support for automatic parallelism. This is
documented in my thesis and (I think) in the user's guide. You're welcome
to experiment with it and I encourage you to let me know what you find.
In the parallel C grades, the Java and C# grades we also support
concurrency. This is available via the thread module in the standard
library. There is a caveat here that mixing concurrent and IO-heavy code in
the low-level C grade may not perform as well as expected: a thread that
blocks on IO can also block multiple other lightwight threads.
You also asked about IDE support. Depends what you consider an 'IDE' we
have a style file that is compatible with VIM and elsewhere people have
worked on similar support for emacs. There is also some support for the gud
debugger in emacs, but I don't know the details.
All the best.
--
Paul Bone
_______________________________________________
users mailing list
users at lists.mercurylang.org
https://www.mercurylang.org/lists/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20140331/ea2d84d8/attachment.html>
More information about the users
mailing list