Re: Heads up on XML

2019-09-07 Thread Josh Tynjala
hing.(name() = "cat") or >>> >> something.("cat" = >>> >> > name()) >>> >> > > (these >>> >> > > > are >>> >> > > > the same) >>> >> > > > -it (will) now handle XML e4x references >>> in >>> >> nested >>> >> > function calls >>> >> > > > inside >>> >> > > > the filter, e.g. things like: >>> >> > > > e.g. >>> >> > > > var people:XML = >>> >> > > > >>> >> > > > Bob >>> >> > > > 32 >>> >> > > > >>> >> > > > >>> >> > > > Joe >>> >> > > > 46 >>> >> > > > >>> >> > > > ; >>> >> > > > var findJoeByAge:Function = function >>> >> (i:int):Boolean { >>> >> > > > return i > 40; >>> >> > > > }; >>> >> > > > >>> people.person.(findJoeByAge(parseInt(age))).name >>> >> > > > >>> >> > > > >>> >> > > > I have lots more granular tests in QName, >>> >> Namespace, >>> >> > and XML with >>> >> > > > tuning to >>> >> > > > improve reliability. >>> >> > > > toXMLString XML node output also matches >>> flash >>> >> more >>> >> > correctly in >>> >> > > what I >>> >> > > > have coming. >>> >> > > > >>> >> > > > One thing that I am trying to figure >>> out, which >>> >> I would >>> >> > > appreciate >>> >> > > > input on >>> >> > > > if someone has an answer: >>> >> > > > For the example: >>> >> > > > >>> >> > > > var feed:XML = new XML( >>> >> > > > 'https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2005%2FAtomdata=02%7C01%7Caharui%40adobe.com%7C329e3c957ece4fc05db908d733285bfb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637034120784048005sdata=obQ64fljxqdBKTzfY9RSLmZDOpC8Bphvex8ocpNBSwA%3Dreserved=0 >>> >> > > > " >>> >> > > > xmlns:m="nothing">\n' + >>> >> > > > ' >> rel="no_namespace" >>> >> > > > href="blah/12321/domain/"/>\n' + >>> >> > > > '\n'); >>> >> > > > var atomSpace:Namespace = new Namespace(' >>> >> > > > >>> >> > > >>> >> > >>> >> >>> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2005%2FAtomdata=02%7C01%7Caharui%40adobe.com%7C329e3c957ece4fc05db908d733285bfb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637034120784048005sdata=obQ64fljxqdBKTzfY9RSLmZDOpC8Bphvex8ocpNBSwA%3Dreserved=0 >>> >> > > ' >>> >> > > > ); >>> >> > > > >>> >> > > > Can anyone explain why this (in SWF, as a >>> >> reference >>> >> > > implementation): >>> >> > > > trace(feed.atomSpace::link.length()) >>> >> > > > trace(feed.atomSpace::link.toXMLString()) >>> >> > > > //output: >>> >> > > > 0 >>> >> > > > {empty string} >>> >> > > > is different to: >>> >> > > > trace(feed.child(new >>> >> QName(atomSpace,'link')).length()) >>> >> > > > trace(feed.child(new >>> >> > QName(atomSpace,'link')).toXMLString()) >>> >> > > > //output: >>> >> > > > 1 >>> >> > > > >> >> href="blah/12321/domain/" >>> >> > xmlns:atom=" >>> >> > > > >>> >> > > > >>> >> > > >>> >> > >>> >> >>> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2005%2FAtomdata=02%7C01%7Caharui%40adobe.com%7C329e3c957ece4fc05db908d733285bfb%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637034120784048005sdata=obQ64fljxqdBKTzfY9RSLmZDOpC8Bphvex8ocpNBSwA%3Dreserved=0 >>> >> > > " >>> >> > > > xmlns:m="nothing"/> >>> >> > > > >>> >> > > > I had assumed the above cases would be >>> the >>> >> same, but >>> >> > the second >>> >> > > one is >>> >> > > > behaving as if it has the default >>> namespace >>> >> included >>> >> > with the >>> >> > > specified >>> >> > > > namespace in the QName matching (it does >>> >> correctly >>> >> > match the >>> >> > > namespace >>> >> > > > specifically as well -with e.g. >>> >> >> nodes where >>> >> > the >>> >> > > prefix atom >>> >> > > > is >>> >> > > > bound to the uri, but also seems to >>> include >>> >> link nodes >>> >> > with the >>> >> > > default >>> >> > > > namespace, whether or not it is >>> declared). I can >>> >> > accommodate this >>> >> > > > difference to make them behave the same, >>> I just >>> >> would >>> >> > like to >>> >> > > > understand >>> >> > > > the basis for the actual rules if anyone >>> >> knows >>> >> > > > >>> >> > > > I should be in a position to push the >>> updates >>> >> this >>> >> > coming >>> >> > > weekend I >>> >> > > > think. >>> >> > > > >>> >> > > > >>> >> > > > >>> >> > > >>> >> > > >>> >> > > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> >>> >> >>> >> >>> >>> >>> > -- -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev>

Re: [DISCUSS] Release Apache Royale 0.9.6 RC1

2019-09-06 Thread Josh Tynjala
I just updated the royale-compiler and royale-asjs release notes with the things that I worked on. They're in the develop branch for now. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Fri, Sep 6, 2019 at 9:37 AM Piotr Zarzycki wrote: > I was thinking about that in a very

Re: Discuss of release steps preparation

2019-09-03 Thread Josh Tynjala
macOS allows you to escape a space in a path using a backslash. You can see that Carlos has some backslashes in his message. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Sep 3, 2019 at 9:50 AM Piotr Zarzycki wrote: > ok it failed. How should I put in bash_pro

Re: Discuss of release steps preparation

2019-09-03 Thread Josh Tynjala
file, and choose Show Package Contents, you can dig in there and find the correct path. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Sep 3, 2019 at 6:56 AM Piotr Zarzycki wrote: > In Mac is different - maybe I setup it wrong. Does anyone know whether I >

Re: Trying abstract classes in Jewel

2019-08-29 Thread Josh Tynjala
ace attributes.(1003)" > > I assume we have abstract keyword set by default right? so in Jewel without > configuring nothing "abstract" should be allowed. > > Thanks > > > El mié., 28 ago. 2019 a las 23:31, Josh Tynjala (< > joshtynj...@bowlerhat.dev>) >

Re: Trying abstract classes in Jewel

2019-08-28 Thread Josh Tynjala
share the full error message? -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Fri, Aug 23, 2019 at 2:21 AM Carlos Rovira wrote: > Hi Josh, > > after cleaning Jewel TextInput classes, I tried to change TextInputBase > from public to abstract class. > > The rea

Re: Discuss of release steps preparation

2019-08-28 Thread Josh Tynjala
With that in mind, it seems like you may need to temporarily disable TortoiseGit while running the build. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Wed, Aug 28, 2019 at 6:28 AM Piotr Zarzycki wrote: > I'm not sure if it's related, but I have tried deleted that folder

Re: ${body} in index template

2019-08-27 Thread Josh Tynjala
>royaleCompatibility = new RoyaleCompatibility(); >if (royaleCompatibility.isCompatible) { >new MyApp().start(); >} else { >royaleCompatibility.displayIncompatibilityText(); >} > > > > How do I do that? > -- -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev>

Re: Discuss of release steps preparation

2019-08-26 Thread Josh Tynjala
module build. > > In case of Ant build I will try to figure it out - if I won't be able to I > will wait to your free cycles. > > Thanks, > Piotr > > pon., 26 sie 2019 o 16:39 Josh Tynjala > napisał(a): > >> I guess that I completely forgot to add RoyaleUnit to

Re: Discuss of release steps preparation

2019-08-26 Thread Josh Tynjala
> >>> >>> > >>> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpasteboard.co%2FIsWnHGq.pngdata=02%7C01%7Caharui%40adobe.com%7Cee362a70359f471e8aed08d729ebc5cc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637023964926048393sdata=w0ixJ5SmSTDQbC7gMpzTit5MTQkZBFsHerit8qf%2FYvU%3Dreserved=0 >>> > >>> > >>> > >>> > Thanks, >>> > >>> > Piotr >>> > >>> > >>> > >>> > pt., 16 sie 2019 o 11:08 Piotr Zarzycki < >>> > >>> piotrzarzyck...@gmail.com> >>> > >>> > napisał(a): >>> > >>> > >>> > >>> > > Ok I was mistake. Both zips exists, but they >>> have >>> > different >>> > >>> sizes! So >>> > >>> > > comparison went fine and I need to understand >>> one >>> > sources are >>> > >>> > different... >>> > >>> > > >>> > >>> > > pt., 16 sie 2019 o 10:59 Piotr Zarzycki < >>> > >>> piotrzarzyck...@gmail.com> >>> > >>> > > napisał(a): >>> > >>> > > >>> > >>> > >> I have analyzed that target (compare-src-zips) >>> and it >>> > >>> compares zip >>> > >>> > file >>> > >>> > >> in following locations: >>> > >>> > >> >>> > >>> > >> 1) artifacts\apache-royale-0.9.6-src.zip >>> > >>> > >> 2) /sources/srczip/apache-royale-0.9.6-src.zip >>> > >>> > >> >>> > >>> > >> I have changed in that target all places where >>> > >>> ${artifactfolder} to >>> > >>> > >> ../../${artifactfolder} and launch that >>> target. It >>> > looks >>> > >>> like zip >>> > >>> > file >>> > >>> > >> wasn't created at all in location: >>> > >>> > >> /sources/srczip/apache-royale-0.9.6-src.zip. >>> > >>> > >> >>> > >>> > >> I will try to figure out what has happened. >>> Btw. I >>> > didn't >>> > >>> commit my >>> > >>> > >> changes with ../../ - those are local. >>> > >>> > >> >>> > >>> > >> Thanks, >>> > >>> > >> Piotr >>> > >>> > >> >>> > >>> > >> pt., 16 sie 2019 o 09:29 Piotr Zarzycki < >>> > >>> piotrzarzyck...@gmail.com> >>> > >>> > >> napisał(a): >>> > >>> > >> >>> > >>> > >>> Unfortunately I don't know what is happening >>> but >>> > signing >>> > >>> trough >>> > >>> > script >>> > >>> > >>> hang for me. Stopped working. :( >>> > >>> > >>> >>> > >>> > >>> >>> > >>> > >>> ant -f releasesteps.xml Release_Step_003_Sign >>> > >>> > -Drelease.version=0.9.6 >>> > >>> > >>> Buildfile: >>> > >>> d:\Work\royale-sources\royale-compiler\releasesteps.xml >>> > >>> > >>> >>> > >>> > >>> get-artifact-folder: >>> > >>> > >>> [input] Enter the temporary folder to >>> store the >>> > >>> downloaded >>> > >>> > artifacts: >>> > >>> > >>> royale096 >>> > >>> > >>> >>> > >>> > >>> Release_Step_003_Sign: >>> > >>> > >>> >>> > >>> > >>> sign-file: >>> > >>> > >>> >>> > >>> -- -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev>

Re: Proposed change to inject_html

2019-08-20 Thread Josh Tynjala
> but opening almost every JS file twice doesn't make sense to me. We agree completely on this. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Aug 20, 2019 at 11:21 AM Alex Harui wrote: > Doesn't your plan assume that searching for a potentially (and probabl

Re: Proposed change to inject_html

2019-08-20 Thread Josh Tynjala
that. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Aug 20, 2019 at 10:31 AM Alex Harui wrote: > IMO, we have to open and read each JS file anyway for remove-circulars, so > it isn't clear that looking for additional companion files is going to be > faster than scan

Proposed change to inject_html

2019-08-20 Thread Josh Tynjala
and without needing to try to parse JS files. Thoughts? -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev>

Re: Discuss of release steps preparation

2019-08-15 Thread Josh Tynjala
If it started working correctly after changing the path to include ../../, perhaps ${artifactfolder} is being set to a relative path, but the script expects the path to be absolute. I'm not familiar with the release steps yet, so I'm just guessing, but does that make sense? -- Josh Tynjala Bowler

Re: Minification problem with latest build

2019-08-12 Thread Josh Tynjala
Okay, this should be working correctly now. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Aug 12, 2019 at 10:36 AM Josh Tynjala wrote: > I've determined that when js-dynamic-access-unknown-members is true, a > fully-qualified name is output differently: >

Re: Minification problem with latest build

2019-08-12 Thread Josh Tynjala
though, so that's a bug. I'll try to get it fixed. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Fri, Aug 9, 2019 at 3:52 AM Piotr Zarzycki wrote: > Hi Guys, > > Many Thanks for your answers. I figure out what has happen

Re: Builds

2019-08-09 Thread Josh Tynjala
and the Ant task available. If you have some tests that need to be run in SWF only, but other tests that should be run in both SWF and JS, then I think that you need to use COMPILE::SWF to omit certain tests from the JS build. Similarly with COMPILE::JS for JS-only tests. -- Josh Tynjala Bowler Hat LLC

Re: [royale-compiler] branch develop updated: compiler-jx: added inline-constants compiler option for JS builds to optionally inline the values of primitive constants (like Number, String, Boolean, in

2019-08-08 Thread Josh Tynjala
. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Wed, Aug 7, 2019 at 2:47 PM Greg Dove wrote: > Hey Josh, that sounds pretty cool. I'm not sure, but it might however be > duplicating some aspects of what GCC already does when it optimizes because > I expect it might do

Re: Separate @extern classes in Jewel to a new externs library

2019-07-25 Thread Josh Tynjala
to Jewel and the other framework projects that contain .as files. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Thu, Jul 25, 2019 at 12:47 PM Carlos Rovira wrote: > Hi Josh, > > trying to move dialogPolyfill to royale-typedefs: I only see *.js classes. > I can't f

Re: Separate @extern classes in Jewel to a new externs library

2019-07-25 Thread Josh Tynjala
dialogPolyfill and hljs are not in any wayt related to each other, except the fact that they're both used in Jewel. With that in mind, I think that they belong in separate libraries. I also think that we should add these libraries to royale-typedefs instead of royale-asjs. -- Josh Tynjala Bowler

Re: library-path changes

2019-07-22 Thread Josh Tynjala
Thanks for posting that, Carlos. It reminded me of another rule that's important: All "typedefs" SWCs should always be added to the external-library-path. Even if you are building an app and not a library, typedefs must be external (because they are provided natively by the browser or using a

Re: library-path changes

2019-07-22 Thread Josh Tynjala
ch better than I do. I should point out that you should use "provided" or "runtime" for framework SWCs only when you are when compiling a SWC. When compiling an app, you definitely want these SWCs added to the library-path. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev

Re: library-path changes

2019-07-22 Thread Josh Tynjala
The append attribute has existed since the Flex days. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira wrote: > Hi Harbs, > thanks, the append attribute is new one? it was introduced recently? > > thanks > > El lun.,

Re: library-path changes

2019-07-22 Thread Josh Tynjala
}/frameworks/libs/air/airglobal.swc -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 22, 2019 at 8:20 AM Carlos Rovira wrote: > Hi Josh, > > playerglobal.swc is ok, but can you point me to some place where "js.swc" > is used? > > contents of compil

Re: library-path changes

2019-07-22 Thread Josh Tynjala
Error: Missing builtin type Object This error usually means that either playerglobal.swc or js.swc is missing. It would be difficult to suggest anything more without seeing the contents of compile-swf-config.xml. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 22

Re: Maven distribution changes

2019-07-22 Thread Josh Tynjala
It was a step in that direction. I did not test it in VSCode to see if it had become a valid SDK for code intelligence again. I don't know for sure what other changes are necessary to make that happen. - Josh On Mon, Jul 22, 2019, 6:39 AM Carlos Rovira wrote: > Hi Piotr, > > I'm asking for

Re: Crux Branch

2019-07-17 Thread Josh Tynjala
not to, I plan to do this by start of next week. > > > > This should not impact anyone else because it is something new, > > there are > > > > no changes to anything already present. > > > > > > > > In terms of the name as 'C

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
the problem: The compiler will now always generate JS as UTF-8. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 16, 2019 at 1:01 PM Josh Tynjala wrote: > I made some tweaks to the royale-maven-plugin to make it properly use > external-library-path (and js-external-

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
not sure what's going on there. Maybe I'm running the wrong command to have it also produce a release build. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 16, 2019 at 9:47 AM Josh Tynjala wrote: > Thanks. I'm investigating. > > I've figured out that the Maven

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
t a target/compile-js-config.xml file is created, and it's using js-library-path for framework SWCs. I'm still figuring out where this config file is coming from and how to change it. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 16, 2019 at 9:00 AM Piotr Zarzycki

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
Oh, yes. Sorry. In this case, it's not externc, but our code in the Royale compiler is still generating the JS externs. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 16, 2019 at 9:19 AM Harbs wrote: > OK. > > FWIW, it seems like it’s being generated by an @

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
JS externs when I have time in the coming months. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 16, 2019 at 9:06 AM Harbs wrote: > I quick look seems to indicate that these are coming from Jewel (which I'm > not using). > > > On Jul 16, 2019, at

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
. Maybe it's forcing the use of library-path or something like that. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 16, 2019 at 8:21 AM Piotr Zarzycki wrote: > Hi Josh, > > Do you refer to my post by mentioning "distribution"? - I don't use &g

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
Oh yeah, the Maven "distribution" has its own separate versions of files like frameworks/royale-config.xml and frameworks/js-config.xml, doesn't it? I guess that those need to be updated to use external-library-path too. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev>

Re: library-path and external-library-path fixes

2019-07-16 Thread Josh Tynjala
be added to those examples instead of being included in any SWCs. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 16, 2019 at 7:10 AM Carlos Rovira wrote: > Hi, > > thanks Josh for the update! > One question about it: should separate the @extern classes in Jewel

Re: library-path and external-library-path fixes

2019-07-15 Thread Josh Tynjala
The Maven royale-compiler build is fixed now. :) -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 15, 2019 at 1:19 PM Josh Tynjala wrote: > FYI: Found an issue building royale-compiler with Maven. Working on the > fix. > > -- > Josh Tynjala &g

Re: library-path and external-library-path fixes

2019-07-15 Thread Josh Tynjala
FYI: Found an issue building royale-compiler with Maven. Working on the fix. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 15, 2019 at 12:32 PM Josh Tynjala wrote: > Hey folks, > > I just pushed some commits to royale-compiler and royale-asjs, and I

library-path and external-library-path fixes

2019-07-15 Thread Josh Tynjala
ilds should be updated shortly. When you build any apps, be sure to clean first, just to be sure that you have the latest JS files from the SWCs. If you run into any other problems with these changes, please let me know. I'll get them fixed right away! -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev>

Re: Crux Branch

2019-07-12 Thread Josh Tynjala
, my changes may also be a little disruptive if I missed something, so it may take a few days to smooth out any last minute issues as people try it out with their existing apps. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Fri, Jul 12, 2019 at 12:31 AM Piotr Zarzycki wrote:

Re: Jewel CSS winding up in non-Jewel apps

2019-07-11 Thread Josh Tynjala
I like the idea of checking the layout of the SWC. I'll give that a try. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Wed, Jul 10, 2019 at 11:20 PM Alex Harui wrote: > Is the "isNative()" function hooked up to the native keyword or the

Re: Jewel CSS winding up in non-Jewel apps

2019-07-10 Thread Josh Tynjala
is allowed there). -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 9, 2019 at 8:08 PM Alex Harui wrote: > Good idea. I have this vague memory that there are some other gotchas > around using "native", but give it a try and see what happens. > > -

Re: Jewel CSS winding up in non-Jewel apps

2019-07-09 Thread Josh Tynjala
handle it properly. Since I wasn't very familiar with the compiler code at the time, I didn't think I could fix it, so I dropped the idea. This is what was missing. We were ignoring a feature of the language that was meant for exactly this situation. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat

Re: Jewel CSS winding up in non-Jewel apps

2019-07-09 Thread Josh Tynjala
ory that is more common. Not just with framework SWCs either. Third-party SWCs that include custom components would need to set the framework SWCs on the external-library-path too. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 9, 2019 at 3:33 PM Alex Harui wrote: > I'm not su

Re: Jewel CSS winding up in non-Jewel apps

2019-07-09 Thread Josh Tynjala
could be wrong, but I interpret this comment to mean that goog.require() is not added if something is on the external-library-path. That sounds like a bug in the compiler, and this was more of a workaround than the correct way to fix things. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.

Re: Jewel CSS winding up in non-Jewel apps

2019-07-09 Thread Josh Tynjala
, Jewel, and MaterialDesignLite. I'll take a look at the compiler options for some of the other SWCs to see if anything catches my eye. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Tue, Jul 9, 2019 at 3:21 AM Harbs wrote: > I have no jewel components in my app, but I’m

Re: [royale-compiler] branch develop updated: PackageHeaderEmitter: output goog.require() for externs because release builds fail without it

2019-07-09 Thread Josh Tynjala
library-path for the application that > uses the framework SWC. > > Thanks, > -Alex > > On 7/9/19, 9:11 AM, "Josh Tynjala" wrote: > > Without a goog.require(), the .js file for the extern does not seem to > be > copied to the output folder, and Closu

Re: Build failed in Jenkins: royale-asjs_jsonly #3219

2019-07-09 Thread Josh Tynjala
Especially if the purpose of inject_html is to load JS from a CDN. There will definitely be users of Royale who cannot have external dependencies like that, and they'll need a way to override the behavior to load a JS file from their own server instead. -- Josh Tynjala Bowler Hat LLC <ht

Re: [royale-compiler] branch develop updated: PackageHeaderEmitter: output goog.require() for externs because release builds fail without it

2019-07-09 Thread Josh Tynjala
behavior more consistent because the it was already adding goog.require() for externs in applications. If that's wrong, it was already wrong before I made any changes. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 8, 2019 at 11:26 PM Alex Harui wrote: > This doesn't s

Re: Build failed in Jenkins: royale-asjs_jsonly #3219

2019-07-09 Thread Josh Tynjala
Generally, if we need a browser API that Closure doesn't include in it's official externs, we add it to missing.js in the appropriate library in royale-typedefs. - Josh On Tue, Jul 9, 2019, 4:39 AM Piotr Zarzycki wrote: > I thought this is the right place, from where I should download it to

Re: Tour de Jewel regression in Jewel Alert (release version)

2019-07-08 Thread Josh Tynjala
s skipping externs completely when adding goog.require() calls. I guess that this edge case must have been missed when testing that. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Mon, Jul 8, 2019 at 11:09 AM Carlos Rovira wrote: > Hi, > > when I compile TDJ I can see

Re: Apache Royale Animations framework

2019-07-08 Thread Josh Tynjala
Greensock's source code is available, but it is not a standard open source license. They require a commercial license if your project meets certain conditions. https://greensock.com/standard-license - Josh On Mon, Jul 8, 2019, 4:36 AM Carlos Rovira wrote: > Hi, > > one thing I'm investigating

Re: Crux Branch

2019-07-05 Thread Josh Tynjala
e documentation quite > thin > > > and that it made a lot of assumptions about what a general developer > > might > > > know and need to know. This site [1] made an attempt about ten years > ago > > to > > > improve on an intro to Swiz. What plans a

Re: Crux Branch

2019-07-04 Thread Josh Tynjala
Cool stuff, Greg and Carlos! One concern: In Flash, the "addedToStage" event does not bubble. It's actually the "added" event that bubbles and is used by frameworks like Swiz, Cairngorm, Robotlegs, etc. To avoid potential confusion for people migrating an existing app from Flex/Flash that might

Re: Compiler Performance (was Re: Problem with Vectors)

2019-06-30 Thread Josh Tynjala
ing a ‘GC overhead limit exceeded’ [1] error though quite often > which brings it up to around a minute and a half. Increasing heap size by > setting ANT_OPTS to -Xmx2g doesn’t seem to make a difference. > > > > [1] https://paste.apache.org/BXf4 > > > > ______

Re: RoyaleUnit Ant Task

2019-06-28 Thread Josh Tynjala
Today, I determined how to resolve the port problem that caused the JS RoyaleUnit tests to fail on macOS. The Ant build now runs both SWF and JS RoyaleUnit tests. - Josh On 2019/05/23 23:20:07, Josh Tynjala wrote: > Unfortunately, I had to disable the JS tests automatically runn

Re: Compiler Performance (was Re: Problem with Vectors)

2019-06-28 Thread Josh Tynjala
piler did not copy JS files that were already in bin/js-debug and > remove-circulars re-uses those JS files. > > In theory, those of us modifying framework code have to clean out > bin/js-debug more often than app developers. > > HTH, > -Alex > > On 6/27/19, 4:00 PM, "

Re: Compiler Performance (was Re: Problem with Vectors)

2019-06-27 Thread Josh Tynjala
files that are already written to the file system and then modifies them. The extra re-write to disk is pretty expensive. If all JS files were written to disk only once, we'd save another half second or more. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Wed, Jun 26, 2019 at 2

Re: trying to build blog example BE0013 about Modules with asconfigc, Moonshine and ANT

2019-06-27 Thread Josh Tynjala
In VSCode, where most people will be using asconfigc, you can optionally give each task a list of dependencies to compile first. That allows you to choose a single task to run, and it would compile both the app and the module. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Th

Re: trying to build blog example BE0013 about Modules with asconfigc, Moonshine and ANT

2019-06-27 Thread Josh Tynjala
the module. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Thu, Jun 27, 2019 at 10:25 AM Carlos Rovira wrote: > Hi, > > I'm trying to build the project in examples/blog/ > BE0013_Dividing_an_Apache_Royale_application_with_modules > > with asconfigc. > >

Re: Compiler Performance (was Re: Problem with Vectors)

2019-06-27 Thread Josh Tynjala
Wow! So for larger projects, it might have an impact beyond 20-25%. That's great to hear. Thanks for sharing that stat, Kenny! -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Thu, Jun 27, 2019 at 7:58 AM Kenny Lerma wrote: > I had some suspicions about the logs slowing th

Re: Compiler Performance (was Re: Problem with Vectors)

2019-06-26 Thread Josh Tynjala
now, the transpile is run once for Basic.swc and again for > BasicJS.swc. It could be possible to steal the already transpiled JS from > Basic.swc. Or maybe the copying of the JS files will still be a performance > bottleneck. The advantage is also that there is only one SWC to deplo

Re: Problem with Vectors

2019-06-14 Thread Josh Tynjala
enough to at least guide us here. > > In discussing with Alex what’s the best avenue for improving the compiler in > the short term, the topic of performance came up. That’s been somewhat of a > pain point and working on that is probably a good idea. > > Harbs > > &g

Re: Problem with Vectors

2019-06-14 Thread Josh Tynjala
on could AMF encode the instance, or the implementation could > throw an error. > > -Alex > > On 6/14/19, 1:53 PM, "Josh Tynjala" wrote: > > How do you store a String, or any random class, in Uint8Array? > > - Josh > > On 2019/0

Re: Problem with Vectors

2019-06-14 Thread Josh Tynjala
and > if other code ends up turning off the "fixed" property and push stuff you'll > end up with a bug. I think that would only take someone a week or less. > > Or as I asked earlier, why can't folks just use Uint8Array? > > HTH, > -Alex > > On 6/14/19, 11:08

Re: Problem with Vectors

2019-06-14 Thread Josh Tynjala
t amount of > work > > especially where the BURM does the semantic checks. New BURM patterns > are > > probably required. Or maybe it is time to get the BURM out of the > > semantic-check business for JS (and maybe SWF) output and figure out >

Re: Problem with Vectors

2019-06-12 Thread Josh Tynjala
obably already thought > those things through though, I guess. > > If you end up with a remote branch for your work on this at some point and > want someone to help with testing or anything like that, I'm in, just let > me know. > > > On Thu, Jun 13, 2019 at 2:26 AM Jos

Re: Compilation Errors

2019-06-12 Thread Josh Tynjala
Looks like a simple null check that is missing when validating private constructors. I'll get it fixed later today or tomorrow. - Josh On 2019/06/12 09:02:57, Yishay Weiss wrote: > Any ideas why I might be getting this [1] when compiling a library?. Not sure > if it’s related to latest

Re: Problem with Vectors

2019-06-12 Thread Josh Tynjala
> I think your other proposal with Josh for the typed Arrays and their greater > compile-time safety will be a better fit for many cases as well, so I hope > that happens. I started working on typed arrays this week. It may be a while before I can merge, though. It's definitely more complex

Re: Last blog example: Using external javascript libraries in Apache Royale

2019-06-03 Thread Josh Tynjala
COMPILE::JS should not be necessary, but if you're targeting JS, you should add the doc comment with the @externs tag. By default, Royale uses the Google Closure compiler, which aggressively renames properties and methods to make the generated code smaller. The @externs tag tells it not to

Re: VSCode, Moonshine, go_to_definition_help

2019-06-03 Thread Josh Tynjala
VScode and Moonshine use go_to_definition_help, and I've observed it doesn't always go to the correct location. I knew it had something to do with line endings, but I never quite figured out exactly what was wrong. You're changes probably won't make anything worse. > if you pull up an AS

Re: Language improvements

2019-05-29 Thread Josh Tynjala
I definitely want the default choice to have as few surprises as possible when it comes to how ActionScript behaves in Royale. We'll never have a perfect emulation, of course, but there are things that I think can still be improved. At the same time, I think it's perfectly valid for someone to

Re: RoyaleUnit Ant Task

2019-05-24 Thread Josh Tynjala
uot; wrote: > > First off, this sounds like a great new capability for Royale, so thanks > for working on it. > > Regarding JS test issues, did you rule out using Selenium? I haven't had > problems with it on Mac or Win for Mustella. > > HTH, > -Alex

Re: RoyaleUnit Ant Task

2019-05-24 Thread Josh Tynjala
tella. > > HTH, > -Alex > > On 5/23/19, 4:20 PM, "Josh Tynjala" wrote: > > Unfortunately, I had to disable the JS tests automatically running on the > royale-asjs main build because they intermittently fail on macOS. It seems > that the port that the

Re: RoyaleUnit Ant Task

2019-05-23 Thread Josh Tynjala
JS tests for CoreJS, BasicJS, and RoyaleUnitJS. - Josh On 2019/05/23 19:18:21, Josh Tynjala wrote: > Hey Royale team, > > Over the last several days, I've been working on RoyaleUnit again, and I > wanted to share a bit about what I've completed this week. > > ## New Ant t

RoyaleUnit Ant Task

2019-05-23 Thread Josh Tynjala
Hey Royale team, Over the last several days, I've been working on RoyaleUnit again, and I wanted to share a bit about what I've completed this week. ## New Ant task Until now, we've been using the Ant task to run RoyaleUnit tests on our SWF output in the Ant builds. The RoyaleUnit library

Re: [royale-asjs] branch develop updated: Build files for JS libraries find the compilers....

2019-05-23 Thread Josh Tynjala
In a new, empty folder, I was able to run the following commands successfully: git clone g...@github.com:apache/royale-asjs.git cd royale-asjs ant all - Josh On 2019/05/23 15:59:10, Josh Tynjala wrote: > Hey Alex, > > I'll be sure give it a try and make any necessary fixes, if i

Re: [royale-asjs] branch develop updated: Build files for JS libraries find the compilers...

2019-05-23 Thread Josh Tynjala
) were added to refs/heads/develop by this push: > new e18d7d7 Build files for JS libraries find the compilers the > same way as the build files for SWF libraries > e18d7d7 is described below > > commit e18d7d747cd7898f04f07e91f2c71b217275340f > Author: Jo

Re: [royale-compiler] branch develop updated: PackageFooterEmitter: added missing ROYALE_...

2019-05-23 Thread Josh Tynjala
llowances for known variance between for JS and SWF. > I will try RoyaleUnit soon and see if can port some of the tests from > manualtests/UnitTests > > > > > On Thu, May 23, 2019 at 10:30 AM Josh Tynjala > wrote: > > > Hi Greg, > > > > Indeed, support

Re: [royale-compiler] branch develop updated: PackageFooterEmitter: added missing ROYALE_...

2019-05-22 Thread Josh Tynjala
an automated email from the ASF dual-hosted git repository. > >>> > >>> joshtynjala pushed a commit to branch develop > >>> in repository https://gitbox.apache.org/repos/asf/royale-compiler.git > >>> > >>> > >>> The following commit(

Re: Language improvements

2019-05-06 Thread Josh Tynjala
Hey Greg, I haven't had a chance to look through all of the changes, but one thing caught my eye. I find it confusing when a boolean value is named with a "negative" phrase. For instance, your new compiler options have "no" in the name: js-no-complex-implicit-coercions js-no-resolve-uncertain

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Josh Tynjala
’t bother about Typescript at all, and just concentrate on > incorporating the pure javascript libs. > > Dany > > > Op 2 mei 2019, om 19:57 heeft Josh Tynjala het > > volgende geschreven: > > > > Just for fun, here's another way that you could create a ty

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Josh Tynjala
to ActionScript is pretty flexible. Some JavaScript libraries are just a function, and some have APIs that work more like classes. Depending on the library, one way may work better than the other. - Josh On 2019/05/02 17:48:49, Josh Tynjala wrote: > Exactly right. When you create a typedef cl

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Josh Tynjala
; (eventtarget.js:196) > > What I'm doing wrong? > > thanks! > > > El jue., 2 may. 2019 a las 18:02, Carlos Rovira > () > escribió: > > > Hi Josh, > > > > I think this pie

Re: RE: Example of access external JS using Apache Royale

2019-05-02 Thread Josh Tynjala
> Users can't do this, they required that Royale framework devs add typedefs to > the typedefs repo and wait to next SDK release. What does not seems very > useful. Users can create their own typedefs from scratch. I just created a quick example for hljs, that exposes the highlightBlock()

Re: RE: Example of access external JS using Apache Royale

2019-05-01 Thread Josh Tynjala
You still need write the Royale typedefs manually. However, referring to the TypeScript definitions while you do it makes things easier. TypeScript definitions are limited to the API surface only, without implementations of everything, so you don't need to sift through the entire JS library to

Re: [Non-DoD Source] Re: Version property (was: Let's bump Royale version to 1.0)

2019-05-01 Thread Josh Tynjala
I meant that the VersionBead would contain the Royale SDK version. A separate version bead for the app's version would be useful too, but that's not what I was suggesting. - Josh On 2019/04/30 20:14:31, Mark Kessler wrote: > Well that would work in addition too, but not replace what I'm

Re: How to try locally Royale-docs repo

2019-05-01 Thread Josh Tynjala
I just added this to the README file because I wasn't sure how to run locally either. I had been testing my CSS changes using the browser devtools, which wasn't ideal. - Josh On 2019/04/30 23:17:16, Alex Harui wrote: > IIRC, I installed Jekyll. Then run: > > jekyll build --config

Re: RE: [Non-DoD Source] Re: Version property (was: Let's bump Royale version to 1.0)

2019-04-30 Thread Josh Tynjala
What if Royale had some kind of VersionBead that you could add to the main application? It could be optional with Basic, but maybe baked in by default with Express and other component sets that are less focused on small output size. - Josh On 2019/04/30 10:46:27, Kessler CTR Mark J wrote:

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
standing how the fail could be happening > Now this seems to explain the issue > thanks for getting to the problem > > Carlos > > > El mié., 20 mar. 2019 a las 20:48, Josh Tynjala () > escribió: > > > I've determined that hoisting is having trouble with chained vari

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
/20 17:53:08, Josh Tynjala wrote: > No, I built with VSCode, which uses the regular command line compiler from > the SDK. > > I updated/installed all repos and built TourDeJewel with Maven. I can now see > the errors that you describe. It seems that Maven executes the compiler

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
; updates from git, then pass maven in three repos and then construct SDK. > > Are you building TDJ with maven? > > thanks > > Carlos > > > El mié., 20 mar. 2019 a las 16:51, Josh Tynjala () > escribió: > > > In my initial tests, I am unable to reproduc

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
-release` to create a full SDK from scratch (which will take a while), but I don't expect that to make a difference. - Josh On 2019/03/20 15:27:42, Carlos Rovira wrote: > Thank Josh! :) > > El mié., 20 mar. 2019 a las 15:14, Josh Tynjala () > escribió: > > > I'm looking in

Re: Tour De Jewel not working after latest changes

2019-03-20 Thread Josh Tynjala
I'm looking into it! - Josh On 2019/03/20 08:42:43, Carlos Rovira wrote: > Hi, I can confirm that the problem is in the latest three commits in > royale-compiler repo. > @Josh Tynjala , hope you can take a look. Is easy > to check testing with Tour De Jewel app > >

Re: Issue with initialization

2019-03-19 Thread Josh Tynjala
I just pushed a commit where the compiler hoists variables with default initializers. - Josh On 2019/03/19 10:34:05, Harbs wrote: > The latest compiler changes exposed a problem: > > for(var i:int=0;i var foo:Object; > if(someCondition(thingy[i]){ > foo =

Re: Issue with initialization

2019-03-19 Thread Josh Tynjala
and I am not sure why I would choose only some and not others. Maybe there > could be a distinction in scope (class members vs. local variables), but I > am still not sure why I would choose that. > > > > On Wed, Mar 20, 2019 at 4:17 AM Josh Tynjala

Re: Issue with initialization

2019-03-19 Thread Josh Tynjala
It looks like we have a situation where default initialization doesn't work in the loop because local variables need to be "hoisted" to function scope. In Flash, the variable would have been initialized before the loop started, and js-default-initializers will need to implement that behavior. I

RE: Build failed in Jenkins: royale-compiler #770

2019-03-16 Thread Josh Tynjala
Anyone know why this might be happening? > typedefs.unit.tests: > [junit] Error occurred during initialization of VM > [junit] Could not reserve enough space for object heap There are some folks waiting on my compiler changes to get into the nightly build, but it's failing, and I don't think

Re: RoyaleUnit

2019-03-15 Thread Josh Tynjala
projects. https://github.com/apache/royale-asjs/blob/develop/frameworks/projects/RoyaleUnit/src/test/royale/asconfig.json - Josh On 2019/03/15 17:43:29, Josh Tynjala wrote: > Hey everyone, > > You may have noticed that I committed a new RoyaleUnit library to royale-asjs > yesterday.

RoyaleUnit

2019-03-15 Thread Josh Tynjala
Hey everyone, You may have noticed that I committed a new RoyaleUnit library to royale-asjs yesterday. It is a unit testing library, similar to (and greatly inspired by) FlexUnit. It is an upgrade to the barebones "Testing" library that was based on my work from a while back. I brought a

Re: Apache Royale on Stackoverflow

2019-03-04 Thread Josh Tynjala
Another one: Question: Why isn't JSON working in my Royale app? Answer: Either use variable["property"] syntax or enable the -js-dynamic-access-unknown-members=true compiler option. - Josh On 2019/03/04 16:41:03, Josh Tynjala wrote: > Recently, I edited an answer to an old quest

<    1   2   3   4   5   6   7   >