Qbasicnews.com

QbasicNews.Com => Challenges => Topic started by: zwillis091 on July 07, 2006, 03:19:37 AM



Title: New Language?
Post by: zwillis091 on July 07, 2006, 03:19:37 AM
Can someone compe up with with a new programming language, unlike one that has ever been made before? Not in qbasic though. Not using runtime or libraries. Make one with assembly , make one that takes each action in the programming language and translates it to assembley when it compiles it. Only, one that can be run on 32 bit windows, or just off of boot on a floppy of cd (if the perticular program is designed for that use). I am not in this challenge.  It's something I just want to see if it can be done.


Title: New Language?
Post by: voodooattack on July 07, 2006, 04:18:02 AM
http://www.freebasic.net  :roll:  :winkwink:


Title: New Language?
Post by: Anonymous on July 07, 2006, 04:50:10 AM
haha yeah, if you compile a program with -r, you can see the asm output.

FB code:

Code:
Print "Hello world! I can count to 10, watch!"
Print
For a = 1 To 10
  Print a
 
Next
Print
Print "See? I'm a genius!"



Outputted ASM:

Code:
.intel_syntax noprefix

#fbdemo.bas' compilation started at 02:47:25 (FreeBASIC v0.17b)

.section .text
.balign 16

.globl _main
_main:
push ebp
mov ebp, esp
and esp, 0xFFFFFFF0
sub esp, 8
mov dword ptr [ebp-4], 0
mov dword ptr [ebp-8], 0
call ___main
push dword ptr [ebp+12]
push dword ptr [ebp+8]
call _fb_Init@8
.Lt_0001:
push 1
push 38
push offset _Lt_0003
call _fb_StrAllocTempDescZEx@8
push eax
push 0
call _fb_PrintString@12
push 1
push 0
call _fb_PrintVoid@8
mov dword ptr [ebp-8], 1
.Lt_0007:
push 1
push dword ptr [ebp-8]
push 0
call _fb_PrintInt@12
.Lt_0005:
inc dword ptr [ebp-8]
.Lt_0004:
cmp dword ptr [ebp-8], 10
jle .Lt_0007
.Lt_0006:
push 1
push 0
call _fb_PrintVoid@8
push 1
push 18
push offset _Lt_0008
call _fb_StrAllocTempDescZEx@8
push eax
push 0
call _fb_PrintString@12
.Lt_0002:
push 0
call _fb_End@4
mov eax, dword ptr [ebp-4]
mov esp, ebp
pop ebp
ret
#fbdemo.bas' compilation took 1.906669568469965e-003 secs

.section .data
.balign 4
_Lt_0003: .ascii "Hello world! I can count to 10, watch!\0"
.balign 4
_Lt_0008: .ascii "See? I'm a genius!\0"


Title: New Language?
Post by: na_th_an on July 07, 2006, 06:36:47 AM
Want a wicked programming language? Check Shakespeare Programming Language:

http://shakespearelang.sourceforge.net/report/shakespeare/shakespeare.html


Title: New Language?
Post by: Deleter on July 07, 2006, 07:25:39 AM
:o


Title: New Language?
Post by: na_th_an on July 07, 2006, 08:15:37 AM
It's not the weirdest, but it's rather funny :lol:


Title: New Language?
Post by: TheAdventMaster on July 07, 2006, 11:28:51 AM
Holy OMG that's crazy.


Title: New Language?
Post by: Anonymous on July 07, 2006, 03:56:53 PM
HAHA I love it!


Title: New Language?
Post by: Zap on July 07, 2006, 04:43:24 PM
Made by Swedes ofcourse  :roll:








 :b


Title: New Language?
Post by: Dr_Davenstein on July 28, 2006, 03:31:43 AM
I remember staring at that before, and feeling like an idiot because I didn't get the joke.  I thought they were just trying to make it as hard as possible to hack. :lol:


Title: New Language?
Post by: torstum on July 30, 2006, 03:00:38 PM
There's a language called FORTH that can recompile itself, boot from a disk, is a full-fleged OS, etc...

 You can redefine almost the whole language, AFAIK.


Title: New Language?
Post by: Skyler on August 13, 2006, 10:48:15 PM
I saw a wierd language at www.thefreecountry.com in which the entire vocabulary was swear words.


Title: New Language?
Post by: thegrogen on August 20, 2006, 12:47:59 AM
Brainf*ck is pretty weird.


Title: New Language?
Post by: Blitz on December 05, 2006, 12:32:02 PM
Try prolog, nothing like it.
Haskell is also a cool language once you know it.