Any updates on PropBasic?
koehler
Posts: 598
Last I thought I read, this was going to be coming back as a Parallax-supported language.
Comments
Last time I checked github, Brett had made a lot of changes in the codebase to support multi languages.
Hopefully now summer is out the way, and school is back (so other priority tasks are complete), we might see an autumn update.
Personally I cannot wait for PropBasic support. I feel that will open many exciting new doors!
Doesn't PropBasic compile LMM code? So it's limited by the speed of hub fetch and execute etc.
How does PropBasic compared to Tachyon for code size and speed? My minimum instruction cycle time is 400ns and I can do an SPI op in about 2.4us etc. Most opcodes are only one to two bytes long.
I think it does both COG-Native (aka PASM) and LMM.
Here is an example thread, with Source and Compiled Listings
http://forums.parallax.com/discussion/123170/propbasic-reciprocal-frequency-counter-0-5hz-to-40mhz-40mhz-now
In COG native, PropBASIC will be 50ns cycle times.
I tend to have 1 or 2 cogs running LMM (main program logic / SD read/write), and the rest without (like serial / IO handling). You can mix and match as required.
You just beat me to it...LOL
That is excellent news.
Having a fast BASIC should be a major interest piquer for all those Arduino users.
I think there are some problems with getting most Arduino users interested in the Propeller:
1) Cost. Arduino clones are amazingly cheap.
2) The IDE. I thought prop-gcc and SimpleIDE would be as simple as the Arduino IDE but that is not how it turned out. Not that I don't love them both.
3) All the hundreds of shields. That's a lot of cheap, instant functionality they would have to give up.
4) Support. This forum and other support for the Prop is great but I don't think it matches up to the huge ocean of code projects, blogs etc that have grown up around the Arduino.
One example... Users that struggle with understanding Arduino and the code- they might see Prop + BASIC a more comfortable alternative.
Exactly what I was trying to say.
Many, many Arduino folks are still very ignorant of the basics and something truely basic like BASIC is quite likely to appeal to them. They may be too scared to drop down to straight C/C++ without the hand-holding of Arduino-land, or they may be interesting in something that gives them much more bang for their buck?
Not saying it will suddenly make the Prop the cool kid on the block, however having something that runs BASIC at speed approaching or faster than Arduino-C might convince a small percentage to try it. And I expect that small percentage would look pretty good to Parallax's bottom line.
Will Parallax commit to this, and release an ASC-Prop board that is more reasonably priced?
I doubt it.
But its at least a good start to try and siphon off some of the Arduino folks who just may need a bit more power. Chicken and Egg situation though.
I think PropBASIC would be more widely used if it had an IDE that supported all its features. Maybe the PropellerIDE will do that in the future.
Agreed.
It would also help if a pass was made to make PropBASIC (embedded) more compatible with FreeBASIC (PC)
- that is one significant problem with Spin, it is an alone-language.
The lack of 5V compatible is a drawback, but Parallax could do a better SpinStamp type design, and I see Winbond/Adesto/Spansion have SPI Flash at 8Mb for sub 30c in moderate volumes.
Hanno supports PropBasic in ViewPort, but it's not free.
http://onerobot.org/products/viewport/
Why not ?"
Thats the million dollar question there.
Aside from the somewhat hypothetical cost to R&D such a thing, maybe Parallax could get someone interested in this from the Community to whip up a simple, low BOM version?
The old 2014 thread thats being sunk had Ken positing n hours x $125/hour for $50-100K per design. I am pretty sure one of the brighter bulbs here would be willing and capable of pulling something like this off pretty quick, and maybe for a small $xK contracting fee?
Shame Gadget Gangster is no longer involved here much.
Lets see, being a complete novice:
1x Prop/Prop2 $8 (Parallax can probably negotiate a better price...)
Xtal ($0.20) and some caps ($0.30) $0.50
64KB EEPROM $0.20
misc discretes $1.00
DC-DC Regulator $1.00
misc USB and connectors $2.00
PCB costs $1.5 ?
Pick and Place and board manf. (or is that included in China?)
3. Profit !?
I would think Parallax could get a good design done by someone here for $5-10K easily, and then have someone in-house review it.
A $15-20 board that included the Prop1 and USB/serial connection seem possible, if there is a desire on someone's part to make it.
The problem is, does Parallax look at this from a gross margins POV, which is not overly attractive. Or, do they look at this as low margin avenue to help get the Prop/2 better reception and uptake ?
I think there are still a number of teachers around who are more familiar with BASIC than C/Python.
BASIC is far less threatening to a non-CS teacher, and since no one else seems to want to offer such a thing, could be a very, very low cost to Parallax way to get even more educator interest alone.
I've seen a couple of candidates go past in the last year or two...
Some of those are high..
* USB connectors are falling in price, Digikey have a 151-1206-2-ND for 18c/750
* CAPs and passives are essentially placement cost only, at 3-9c a part. (P&P in USA)
* I would add a SPI FLASH memory to push the Code Size up significantly
* A device like CP210x or EFM8UB1 includes a regulator, so it can power the Prop
(ie the Regulator and USB can merge) EFM8UB1 gives an ADC for free.
* PCB price is all about area, and a small PCB will be << $1
More of a challenge is the 0.1" pin-handling, and I like the idea of a DIP socket as a carrier, and using SMD/Edge PCB design for lowest handling cost.
Ideally this needs a DIP socket in reflow temperatures, which has proven elusive ?
* Crystals are a pain at ~5MHz....
Ceramic Resonators are tempting - smaller and include caps but the tolerance is worse than crystals. Still, at this level of product, does that matter ?
Possibly, a dual PCB footprint can allow CerRes and Oscillator (eg ASTX-H11-5.000 or ASTX-H12-5.000[2.5 x 2.0m 2.5ppm] for good specs, or maybe SG-210STF 5.0000ML [2.5x2.0mm 50ppm] for relaxed spec ...)
- that means 99% can use the cheap CerRes, and an upgrade exists to better precision.
I have the full version and find it to be well worth the investment. Haven't see Hanno around for a while, thinking about it.
I guess it could be an interesting strategy for Parallax, clone the board, sell it for a very low price, and sort of put MGH Designs on the side lines, if not out of business.
As for Arduino boards, I am wondering if they are being subsidized by Atmel and/or other entities, it would be to Atmel's best interest to do this.
Now back to the original topic of this thread.
Ray
The really cheap Arduino's are the Chinese clones. They are a whole other economic story.
Hanno had a really serious cycle accident about a year ago, and has been pretty much out of action since. In better news, more recently I heard he was trying to pick up some pieces. I can't say (don't know) any more; just to mention why Hanno suddenly vanished, and hopefully he is able to make a full recovery and get back to what he clearly loved doing with electronics.
I recommend using SimpleIDE, it's not perfect, but it works.
Here is the thread that explains how:
http://forums.parallax.com/discussion/149659/propbasic-how-to-use-propbasic-in-simpleide/p1
Bean
...um, that thread is chock 'o block full of changes making it hard to follow and end up with a PropBASIC/SimpleIDE install that operates.
Could you provide a more up-to-date set of information/instructions/procedures?
Greatly appreciated.
Sounds to me like an ideal candidate for a sticky thread in a sub-forum.
(negative discussion removed)
Your post has been moderated for blatantly insulting Parallax.
From the Guidelines:
I think all you need is in the first post which got updated as things improved. The other posts can be distracting if you didn't follow at the time.
PropBasic is almost all I use, but with Genie IDE, however I have SimpleIDE all set up and if I copy and paste code from Genie to SimpleIDE, it works just as well.
Dave