From dev-return-2752-archive-asf-public=cust-asf.ponee.io@openwhisk.apache.org Tue Oct 23 15:38:02 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 19A9E18066B for ; Tue, 23 Oct 2018 15:38:01 +0200 (CEST) Received: (qmail 83547 invoked by uid 500); 23 Oct 2018 13:38:01 -0000 Mailing-List: contact dev-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list dev@openwhisk.apache.org Received: (qmail 83529 invoked by uid 99); 23 Oct 2018 13:38:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2018 13:38:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 094341A08E9 for ; Tue, 23 Oct 2018 13:38:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.139 X-Spam-Level: ** X-Spam-Status: No, score=2.139 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id egMeAUy01L5k for ; Tue, 23 Oct 2018 13:37:58 +0000 (UTC) Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 95FE55F118 for ; Tue, 23 Oct 2018 13:37:58 +0000 (UTC) Received: by mail-ua1-f48.google.com with SMTP id w12so493842uam.9 for ; Tue, 23 Oct 2018 06:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7LdQHJUgULM3xBo+xkxzKysJSeGwECWf5JFn2//ugTg=; b=gUX889FyrgRl7U+XpEHvGtiT1MipbS7lmqCVAHh7RwvDkGk5eXDNTO7620s0nWo640 KwyAqN2z9tn2VfSgyOEsoyl/bqSDo1uzFuKByjgpqOlMx/ccUxfqr8b6/3+UzfidovJK 1RwLf3PTLXrstZtzkJA+TaSE8PSlAC0q8MveP8hUsrpAM6oYs86H0yPP4EYsYNo8+eht u5IqIKNSan4q8Mi7WRnvpm+x/da/SAJurDi6a4ZTnJaoYN/+gKD3fJUer3ApClvVo0v8 FVi6vqhdwwN1lwqEj9n55TE9X6/+/izcT//Cjgi+jq72u3p5srT3FsVHUWC+7RAsUDoM NMvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7LdQHJUgULM3xBo+xkxzKysJSeGwECWf5JFn2//ugTg=; b=Rw6AW5Bq7e38nTg8qXvBnlXc1CFvNmFRqHI7zoEnL6O4AiR8rio9Y+Xlh1ml86hsct guVGLqVnvevZWWgvFhHz3Qjqw7cxdkQ66WEvhHI4EcPL1KS4EXRsjWldm+aZHMYPc1MW 5kth9UEI85fPrxWq8J2NxBU98FkOLfpRaplGOa45rL1cQoR0lScIlm5NxykilDQnsKne WJDTgxoPHcXgKIyc8vAE96TfWmyNbvdE9yguSamLxGx1cRSwvU5d2BNW7d4B8y1bd6Ix CfM4NqYQF91rCH0xF2pb4KooX1s1X/TXaC2+K6FRq+9zex8gXL26e/ETXjgwCEekdX3E DXNg== X-Gm-Message-State: ABuFfojhwRKngevgqKNVgugLlxl2yAydItagF/298MbFSzFc+75e4u7C t9+yHjGWGFfnf2KTmzykZ4jtSvmEwjV65j6sik7KIg== X-Google-Smtp-Source: ACcGV63PxknOFemq//cYp0lZ8bgG7PIjWLi8uIEZSzW2vdYztP0sYuxK7yMPdN26won8/z5r3BSSBUAfcpBUb1Lnmms= X-Received: by 2002:ab0:5b51:: with SMTP id v17mr20599226uae.105.1540301877543; Tue, 23 Oct 2018 06:37:57 -0700 (PDT) MIME-Version: 1.0 References: <1540294392.777200.1551573800.3D36F049@webmail.messagingengine.com> In-Reply-To: <1540294392.777200.1551573800.3D36F049@webmail.messagingengine.com> From: Carlos Santana Date: Tue, 23 Oct 2018 09:37:45 -0400 Message-ID: Subject: Re: Tech Interchange call this Wed. Oct. 24 - add agenda topics here To: dev@openwhisk.apache.org Content-Type: multipart/alternative; boundary="0000000000004207570578e57aca" --0000000000004207570578e57aca Content-Type: text/plain; charset="UTF-8" Thanks Michele looking forward +1 On Tue, Oct 23, 2018 at 7:33 AM Michele Sciabarra wrote: > I would like to show my new "actionloop" based Scala runtime! > Yes I know, it is already possible to use Scala with the Java runtime. > But you have to compile, create a jar, include libraries > This one is based on the scripting shell "Ammonite" http://ammonite.io > and works more like js and python. > > Here is a simple demo: > > https://openwhisk.eu-de.bluemix.net/api/v1/web/sciabarra_cloud/scala/calc > > And this is the source code: > > ---- > import play.api.libs.json._ > import scala.util.Try > > def main(args: JsObject) : JsObject = { > val a = if(args \ "a" isDefined) { > Try(args("a").as[String].toInt).getOrElse(0) > } else 0 > val b = if(args \ "b" isDefined) { > Try(args("b").as[String].toInt).getOrElse(0) > } else 0 > if( args \ "add" isDefined) { > html(Some(s"${a} + ${b} = ${a+b}")) > } else if ( args \ "mul" isDefined) { > html(Some(s"${a} * ${b} = ${a*b}")) > } else html() > } > > def html(msg: Option[String]=None) = { > val body = s""" > ${if(msg.isEmpty) "" else "

"+msg.get+"

"} >
> > > > >
""" > Json.obj("body" -> body) > } > ---- > > Deployed with this command: > > wsk action update scala/calc calc.sc -m512 --web true --docker > msciab/actionloop-scala-v2.12 > > The runtime is also part of a "collection" of runtimes based on the > ActionLoop (the engine of the GoLang runtime) and I want to show how to > build a new runtime for any language with just 3 files: a "compiler" > script, a launcher and a Dockerfile. > > I already did the runtimes for Swift and Scala, and I have in mind many > others (rust, haskell and kotlin for example). > > > > -- > Michele Sciabarra > michele@sciabarra.com > > ----- Original message ----- > From: Carlos Santana > To: "dev@openwhisk.apache.org" > Subject: Tech Interchange call this Wed. Oct. 24 - add agenda topics here > Date: Mon, 22 Oct 2018 09:55:48 -0400 > > Hi Whiskers, > > Please add to this thread any agenda items you'd like to present at the > Tech Interchange call this Wednesday (October 24). > > Call details: > > Web Meeting: Tech Interchange (bi-weekly): > - Day-Time: Wednesdays, 11AM EDT (Eastern US), 5PM CEST (Central Europe), > 3PM UTC, 11PM CST (Beijing) > - Zoom: https://zoom.us/my/asfopenwhisk > > Thanks, > > --carlos > --0000000000004207570578e57aca--