Giter Club home page Giter Club logo

ljs's People

Contributors

mingodad avatar tst2005 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ljs's Issues

Request ljs2lua

I'd like to be able to code using ljs and then run it in an interpreted environment that uses standard lua 5.1 code (eg love2d/lovr).

Can you make a reverse converter?

lopcodes change error

i want to modify change
OP_MOVE
OP_LOADK
order, prevent hackers (Luadec)

code:

local CallCount = 0;
function Test2()
{
if (CallCount > 10) //error Always True
{
print("Compare_:"..CallCount);
}else
{
print("Count:"..CallCount);
}
CallCount++;
}

Occurs (CallCount > 10) equals TRUE

IF and format error

lua.set_function("TestNumber", =->lua_Number {return (lua_Number)0; });

code:
function Test()
{
local ss = TestNumber(); //《=== ss = 0
if (ss)
{

	print(string.format("A-number:0x%08X",ss));   //《=== Enter ???????????
}else
{
	print(string.format("B-number:0x%08X",ss));
}

}
Test()

Publish docs under Github Pages

Docs are in HTML format, so please go to the repository Settings and enable serving GitHub Pages from the /docs folder:

github pages

Thanks!

cool project :D

my main 3 issues with lua are:

  • braceless language. you fixed this already :D congrats
  • untyped language. i've seen you can add anotations in types, but compiler seems to be ignoring annotations. what's the purpose of them? like documenting arguments and return types only to end-user? do you plan to add some kind of type checking eventually?
  • 1-indexing. i've read issue #3 already. good luck with that! :D

keep up the good work

Meta language ?

Hello,

I wonder what is your goal for the ljs project.

  • for the fun / experimental ?
  • for production ?

IMHO, the Lua syntax is not really sexy at all but I'm using it without problem.
I'm still looking about alternative, like moonscript, etc.

I thought (like your project) to using different language syntaxes to execute on the Lua VM (in fact in the LuaJIT one).

There is some case where the usual way to code is complicated to make abstraction.

For sample,
How to you deal with the first array's index is 1 in Lua VS 0 in JS ?

local cars = {"Saab", "Volvo", "BMW"}
print(cars[1]=="Saab")

VS

var cars = new Array("Saab", "Volvo", "BMW");
print(vars[0]=="Saab")

Regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.