Author Topic: Started working on my IDE again, more info...  (Read 13763 times)

0 Members and 1 Guest are viewing this topic.

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #15 on: September 22, 2018, 06:33:46 pm »
Awesome, thanks guys!

LOL  _HYPOT

I just created a function to do this exact thing the other day. I'll need to see what other new commands can replace functions I've been creating.

Oh my goodness, radian and degree angle functions too. Again, created these as well.
« Last Edit: September 22, 2018, 06:37:06 pm by TerryRitchie »
In order to understand recursion, one must first understand recursion.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Started working on my IDE again, more info...
« Reply #16 on: September 22, 2018, 06:52:43 pm »
Awesome, thanks guys!

LOL  _HYPOT

I just created a function to do this exact thing the other day. I'll need to see what other new commands can replace functions I've been creating.

Oh my goodness, radian and degree angle functions too. Again, created these as well.

And poor Clippy almost burst a blood vessel when I added those into the language.  He didn't need them for his code, so he didn't think anyone else did either...

Always makes me happy when I hear of people making use of them.  :D
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #17 on: September 22, 2018, 06:59:04 pm »
I remember when he used to get highly upset at the mere mention of a new command.

I don't miss those days.
In order to understand recursion, one must first understand recursion.

Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #18 on: September 22, 2018, 07:07:35 pm »
Drag and drop functions coming! Outstanding!
In order to understand recursion, one must first understand recursion.

FellippeHeitor

  • Guest
Re: Started working on my IDE again, more info...
« Reply #19 on: September 22, 2018, 07:11:29 pm »
Drag and drop functions coming! Outstanding!

You can already try it out in the latest dev build. Here's sample usage: https://www.qb64.org/forum/index.php?topic=304.msg2561#msg2561

BTW, the most recent dev build already has the CTRL+T shortcut to toggle comments and a way to hide the back arrow, as per request. And it also supports dragging a .bas file from a folder into the IDE while it's running, making use of the new statements (in Windows).

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Started working on my IDE again, more info...
« Reply #20 on: September 22, 2018, 07:16:15 pm »
I remember when he used to get highly upset at the mere mention of a new command.

I don't miss those days.

One important reason for these commands, which Clippy never seemed to understand, is the speed benefits of some of these commands.  From memory, _HYPOT is dozens of times faster than trying to calculate the value yourself.

c = _HYPOT(a, b)    vs.     c = SQR(a ^ 2 + b ^ 2)

Have fun and time a loop doing each of the above a few thousand times, and then compare the times for them.  Unless something has seriously changed, the first should be quite a bit faster than the second.

Code: QB64: [Select]
  1.  
  2. t = TIMER
  3. FOR a = 1 TO 10000
  4.     FOR b = 1 TO 1000
  5.         c = _HYPOT(a, b)
  6.     NEXT
  7. t2 = TIMER
  8.  
  9. FOR a = 1 TO 10000
  10.     FOR b = 1 TO 1000
  11.         c = SQR(a ^ 2 + b ^ 2)
  12.     NEXT
  13. t3 = TIMER
  14.  
  15. PRINT USING "##.### seconds for Hypot"; t2 - t
  16. PRINT USING "##.### seconds for Math stuff"; t3 - t2
  17.  
« Last Edit: September 22, 2018, 07:25:24 pm by SMcNeill »
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #21 on: September 22, 2018, 09:41:52 pm »
Fixed a couple bugs tonight.  The one where spaces in the path failed to open/compile was an easy fix - just had to surround the call with quotes.  I should have known that.  Quotes are needed using qb64 from a cmd prompt as well.

For example, this will fail if you try to manually load a BAS file from cmd...

C:\qb64>qb64 c:\qb64\new folder\insaneclone.bas

This is the correct way when dealing with spaces in path, add quotes around path+filename...

C:\qb64>qb64 "c:\qb64\new folder\insaneclone.bas"

I didn't catch this before because I seldom ever use spaces with my folders.  Thanks to the user who reported this.

- Dav


Offline TerryRitchie

  • Seasoned Forum Regular
  • Posts: 495
  • Semper Fidelis
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #22 on: September 22, 2018, 10:51:48 pm »
Have fun and time a loop doing each of the above a few thousand times, and then compare the times for them.  Unless something has seriously changed, the first should be quite a bit faster than the second.

I get 1.594 seconds for Hypot
         1.367 seconds for Math stuff
?

I'll stop discussing this here as well. This is way off topic. A new topic should be started for this.
In order to understand recursion, one must first understand recursion.

Offline RNBW

  • Newbie
  • Posts: 20
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #23 on: September 23, 2018, 11:04:27 am »
@RNBW: Thanks for the suggestions.  An earlier IDE version let users choose font & size, but I removed it when realizing using other fonts messed up High ASCII code in some code.  So I made a code page 437 font, 3 sizes of it eventually.  The word wrap I could probably add, will see if it can be done easily with just scintilla calls - but if it messes up the way I'm doing lines/linecount I'll have to reprogram some things.

@anon1:  Thanks for the link. That's sure is a good looking editor. Yes, the IDE is being made in PureBasic.

- Dav

I must say that wordwrap is very low in my requirements.  It's a nice to have, but not essential.
« Last Edit: November 24, 2018, 08:38:40 pm by odin »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #24 on: September 23, 2018, 11:26:18 am »
@RNBW: Thanks for the suggestions.  An earlier IDE version let users choose font & size, but I removed it when realizing using other fonts messed up High ASCII code in some code.  So I made a code page 437 font, 3 sizes of it eventually.  The word wrap I could probably add, will see if it can be done easily with just scintilla calls - but if it messes up the way I'm doing lines/linecount I'll have to reprogram some things.

@anon1:  Thanks for the link. That's sure is a good looking editor. Yes, the IDE is being made in PureBasic.

- Dav


I must say that wordwrap is very low in my requirements.  It's a nice to have, but not essential.

It was low on my list too until trying to write a program with 30 line limit with only a For Loop to do conditional branching then I found using the horizontal scroll bar sucky! Well maybe it was my memory. By the time I got to the end of the line, I forgot what was in the beginning. :D
« Last Edit: November 24, 2018, 08:35:10 pm by odin »

Offline Kazman

  • Newbie
  • Posts: 14
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #25 on: September 24, 2018, 04:19:08 am »
Hi Dav, I love your IDE, it is fantastic :)

The only thing I miss is the auto tabbing when writing my code.

Keep working on your IDE! ;)

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #26 on: October 03, 2018, 10:56:21 pm »
Thanks, Kazman.  I got to work on it some more today.  I do have a real-time auto-indent working - very slowly - and even a VERY basic real-time syntax checking for a few commands, but those are nowhere near ready for the public so I'm holding off on those and added in a 'beautify code' call in the edit menu (ctrl+b) that will format the entire code correctly instead.  Expect that in the next update.

My beautify code routine needs some work - it's not 100% perfect but at least it doesn't break any code that I can tell, just messes up indention on a few source code I'm using for testing.  Had to deal with a crashing bug that showed up since re-writing some key procedures (fixed sloppy coding). 

Anyway, just wanted to keep you all updated.

- Dav
« Last Edit: October 03, 2018, 10:58:54 pm by Dav »

Offline Kazman

  • Newbie
  • Posts: 14
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #27 on: October 04, 2018, 06:05:32 am »
Thank you very much Dav ;)

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Started working on my IDE again, more info...
« Reply #28 on: October 04, 2018, 09:46:35 pm »
Beautify code now indents everything properly.  Just trying to speed it all up.   I may leave in the current real-time auto-formatting system for testing purposes only, for those who want to see where it's at in development.  It could be turned ON/OFF by entering a special command in the help box.  It's not a regular IDE feature for people to use yet, but maybe some here would like test it (it doesn't work well yet).

 I like the way QB64 lets you open an '$INCLUDE file from its IDE for editing.  Thinking of adding that too.  Would that be something users would want in this IDE?  Also thinking of adding menu choices for quick calls to external tools, like open a command prompt, windows calculator, notepad, a user define tool, etc.

Added new keywords tonight to the IDE, help system and syntax status bar.

I'm going to TRY to have an update ready by next month.  Don't expect anything major, this will be more a maintenance update than anything else.

- Dav

FellippeHeitor

  • Guest
Re: Started working on my IDE again, more info...
« Reply #29 on: October 04, 2018, 10:41:31 pm »
Great news, Dav!