Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Applications (.net 2.0? etc.) - Cross-Platform Test Fest Time! - Page 4 — Parallax Forums

Propeller Applications (.net 2.0? etc.) - Cross-Platform Test Fest Time!

124»

Comments

  • jazzedjazzed Posts: 11,803
    edited 2009-10-09 00:51
    Phil Pilgrim (PhiPi) said...
    jazzed said...
    ...what I meant was, I had source code that ran with the interpreter and not an executable.
    Well, truth be known, even the so-called .exe file is interpreted! The interpreter is just bundled in with the .exe, which is what makes perl2exe files so freaking big.

    -Phil
    Ya I was pretty astonished that your image was so big, but I've seen this kind of thing before in an embedded system environment of all things. Well, anyway, it takes all kinds. I've written Perl programs to run Tcl/expect based test benches, etc... and I enjoy the hash features of the Perl language. Most of the syntax is rather obscure to me though like "@_" for example. The regex stuff beyond moderately complex search/replace is just mind boggling. I always looked to Rex Swain's page for my Perl reference.

    I wonder how hard it would be to make Spin into a PC scripting language.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-10-09 02:06
    Perl's hashes and regexes are part of the reason I like the language so much. Of course, the problem with regexes in any language is that you can underdstand it when you create one; but look at it again after a month or so, and, well, forget it: it's completely opaque.
    jazzed said...
    I wonder how hard it would be to make Spin into a PC scripting language.
    "All" you would need is a byte-code interpreter that's thread-safe to support multiple cogs -- unless you dispense with the cognew and coginit instructions.

    -Phil
  • jazzedjazzed Posts: 11,803
    edited 2009-10-09 04:32
    Well a few PASM/Spin simulators are floating around. A correct PASM simulator with access
    to virtual COG/HUB, special registers, and hub operations could simulate an entire Propeller
    other than physical IO. I guess GEAR runs Spin but as far as I can tell is GUI only.

    The questions for a "serious" attempt might start with:

    - Why would it be good to anyone?
    -- Provide a platform for running Spin on a "PC" for Spin's sake?
    -- Provide a Spin PC platform for cross-platform deployment?
    -- Provide a way for Spin code to run native PC library binaries?
    -- Other ?

    - What PC hardware resources need to be connected?

    - Would a PC GUI platform be connected?

    - Would one try to connect DIRA pins?
    -- to parallel port pins? (not enough and rarely available)
    -- to connect DIRA to a USB device?
    -- If DIRA is connected, would it make sense to connect DIRB?

    - Maybe multiple Virtual Propellers could be connected?

    Of course many questions hinge on the ability to plug into multiple platforms.
    Back to square one [noparse]:)[/noparse] Ugh.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-10-09 05:07
    I say let the Propeller be the Propeller, and let the PC be the PC. Spin was designed for the Prop, and it's a great match for that platform. Why force it to be something it's not? There are much better projects available than this one. smile.gif

    -Phil
  • SapiehaSapieha Posts: 2,964
    edited 2009-10-09 08:08
    Hi jazzed.

    Only use I see of fuly fatured Propeller simulator on PC is simulatro for that Program "Proteus - http://www.labcenter.co.uk/index.cfm"
    But it must be Propeller simulator with all hardware features added to it else it fails its meaning.

    Regards

    Christoffer J

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible.


    Sapieha
  • simonlsimonl Posts: 866
    edited 2009-10-09 14:06
    @jazzed: Did you get to look at PuerBASIC or RobotBASIC?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,
    Simon

    www.norfolkhelicopterclub.com

    Announcement: To cut costs in the current economic climate, we have switched-off the light at the end of the tunnel.
  • jazzedjazzed Posts: 11,803
    edited 2009-10-09 16:04
    @Saphiea, It is nice to do that. I was thinking more about Spin as a PC "programming" language.

    @simonl, I know Visual Basic, but really prefer languages other than Basic. I'll just leave it at that.
Sign In or Register to comment.