Jump to content




LASM - ComputerCraft's First Alternate Programming Language


35 replies to this topic

#21 GopherAtl

  • Members
  • 888 posts

Posted 18 July 2013 - 12:04 AM

View Postjesusthekiller, on 20 June 2013 - 06:45 AM, said:

Only thing that is not created in other language are logic gates.

don't be silly. Logic gates are written in transistor logic.

#22 computercraftprogrammer

  • Members
  • 122 posts
  • Location$house->Earth->MilkyWay->Universe;

Posted 18 July 2013 - 03:12 PM

Well this is really sweet, but i would have to learn another language D:, Just if C++ or Java ran on CC :3

#23 Zee

  • Members
  • 42 posts
  • LocationIndiana

Posted 18 July 2013 - 10:30 PM

This is so awesome i wrote a variable dedicated to it:
awesome = "LASM"
Someone needs to make a C++ compiler.

#24 Mrrraou

  • Members
  • 36 posts
  • LocationFrance

Posted 20 July 2013 - 04:33 AM

Awwwesome ! I'll try it when Java is installed on my Fedora :)

#25 jesusthekiller

  • Banned
  • 562 posts
  • LocationWrocław, Poland

Posted 20 July 2013 - 08:11 AM

View PostGopherAtl, on 18 July 2013 - 12:04 AM, said:

View Postjesusthekiller, on 20 June 2013 - 06:45 AM, said:

Only thing that is not created in other language are logic gates.

don't be silly. Logic gates are written in transistor logic.
Lambda Calculus FTW

#26 Yevano

  • Members
  • 376 posts
  • LocationUSA

Posted 20 July 2013 - 06:02 PM

I've done only a little research on Lambda Calculus, but I'm pretty sure it has nothing to do with digital logic. Do you mean Boolean Algebra?
Edit: Unless your joke is that the abstraction level is recursive in nature (although it's not really unless you account for digital logic simulation).

@OnTopic: I wish I had the time to work on some high-level compiler that uses this. Maybe I'll just make a mathematical expression compiler. I'm sure many people would find that useful.

#27 Pharap

  • Members
  • 816 posts
  • LocationEngland

Posted 20 July 2013 - 10:52 PM

I'll be fair, at first I was sceptical about this, but after having a quick read, you've managed to do a decent job.

#28 ElvishJerricco

  • Members
  • 803 posts

Posted 20 July 2013 - 11:19 PM

View PostPharap, on 20 July 2013 - 10:52 PM, said:

I'll be fair, at first I was sceptical about this, but after having a quick read, you've managed to do a decent job.

Thanks. In terms of proper compiler structure, the parsing phase could be a bit more powerful. But LASM's a basic enough language that I don't mind that. I am working on a compiler infrastructure for Lua though. Plan on making a Lua compiler with it =P That way I can add new language features. Plus with the infrastructure will make it much easier for other people to write compilers for other languages.

#29 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 21 July 2013 - 02:26 AM

View PostKingOfNoobs, on 19 June 2013 - 10:47 AM, said:

View PostAutoLocK, on 19 June 2013 - 03:59 AM, said:

Wow. You made a programming language INSIDE a programming language. Nice work.
That isn't something special. Lua, python and lots of other programming languages are written in other programming languages.
I meant in ComputerCraft. Not in languages outside CC.

#30 Pharap

  • Members
  • 816 posts
  • LocationEngland

Posted 21 July 2013 - 07:33 AM

View PostAutoLocK, on 21 July 2013 - 02:26 AM, said:

View PostKingOfNoobs, on 19 June 2013 - 10:47 AM, said:

View PostAutoLocK, on 19 June 2013 - 03:59 AM, said:

Wow. You made a programming language INSIDE a programming language. Nice work.
That isn't something special. Lua, python and lots of other programming languages are written in other programming languages.
I meant in ComputerCraft. Not in languages outside CC.
Technically it's a programming language assembled in an assembler written in a programming language running on a virtual machine written in a language that runs on a virtual machine which itself is written in another language.
What has (computer) science done?

#31 Zee

  • Members
  • 42 posts
  • LocationIndiana

Posted 16 September 2013 - 01:19 AM

Why was the pastebin paste removed?

#32 ElvishJerricco

  • Members
  • 803 posts

Posted 16 September 2013 - 08:27 AM

View PostZee, on 16 September 2013 - 01:19 AM, said:

Why was the pastebin paste removed?

Sorry cleaned out my paste bin and must've accidentally deleted this. Re-uploaded and posted the new link on the OP. Should work now.

#33 Pyuu

  • Members
  • 203 posts

Posted 25 December 2015 - 03:48 AM

Unfortunately, jLua breaks this entire system.
Can't even term.write.
Spoiler

When I went in to investigate the cause, I came across a wonderful surprise. When you string.dump(loadstring("term.write("Hello world"))) and then re-run the result of the dump, it'll error out with messages similar to this: http://puu.sh/m7Mk8/277377ef4b.png

You can't even compile this without breaking jLua:
Spoiler

Bytecode is officially broken with jLua / CC and can only perform primitive tasks.

There is a possible fix though!
Someone could make a new function to read Lua Bytecode as it is Supposed to be read, and that'll essentially fix those problems. I may take a look into that so I can get this oh-so-neat program to run. (Though is it just mean, or does this program have a Lua Chunk Spy vibe to it?)

Going along into the long list of bugs: (Edit 12/27/15)

Spoiler

Edited by Mayushii, 27 December 2015 - 10:13 PM.


#34 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 29 December 2015 - 07:22 AM

If you would like to interpret the bytecode it would be easier to start with my friend's lua interpreter in lua: https://github.com/ds84182/LuaVM
Id probably look into this more if i had an instance with the latest CC, if its simply dumping the bytecode with the wrong endianess i could write a simple recompiler for it

#35 LeDark Lua

  • Members
  • 369 posts
  • LocationLeLua

Posted 29 December 2015 - 11:54 AM

Hmm is this a bug or what?
.stacksize2 --Works

.stacksize 2 --works


#36 doublequestionmark

  • Members
  • 118 posts
  • LocationI honestly don't know

Posted 21 November 2016 - 09:51 PM

Oh god no... My worst nightmare: Assembler in CC.
But seriously, this is pretty freaking awesome. Think of all the languages we could build on top of this...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users