This page is no longer maintained — Please continue to the home page at www.scala-lang.org

ease of making DSLs in Scala - nobody cares

3 replies
Szymon Jachim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Few days ago I had a lightning talk about how easy it is to make internal DSLs in Scala.I only had few minutes so I just showed snippets of code of: - Specs - Scala OSGi DSL (from Roman Roleofsen)  - Apache Camel DSLand compared it to usual XML or Java code needed to do the same.Plus few words about Scala implicits and operator=method feature.
Surprisingly people didn't get it as much as I hoped...  Probably becouse only a few of the listeners heard about Scala before...
But on the last two slides I showed how to implement this:
object Playground extends BasicClass {   def main(args: Array[String]) {     10 PRINT "SCALA ROCKS!"    20 GOTO 10
    RUN  }}
And everybody got interested!
Maybe next time I will start with showing inline BASIC... ;-)
Szymon
--
ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ı ǝɯıʇ ʇsɐן ǝɥʇ sı sıɥʇ
Franco Lombardo
Joined: 2009-02-03,
User offline. Last seen 42 years 45 weeks ago.
Re: ease of making DSLs in Scala - nobody cares

Great!!!

Have you published your slides anywhere?

Thanks.

Bye.

Franco

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.francolombardo.net
Scala, Java, As400.....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

loverdos
Joined: 2008-11-18,
User offline. Last seen 2 years 27 weeks ago.
Re: ease of making DSLs in Scala - nobody cares
I am sure if you publish an interpreter for your BASIC, the very people that attended the talk will be thrilled. And apart from that, this will be a fine example of "I can do almost anything I want with Scala" ;-)

On Wed, Mar 11, 2009 at 10:31 AM, Szymon Jachim <sjachim@gmail.com> wrote:
Few days ago I had a lightning talk about how easy it is to make internal DSLs in Scala.I only had few minutes so I just showed snippets of code of: - Specs - Scala OSGi DSL (from Roman Roleofsen)  - Apache Camel DSLand compared it to usual XML or Java code needed to do the same.Plus few words about Scala implicits and operator=method feature.
Surprisingly people didn't get it as much as I hoped...  Probably becouse only a few of the listeners heard about Scala before...
But on the last two slides I showed how to implement this:
object Playground extends BasicClass {   def main(args: Array[String]) {     10 PRINT "SCALA ROCKS!"    20 GOTO 10
    RUN  }}
And everybody got interested!
Maybe next time I will start with showing inline BASIC... ;-)
Szymon
--
ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ı ǝɯıʇ ʇsɐן ǝɥʇ sı sıɥʇ



--
 __~O
-\ <,       Christos KK Loverdos
(*)/ (*)      http://ckkloverdos.com
pi song
Joined: 2009-02-20,
User offline. Last seen 42 years 45 weeks ago.
Re: ease of making DSLs in Scala - nobody cares

Yo!
Can you tell me how to do that?

Pi Song

On Wed, Mar 11, 2009 at 7:31 PM, Szymon Jachim wrote:
> Few days ago I had a lightning talk about how easy it is to make internal
> DSLs in Scala.
> I only had few minutes so I just showed snippets of code of:
>  - Specs
>  - Scala OSGi DSL (from Roman Roleofsen)
>  - Apache Camel DSL
> and compared it to usual XML or Java code needed to do the same.
> Plus few words about Scala implicits and operator=method feature.
> Surprisingly people didn't get it as much as I hoped...
> Probably becouse only a few of the listeners heard about Scala before...
> But on the last two slides I showed how to implement this:
> object Playground extends BasicClass {
>   def main(args: Array[String]) {
>     10 PRINT "SCALA ROCKS!"
>     20 GOTO 10
>     RUN
>   }
> }
> And everybody got interested!
> Maybe next time I will start with showing inline BASIC... ;-)
> Szymon
> --
> ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ı ǝɯıʇ ʇsɐן ǝɥʇ sı sıɥʇ
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland