Shop OBEX P1 Docs P2 Docs Learn Events
Spin2 editor (now works with P1 & P2) - Page 5 — Parallax Forums

Spin2 editor (now works with P1 & P2)

1235

Comments

  • cgraceycgracey Posts: 14,152
    edited 2018-09-10 06:12
    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.
  • kwinnkwinn Posts: 8,697
    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.
  • RaymanRayman Posts: 14,644
    edited 2018-09-10 15:48
    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...
  • ErNaErNa Posts: 1,752
    I fear autoprogramming will come first ;-)
  • Heater.Heater. Posts: 21,230
    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.

  • RaymanRayman Posts: 14,644
    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
  • cgraceycgracey Posts: 14,152
    Yes, the condensed display on the right is a nice feature.
  • rjo__rjo__ Posts: 2,114
    edited 2018-09-10 21:45
    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).
  • TorTor Posts: 2,010
    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,363
    edited 2018-09-11 17:58
    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++.
  • Heater.Heater. Posts: 21,230
    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?

  • AleAle Posts: 2,363
    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.

  • RaymanRayman Posts: 14,644
    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...
  • jmgjmg Posts: 15,173
    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: 14,644
    edited 2018-09-12 16:10
    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...
  • yes, please.
  • jmgjmg Posts: 15,173
    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.
  • jmgjmg Posts: 15,173
    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.
  • RaymanRayman Posts: 14,644
    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...
  • 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
  • RaymanRayman Posts: 14,644
    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
  • RaymanRayman Posts: 14,644
    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.
  • 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
  • RaymanRayman Posts: 14,644
    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...
  • RaymanRayman Posts: 14,644
    ersmith: Is there a command line tool for fastspin?

    I just looked and didn't see it...
  • 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.