Shop OBEX P1 Docs P2 Docs Learn Events
Mac/Linux/Windows IDE - Ver 0.19.3 "Now with new improved PropBasic" release - Page 3 — Parallax Forums

Mac/Linux/Windows IDE - Ver 0.19.3 "Now with new improved PropBasic" release

1356752

Comments

  • BradCBradC Posts: 2,601
    edited 2008-10-05 18:59
    potatohead said...
    What USB driver is needed under Linux, if any?

    ftdi_sio does it here. Standard in ubuntu, just plug and go.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Pull my finger!
  • evanhevanh Posts: 16,253
    edited 2008-10-05 22:12
    BradC said...
    hippy said...
    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.
  • evanhevanh Posts: 16,253
    edited 2008-10-05 22:18
    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.
  • evanhevanh Posts: 16,253
    edited 2008-10-05 22:36
    OwenS said...
    Why does Prop Tool even use UTF-16 in the first place? Why not use UTF-8?
    Dunno. There was an explanation given somewhere. I'd be happy with either, just not flipflopping between both.
  • BamseBamse Posts: 561
    edited 2008-10-05 22:44
    Great work...

    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
  • evanhevanh Posts: 16,253
    edited 2008-10-05 23:39
    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.
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-10-05 23:49
    You should be able to just create an alias with the name /dev/ttyUSB0. That's probably easier than modding the executable.
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-10-06 00:34
    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
  • BamseBamse Posts: 561
    edited 2008-10-06 00:44
    Thanks guys...

    I hacked the file to look for /dev/ttyS0, works fine...

    So now I have two versions, one Serial and one USB... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
  • evanhevanh Posts: 16,253
    edited 2008-10-06 05:58
    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.
  • evanhevanh Posts: 16,253
    edited 2008-10-06 07:05
    RinksCustoms said...
    This Linux IDE shouldn't have a problem running with Xubuntu 8.04.1, yes?
    Yep, just needs some libs I believe, namely GTK. No particular Window Manager is required.
  • rjo_rjo_ Posts: 1,825
    edited 2008-10-06 13:53
    Has anyone been able to use the terminal program in MacOSX to drive bst?
  • tpw_mantpw_man Posts: 276
    edited 2008-10-06 19:50
    What do you mean by 'drive bst'. Terminal is the Mac OS X command line, the portal into the UNIX world tongue.gif 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
    tongue.gif
  • rjo_rjo_ Posts: 1,825
    edited 2008-10-06 20:13
    tpw...

    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
  • tpw_mantpw_man Posts: 276
    edited 2008-10-06 20:21
    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 tongue.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
    tongue.gif
  • rjo_rjo_ Posts: 1,825
    edited 2008-10-06 21:12
    This is a little ot... but not by much as it relates to using the Prop on a Mac as God intended.

    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
  • evanhevanh Posts: 16,253
    edited 2008-10-06 21:22
    Rich: I thought you had bst running earlier? I'm struggling to work out what you are attempting to achieve.
  • tpw_mantpw_man Posts: 276
    edited 2008-10-06 21:23
    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
    tongue.gif
  • rjo_rjo_ Posts: 1,825
    edited 2008-10-06 21:49
    Evanh

    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.
  • tpw_mantpw_man Posts: 276
    edited 2008-10-06 21:56
    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
    tongue.gif
  • rjo_rjo_ Posts: 1,825
    edited 2008-10-06 22:02
    ZTERM works fine... thanks.

    I'll retry the IRC stuff.
  • BradCBradC Posts: 2,601
    edited 2008-10-06 22:55
    evanh said...
    point that I thought was very clear. This is the source code! Not the object code.

    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!
  • BradCBradC Posts: 2,601
    edited 2008-10-06 23:00
    rjo_ said...

    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

    ctrl-a ctrl-~ to quit it from memory.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Pull my finger!

    Post Edited (BradC) : 10/6/2008 11:15:44 PM GMT
  • BradCBradC Posts: 2,601
    edited 2008-10-06 23:05
    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.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Pull my finger!
  • rjo_rjo_ Posts: 1,825
    edited 2008-10-06 23:05
    Brad...

    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
  • evanhevanh Posts: 16,253
    edited 2008-10-07 06:03
    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.
  • BradCBradC Posts: 2,601
    edited 2008-10-07 07:17
    BradC said...

    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>

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Pull my finger!

    Post Edited (BradC) : 10/8/2008 5:45:58 PM GMT
  • evanhevanh Posts: 16,253
    edited 2008-10-07 07:43
    Heh, go finger! [noparse]:)[/noparse]
  • BradCBradC Posts: 2,601
    edited 2008-10-07 15:28
    Righto. Next update (changes in top post)

    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!
  • Forest GodfreyForest Godfrey Posts: 38
    edited 2008-10-07 17:48
    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.
Sign In or Register to comment.