Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Johan Mabille
    @JohanMabille
    the last step is to create free functions row_begin and row_end that accept arbitrary exception and returns row iterators on them
    each expression type in xtensor provide the stepper_begin / stepper_end methods so you don't have to instantiate the steppers by yourself

    @davidbrochart So SIMD doesn't bring that much performance

    It depends a lot on what you are trying to accelerate

    Compilers are usually good enough to vectorize code written with loops
    so trying to plug XSIMD on something like
    for(size_t i = 0; i < s; ++i)
    {
        res[i] = a[i] + b[i] * c[i] - d[i];
    }
    where a, b, c and res are tensors, is totally useless
    however if a, b, c or d is a more complicated expression (like we have in xtensor), the cmpiler may not be able to autovectorize it and xsimd is required
    Johan Mabille
    @JohanMabille
    besides, some mathematical functions might not be vectorized in an optimal way by the compiler
    Jeremy Tuloup
    @jtpio
    @lgonzalezsa do the kernels need to be in different environments? Otherwise (if your setup allows it) all the kernels could be in the same environment, and then yes use the notebook metadata to differentiate between them (voila uses the notebook metadata to know which kernel to start)
    Sylvain Corlay
    @SylvainCorlay
    @JohanMabille we do have a row iterator.
    Johan Mabille
    @JohanMabille
    what?
    Sylvain Corlay
    @SylvainCorlay
    We used it for xmesh, I don't recall the namd.
    Name
    xaxis_iterator
    Only to iterate on rows. Not other axes.
    Johan Mabille
    @JohanMabille
    ah indeed
    I had totally forgotten it ;)
    @rmporsch so actually you can include xaxis_iterator.hpp and use axis_begin/axis_end as suggested by @SylvainCorlay
    Robert Porsch
    @rmporsch
    oh very cool thanks @JohanMabille and @SylvainCorlay
    Andrei Berceanu
    @berceanu
    What's the simplest way to deploy voila on a public vps instance?
    I'm thinking of something like using nginx as a reverse proxy
    Jeremy Tuloup
    @jtpio
    @berceanu yes that should work fine
    Andrei Berceanu
    @berceanu
    Will it work if voila serves on localhost?
    Jeremy Tuloup
    @jtpio
    I would expect proxy_pass http://localhost:8866; to work yes
    Andrei Berceanu
    @berceanu
    should i create a systemd service for running voila then?
    i want this to persist across reboots
    Jeremy Tuloup
    @jtpio
    indeed, voila can be started as a systemd service and benefit from many systemd features
    I think it would be great to consolidate the docs so we can provide a guide to achieve something like this
    if you would like to open a PR, that would be very welcome!
    Andrei Berceanu
    @berceanu
    :thumbsup:
    Where would you place that in the docs?
    for now it's all in one place since there are instructions only for a couple of providers
    we might want to slightly reorganize it when the list grows
    Andrei Berceanu
    @berceanu
    does --autoreload cover the case where the .ipynb that is served changes on disk?
    Maarten Breddels
    @maartenbreddels
    no, it's more of a dev/tornado thing
    actually, it did
    but it was ripped out at some moment
    it sped up dev time, it auto reloaded when any python source, js file, template or notebook changed
    but the watches on the filesystem are expensive
    we should enable it again and put it under a --dev flag orso
    Wolf Vollprecht
    @wolfv
    so i have this package called pygal which wraps CGAL algorithms and I think still nothing comes close to the number of features provided by this badly written package
    there doesn't seem to be any decent computational geometry package in Python
    what's the process of making scikit-cg?
    Just for some primitives alone it would be worth it -- Point2, Line2, Ray2, Segment2 & Vector2 you seldomly find all of them it seems in one package
    and it's also very hard to find some cool algorithms from CGAL somewhere else, for example Minkowski sum or Constrained Delaunay Triangulation
    Jeremy Tuloup
    @jtpio
    @berceanu FYI, just opened QuantStack/voila#357 for running voila with nginx
    Maarten Breddels
    @maartenbreddels
    :+1: