Spin2 editor (now works with P1 & P2)

1235

Comments

  • cgraceycgracey Posts: 9,967
    edited September 10 Vote Up0Vote Down
    The Section window is a nice way to do it.

    I'm always trying to dream up some way to get around the 2D problem. it would be neat if you could see through many planes, but our eyes get overloaded quickly. Is there any way we could make a development tool that can take us into the 4th dimension, so that we could see at least three dimensions simultaneously. That would be a great boon to coding, and simulation, too.
  • cgracey wrote: »
    The Section window is a nice way to do it.

    I'm always trying to dream up some way to get around the 2D problem. it would be neat if you could see through many planes, but our eyes get overloaded quickly. Is there any way we could make a development tool that can take us into the 4th dimension, so that we could see at least three dimensions simultaneously. That would be a great boon to coding, and simulation, too.

    I think that might require a step or two up the evolutionary ladder.
    In science there is no authority. There is only experiment.
    Life is unpredictable. Eat dessert first.
  • RaymanRayman Posts: 8,828
    edited September 10 Vote Up0Vote Down
    I think we could do 3D, but you'd have to wear 3D glasses for it to work... I don't think most people would want to do that...
    Prop Info and Apps: http://www.rayslogic.com/
  • I fear autoprogramming will come first ;-)
  • Wow Chip, my brain hardly has the bandwidth to support 2D never mind 3 or 4.

    But I agree, sometimes programming a computer feels like painting a room using a brush with a long thin handle poked though a key hole in the door. You just can't see the whole thing at once.
  • I have, by chance, a great setup. Samsung 3D plasma TV. My 3D CAD can actually be 3D!

    It is amazing for about half an hour. Then, it gets increasingly tiresome.

    The glasses run at 60hz per eyeball, 120 hz display. So, it is fast. That is not the trouble. It is all about lack of 3d input methods, and depth fatigue. Actual depth as seen by the muscles in our eyes does not change with the object depth perception does.

    People vary widely in their ability to deal with that. I am not bad. Many are much worse. A few seem to be able to go all day.

    Just a data point here.

    @Rayman I like the section view.

    Almost makes the case for user sections, doesn't it?

    Just name chunks of code, perhaps with comment right at the top, click, there you are.

    Do not taunt Happy Fun Ball! @opengeekorg ---> Be Excellent To One Another SKYPE = acuity_doug
    Parallax colors simplified: https://forums.parallax.com/discussion/123709/commented-graphics-demo-spin<br>
  • Visual Studio 2017 has a cool thing where it shows pretty much your whole code in super tiny font off to the right side...
    You can click there to jump to that point. I shows in big font when you hover (see pic).
    2568 x 1568 - 230K
    Prop Info and Apps: http://www.rayslogic.com/
  • Yes, the condensed display on the right is a nice feature.
  • rjo__rjo__ Posts: 1,953
    edited September 10 Vote Up0Vote Down
    My first reaction about the 3d thing... you could do it without 3D glasses by embedding your controls in a .ply file and then creating a ply viewer that would allow you to look around the 3D world and select via the 3D location of the tool you want. Very simple to do. It would load the component or whatever by issuing exec commands.

    I have already written a ply viewer and it could be easily modified to do this sort of thing.

    Once everyone is happy with the way the 2D editor works, I'd be happy to give it a go. Cross compatible too:)

    My second reaction... there is probably something I am not thinking about that would take this out of my rorc (realm of reasonable competence).
  • I remember the '3D' file system viewer from Jurassic Park. I tried it on my SGI (it was a downloadable executable). That didn't live up to expectations (that's an understatement)..
  • AleAle Posts: 2,346
    edited September 11 Vote Up0Vote Down
    I think that visual studio code has a similar feature. If it weren't for its speed, or lack thereof, it would be a usable alternative to notepad++.
  • I can imagine that VS Code is not as fast to load and run as a native compiled from C++ editor. What with being written in Javascript/Typescript

    On the other hand I have been using it on an 8 year old, not high end PC, since it's launch and it's quite fast enough.

    Less annoyingly slow than IDE's like Eclipse or InteliJ that are written in Java.

    What have you been running VS Code on?

  • Well, this computer is a bit dated, around 7,5 years old :) (an i5-2500). It feels sluggish is comparison to eclipse !.Maybe they improved it lately, I'd have to check again.
  • notepad++ loads instantly for me, no matter what it open in it's tabs.
    VS code takes a second or so.
    VS pro 2015 takes like 30 seconds or so when loading with a full solution, or about 3 seconds without.

  • I think I need to do something about tab characters...
    Noticed that Chip's spin2 examples have misaligned columns.

    Thinking that turning tab characters into 4 spaces would fix it...
    Prop Info and Apps: http://www.rayslogic.com/
  • Rayman wrote: »
    I think I need to do something about tab characters...
    Noticed that Chip's spin2 examples have misaligned columns.

    Thinking that turning tab characters into 4 spaces would fix it...

    Most editors have a tab-setting option & IIRC Chip likes 4
  • Proptool has an option for tab stops (you put in the columns that are tab stops) and it's not uniform. It's not even the same in each section.

    CON blocks: 2, 8,16, 18, 32, 56, 80
    VAR blocks: 2, 8, 22, 32, 56, 80
    OBJ blocks, 2, 8, 16, 18, 32, 56, 80
    PUB/PRI blocks: 2, 4, 6, 8, 10, 32, 56, 80
    DAT blocks: 8,14,24,32,48,56,80

    It's madness, all over the place. It's one of the things that drives me the most nuts about PropTool.
  • RaymanRayman Posts: 8,828
    edited September 12 Vote Up0Vote Down
    I'm not a fan of the variable tab stops either.
    Hopefully, we can just do Tab=4 spaces...

    Or, at least Tab=N spaces...
    Prop Info and Apps: http://www.rayslogic.com/
  • yes, please.
  • Roy Eltham wrote: »
    Proptool has an option for tab stops (you put in the columns that are tab stops) and it's not uniform. It's not even the same in each section.

    CON blocks: 2, 8,16, 18, 32, 56, 80
    VAR blocks: 2, 8, 22, 32, 56, 80
    OBJ blocks, 2, 8, 16, 18, 32, 56, 80
    PUB/PRI blocks: 2, 4, 6, 8, 10, 32, 56, 80
    DAT blocks: 8,14,24,32,48,56,80

    It's madness, all over the place. It's one of the things that drives me the most nuts about PropTool.

    Hehe, wow - like those Mechanical typewriters from 100 years ago, that gave the original meaning to tab stop, because it really was a metal tab, that stopped the carriage.

    In 2018 ? best avoided..
  • Roy Eltham wrote: »
    yes, please.

    Seconded.
    Do not taunt Happy Fun Ball! @opengeekorg ---> Be Excellent To One Another SKYPE = acuity_doug
    Parallax colors simplified: https://forums.parallax.com/discussion/123709/commented-graphics-demo-spin<br>
  • Rayman wrote: »
    I'm not a fan of the variable tab stops either.
    Hopefully, we can just do Tab=4 spaces...

    Or, at least Tab=N spaces...

    User setting [N] field is the common way to do this. Allows easy open of sources from anywhere

    See also : this chatter about Notepad++ movements here
    https://superuser.com/questions/1162435/where-are-the-tab-settings-in-notepad-newer-versions

    by making it language-related, you can have multiple edit tabs in differing languages still tab ok.
  • Was trying to add Spin1 support with Propellent dll, but rediscovered issue where newer versions of propellent give me unhandled exception errors when doing "finalize". So, could use old version (1.2).

    Trying to use propellent.exe instead. It works, but big thing missing is the "GetSourceHierarchy" call that the dll has. That would take some work to recreate, I think...
    Prop Info and Apps: http://www.rayslogic.com/
  • Maybe OpenSpin and fastspin can get a command line option to output the Source Hierarchy, they should know it.

    It would be very nice if your Editor uses OpenSpin not Propellent, then a simple switch to fastspin is possible, it has the same call syntax...

    Same goes for loading, please use the existing loaders available so that the eco-system gets simpler.

    just my 2 cents,

    Mike
    I am just another Code Monkey.
    A determined coder can write COBOL programs in any language. -- Author unknown.
    Press any key to continue, any other key to quit

    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this post are to be interpreted as described in RFC 2119.
  • I should take a closer look at OpenSpin…

    I really like this "View Info" dialog from the Prop Tool.

    Hope it's not too hard to recreate...
    331 x 506 - 6K
    Prop Info and Apps: http://www.rayslogic.com/
  • This version can now compile and load Spin2 using Dave Hein's P2ASM and LoadP2.

    Also, I fixed "save", which didn't work before and is kinda necessary...

    For this to work, both p2asm.exe and loadp2.exe have to be in the same folder as the .spin2 file.

    I tested this with V32i, which I think is the current version.
    Prop Info and Apps: http://www.rayslogic.com/
  • Rayman wrote: »
    This version can now compile and load Spin2 using Dave Hein's P2ASM and LoadP2.

    Also, I fixed "save", which didn't work before and is kinda necessary...

    For this to work, both p2asm.exe and loadp2.exe have to be in the same folder as the .spin2 file.

    I tested this with V32i, which I think is the current version.

    Have you tried it with fastspin? That actually does a bit more of Spin2 (i.e. not just the DAT section) than p2asm. Of course p2asm is a faster and leaner P2 assembler :). We've got some nice choices in P2 tools now I think. Thanks for your work on the Spin2 editor!

    Eric
  • Ok, I can look at making fastspin an option, maybe for P1 too.
    Can also add BST and OpenSpin…

    One issue with p2asm is that it only looks the application path for include files and not also in a library or document folder.

    Also, it doesn't say which line number the error is on...
    Prop Info and Apps: http://www.rayslogic.com/
  • ersmith: Is there a command line tool for fastspin?

    I just looked and didn't see it...
    Prop Info and Apps: http://www.rayslogic.com/
  • Rayman wrote: »
    ersmith: Is there a command line tool for fastspin?

    I just looked and didn't see it...

    fastspin.exe is the command line tool. It's found in https://github.com/totalspectrum/spin2cpp/releases in the fastspin.zip file. I'll attach a copy of the most recent to this post. I guess my directions must be a bit confusing. Where were you looking for it?
Sign In or Register to comment.