Avatar for allObjects

allObjects

Member since Jul 2014 • Last active Sep 2022

Espruino makes IoT as easy as 123!

Most recent activity

  • in Projects
    Avatar for allObjects

    Ic. Thanks for clarification. I think I get it: it is 'just' a SW replacement... nice! Like the Bangle.js watches: taking an existing hardware and software and replace the software. Very interesting. The word 'just' just does not do justice to the work you put in, even peeking at the Arduino implementation / its doc.

  • in JavaScript
    Avatar for allObjects

    Was thinking more along the lines of adding a ref pointer to variables. Of course this is not footprint friendly, but preserves source.

    Your replacement approach triggered another thought: in dbs, often a local index is built to save space. In code it would be a symbol index to keep the name / preserve the source but having a space to replace it on first run w/ a pointer into variable value space, that holds the value but would also hold also a pointer back to the index entry / name.

    I'm sure you already have though of many things, wandered down alleys... and kept sticking to what Espruino interpreter has come to this day. So no urgency to this.

  • in JavaScript
    Avatar for allObjects

    Speeding up variable lookup (and jump address lookup/'calculations') promise the most. Was there ever a thought to have something (changed) in the source that updates when the variable has been looked up? Of course that works only when the code is in RAM and a in/re-direction table that makes GC transparent? So it is not really a JIT compiler but more so an accelerator that does a lot of good especially in loops - similar to what pre-tokenzing does. An accelerator is not JIT compiler nor main stream, but Espruino isn't either. Such an accelerator would be unique and - after all - fit the uniqueness of Espruino (JS engine).

  • in Projects
    Avatar for allObjects

    #jeffmer, Bull's Eye! - That's all I can say...

    So: you got yourself such a device, ripped out the Arduino stuff and put in an Espruino w/ your code?

    I'm kind of curious to know whether there is still enough space left to have a Morse Code interpreter / decypher DX transmissions on SSB?

  • in General
    Avatar for allObjects

    ...here it is... it is in someone elses conversation New to Bangle.js and Espruino. Need help with graphics... Nov 2020

  • in General
    Avatar for allObjects

    Hit that limit a while ago... if your algorithm can handle a detection and cut-up in multiple 'touching' polys / segments, it is easy to live with the limitation.

    I had build a circular multi dial... and on a certain size with close to 360 degrees and expectation of decent smoothness of the 'bent bar'/bow, you run quickly into the limit. Luckily for me, I calculate max 30 points of a segment, note the angel and finish calculating the rest of the segment, draw it, and move on to the next segment until the desired angle is covered. Somewhere in the (difficult to search) forum you can find the code...

  • in General
    Avatar for allObjects

    Obviously missed this discussion / voting / weighing in...

    Not sure my comment changes much from point of view of liking or not liking github for discussion. These are the cons for the current forum:

    • not mainstream
    • created for discussing non-code things
    • no integration with a real repository
    • difficult, limited search
    • limited image integration
    • formatting has changed over time making a lot of my older, markup using entries unreadable

    I don't want to leave it at cons - and that may be reason for many to be content with the current forum:

    • easy to use for simple posts
    • file / image integration usually sufficient
  • in Puck.js, Pixl.js and MDBT42
    Avatar for allObjects

    @Jennygrist, what is the motivation to use a pico vs a puck? Pico has no communication. You would have to add that as a separate device. Just to mention one con.

  • in Bangle.js
    Avatar for allObjects

    @Gordon, what about the input controls on active overlay, especially the touch?

  • in Bangle.js
    Avatar for allObjects

    My best guess is that callback (on time intervals) overrun happens... Did you ever time the anonymous functions in your intervals?

    I see sensor driven events - on(...) - which capture data that you then process in 100 and 250 ms intervals. What are the average intervals of you sensor - GPS and pressure - events?

Actions