Shop OBEX P1 Docs P2 Docs Learn Events
What programming language should I use? - Page 6 — Parallax Forums

What programming language should I use?

12346»

Comments

  • Heater.Heater. Posts: 21,230
    edited 2012-12-02 05:47
    Dr_A,

    In that "Qt Versions" tab I would have thought the little red tick means that it can't find Qt 5 where it is configured to be.

    Can you select the Qt4.8.3 option, check the path that is displayed and then hit and then hit Apply?
  • HumanoidoHumanoido Posts: 5,770
    edited 2012-12-02 05:54
    Dr_Acula wrote: »
    I've been happily programming in vb6 and vb.net and C# for many years, but the world is changing and these programs won't run on Macs or Linux or Android. Or even some Windows computers! What program should I use? ...Please hit me with some suggestions!
    I like to whip up a program in 60 seconds using Chipmunk BASIC. This language is transferable through several platforms. Many of the new Telescope Systems Design programs are written in this language and remain compatible with the Propeller chip. I find this language has statements compatible with the Propeller COSMAC ELF project and Tiny BASIC, while retaining the features of the more advanced Level II BASIC in which many of my programs were written years ago.

    Downloads
    and for android etc.
    and here's a good resource page:
    http://www.nicholson.com/rhn/basic/basic.info.html
  • Heater.Heater. Posts: 21,230
    edited 2012-12-02 06:18
    Re: Chipmunk,

    Why would any language that allows use of the serial port not be compatible with the Propeller?

    Is Chipmunk an opensource project? If not it's off the table a dependable language system.
  • HumanoidoHumanoido Posts: 5,770
    edited 2012-12-02 06:31
    Heater. wrote: »
    Re: Chipmunk, Why would any language that allows use of the serial port not be compatible with the Propeller?

    A program written, regardless of its serial port incursion, that uses statements not found in a language version run on the Propeller chip will be incompatible.
  • Heater.Heater. Posts: 21,230
    edited 2012-12-02 06:52
    Humanoido,

    I don't understand. The program in the Propeller is written in some languuage, say Spin, the Program on the PC is written in some other language, say Chipmunk BASIC.
    Neither language has statements in common with the other, or at least they need not have.
    Yet they can communicate over the serial line. In fact neither one of them needs to know what language is in use on the other end of the line.

    Why? Because the language they do share is the protocol on the serial line. Which is different from either one of them. Generally that protocol is implemented in programs in each language, it is not part of the language itself. Swap Spin for C on the Prop or swap BASIC for Ada on the PC, make no difference.
  • potatoheadpotatohead Posts: 10,261
    edited 2012-12-02 08:34
    Right. Plain text is the universal interoperability today.

    I suppose this invokes compatible as a definition. If we take that to just mean "runs on a Prop" then language gaps do equal "not compatible", if that means data being exchanged and acted upon, then the language of implementation isn't significant.

    How that applies depends on the context and result desired.

    I consider my PC and Propeller compatible, because I can generate data on each that is useful on the other. The same is true for that old Apple 2 computer and it is text over serial and the ability to act on that which ties things together. There are language alignments too.
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2012-12-02 14:03
    Chipmunk basic looks interesting. It is a hybrid of 'old skool' number based Basic, but it allows classes so you can type myclass.mymethod(x,y)

    I like that. It is clean and simple.
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2012-12-04 20:02
    A fascinating link here http://rosettacode.org/wiki/Category:Solutions_by_Programming_Task

    Click on any of the sub categories and see a typical problem in multiple languages. Eg hello world on a GUI http://rosettacode.org/wiki/Hello_world/Graphical

    Some languages are one line for that example. Some, like Apple Basic, are going right inside the problem and drawing the box and the text from pixels and lines.

    A more serious GUI program with a textbox and two buttons http://rosettacode.org/wiki/GUI_component_interaction

    Hmm - Spin isn't there. But it looks kind of similar to the Pascal examples.

    This sure beats downloading every one of these programs to test them.
  • mindrobotsmindrobots Posts: 6,506
    edited 2012-12-04 20:22
    Nice find, Dr. A!!!!

    Bunches of fun languages in there!
  • Heater.Heater. Posts: 21,230
    edited 2012-12-05 00:59
    Interesting.

    How would you make an entry for Spin in http://rosettacode.org/wiki/Hello_world ?

    Given that Spin has no I/
  • mindrobotsmindrobots Posts: 6,506
    edited 2012-12-05 02:38
    The other program language examples just include a library include/import/whatever and not the actual function code in the library, you could do the same in Spin with PST or whatever you chose for serial I/O. I'd consider anything that installs with the language to be "standard" library for example purposes.
  • Heater.Heater. Posts: 21,230
    edited 2012-12-05 04:21
    mindrobots,

    I'd consider anything that installs with the language to be "standard" library for example purposes.


    I know what you mean but there is no such thing as "installing the language". One can install compilers for languages.

    If I install Roy Elham's open source Spin compiler I don't get any such libraries. So my "Hello World" would have to include serial driver code.

    Although in fairness Roy does refer to "Library files shipped with PropTool"

    Anyway, as an old timer, I think "Hello world" programs for micro-controllers should only flash a LED as an output. That is the traditional first check that you have wired things up correctly and your tool chain is working:)
Sign In or Register to comment.