Giter Club home page Giter Club logo

Comments (8)

ChrisRackauckas avatar ChrisRackauckas commented on July 22, 2024

I have no preferences here, and only limited prior experience with Heroku.

from diffeqonlineserver.

amellnik avatar amellnik commented on July 22, 2024

A wild production server appears! Right now you can go to http://app.juliadiffeq.org/ode and paste http://secure-lake-43427.herokuapp.com/ into the "API URL" box. I'm going to clean up a few things and possibly rename the heroku app and then have the production front-end always use the production back-end, and only have the API box appear in dev builds.

from diffeqonlineserver.

amellnik avatar amellnik commented on July 22, 2024

Actually http://app.juliadiffeq.org/ode should now just work -- currently takes about 7-8 sec to solve the sample equation. There's a lot more work to do and lots of polishing after that, but all the necessary parts are in-place and working!

from diffeqonlineserver.

ChrisRackauckas avatar ChrisRackauckas commented on July 22, 2024

Hmm, why does it take so long? Is there a way to measure what it is? That equation should take microseconds, so I wonder: is it passing the JSON plot back, or passing the JSON for the solver information (t,u)?

from diffeqonlineserver.

amellnik avatar amellnik commented on July 22, 2024

If I understand how Heroku works correctly (looking at this), it's running julia mux_server.jl every time a request comes in, and we incur the JIT startup cost on every single request. (This is the cost of using Heroku, although it comes with the benefit of easy scaling). I started looking at precompiling but setting it up (and making sure that every dependency is also precompiled?) sounds pretty hard.

from diffeqonlineserver.

ChrisRackauckas avatar ChrisRackauckas commented on July 22, 2024

We can setup the packages we want to be built into the sysimg.

from diffeqonlineserver.

ChrisRackauckas avatar ChrisRackauckas commented on July 22, 2024

http://docs.julialang.org/en/stable/devdocs/sysimg/

from diffeqonlineserver.

amellnik avatar amellnik commented on July 22, 2024

Ah nice -- I'm not sure how the CPU target bit will work with this running in the docker container, but I'll give it a shot and see if I can get it to work.

from diffeqonlineserver.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.