Arduino Forum

Development => Suggestions for the Arduino Project => Topic started by: GingkathFox on Nov 17, 2018, 04:04 am

Title: Multiple language support?
Post by: GingkathFox on Nov 17, 2018, 04:04 am
Hello!
I'm a JavaScript programmer, and one thing (Actually, prolly the only thing) I don't like about Arduino is that its exclusively C++. I know its possible to use JS because of Johnny-Five (http://johnny-five.io), but that uses Node, and requires the board to remain connected to the computer. Would that be possible?
Title: Re: Multiple language support?
Post by: ballscrewbob on Nov 17, 2018, 04:53 am
There are alternative IDE's and apps and we know that even the the Arduino offerings use Java in the back.

And why would you change the current C used for sketches and upset the whole Arduino ecosystem.
If I were to hazard a guess I would say the amount of C users for Arduino for outweigh the J5 users.

I find C a little easier to follow than Java btw but then again I prefer BASIC over C.

Title: Re: Multiple language support?
Post by: GingkathFox on Nov 17, 2018, 05:07 am
There are alternative IDE's and apps and we know that even the the Arduino offerings use Java in the back.

And why would you change the current C used for sketches and upset the whole Arduino ecosystem.
If I were to hazard a guess I would say the amount of C users for Arduino for outweigh the J5 users.

I find C a little easier to follow than Java btw but then again I prefer BASIC over C.


There are alternative IDEs? in all my time searching "Programming Arduino with JS" I've never seen one.
I didn't mean to change it, just to be able to switch between JS and C/C++ at will. JS is easier to me than C++, so I prefer to use JS.
Ive always wanted to learn BASIC lol
Title: Re: Multiple language support?
Post by: ballscrewbob on Nov 17, 2018, 05:20 am
You have to look at the basics of the Arduino to see why it is essentially C.

Controlling an Arduino with Java is certainly doable but as far as writing a sketch in Java it would still have to be processed into C. as it is originally based on WIRING.

Some of the newer boards that have linux based OS on them might be a target for your aspirations.

Title: Re: Multiple language support?
Post by: GingkathFox on Nov 29, 2018, 02:36 am
Shoot, so I'm guessing the UNO cant.
Title: Re: Multiple language support?
Post by: ballscrewbob on Nov 29, 2018, 03:37 am
Nope certainly not the UNO...Unless you can get a java VM to run in such a small space (NOBEL PRIZE) ;)
Title: Re: Multiple language support?
Post by: GingkathFox on Dec 02, 2018, 03:18 pm
Nope certainly not the UNO...Unless you can get a java VM to run in such a small space (NOBEL PRIZE) ;)

That Nobel prize is mine! not. XD
jokes aside, guess ima have to learn C++. crap.
Title: Re: Multiple language support?
Post by: Deva_Rishi on Dec 02, 2018, 05:46 pm
take comfort in the fact that the IDE is written in Java.
Title: Re: Multiple language support?
Post by: GingkathFox on Dec 07, 2018, 05:12 am
take comfort in the fact that the IDE is written in Java.
Comfort has been taken XD