by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 07 2019 18:54
    @timsneath banned @hpoit_gitlab
  • Aug 07 2019 18:54
    @timsneath banned @hpoit
  • Jan 31 2019 22:29

    dart-bot on master

    Add pkg/analysis_server/pubspec… (compare)

  • Jan 31 2019 22:12

    dart-bot on master

    First stab at tests for "Spread… (compare)

  • Jan 31 2019 22:10
    jackokring opened #35830
  • Jan 31 2019 21:14

    dart-bot on master

    [vm, gc] Use work stealing for … (compare)

  • Jan 31 2019 21:05

    dart-bot on master

    [vm] Simplify VirtualMemory::Tr… (compare)

  • Jan 31 2019 20:15
    renatoathaydes opened #35829
  • Jan 31 2019 20:13

    dart-bot on master

    [vm] Maintain view-ness of byte… (compare)

  • Jan 31 2019 19:59

    dart-bot on master

    Add the capability in analysis … (compare)

  • Jan 31 2019 19:35
    jmesserly closed #33685
  • Jan 31 2019 19:19
    srawlins opened #35828
  • Jan 31 2019 18:35

    dart-bot on master

    Add a "summary-deps-output" opt… (compare)

  • Jan 31 2019 18:33

    dart-bot on master

    Extract EnumListParameter value… (compare)

  • Jan 31 2019 18:09

    dart-bot on master

    Fix override_on_non_overriding_… (compare)

  • Jan 31 2019 17:46
    stereotype441 labeled #35827
  • Jan 31 2019 17:46
    stereotype441 labeled #35827
  • Jan 31 2019 17:46
    stereotype441 labeled #35827
  • Jan 31 2019 17:46
    stereotype441 opened #35827
  • Jan 31 2019 17:23
    srawlins edited #35826
Randal L. Schwartz
@RandalSchwartz
I guess I could write a small Perl script to do the download, unpack it, and move it into place.
Heck, maybe just a shell script with a couple of curls.
Renato Athaydes
@renatoathaydes
@natebosch wow there's debouncing and throttling on https://pub.dev/packages/stream_transform! Those were the only things I ever wanted from Dart streams that Dart didn't already provide :) great to know I don't need to import all of RxDart just for those.
Nate Bosch
@natebosch
:+1:
Renato Athaydes
@renatoathaydes

Extension methods on Stream adding common transform operators.

I guess that it will be actual extension methods from the next Dart release?!

Nate Bosch
@natebosch
yes, the latest version of the package already has the extensions, if you are on a new enough Dart SDK you can use them that way. The next release of stream_transform will be extensions only
Renato Athaydes
@renatoathaydes
very good
richardheap
@richardheap
@daadu_gitlab any chance you could post that pcap file somewhere?
Harsh Bhikadia
@daadu_gitlab
@richardheap filter by ip.addr == 157.245.97.224
Rob Halff
@rhalff
I have an idea, let's "transpile" typescript to dart and benefit from typescript's extra features... hides
the only concern it's a not so trivial project.
Rob Halff
@rhalff
So how does this work?
class A {}

void main() {
  print('This is $A');
  print('This is ${A.toString()}');
}
Rob Halff
@rhalff
I guess final className = '$A'; will do.
Simon Binder
@simolus3
This is actually specified (16.3): "A simple or qualified identifier denoting a class, a mixin or a type alias that is not qualified by a deferred prefix, is a potentially constant and constant expression. The constant expression always evaluates to a Type object." So final $class = A; resolves to a Type and final className = $class.toString() just calls Type.toString(), which is what the interpolation is doing as well.
Rob Halff
@rhalff
Ok, so it's like this:
class A {}

void main() {
  // Correct
  final $className = A;
  print($className.toString());

  // Will fail, A doesn't have a toString() method.
  print(A.toString());
}
ok, understood then.
Jacob MacDonald
@jakemac53
note that in dart2js that name would probably be mangled though
Rob Halff
@rhalff
I'll be using it as a key so that's no problem.
  void registerView<T extends View>(dynamic viewFactory) {
    final className = '$T';

    if (views.containsKey(className)) {
      throw ArgumentError('View $className is already registered');
    }

    views[className] = viewFactory;
  }
richardheap
@richardheap
@daadu_gitlab That looks to me like a bug. Tried it with your server and some others - you always seem to get the intermediate. My wild guess would be that something's picking the wrong cert (of the two provided) that are presumably returned by SSL_get0_peer_certificates see https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#SSL_get0_peer_certificates. Even though boringssl returns the whole chain, the Dart closure just gets one - so whatever picks seems to pick the wrong one.
Jacob MacDonald
@jakemac53
@rhalff you can use the type itself as a key as well, fwiw
Rob Halff
@rhalff
@jakemac53 that's much better actually, thanks :)
Jacob MacDonald
@jakemac53
well, I just noticed that github actions natively support Dart so who knows maybe they will support pub too :D
also the github actions setup flow was really nice I was super impressed
Don
@donny-dont
doesnt pub still need an oauth flow
and tied to a google account
mnordine
@mnordine
typedefs for non-functions in the works, :) dart-lang/sdk@d290f1c
Rob Halff
@rhalff
:tada:
RandalSchwartz @RandalSchwartz stumbles across dart2native and is happy
Randal L. Schwartz
@RandalSchwartz
dart can now give go a run for its money!
hey, does anyone here know if the dart sdk included with flutter is still a subset, or if it’s the full thing now?
Ping
@ping996
@RandalSchwartz flutter not use the dart:mirrors as I known
and flutter not support the native extension by instead of use the tonic third_party
Randal L. Schwartz
@RandalSchwartz
I know Flutter can't use mirrors but are they missing even from the included dart ask?
Ping
@ping996
I don't know, maybe the dart officer can clear your question.
Harsh Bhikadia
@daadu_gitlab
@richardheap I just realised that flutter bundles the truestedRootCAs with app itself and not trust the once in Android System. I guess that would be enough (as the server that I access uses LetsCrypt which is trusted) to prevent users from sniffing network call via CharlesProxy or something? what do you suggest?
Rasmus Schultz
@mindplay-dk

Has anyone successfully used hot reloading in a web server app? I'm using shelf, and I've been trying to get this jaguar_hotreload package to work.

Jaguar-dart/jaguar_hotreload#6

It says it's reloading, but changes don't seem to take effect. Is this a common limitation of hot reloading? Do I need to manually tear down and rebuild my HttpServer instance with new instances of middlewares, router, controllers, and so on?

Rob Halff
@rhalff
@mindplay-dk there is also a Jaguar channel: https://gitter.im/jaguar_dart/jaguar It's a bit less active lately. I do like the whole Jaguar stack a lot btw, minor issues like that seem to happen as there are not so many maintainers.
Rob Halff
@rhalff
I've just tested the example and it gives the same issue.
Rasmus Schultz
@mindplay-dk
Thanks, Rob :-)
@rhalff wait, were you referring to the websocket issue, or did you get past that to actual change detection and hot reloading? I've got it reloading. Or it says it does. Just that making changes to source-files doesn't actually have any effect.
Rob Halff
@rhalff
@mindplay-dk I'm referring to the websocket issue actually.
Rasmus Schultz
@mindplay-dk
@rhalff yeah, I got past that, and will probably submit a PR for that... but there's a snippet you can copy here to get the correct URL: https://github.com/Jaguar-dart/jaguar_hotreload/issues/6#issuecomment-554336704
@rhalff without that, the example doesn't work at all.
Rob Halff
@rhalff
I also found the dependencies are a bit ancient, the package is now called vm_service instead of vm_service_lib
Rasmus Schultz
@mindplay-dk
@rhalff are you sure? the change change log says vm_service_lib was migrated into the standard SDK?
Rob Halff
@rhalff
oh ok..
now the example seems to work for me after your adjustment.