Author Topic: The dawn of a new OOPL  (Read 25884 times)

0 Members and 1 Guest are viewing this topic.

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #30 on: August 17, 2011, 11:11:56 am »
Add Darl181s to this language!!!
Spoiler For what I'm talking about:
Add Gotos. What did you think I was talking about? <_<
Hmm... Why?

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: The dawn of a new OOPL
« Reply #31 on: August 17, 2011, 01:07:33 pm »
Well...some people (me) could use gotos (which are nice). Sometimes a while or for loop just doesn't cut it...

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #32 on: August 17, 2011, 01:53:00 pm »
Sometimes a while or for loop just doesn't cut it...
What about a subroutine? Or function?

Spoiler For settling the debate about what I mean about that -_-:
Here's the definitions in the AST:
Code: [Select]
        //Method: same as a function, it just doesn't return anything
        //[modifiers] sub [name] ([arguments]) [[ {{ code }} ]]
        public class Method : Stmt {

            public Stmt[] Modifiers;
            public string Name;
            public Stmt[] Args;
            public Stmt[] Code;
       
        }

        //Function
        //[modifiers] [return type] [name] ([arguments]) [[ {{ code }} ]]
        public class Function : Stmt {

            public Stmt[] Modifiers;
            public Type Return;
            public string Name;
            public Stmt[] Args;
            public Stmt[] Code;

        }

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: The dawn of a new OOPL
« Reply #33 on: August 17, 2011, 02:14:15 pm »
I have an idea for a loop.

What about a loop, that can spawn other loops running in their own threads like:

Code: [Select]

parent While (x)
[[
{{code}}
]]

child for()
[[
{{more code}}
]]

parent and child runs at the same time and parent will wait for child to end if it reaches the end first.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: The dawn of a new OOPL
« Reply #34 on: August 17, 2011, 03:14:12 pm »
That sounds awesome :D

I can think of many different applications for it!!!


...


...
ok maybe not right now...but later!

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #35 on: August 17, 2011, 03:40:01 pm »
So like... Nested loops that aren't nested?

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: The dawn of a new OOPL
« Reply #36 on: August 17, 2011, 03:54:40 pm »
How about loops that can manipulate or wait for each other regardless of where they are? Maybe have them have a name as well as a type and arguments...possibly make them public or private...or even allow them to be treated entirely like objects?

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: The dawn of a new OOPL
« Reply #37 on: August 17, 2011, 03:55:54 pm »
Almost. Basically two or more loops that run at the same time using multithreading.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: The dawn of a new OOPL
« Reply #38 on: August 17, 2011, 03:58:03 pm »
I like that idea. They could be public to all threads or private and could be referenced as [thread id].[loop name]

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #39 on: August 17, 2011, 04:01:49 pm »
Lemme take another shot at it... A type of thread that is basically a group of loops that can manipulate/"talk to" each other?

EDIT: Broseph, I'd have to make a class inside the compiler, but I might be able to treat loops like objects.
« Last Edit: August 17, 2011, 04:06:28 pm by BlakPilar »

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: The dawn of a new OOPL
« Reply #40 on: August 17, 2011, 04:03:59 pm »
Edit: derp I didn't read that right

Yeah basically ;D
« Last Edit: August 17, 2011, 04:05:11 pm by Broseph Radson »

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #41 on: August 17, 2011, 04:11:33 pm »
Hmm... I'd have to check about the "manipu-thread" (catchy, eh? ;)) thing and the loops-as-objects thing. I have an idea for the object one, but I'd have to wait until the compiler gets more complete to test it out :/

Offline Broseph Radson

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 295
  • Rating: +20/-1
  • Its 0x1A4 somewhere
    • View Profile
Re: The dawn of a new OOPL
« Reply #42 on: August 17, 2011, 04:12:23 pm »
Good luck!

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: The dawn of a new OOPL
« Reply #43 on: August 17, 2011, 06:11:41 pm »
we definitely need Synchronization keywords.
Code: [Select]
sync(object)
[[
{{code}}
]]
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 BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: The dawn of a new OOPL
« Reply #44 on: August 17, 2011, 06:52:41 pm »
What would synchronization do?