Coder Social home page Coder Social logo

Question : pebblejs smoothness about pebblejs HOT 5 OPEN

pebble avatar pebble commented on July 23, 2024
Question : pebblejs smoothness

from pebblejs.

Comments (5)

Meiguro avatar Meiguro commented on July 23, 2024

No, thank you for compliments on the doc! There are certainly rough parts, but sections are being improved as pebble.js is being built.

  • Now for the real topic: Bluetooth. I appreciate the info about the emulator, that's something new to me. In other issues in this repo, I have hinted that there may be something in App Message that is adding extra delays on top of Bluetooth. Experiencing delays in the emulator makes that more of a possibility. I will have to investigate that as soon as I find the time.
  • Compiling JavaScript applications is something I am looking into, but I can't make any promises. Investigating the above issue or this are the two primary ways latency can be reduced.
  • A loading visual cue is an interesting idea, I'll take that as a feature request for the action bar.
  • You are correct, pebble.js completely depends on the phone. It'll display a (currently ugly) notice to run the phone app.

Many elements can cause it to take longer to load, but not significantly so. You would need to be sending more than 1.5KB in order to start seeing delays due to excessive elements. Showing a UI.Rect is 29 bytes, complete with size and color. I do plan to eventually add GPath support so that you may draw lines!

Latency is a huge issue however. The strongest use case for pebble.js is displaying lists of rapidly updating data from the internet, such as the latests posts from a popular source since that latency would be unavoidable even with a C app. But otherwise, if latency is a real problem. you can use pebble.js as a way to prototype your idea. The Pebble developers blog has been releasing C tutorials. You can prototype your app in pebble.js and write the same app in C afterwards.

from pebblejs.

eswak avatar eswak commented on July 23, 2024

Thanks a lot for all these responses :-)

I guess I'll start to read the C tutorials while prototyping in JS... 👍

Cheers !

from pebblejs.

eswak avatar eswak commented on July 23, 2024

this is completely off-topic but I just happened to back the Pebble Time Kickstarter and look what I saw on the confirmation screen :-p

http://i.imgur.com/RbLJJ4b.png

from pebblejs.

Meiguro avatar Meiguro commented on July 23, 2024

Haha, I have to have my Pebble Time!

Interestingly, it seems the list of some other backers isn't very random. Most of those people were among the first to back the project. I wonder if it works by selecting a random slice/window from the chronological list, if it just displays the early backers for everyone, or the worst case, if it sorts using a comparator that just returns random().

from pebblejs.

andrei-markeev avatar andrei-markeev commented on July 23, 2024

Hi guys!

First of all, Meiguro, huge thanks for your work, awesome project! 👍

JS is gradually becoming the programming language of the world over last years, and having ability to develop in JS for Pebble is priceless. Thank you again!

Well, of course nothing is perfect and I also noticed slowness and thus I fully back eswak on the idea of making PebbleJS somehow work standalone unless it explicitly needs the phone access. Myself I am very interested in caching scenarios, since even 2K storage can quite easily store e.g. a dozen of notes or calendar events, which can be synced only rarely thus significantly prolonging the watch battery life. And the battery life is one of the best Pebble features...!

Are there any news or plans in this direction? I think transpiling JS to C is actually quite realistic, although of course involves a lot of work...

from pebblejs.

Related Issues (20)

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.