It is currently Thu Jun 20, 2013 5:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Anonymus, a New Optimal Language
PostPosted: Wed Mar 28, 2012 9:38 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Jul 09, 2011 7:57 am
Posts: 276
Anonymus is language made by a 16 years old guy. Like purebasic, the code is converted to a asm file wich is compiled with fasm. The compiler is written with #C and is open source (GPLv3)
you should keep a eye on this project.

http://www.codeproject.com/Articles/192 ... l-language

_________________
http://www.mediafire.com/pbstuff


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Wed Mar 28, 2012 11:32 pm 
Offline
User
User

Joined: Mon Jul 09, 2007 4:47 pm
Posts: 67
Location: Right Here
xorc1zt wrote:
you should keep a eye on this project.


Thanks, I will.

I hope the author keeps his eye on it too :)


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Wed Mar 28, 2012 11:57 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Mar 24, 2004 11:04 pm
Posts: 761
Location: Seattle, USA
Impressive, especially for a 16yr old ... but does the world need another OOP language?
http://www-cs-students.stanford.edu/~blynn//c/ch02.html
http://harmful.cat-v.org/software/OO_programming/

_________________
Win7 x64, PB x86


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 12:24 am 
Offline
User
User

Joined: Mon Jul 09, 2007 4:47 pm
Posts: 67
Location: Right Here
I see a war coming :lol:


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 1:00 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Jul 09, 2011 7:57 am
Posts: 276
USCode wrote:
Impressive, especially for a 16yr old ... but does the world need another OOP language?
http://www-cs-students.stanford.edu/~blynn//c/ch02.html
http://harmful.cat-v.org/software/OO_programming/


unlike java or c#, this language doesn't force you to use class. you can code without OOP.

juror wrote:
I see a war coming :lol:


people should try a real OOP language like smalltalk and not the crappy java or the insane c++.

_________________
http://www.mediafire.com/pbstuff


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 1:12 am 
Offline
User
User

Joined: Mon Jul 09, 2007 4:47 pm
Posts: 67
Location: Right Here
xorc1zt wrote:
people should try a real OOP language like smalltalk and not the crappy java or the insane c++.

+1
I'm mostly a procedural guy myself, but I did love smalltalk. :)


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 2:57 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 09, 2003 10:08 pm
Posts: 635
Location: Nottingham
If anyone is interested, below is a direct translation of the first Anonymus sample program 'Squares' to PureBasic:
Code:
; Squares 2.0
; Draws fading squares. When the mouse is over the square, it appears.
; Press ESC to end the program
; Translated from the Anonymus programming language
; www.codeproject.com/Articles/192825/Anonymus-the-optimal-language

EnableExplicit

;- Constants
#SquareSize = 32
#Width = 24
#Height = 20
#winMain = 0
;}

;- Globals
Global Dim Arry.d(#Width, #Height)
;}

Procedure.d Decrease(Val.d)
If Val<0.02: ProcedureReturn 0.0: Else: ProcedureReturn Val-0.02: EndIf
EndProcedure

Procedure.b InArea(x, y, w, h)
Protected mx, my
mx = WindowMouseX(#winMain): my = WindowMouseY(#winMain)
If x<=mx And mx<x+w And y<=my And my<y+h: ProcedureReturn #True: Else: ProcedureReturn #False: EndIf
EndProcedure

Procedure Update()
; Updates the squares and draws them
; If the mouse is on the square, it draws a white square and
; sets the fading rate to 1 which means it's fully visible,
; otherwise it draws with a color based on square's position
Protected x, y, Value.d, XPos, YPos
Protected Colour, Red, Green, Blue
For x = 0 To #Width
  For y = 0 To #Height
    Value = Arry(x, y)
    XPos = x*#SquareSize
    YPos = y*#SquareSize
    If InArea(XPos, YPos, #SquareSize, #SquareSize)
      Value = 1.0
      Colour = #White
      StartDrawing(ScreenOutput())
        Box(XPos, Ypos, #SquareSize, #SquareSize, Colour)
      StopDrawing()
    ElseIf Value>0.0
      Colour = 255*Value
      Red = (x*1.0/#Width)*Colour
      Green = (1-(y*1.0/#Height))*Colour
      Blue = (y*1.0/#Height)*Colour
      Colour = RGB(Red, Green, Blue)
      StartDrawing(ScreenOutput())
        Box(XPos, Ypos, #SquareSize, #SquareSize, Colour)
      StopDrawing()
    EndIf
    Arry(x,y) = Decrease(Value)
  Next y
Next x
EndProcedure

Procedure Reset()
; Zeroise the array
Protected x, y
For x = 0 To #Width
  For y = 0 To #Height
    Arry(x,y) = 0.0
  Next y
Next x
EndProcedure

; Main program
Reset() ; Unnecessary in PureBasic
; The next 3 lines translate 'Graphics SquareSize * Width, SquareSize * Height' from the Anonymus version
InitSprite()
OpenWindow(#winMain, 0, 0, #SquareSize*#Width, #SquareSize*#Height, "SQUARES", #PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(#winMain), 0, 0, #SquareSize*#Width, #SquareSize*#Height, 0,0,0)
While Not(GetAsyncKeyState_(#VK_ESCAPE) & $8000) ; Until ESC is pressed
  ClearScreen(#Black) ; Unnecessary in PureBasic
  Update()
  FlipBuffers()
  While WindowEvent(): Wend ; Mainly to ignore mouse clicks
Wend

_________________
Anthony Jordan


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 6:04 am 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 8:51 am
Posts: 1300
Location: Germany: 49º 45' 21.96" N 10º 38' 4.04" E
akj wrote:
If anyone is interested, below is a direct translation of the first Anonymus sample program 'Squares' to PureBasic:

And what is the fazit?

_________________
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
http://chipmunk4purebasic.freeforums.org/index.php


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 10:05 am 
Offline
Moderator
Moderator
User avatar

Joined: Sat Apr 26, 2003 1:11 am
Posts: 1311
could anyone of you download the source ?

_________________
SPAMINATOR NR.1


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 11:08 am 
Offline
Addict
Addict

Joined: Fri Apr 25, 2003 11:10 pm
Posts: 854
Rings wrote:
could anyone of you download the source ?

you need to be registered and loged in to download.


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 2:49 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Feb 17, 2010 12:00 am
Posts: 1008
Location: Anderson Island, WA
xorc1zt wrote:
people should try a real OOP language like smalltalk and not the crappy java or the insane c++.


I made a living coding in visual foxpro -- true oop; fast. I had used it for non-database apps too; just because I could use oop or not; mix/match -- use what was appropriate for a given situation... Too bad MS killed it... it never gained 'main stream' acceptance outside of the database market.


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Thu Mar 29, 2012 8:39 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Aug 15, 2009 6:59 pm
Posts: 1029
This guy is definitely a true talent.
His compiler even uses SSE and the language has a nice syntax as far as i can see.

This 16 year old guy has a bright future.


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Fri Mar 30, 2012 6:36 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Jul 09, 2011 7:57 am
Posts: 276
mirrors:

http://dl.dropbox.com/u/28475953/Anonymus.zip
http://www.mediafire.com/?2opyb28z6xh35k2
http://www.sendspace.com/file/tjjoje

_________________
http://www.mediafire.com/pbstuff


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Sun Apr 01, 2012 3:21 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 13, 2004 2:37 pm
Posts: 130
Location: Ottawa, Canada
jassing wrote:
xorc1zt wrote:
people should try a real OOP language like smalltalk and not the crappy java or the insane c++.


I made a living coding in visual foxpro -- true oop; fast. I had used it for non-database apps too; just because I could use oop or not; mix/match -- use what was appropriate for a given situation... Too bad MS killed it... it never gained 'main stream' acceptance outside of the database market.

Sorry did I just hear you say Visual FoxPro was true OOP? True version 9 had an OOP/.NET addon, but I hardly think you can call it tru OOP.

Colin

_________________
Colin


Top
 Profile  
 
 Post subject: Re: Anonymus, a New Optimal Language
PostPosted: Mon Apr 02, 2012 2:02 am 
Offline
Addict
Addict

Joined: Sun Dec 12, 2010 12:36 am
Posts: 1309
Location: Waterloo, WI - USA
Visual Foxpro used both OOP/Procedural paradigms

I would expect a "true" language to be OOP only, from its inception.

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye