another idea for a presentation

27 views
Skip to first unread message

Kevin Wright

unread,
Apr 29, 2010, 5:07:56 AM4/29/10
to scala-...@googlegroups.com
I don't know how much global appeal this would hold, but I've been thinking about doing a presentation on how Scala interacts with the JVM.  Mostly to cover common misconceptions, optimisations the JVM can make and where this all fits into the memory model.

It might be a *little* more advanced that you planned though, as some of the topics I had in mind were
- escape analysis
- scalar replacement
- TLAS vs stack allocation
- mutable vs mutable objects and optimisations the JVM can perform
- why object creation is cheap and the eden space
- garbage collection strategies


It might be worth trying to tie some of this stuff into the upcoming event (June) that the LJC have planned to cover the Java memory model, assuming I can somehow make enough time to arrange enough material!

Whaddya all think?


--
Kevin Wright

mail/google talk: kev.lee...@googlemail.com
wave: kev.lee...@googlewave.com
skype: kev.lee.wright
twitter: @thecoda

Richard Dallaway

unread,
Apr 29, 2010, 5:11:20 AM4/29/10
to scala-...@googlegroups.com
Yup - I'd be interested in that. Great topic.

Marcus Downing

unread,
Apr 29, 2010, 5:16:09 AM4/29/10
to scala-...@googlegroups.com
I'd be interested in that. It might shed light on such questions as
"do small case classes get stack allocated, and should they?" "what
simple things should I be doing or avoiding to make it easier for the
JVM to optimise?" "how can we expect the performance of our code to
change between JVM versions?"

I don't live in London. Is there any chance of recording these talks
and publishing them somewhere? Is that already happening and I missed
it?

Marcus Downing
mar...@bang-on.net



On 29 April 2010 10:07, Kevin Wright <kev.lee...@googlemail.com> wrote:

Rustem.Suniev

unread,
Apr 29, 2010, 5:16:43 AM4/29/10
to London Scala User Group
+1
Sounds great!
Is the interaction being changed in 2.8 in comparison to 2.7?
Thanks
Rustem

On Apr 29, 10:07 am, Kevin Wright <kev.lee.wri...@googlemail.com>
wrote:
> mail/google talk: kev.lee.wri...@googlemail.com
> wave: kev.lee.wri...@googlewave.com
> skype: kev.lee.wright
> twitter: @thecoda

Andy Hicks

unread,
Apr 29, 2010, 5:24:25 AM4/29/10
to scala-...@googlegroups.com
+1 from me

Q: how much of this would be scala, this sound more like a Part2 to
the LJC JMM talk and would be equally true for java?

Kevin Wright

unread,
Apr 29, 2010, 5:52:05 AM4/29/10
to scala-...@googlegroups.com
Much of it would be about JVM in general, but with a particular emphasis on those aspects that would be of greater interest to scala developers.

For example, many idioms call for short-lived immutable objects whereas the java equivalent would typically use just the one longer lived mutable objects.  Recursive functions and how they behave are also of special interest.

Andy Hicks

unread,
Apr 29, 2010, 6:44:16 AM4/29/10
to scala-...@googlegroups.com
(with my organizer hat on :-) Do you think it would be better as an
LJC event (with adverts on lsug), then it could be joined up with the
JMM talk more easily (and we can plug the LSUG to new people, at the
same time :-)

Marcus Baker

unread,
Apr 30, 2010, 5:52:25 AM4/30/10
to scala-...@googlegroups.com
Hi...

Kevin Wright wrote:
> I don't know how much global appeal this would hold, but I've been
> thinking about doing a presentation on how Scala interacts with the JVM.
> Mostly to cover common misconceptions, optimisations the JVM can make
> and where this all fits into the memory model.

That would be fascinating. I'd turn up for that. That's just the kind of
information that's difficult to get from the net or books. Exactly the
kind of fringe stuff and inventive angles a user group is for IMO.

yours, Marcus
Reply all
Reply to author
Forward
0 new messages