Author Topic: Suave  (Read 21365 times)

0 Members and 1 Guest are viewing this topic.

Ashbad

  • Guest
Re: 'DE
« Reply #75 on: February 01, 2011, 08:12:30 pm »
I have the urge to make this in asm like axe was... and I think I will.  Though I greatly intend for it to be completely different than Axe, a bit more general purpose like pure Asm rather than games and such; doing this would prompt me to make it based on more of a library system than built in routines.  So, all math commands would be in a math library, all 2D graphics would be in a grapics2D lib, all physics in a physics lib, etc.  Though I intend to make a library creating system easier by allowing the user to make libraries in both pure asm and 'DE (or Lo-C, which it was originally called, due to it's original basis on the C language)

Though, I have too many ideas on possible syntax to post here, and since my idea is to make it as condensed as possible (while not being Malbolge like), does anybody have any suggestions?  If so, could you paste an ideal "hello world" program?  Remember, if you choose to do so, keep in mind that while having a "Public Class Static Void Overwrite" in every sentence would be cool, it would be a pain to type into a calc.  Make it what you like, I'm willing to accept all ideas :D

SirCmpwn

  • Guest
Re: 'DE
« Reply #76 on: February 01, 2011, 08:14:27 pm »
public = pub
static = sta
private = pri
protected = pro
overwrite = ovr
virtual = vir

Ashbad

  • Guest
Re: 'DE
« Reply #77 on: February 01, 2011, 08:15:52 pm »
good idea!  and I can do it like quigibo when he overwrote the 'v' token to 'appv', etc. :D

that way they can be one token and condense the source more so

SirCmpwn

  • Guest
Re: 'DE
« Reply #78 on: February 01, 2011, 08:17:53 pm »
Also,
class = cla
interface = ifc
struct = sct
abstract = abs

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: 'DE
« Reply #79 on: February 01, 2011, 08:19:18 pm »
The Ideal HLL-like Hello World:
Printf("Hello World
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Ashbad

  • Guest
Re: 'DE
« Reply #80 on: February 01, 2011, 08:21:30 pm »
these are all good ideas!  much better than:

DE.OUT << "Hello world" << L.N

:P

SirCmpwn

  • Guest
Re: 'DE
« Reply #81 on: February 01, 2011, 08:22:53 pm »
pub cla Hello
{
pub sta void main()
{
sys.home.out("Hello World!")
}
}

This was the syntax for my compiler of old.
« Last Edit: February 01, 2011, 08:23:04 pm by SirCmpwn »

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: 'DE
« Reply #82 on: February 01, 2011, 08:23:20 pm »
these are all good ideas!  much better than:

DE.OUT << "Hello world" << L.N

:P

Yep, keep it simple ;) It's a calculator with only 24 KB of RAM. Plus more people would program in a simpler language.




Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: 'DE
« Reply #83 on: February 01, 2011, 08:24:38 pm »
Please don't do OOP. For one thing, it's a pain to type all of those declarations. For another, the hardware isn't powerful enough for serious OOP.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

SirCmpwn

  • Guest
Re: 'DE
« Reply #84 on: February 01, 2011, 08:25:29 pm »
Having done it before, it is entirely possible, and with some help from hooks, the declarations are easy to type.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: 'DE
« Reply #85 on: February 01, 2011, 08:25:59 pm »
OOP on-calc?

You are a god...  O.O
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Ashbad

  • Guest
Re: 'DE
« Reply #86 on: February 01, 2011, 08:26:33 pm »
pub cla Hello
{
pub sta void main()
{
sys.home.out("Hello World!")
}
}

This was the syntax for my compiler of old.

I actually like that syntax :)

though maybe for condensing the code a bit I can somehow allow for the shortening of sys.home.out

EDIT: and qwerty, if it's not OOP, it wouldn't compare to Axe.  This would be an alternative for people who want to use an OOP approach, there's no way I can catch up to axe now that it's so complete, unless it's completely different.
« Last Edit: February 01, 2011, 08:27:59 pm by Ashbad »

SirCmpwn

  • Guest
Re: 'DE
« Reply #87 on: February 01, 2011, 08:27:36 pm »
Have you considered intellisense?  Not too hard, with a raw key hook.

Ashbad

  • Guest
Re: 'DE
« Reply #88 on: February 01, 2011, 08:28:27 pm »
intelli-what?  Sorry if I sound like a noob :(

SirCmpwn

  • Guest
Re: 'DE
« Reply #89 on: February 01, 2011, 08:29:25 pm »