Author Topic: Suave  (Read 21438 times)

0 Members and 1 Guest are viewing this topic.

Ashbad

  • Guest
Re: 'DE
« Reply #90 on: February 01, 2011, 08:31:14 pm »
hmm, thanks for the link :)

yeah, I could implement that, that's a really good idea!  it would shorten long code sequences quite a bit (typing-them-in-wise)

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: 'DE
« Reply #91 on: February 01, 2011, 08:47:49 pm »
I think "cla" should be "clas"
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:





Ashbad

  • Guest
Re: 'DE
« Reply #92 on: February 01, 2011, 08:48:22 pm »
hmm, maybe even something simpler, like cl or cls

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: 'DE
« Reply #93 on: February 01, 2011, 09:02:56 pm »
but when I see cls, I think CLearScreen
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:





SirCmpwn

  • Guest
Re: 'DE
« Reply #94 on: February 01, 2011, 09:20:43 pm »
It should be somewhat readable to beginners, don't forget.  What would you think, as a beginner, if you saw this:
Code: [Select]
pb cl Hello
{
pb st vd Main()
{
sys.h.out("hello world")
}
}

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: 'DE
« Reply #95 on: February 01, 2011, 09:23:13 pm »
I would think someone was trying to mess with me.
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 jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: 'DE
« Reply #96 on: February 01, 2011, 10:22:36 pm »
It should be somewhat readable to beginners, don't forget.  What would you think, as a beginner, if you saw this:
Code: [Select]
pb cl Hello
{
pb st vd Main()
{
sys.h.out("hello world")
}
}
I would think "oh hey, there's a public class called Hello, that has a public static function called Main Which gets the stdout and writes "hello world"."  But I am in no way a beginner. ;-)

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: 'DE
« Reply #97 on: February 01, 2011, 11:13:21 pm »
^Same for me. I'm teaching my friend Java.
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 nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: 'DE
« Reply #98 on: February 01, 2011, 11:37:37 pm »
hello world for me :

Code: [Select]
pub class Hello{
   pub stat void main(){
      sys.print("hello world")
   }
}
sys is a class consisting of static methods to interface with the screen. e.g. it would have methods print, paint, pxlon, pton, graph etc. there'd be a math class similarly, except maybe that could be broken up. like math.trig, math.geom, math.matr, math.gen(eral), math.stats


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: 'DE
« Reply #99 on: February 02, 2011, 03:03:40 am »
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.
He's trying to at least bring one OOP language to calcs. Otherwise it would kinda defeat the point of the project. Let's not get into anti-OOP language fanboyism here. However I think an OOP language should be on-computer programmable, or it will take ages to type code.

I'M glad to see this revived, by the way. I might unfortunately not use it, though, as  I don't use computer-style languages and am not coding a lot anymore anyway.
« Last Edit: February 02, 2011, 03:04:29 am by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Ashbad

  • Guest
Re: 'DE
« Reply #100 on: February 02, 2011, 03:30:42 pm »
DJ, so you think on comp would be better?  I can do that, I think.  Would actually make life slightly easier for me :P

One thing I'm thinking about it maybe getting rid of a few things like "Static" and other things like that.  I will also include simple inheritance into it, but due to some hardware restraints, going into that too far could be very painful.

Luckily, scout JUST PM'd me on his request to join the team, and since he's a good comp programmer, I could really use him :D

Of course, this will allow for better syntax:

Code: (DE) [Select]
// A sample program to show an ideal syntax

#include sys.del
#include graph.del
binary_form = PRGM
binary_name = "SAMPLE/0"

class Hello extends none
{
PUBLIC:

public method Main()
{
sys.out("Hello world!/n")
sys.outcoord(0,2,"I'm made in DE")
graph.clrbuf(Main,1)   //pretend that arg one means the normal
       //graph buffer and arg two means whether or not to update LCD
For(loop, loop = 0, loop = 3, loop++)
{
graph.sprite(Main, loop*8+8, 8, loop*8+8+Sprite)
graph.bufup()
sys.pause(2000)   //pretend it's milliseconds
}
}

PRIVATE:

private spritedata{8,8, row}   Sprite = [0011223344556677, _    // you can gues that _ allows you
1133224433554466, _     // to parse the next line as if it were
1234567812345678, _     // part of the first one
ADCF3E7CFF7F12345]
}

sys.popPC()



EDIT: this program will say 'hello world' then display sprites in a loop with a pause between each sprite's drawing time.
« Last Edit: February 02, 2011, 03:31:42 pm by Ashbad »

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: 'DE
« Reply #101 on: February 02, 2011, 03:49:15 pm »
Yeah I mean the language should be compiled to a calc language but I am not confident people will like typing such large code on-calc, especially that it will be large in size fast and they will barely be able to make a decent RPG. Most people would probably rather prefer ASM/Axe/BASIC on calc, although ASM is a bit borderline, since the code is also extremly large, but vertically. On the computer this would be perfect.

Btw does this display Hello World on the home screen or the graph screen?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Ashbad

  • Guest
Re: DE
« Reply #102 on: February 02, 2011, 03:50:16 pm »
this one was intended to be on home screen, though right now all of that's purely conceptual :)

the only fun part of making a language :P

Ashbad

  • Guest
Re: DE
« Reply #103 on: February 02, 2011, 06:33:38 pm »
I'm actually thinking of a new name for this language, any good ideas? :)

EDIT: some ideas I had WAY before DE were "Lo-C", "Braskell", "D++", and a few more lame ones :P
« Last Edit: February 02, 2011, 06:35:32 pm by Ashbad »

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: DE
« Reply #104 on: February 02, 2011, 10:01:10 pm »
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: