Author Topic: Features Wishlist  (Read 613921 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #1830 on: February 02, 2011, 03:02:54 am »
I think he means its just a bit more optimized than:

Code: [Select]
If A=1
Bla
End
If A=2
Bla
End
...

But a switch command would be a *lot* more optimized than both, and a lot better looking

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #1831 on: February 02, 2011, 03:11:37 am »
Oh ok, thaT's good to hear then.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Features Wishlist
« Reply #1832 on: February 02, 2011, 10:29:27 am »
Edit for a completely unrelated subject: Can I bring up again a feature request for alternate steps for For() loops, the same way it is in BASIC?
There's actually a pretty easy way to do this: http://ourl.ca/4129/77715

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Features Wishlist
« Reply #1833 on: February 02, 2011, 12:10:25 pm »
I think I found something that's both an incompatibility issue and a feature request.
Can the instant goto be made compatible with CalcUtil's "save screen" option?
The save screen is when you quit out of the program editor it asks if you want to save changes or not, very useful :) but it causes crashes with axe :P
Vy'o'us pleorsdti thl'e gjaemue

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Features Wishlist
« Reply #1834 on: February 02, 2011, 02:39:47 pm »
Quigibo, if you are implementing Switch statements, can you include support for Strings?

In computers, no programming language has switchs with strings, and I'd love them ;D

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Features Wishlist
« Reply #1835 on: February 02, 2011, 03:23:41 pm »
^So would I
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Features Wishlist
« Reply #1836 on: February 02, 2011, 03:30:13 pm »
Not that Axe has string comparison features in the first place :P
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Ashbad

  • Guest
Re: Features Wishlist
« Reply #1837 on: February 02, 2011, 03:35:23 pm »
the thing is how easy and optimize switches would be.  You would only have to check the value of the original statement once, and then compare that to all the others similar to a long chain of "Else!If... Else!If..." statements.   I thought it was a good idea, and I think I could help code it, though I doubt it's really that difficult to code.

While we're at it.. I also suggest adding optimized string comparison functions :)
« Last Edit: February 02, 2011, 03:35:35 pm by Ashbad »

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: Features Wishlist
« Reply #1838 on: February 02, 2011, 03:42:04 pm »
Quigibo, if you are implementing Switch statements, can you include support for Strings?

In computers, no programming language has switchs with strings, and I'd love them ;D
C# and related languages actually do have switches for strings (I've used them more than once). However, it would be nice to have any string comparisons at all in Axe, since we want name strings and stuff like that.
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Features Wishlist
« Reply #1839 on: February 02, 2011, 03:52:56 pm »
Quigibo, if you are implementing Switch statements, can you include support for Strings?

In computers, no programming language has switchs with strings, and I'd love them ;D

It might be worse in Axe since string comparison is so inefficient (there's no string comparison test yet anyway).

While we're at it.. I also suggest adding optimized string comparison functions :)

I had a string utility Axiom back when Axe supported them, but I lost it when I lost my thumb drive. I could easily recode it, though :D

But it'd be nice as a built-in function too, if Axe still has space on its data page?
« Last Edit: February 02, 2011, 03:53:32 pm by Deep Thought »




Ashbad

  • Guest
Re: Features Wishlist
« Reply #1840 on: February 02, 2011, 03:54:26 pm »
thing is, string comparison isn't hard to make, but hard to optimize, from what I can tell; and putting that in a switch in axe could be painful indeed :(

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Features Wishlist
« Reply #1841 on: February 02, 2011, 06:52:48 pm »
Oh yeah, Axe doesn't even have string comparison.

It's really hard to code like this in stuff like 'Easy', 'Medium' or 'Hard'. There are lot of ways to turn this around of course, but indirect.

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Features Wishlist
« Reply #1842 on: February 03, 2011, 01:49:14 am »
A little feature :
When we go in compilation menu, it could be nice to put the last source compiled at the beginning of the list. What do you think ?

I think it could be very intuitive, and usefull.
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Features Wishlist
« Reply #1843 on: February 03, 2011, 10:25:37 am »
An option to disable the token swaps when editing source. They slow down the program editor a bit, compounded by my recent switch to the DCS7 8-line program editor. I can deal with ref() instead of Rect().
See you, space cowboy...

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: Features Wishlist
« Reply #1844 on: February 03, 2011, 10:27:40 am »
Oh, I have a feature request: a Symbol Table. In other words, I want to define memory locations other than L1-L6 as alpha-numeric symbols. For example, this:
Code: [Select]
GetCalc(Str1, 768) -> {L1+700}r
...code...
Pt-Off(2,5,Pic1)->{L1+700}r
Copy(L6, {L1+700}r, 768
becomes this:
Code: [Select]
#Define(BUF,L1+700
GetCalc(Str1, 768) -> BUF
...code...
Pt-Off(2,5,Pic1)->BUF
Copy(L6,BUF,768)
ASM programmers can do this, so why can't we?
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com