- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
ease of making DSLs in Scala - nobody cares
Wed, 2009-03-11, 09:32
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ıɥʇ
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ıɥʇ
Wed, 2009-03-11, 10:17
#2
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:
--
__~O
-\ <, Christos KK Loverdos
(*)/ (*) http://ckkloverdos.com
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
Wed, 2009-03-11, 10:27
#3
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ıɥʇ
>
Great!!!
Have you published your slides anywhere?
Thanks.
Bye.
Franco
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.francolombardo.net
Scala, Java, As400.....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~