Shop OBEX P1 Docs P2 Docs Learn Events
Counting Free Cogs - Page 2 — Parallax Forums

Counting Free Cogs

2»

Comments

  • RossHRossH Posts: 5,519
    edited 2011-03-17 20:57
    kuroneko wrote: »
    Then those programs need fixing. Period.

    I agree - but unfortunately they're not my programs!

    Ross.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-03-17 21:11
    RossH wrote:
    For instance, some programs fail to run if they are run by a SPIN interpreter that is not running in cog 0. ... I agree - but unfortunately they're not my programs!
    Those programs need to be hunted down and shot on sight -- no questions asked. 'Sorry to say this but, by accommodating them, you're abetting a bad programming practice. It's much better to enforce good habits than to be an enabler for bad ones. You have the power, man! :)

    -Phil
  • RossHRossH Posts: 5,519
    edited 2011-03-17 21:21
    Those programs need to be hunted down and shot on sight -- no questions asked. 'Sorry to say this but, by accommodating them, you're abetting a bad programming practice. It's much better to enforce good habits than to be an enabler for bad ones. You have the power, man! :)

    -Phil

    If I could figure out a way to detect this case, then I could put up an appropriate error mesage. Otherwise I am just going to continue to accomodate it. The only alternative is to get emails from annoyed people who will say "but my program runs fine when loaded by the Parallax loader - how come it doesn't run when I use Payload/Catalyst to load it? Your program must be Smile!" (this has already happened, by the way!). :frown:

    Ross.
Sign In or Register to comment.