Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 01 2018 15:14

    dam0vm3nt on v2.0.6-1

    (compare)

  • Nov 01 2018 15:14

    dam0vm3nt on master

    fixing things after translation fixes dist (compare)

  • Oct 31 2018 11:06
    DQvsRA opened #14
  • Jan 08 2018 19:26
    kelegorm closed #13
  • Jan 08 2018 19:19
    kelegorm opened #13
  • Nov 16 2017 09:20

    dam0vm3nt on master

    next rel Signed-off-by: Vittor… added type info to property des… correctly set property type Si… and 2 more (compare)

  • Nov 16 2017 09:20

    dam0vm3nt on develop

    better behavior and other minor… changelog (compare)

  • Nov 16 2017 09:20

    dam0vm3nt on v0.9.8

    better behavior and other minor… changelog (compare)

  • Nov 16 2017 09:17

    dam0vm3nt on build

    next vers (compare)

  • Nov 16 2017 09:17

    dam0vm3nt on v2.0.8

    (compare)

  • Nov 16 2017 09:12

    dam0vm3nt on build

    fixed some minor (compare)

  • Nov 13 2017 17:22

    dam0vm3nt on develop

    correctly set property type Si… (compare)

  • Nov 13 2017 17:22

    dam0vm3nt on build

    correctly set property type Si… (compare)

  • Nov 13 2017 17:01

    dam0vm3nt on develop

    added type info to property des… (compare)

  • Nov 13 2017 17:01

    dam0vm3nt on build

    added type info to property des… (compare)

  • Nov 13 2017 13:15

    dam0vm3nt on build

    better handling of initializers… (compare)

  • Nov 13 2017 13:15

    dam0vm3nt on master

    adding iron pages Signed-off-b… (compare)

  • Nov 10 2017 16:35

    dam0vm3nt on v0.4.7

    adding iron pages Signed-off-b… (compare)

  • Nov 02 2017 10:29

    dam0vm3nt on v0.4.6

    (compare)

  • Nov 02 2017 10:29

    dam0vm3nt on master

    added app-localize Signed-off-… (compare)

Don
@donny-dont
the stuff justin came up with for lit-html is actually based on a potential template standard in the web stack
Vittorio Ballestra
@dam0vm3nt
@markhats thanks. I'm doing my best.
markhats
@markhats
@donny-dont that would really be the holy grail! Using the same components for web and mobile!
Vittorio Ballestra
@dam0vm3nt
@donny-dont Hi! Nice to hear from you. You're right lit-html is nice stuff. But Dart still doesn't supports html template strings. But dart2ts does!
I mean, tagged string interpolation... sorry
Jonas Bojesen
@jonboj
Some months ago we discussed why it is hard to support Custom Elements in dart. Now I have forgot ;-) But remember something about creation. <my-class> in html should in dart world invoke a constructor MyClass, this is hard to obtain. @dam0vm3nt Was it this? do you remember more specific, you are the expert on this :wink:
Vittorio Ballestra
@dam0vm3nt
with dart2js there is a special mechanism (in dart 1.x at least) to map native JS classes with Dart classes and tags. When they initially started to support custom elements (v0) they enhanced it with the possibility to map custom classes to custom tags. This mechanism no longer works with customelements v1 that also maps tags with Es6 classes.
So if you create a native class that extends HTMLElement from a dart class in order to register it as a custom element you won't be able to cast it back to dart class in dart code for example. At least you can create wrappers that delegates to the dart class methods but this won't be a seamless integration.
in polymerizeI was able to disable that mapping mechanism and use only JS annotation to map all the dom classes. With that and other tweaks I was able to support custom elements v1 in dartdevc translated code.
Jonas Bojesen
@jonboj
ok
Vittorio Ballestra
@dam0vm3nt
Note that I'm leveraging the fact that the current maintainer of the js interoperability is supporting the fact that you can extend a js native class with a dart class in dartdevc (this won't work in dart2ts). But no one guarantees that this will hold in the future.
Jonas Bojesen
@jonboj
At the surface these things seems straight ahead, but underneath really complex. The heavy job is in dart2jsand as app developer this is just a tool that runs and generates the main.dart.js.
Vittorio Ballestra
@dam0vm3nt
And it does it in a very complex way merging togheter : translation -> dead code removal -> minification , ecc .ecc.
too many things in my opinion.
:)
also dart2js approach is monolitic. (because they want dead tree removal)
I don't like that approach. I prefer modularity (like in dartdevc).
polymer project demonostrate that you can achieve good performance with a modular approach.
Jonas Bojesen
@jonboj

you have got a point. Maybe strong type and dead code removal gives harder static analysis, better libs and so one.

There was a heated discussion on the github issue (discussion now closed), my point is things could maybe get less heated, if some of the underlying architecture/technology concerns are referenced more.

markhats
@markhats
@dam0vm3nt so you won't be able to cast custom elements back to Dart classes with dart2ts? Or do you have another plan for that?
Jonas Bojesen
@jonboj

I have used considerable time trying to understand. That gives a background to build a impression that it is the technology concerns that makes the dart team very hesitating regarding Web Components.

If I just subscribed to the issue without studying the level below, very hard to understand why the dart team don't put full force into Web Components (it an Google thing, heavy promoted by the Chrome people).

Vittorio Ballestra
@dam0vm3nt
Sorry I was writing about dart2js. I mistyped it. dart2ts will be ok with that. Its approach is more similar to dartdevc and it's all about js interoperability.
markhats
@markhats
@jonboj Not sure of the internal situation but basically the Dart team were very pro web components to start with. I think web-ui in Dart was the first really test of them! Then suddenly AngularDart seemed to come along and now anything that doesn't relate to that (or Flutter) doesn't seem to get any priority at all.
@dam0vm3nt that's a relief!
Vittorio Ballestra
@dam0vm3nt
Don't know the politics neither. I think that web components are the right way to go imho.
markhats
@markhats
I agree!
Looking at dart-lang/sdk#27445 though, I don't think they are going to be supported by the Dart team any time soon.
Vittorio Ballestra
@dam0vm3nt
Rather than trying to impose a new language on the browser the polymer team decided to go with a longer way but the correct one imho : to work with the browser main players (safari, ie/edge, firefox), with the community (mozilla to name one) and with the standard .
three years ago they were dreamers. Now most browser are embracing those standard and supporting it.
They lost htmlimport in the way but gained es6 module imports and htmltemplate, css variables, shadow doms and a lot of great tools. so ... who cares ?
Jonas Bojesen
@jonboj
Web components don't exclude AngularDart. I am also very uncertain if web components will be supported by dart sdk
Vittorio Ballestra
@dam0vm3nt
Not at all. I agree. But at the moment they don't support it in dart.
markhats
@markhats
The loss of htmlimport is a bit of a shame I think but I guess you can still use html and convert at the build stage?
Vittorio Ballestra
@dam0vm3nt
let's see what will happen when 2.0 will be out (really not only on the site announcement).
Jonas Bojesen
@jonboj
Fair not to work on Web Component support and even drop it. But the arguments where proxy type not technical and that triggered people (I didn't participanted).
Vittorio Ballestra
@dam0vm3nt
I think polymer counts on ide support for having html support inside javascript (like completion, cross references ecc. ). But there's a tool for embedding it during the build too.
intellij already understands it a bit.
markhats
@markhats
Yes, I guess that once the ide's catch up, it won't be such an issue.
Jonas Bojesen
@jonboj
does Polymer work nice with TypeScript?
Vittorio Ballestra
@dam0vm3nt
polymer3 will support it officially ... (no comment)
Jonas Bojesen
@jonboj
At the moment I dont work with web, but in current situation TypeScript will be the choice.
markhats
@markhats
I think Dart will be a great choice once dart2ts is up and running.
Best of both worlds then!
Jonas Bojesen
@jonboj
;-)
Jonas Bojesen
@jonboj
How does it work for native html types like ButtonElementthey have some hardcoded mapping and hence work? github.com/dart-lang/sdk/blob/master/sdk/lib/html/dart2js/html_dart2js.dart
Simone Alessandrelli
@simonealessandrelli
I really don't understand some google choices but anyway we get to find also workaround in cases like that...and in that case dart2js will be a good solution in my opinion
I really dont want to write more js code then dart in any frontend project I will be doing
Don
@donny-dont
the lit-html stuff from yesterday was really interesting
Simone Alessandrelli
@simonealessandrelli
i've just finished to watchit
along with mounica presentation of new pwa