Live data from Hacker News

Luna Programming Language – a small, elegant VM implemented in C

github.com

11–20 of 34 posts

Re: Luna Programming Language – a small, elegant VM implemented in C

#11

Another language that's basically Python 1.5...

I never dealt with Python until the 2.x series, but hasn't Python always been dynamically typed?

Also, the coroutine business seems a significant difference, as Python's concurrency model has always (to my knowledge) been limited by the GIL.

Re: Luna Programming Language – a small, elegant VM implemented in C

#12
post #8
post #6

Luna looked great a year ago, since its syntax it ever-so-close to ideal. If it has momentum now, I'd invest a lot of time writing bindings to popular C libraries, an event loop, and a web framework. But it's not functional yet, or probably ever unless someone adopts it. I'm a fan of tj's other work though. I don't see how he can pump out so many quality npm packages and the like.

http://crystal-lang.org/ might be a good fit for you then. Or http://nim-lang.org/ if you're flexible on syntax.

Those languages are too big, so I might as well use Ruby or the Node environment when I need a full-featured language with lots of libraries. I'd like something dead simple that I can statically link into my C programs, with a syntax I can completely explain to someone in 15 minutes. I currently use duktape/Coffeescript or Lua/Moonscript for that, since hosting it in C is about ~5 lines of boilerplate code.

Edit: Does anyone know of any other languages similar to the syntax of Coffeescript and Moonscript?

Re: Luna Programming Language – a small, elegant VM implemented in C

#14
post #12
post #8

Earlier quoted context omitted.

http://crystal-lang.org/ might be a good fit for you then. Or http://nim-lang.org/ if you're flexible on syntax.

Those languages are too big, so I might as well use Ruby or the Node environment when I need a full-featured language with lots of libraries. I'd like something dead simple that I can statically link into my C programs, with a syntax I can completely explain to someone in 15 minutes. I currently use duktape/Coffeescript or Lua/Moonscript for that, since hosting it in C is about ~5 lines of boilerplate code. Edit: Doe…

http://elixir-lang.org/ looks quite similar, although it is functional (and backed by the Erlang VM BEAM).

Re: Luna Programming Language – a small, elegant VM implemented in C

#15

Author here. Not sure why it was posted, but this (really old) project is basically defunct. I gave github.com/luna/* to the people creating the visual Luna language that was on HN recently. Moving it to my account must have caught someone's eye. Anyway it was just a toy project that I never had enough time/motivation to complete. I was inspired by the size of Lua's VM, but deterred by its obscurity (and lack of inli…

The code looks nice and straightforward, and kudos on actually producing a typed language. IMO, there's too little of that these days.

Too bad you didn't get around to implementing context threading, because I would have liked to see a clean and portable implementation, particularly if you had also planned to support TCO. Is the design you had planned documented anywhere?

Re: Luna Programming Language – a small, elegant VM implemented in C

#16

Author here. Not sure why it was posted, but this (really old) project is basically defunct. I gave github.com/luna/* to the people creating the visual Luna language that was on HN recently. Moving it to my account must have caught someone's eye. Anyway it was just a toy project that I never had enough time/motivation to complete. I was inspired by the size of Lua's VM, but deterred by its obscurity (and lack of inli…

It's very similar to _why's potion, for which I'm the maintainer now. I added lot's of internal documentation there, but haven't got to add type support (easy, but lof of work) and multi-threading (not easy with this GC). coros, exceptions however are there.

Re: Luna Programming Language – a small, elegant VM implemented in C

#18
post #3

It doesn't look like this project has gotten past parsing, since all it appears to do is dump an AST.

It has some opcodes implemented, but at a quick glance I found no signs of any memory management and no way to actually execute opcodes.

Re: Luna Programming Language – a small, elegant VM implemented in C

#19
post #12
post #8

Earlier quoted context omitted.

http://crystal-lang.org/ might be a good fit for you then. Or http://nim-lang.org/ if you're flexible on syntax.

Those languages are too big, so I might as well use Ruby or the Node environment when I need a full-featured language with lots of libraries. I'd like something dead simple that I can statically link into my C programs, with a syntax I can completely explain to someone in 15 minutes. I currently use duktape/Coffeescript or Lua/Moonscript for that, since hosting it in C is about ~5 lines of boilerplate code. Edit: Doe…

I am working on a language with goals similar to this which is much farther along though still not quite ready for practical use. For example, there it does not currently have a C API. It is written in Rust so it shouldn't be to difficult to provide once I feel it is usable.

https://github.com/Marwes/embed_lang

Re: Luna Programming Language – a small, elegant VM implemented in C

#20
post #6

Luna looked great a year ago, since its syntax it ever-so-close to ideal. If it has momentum now, I'd invest a lot of time writing bindings to popular C libraries, an event loop, and a web framework. But it's not functional yet, or probably ever unless someone adopts it. I'm a fan of tj's other work though. I don't see how he can pump out so many quality npm packages and the like.

What is the problem with Lua? Just syntax?
Post reply on HN