Live data from Hacker News

Lemon – An embeddable, lightweight programming language in ANSI C

github.com

11–20 of 71 posts

Re: Lemon – An embeddable, lightweight programming language in ANSI C

#11
post #6

Went to the doc directory and got this: TODO: Add Doc Could developers please stop doing that? These 'agile development' and 'release early and often' mantras have really gone overboard. Why would anybody use a programming language with zero documentation for anything? Are we supposed to guess the language and its features from a single five-line hello world program?

> Why would anybody use a programming language with zero documentation for anything? Are we supposed to guess the language and its features from a single five-line hello world program? As someone who has done a handful of compiler/interpreter projects: I don't think that they expect anyone at this point to be using that language. They're targetting it at language geeks like myself (who go and dig around the source, w…

Lua.org's Lua is a VM, but a register based one. Perl 6 is another odd case of register based VM

Re: Lemon – An embeddable, lightweight programming language in ANSI C

#13
Not too much documentation nor examples there, right? However, the two test files and the documentation website immediately made me think about Python and Nim at the first glance. I might give it a try as an embeddable language, it looks promising.

Re: Lemon – An embeddable, lightweight programming language in ANSI C

#15

Went to the doc directory and got this: TODO: Add Doc Could developers please stop doing that? These 'agile development' and 'release early and often' mantras have really gone overboard. Why would anybody use a programming language with zero documentation for anything? Are we supposed to guess the language and its features from a single five-line hello world program?

> Why would anybody use a programming language with zero documentation for anything?

Why would you write documentation if your language implementation is still rapidly evolving?

Re: Lemon – An embeddable, lightweight programming language in ANSI C

#16

What problem does it solve?

My guess is a lighter weight (than Lua, Python, JS) embed-able language. A quick build creates a .so that is bigger than lua as reported below, but that is a naive and probably invalid comparison metric.

    make DEBUG=0 STATIC=0 USE_MALLOC=0 MODULE_OS=1 MODULE_SOCKET=1

    ls -lh liblemon.so
    -rwxrwxr-x 1 guest guest 271K Oct 25 08:21 liblemon.so

"Lua - Smaller footprint than Python. e.g. Look at the size of python22.dll, 824kb. A basic Lua engine, including parser/compiler/interpreter, but excluding standard libraries, weighs in at under 100kb."

Ref: http://lua-users.org/wiki/LuaVersusPython

Re: Lemon – An embeddable, lightweight programming language in ANSI C

#17
post #10

What problem does it solve?

Looks like an attempt of a JS programmer to reinvent a lighter weight JS with aim at system programming. If it is yet again tied to a complex, feature rich VM (a stack based one), then he went the wrong way in achieving his goal. Direct interpretation should've been the way forward for such task.

A stack based VM or direct interpretation have no real difference with regard to what you mention. Please elaborate further.

Re: Lemon – An embeddable, lightweight programming language in ANSI C

#18
post #6

Went to the doc directory and got this: TODO: Add Doc Could developers please stop doing that? These 'agile development' and 'release early and often' mantras have really gone overboard. Why would anybody use a programming language with zero documentation for anything? Are we supposed to guess the language and its features from a single five-line hello world program?

> Why would anybody use a programming language with zero documentation for anything? Are we supposed to guess the language and its features from a single five-line hello world program? As someone who has done a handful of compiler/interpreter projects: I don't think that they expect anyone at this point to be using that language. They're targetting it at language geeks like myself (who go and dig around the source, w…

It is dynamic, curly braced, garbage collected, coroutines. Some really squeaky clean C code too. One can immediately tell this is a great code base to read and learn from, at the very least.

Re: Lemon – An embeddable, lightweight programming language in ANSI C

#19
post #10

What problem does it solve?

Looks like an attempt of a JS programmer to reinvent a lighter weight JS with aim at system programming. If it is yet again tied to a complex, feature rich VM (a stack based one), then he went the wrong way in achieving his goal. Direct interpretation should've been the way forward for such task.

You are making very unnecessary comments..
Post reply on HN