royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlosrov...@apache.org>
Subject Re: [royale-asjs] branch develop updated: [WAST] batch script for WASTC and an early example project
Date Mon, 13 Nov 2017 18:40:55 GMT
Hi Erik,

seems like a reliable roadmap. Wish you luck on the trip :)

2017-11-13 19:20 GMT+01:00 Piotr Zarzycki <piotrzarzycki21@gmail.com>:

> I'm so so happy that you back to us! :) <3
>
> Piotr
>
>
> 2017-11-13 19:16 GMT+01:00 Erik de Bruin <erik@ixsoftware.nl>:
>
> > My status and plans in short:
> >
> > There is now a separate and independent transpiler, WASTC, (in the
> > 'feature/wast' branch), which is addressed through the
> > 'royale-asjs/wast/bin/wastc' script. There is no specific visitors yet
> for
> > the transpilation, so it's putting out what you put in, but hey, the
> > transpiler compiles and runs ;-)
> >
> > Next up: complete the tool chain, mostly figure out how to automate the
> > 'wat' (WebAssembly Text format) to 'wast' ("binary" WebAssembly format)
> > conversion, publish full project with HTML 'template', put up some basic
> > "setup and run" documentation, etc.
> >
> > Then I'll get started creating the first small steps on the visitors,
> > getting a tiny AS application ("trace('Hello World')") to transpile to a
> > functioning WAST project.
> >
> > From there: complete transpiling all AS core functionality, complete the
> > glue script to make WAST -> JavaScript communication happen and do a
> bunch
> > of other things (including some I don't know about yet, I'm sure, because
> > I'm still learning WebAssembly).
> >
> > I hope to have the proof of concept (everything up to 'Hello World') done
> > by the end of the week. Then I'll have to do some real work again :-P
> >
> > Thanks,
> >
> > EdB
> >
> >
> >
> > On Mon, Nov 13, 2017 at 5:51 PM, Harbs <harbs.lists@gmail.com> wrote:
> >
> > > Awesome!
> > >
> > > Does this compile yet?
> > >
> > > > On Nov 13, 2017, at 6:27 PM, erikdebruin@apache.org wrote:
> > > >
> > > > This is an automated email from the ASF dual-hosted git repository.
> > > >
> > > > erikdebruin pushed a commit to branch develop
> > > > in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
> > > >
> > > >
> > > > The following commit(s) were added to refs/heads/develop by this
> push:
> > > >     new e036dd3  [WAST] batch script for WASTC and an early example
> > > project
> > > > e036dd3 is described below
> > > >
> > > > commit e036dd345ba0c37b80bef09798c9c957a6088ee7
> > > > Author: Erik de Bruin <erik@ixsoftware.nl>
> > > > AuthorDate: Mon Nov 13 17:27:07 2017 +0100
> > > >
> > > >    [WAST] batch script for WASTC and an early example project
> > > >
> > > >    Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>
> > > > ---
> > > > wast/bin/wastc                             | 72
> > > ++++++++++++++++++++++++++++++
> > > > wast/examples/HelloWorld/src/HelloWorld.as | 29 ++++++++++++
> > > > 2 files changed, 101 insertions(+)
> > > >
> > > > diff --git a/wast/bin/wastc b/wast/bin/wastc
> > > > new file mode 100755
> > > > index 0000000..fd77d19
> > > > --- /dev/null
> > > > +++ b/wast/bin/wastc
> > > > @@ -0,0 +1,72 @@
> > > > +#!/bin/sh
> > > > +
> > > > +###########################################################
> > > #####################
> > > > +##
> > > > +##  Licensed to the Apache Software Foundation (ASF) under one or
> more
> > > > +##  contributor license agreements.  See the NOTICE file distributed
> > > with
> > > > +##  this work for additional information regarding copyright
> > ownership.
> > > > +##  The ASF licenses this file to You under the Apache License,
> > Version
> > > 2.0
> > > > +##  (the "License"); you may not use this file except in compliance
> > with
> > > > +##  the License.  You may obtain a copy of the License at
> > > > +##
> > > > +##      http://www.apache.org/licenses/LICENSE-2.0
> > > > +##
> > > > +##  Unless required by applicable law or agreed to in writing,
> > software
> > > > +##  distributed under the License is distributed on an "AS IS"
> BASIS,
> > > > +##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.
> > > > +##  See the License for the specific language governing permissions
> > and
> > > > +##  limitations under the License.
> > > > +##
> > > > +###########################################################
> > > #####################
> > > > +
> > > > +
> > > > +#
> > > > +# wastc shell script to launch wastc.jar on OSX, Unix, or Cygwin.
> > > > +#
> > > > +
> > > > +SCRIPT_HOME=`dirname "$0"`
> > > > +
> > > > +test "$FLEX_HOME" = "" && {
> > > > +    FLEX_HOME=`dirname "$0"`/../..
> > > > +}
> > > > +
> > > > +for i in "$@"
> > > > +do
> > > > +case $i in
> > > > +    -t=*|--target-player=*)
> > > > +    TARGET_PLAYER="${i#*=}"
> > > > +    shift
> > > > +    ;;
> > > > +    *) # unknown option
> > > > +    ;;
> > > > +esac
> > > > +done
> > > > +
> > > > +test "$TARGET_PLAYER" = "" && {
> > > > +    TARGET_PLAYER=11.1
> > > > +}
> > > > +
> > > > +case `uname` in
> > > > +             CYGWIN*)
> > > > +                     OS="Windows"
> > > > +             ;;
> > > > +             *)
> > > > +                     OS=Unix
> > > > +esac
> > > > +
> > > > +D32=''
> > > > +
> > > > +if [ $OS = "Unix" ]; then
> > > > +
> > > > +    check64="`java -version 2>&1 | grep -i 64-Bit`"
> > > > +    isOSX="`uname | grep -i Darwin`"
> > > > +    javaVersion="`java -version 2>&1 | awk -F '[ ".]+' 'NR==1
{print
> > $3
> > > "." $4}'`"
> > > > +
> > > > +    if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" !=
> ""
> > > -a "$javaVersion" = "1.6" ]; then
> > > > +        D32='-d32'
> > > > +    fi
> > > > +fi
> > > > +
> > > > +VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false"
> > > > +
> > > > +java $VMARGS $D32 -jar "${SCRIPT_HOME}/../lib/wastc.jar"
> > > -external-library-path="${FLEX_HOME}/frameworks/libs/
> > > player/${TARGET_PLAYER}/playerglobal.swc" "$@"
> > > > diff --git a/wast/examples/HelloWorld/src/HelloWorld.as
> > > b/wast/examples/HelloWorld/src/HelloWorld.as
> > > > new file mode 100644
> > > > index 0000000..b2d2c36
> > > > --- /dev/null
> > > > +++ b/wast/examples/HelloWorld/src/HelloWorld.as
> > > > @@ -0,0 +1,29 @@
> > > > +///////////////////////////////////////////////////////////
> > > /////////////////////
> > > > +//
> > > > +//  Licensed to the Apache Software Foundation (ASF) under one or
> more
> > > > +//  contributor license agreements.  See the NOTICE file distributed
> > > with
> > > > +//  this work for additional information regarding copyright
> > ownership.
> > > > +//  The ASF licenses this file to You under the Apache License,
> > Version
> > > 2.0
> > > > +//  (the "License"); you may not use this file except in compliance
> > with
> > > > +//  the License.  You may obtain a copy of the License at
> > > > +//
> > > > +//      http://www.apache.org/licenses/LICENSE-2.0
> > > > +//
> > > > +//  Unless required by applicable law or agreed to in writing,
> > software
> > > > +//  distributed under the License is distributed on an "AS IS"
> BASIS,
> > > > +//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.
> > > > +//  See the License for the specific language governing permissions
> > and
> > > > +//  limitations under the License.
> > > > +//
> > > > +///////////////////////////////////////////////////////////
> > > /////////////////////
> > > > +
> > > > +package
> > > > +{
> > > > +     public class HelloWorld
> > > > +     {
> > > > +             public function HelloWorld()
> > > > +             {
> > > > +                     trace('Hello world ;-)');
> > > > +             }
> > > > +     }
> > > > +}
> > > > \ No newline at end of file
> > > >
> > > > --
> > > > To stop receiving notification emails like this one, please contact
> > > > ['"commits@royale.apache.org" <commits@royale.apache.org>'].
> > >
> > >
> >
> >
> > --
> > Ix Multimedia Software
> >
> > Jan Luykenstraat 27
> > 3521 VB Utrecht
> >
> > T. 06-51952295
> > I. www.ixsoftware.nl
> >
>
>
>
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message