evanh said...
Are you serious? When did the source size become an issue?
Always has been, always will be, for those people who have limited resources or believe in minimising the use of them.
It's about not dictating to others what resources they must have or use. It may be irrelevant to some but a point of principle and a genuine issue to others. Just as you might not care if the price of fuel and food quadruples overnight others will.
Absolutely. I'm absolutely anal about size, both ram and disk footprint.
Smaller is faster and faster is better [noparse]:)[/noparse]
I've re-written perfectly functional algorithms 4 or 5 times just to make them faster or smaller (usually both).. so I'm a bit of a size freak.
You guys are missing a big point that I thought was very clear. This is the source code! Not the object code.
I'm all for otimising. And if the source was runtime interpreted then I'm all for making it small, including using single letter variables. But the Prop's method is to pre-tokenise and pre-assemble into binary objects. Trying to make the sources small has no impact on the runtime performance.
Unfortunately, it didn't detect my Protoboard which is my current project.
Is there any way I can make it detect a propeller on the serial port (/dev/ttyS0)?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...
Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...
Bamse said...
Is there any way I can make it detect a propeller on the serial port (/dev/ttyS0)?
I just loaded up KHexEdit and had a look - finding both /dev/ttyUSB* and /dev/ttyUSB0. I then took a stab at editing the "USB0" entry to just "S0" with NULL termination. And viola it worked, reporting that the Propellor was not detected on port /dev/ttyS0.
Okay, I get /Users/stevenmessenger from the echo $HOME.
I do have a network drive but it's not normally mounted and I get the same result whether its mounted or not. I think the problem is actually something else. Using Instruments there is an fstat (gets some file stats) on a file (/system/library/privateframeworks/coreui.framework/resources/artfile.bin) that has just been closed.
If you want I'll email you the traces I got (they are about 500kB each, one from the working version and one from the non-working version). It has the full stack trace with what I presume are all the function names and line numbers.
Edit: try looking in lclmessageglue.pas lines 103 to 106. 103 seems to work and then it looks like its falling over on something that line 106 does or starts.
Post Edited (stevenmess2004) : 10/6/2008 12:48:48 AM GMT
I hacked the file to look for /dev/ttyS0, works fine...
So now I have two versions, one Serial and one USB...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...
Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...
Well, I've finally bought my first Parallax product. [noparse]:)[/noparse] Two ICs + PropClip + PropRPM board. Making it three Propellors at US$100. Ordered via US Postal express at US$33, UPS was insane price at US$117.
I had a quick look for NZ/AU shops but the only one that looked any good, www.basicstamps.co.nz, didn't have the PropRPM board that I wanted so I decided to order the whole lot straight from Parallax.
What do you mean by 'drive bst'. Terminal is the Mac OS X command line, the portal into the UNIX world If you want a command line compiler/downloader, bstc should work. I used bstc just fine with Terminal. If you come on IRC, I might be able to explain more to you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
I went to mibbit and pushed "go" and it was a bunch of guys talking about their girlfriends...and anyway, aren't you supposed to be in school?
Mac OS X's command line, the portal to the Unix world, isn't working for me...
such as "open -a path/to/ bst/ (space) /path to file to open/" with bst
I also can't use applescript commands as usual to control keystrokes... not essential for the perfection of my soul... just wondering[noparse]:)[/noparse]... and in fact applescript seems to hang in netherland and take my keyboard away from me[noparse]:)[/noparse]))
(by the way... that is a smile with a double chin... not a huge smile)
No I am not supposed to be at school. I get out around 3:15. Anyway, open is not the proper command for *nix. The commands in *nix are very different from the commands in DOS. About mibbit, in the IRC drop down menu, select Freenode, and in the Channel box, delete #mibbit and put in #propeller, and in the nick box, put in your desired name. It can't read your mind
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
As for the serial terminal, I recommend ZTerm. Open actually is for opening files in their native applications. So open blah.txt would most likely open TextEdit. Running 'standard' mac os programs from Terminal is a bit complex as applications are actually folders. To use bst from the terminal, you drag the application onto the terminal and add "Contents/MacOS/*" to the directory and press enter. That should work.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
Sorry for the delay... I was playing in the sandbox.
bst is working fine... I'm trying to get control of BST from an outside program for automation purposes. I would settle for a serial terminal as on my XP for right now.
TPW
ZTerm is fine for now, I'll try it... thanks TPW
I still don't understand why I can't use the OS X terminal to launch BST with a particular spin file open in the editor.
You cannot do that because BST does not read filenames from the command line. Please come on IRC!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
I still don't understand why I can't use the OS X terminal to launch BST with a particular spin file open in the editor.
Because bst does not currently accept command line input of any kind. Give me a day or so and I'll add it in for you.
I'm also working on a port configuration dialog so you'll be able to use any ports rather than just usbserial like it is now.
(I need this for the Win32 port anyway)
As for the serial terminal.. it's on my todo list.
You can use screen on the mac as a serial terminal.
screen /dev/ttyS0 9600
stevenmess2004 said...
Okay, I get /Users/stevenmessenger from the echo $HOME.
I do have a network drive but it's not normally mounted and I get the same result whether its mounted or not. I think the problem is actually something else. Using Instruments there is an fstat (gets some file stats) on a file (/system/library/privateframeworks/coreui.framework/resources/artfile.bin) that has just been closed.
If you want I'll email you the traces I got (they are about 500kB each, one from the working version and one from the non-working version). It has the full stack trace with what I presume are all the function names and line numbers.
Edit: try looking in lclmessageglue.pas lines 103 to 106. 103 seems to work and then it looks like its falling over on something that line 106 does or starts.
Really really interested in everything you have there, if you could E-mail them to me at
brad at fnarfbargle dot com that would be _really_ great.
BradC said...
My spin regression test archive is currently 74M. I don't really want to double the size of that just for the sake of it thanks.
You've obviously created a special case there. Doubling the size of that test-suite shouldn't be an issue for anyone. I bet it will compress impressively. :P
PS: I'd be happy if PropTool generated UTF8 while still using the propeller font. I assume that would keep you happy.
Personally I'd be generating and saving UFT-8 SPIN files.. in fact, I might just do that and see how propeller tool fares if I feed it a UTF8 file..
Watch this space..
Propeller tool munges UTF8. It's ok with the non-unicode stuff, but it double or triple bytes the unicode characters..
<sigh>
Big changes :
Configurable serial ports
Autorecovery save any modified files prior to each compile.
rjo_ you can now specify a spin file on the command line for it to open, and if you want to get really funky you can open multiple copies of the tool with different -d /dev/ttyX port details and talk to several propellers using multiple instances.
Please beat up the serial port configuration thing if you tend to use multiple devices or funky port configs. It works for me and I think it's great.. but then I would, wouldn't I ?
Feedback gratefully accepted.
The autorecovery thing has been lightly tested. I could not get it to crash so I had to build a "crash" button into it. It's worked for me.
It aggregates everything into a single recovery file. ~/.bst.recover in linux and ~/Library/Preferences/bst.recover on Mac.
It is removed when the ide is cleanly closed.
stevenmess2004 & Forrest, I apologize unreservedly but I _still_ can not put my finger on why it crashes on your machines. Rest assure I am trying to reproduce it locally and working with the voluminous quantities of information stevenmess2004 has provided to me to assist in debugging it.
Extremely impressive!! I can't wait to try it out when I get home! It may even preempt my presidential debate viewing [noparse]:)[/noparse]
A few random points:
1) Version 3 seems to work fine on SuSE Linux Enterprise Desktop 9. I'll try the Mac version later.
2) One reason to use UTF-8 instead of -16 is CVS (and other Unix command line tools) work fine with UTF-8 but not with UTF-16. At some point, I need to convert all my spin files so I can check them into CVS and have diff's between versions work. I haven't tried UTF-16 in Subversion - it may work better.
3) "open" from the OSX command line behaves exactly like you had double-clicked the file in the Finder. So, if you can't double-click and get useful results, open won't do it either. Sounds like Brad intends to fix the IDE so that both (open and double-click) will work.
Comments
ftdi_sio does it here. Standard in ubuntu, just plug and go.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
You guys are missing a big point that I thought was very clear. This is the source code! Not the object code.
Unfortunately, it didn't detect my Protoboard which is my current project.
Is there any way I can make it detect a propeller on the serial port (/dev/ttyS0)?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...
Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...
/Bamse
I do have a network drive but it's not normally mounted and I get the same result whether its mounted or not. I think the problem is actually something else. Using Instruments there is an fstat (gets some file stats) on a file (/system/library/privateframeworks/coreui.framework/resources/artfile.bin) that has just been closed.
If you want I'll email you the traces I got (they are about 500kB each, one from the working version and one from the non-working version). It has the full stack trace with what I presume are all the function names and line numbers.
Edit: try looking in lclmessageglue.pas lines 103 to 106. 103 seems to work and then it looks like its falling over on something that line 106 does or starts.
Post Edited (stevenmess2004) : 10/6/2008 12:48:48 AM GMT
I hacked the file to look for /dev/ttyS0, works fine...
So now I have two versions, one Serial and one USB...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...
Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...
/Bamse
I had a quick look for NZ/AU shops but the only one that looked any good, www.basicstamps.co.nz, didn't have the PropRPM board that I wanted so I decided to order the whole lot straight from Parallax.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
I went to mibbit and pushed "go" and it was a bunch of guys talking about their girlfriends...and anyway, aren't you supposed to be in school?
Mac OS X's command line, the portal to the Unix world, isn't working for me...
such as "open -a path/to/ bst/ (space) /path to file to open/" with bst
I also can't use applescript commands as usual to control keystrokes... not essential for the perfection of my soul... just wondering[noparse]:)[/noparse]... and in fact applescript seems to hang in netherland and take my keyboard away from me[noparse]:)[/noparse]))
(by the way... that is a smile with a double chin... not a huge smile)
Rich
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
TPW...
In the terminal in MacOSX I do... "man open" and I get the full shabang... Name, Synopsis and Description.
If "open" isn't a unix command what is it? And why do I get a result with a man command? And why doesn't "open" work with BST?
I have a great idea.. why don't you write a nice, scriptable serial terminal program for Mac OS X that can talk to my Prop?
Is there a serial terminal available for the Mac?
Rich
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
Sorry for the delay... I was playing in the sandbox.
bst is working fine... I'm trying to get control of BST from an outside program for automation purposes. I would settle for a serial terminal as on my XP for right now.
TPW
ZTerm is fine for now, I'll try it... thanks TPW
I still don't understand why I can't use the OS X terminal to launch BST with a particular spin file open in the editor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I am 1011, so be surprised!
Advertisement sponsored by dfletch:
Come and join us on the Propeller IRC channel for fast and easy help!
Channel: #propeller
Server: irc.freenode.net or freenode.net
If you don't want to bother installing an IRC client, use Mibbit. www.mibbit.com
I'll retry the IRC stuff.
Actually I'm not missing the point. Source or binary it's still about storage and transport over a network. Smaller is better.
My spin regression test archive is currently 74M. I don't really want to double the size of that just for the sake of it thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
Because bst does not currently accept command line input of any kind. Give me a day or so and I'll add it in for you.
I'm also working on a port configuration dialog so you'll be able to use any ports rather than just usbserial like it is now.
(I need this for the Win32 port anyway)
As for the serial terminal.. it's on my todo list.
You can use screen on the mac as a serial terminal.
screen /dev/ttyS0 9600
ctrl-a ctrl-~ to quit it from memory.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
Post Edited (BradC) : 10/6/2008 11:15:44 PM GMT
Really really interested in everything you have there, if you could E-mail them to me at
brad at fnarfbargle dot com that would be _really_ great.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
If you are going to be this responsive... then you need to charge something for it[noparse]:)[/noparse]
Rich
If I pull your finger... I'm going to need: http://forums.parallax.com/forums/default.aspx?f=15&m=295906
PS: I'd be happy if PropTool generated UTF8 while still using the propeller font. I assume that would keep you happy.
Propeller tool munges UTF8. It's ok with the non-unicode stuff, but it double or triple bytes the unicode characters..
<sigh>
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
Post Edited (BradC) : 10/8/2008 5:45:58 PM GMT
Big changes :
Configurable serial ports
Autorecovery save any modified files prior to each compile.
rjo_ you can now specify a spin file on the command line for it to open, and if you want to get really funky you can open multiple copies of the tool with different -d /dev/ttyX port details and talk to several propellers using multiple instances.
Please beat up the serial port configuration thing if you tend to use multiple devices or funky port configs. It works for me and I think it's great.. but then I would, wouldn't I ?
Feedback gratefully accepted.
The autorecovery thing has been lightly tested. I could not get it to crash so I had to build a "crash" button into it. It's worked for me.
It aggregates everything into a single recovery file. ~/.bst.recover in linux and ~/Library/Preferences/bst.recover on Mac.
It is removed when the ide is cleanly closed.
stevenmess2004 & Forrest, I apologize unreservedly but I _still_ can not put my finger on why it crashes on your machines. Rest assure I am trying to reproduce it locally and working with the voluminous quantities of information stevenmess2004 has provided to me to assist in debugging it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pull my finger!
A few random points:
1) Version 3 seems to work fine on SuSE Linux Enterprise Desktop 9. I'll try the Mac version later.
2) One reason to use UTF-8 instead of -16 is CVS (and other Unix command line tools) work fine with UTF-8 but not with UTF-16. At some point, I need to convert all my spin files so I can check them into CVS and have diff's between versions work. I haven't tried UTF-16 in Subversion - it may work better.
3) "open" from the OSX command line behaves exactly like you had double-clicked the file in the Finder. So, if you can't double-click and get useful results, open won't do it either. Sounds like Brad intends to fix the IDE so that both (open and double-click) will work.