Skip to content

Releases: CavefulGames/darklua

v3.1.0

09 Nov 08:41
Compare
Choose a tag to compare

Published to crates.io (from v3.0.0)

Change: RuntimeIdentifier is now public.

Included rules: remove_continue, remove_generalized_iteration, remove_redeclared_keys
Already merged rules: remove_if_expression

v2.0.0

26 Oct 09:08
Compare
Choose a tag to compare

PR'ed rules

  • remove-if-expression

Demo release v2.0.0

Implemented/merged rules

  • remove-continue
  • remove-redeclared-keys
  • remove-generalized-iteration

Changes

  • Update to latest upstream (darklua v0.14.0)
  • Use new full_moon version v1.0.0
  • Remove getmetatable config in remove-generalized-iteration rule

v1.2.0

30 Sep 14:31
Compare
Choose a tag to compare
  • Add getmetatable argument in remove_generalized_rule rule.

v1.1.0

28 Sep 01:58
Compare
Choose a tag to compare
  • Remove inject_libraries rule due to structural problems

v1.0.1

27 Sep 13:36
Compare
Choose a tag to compare
  • Fix wrong required rule property path in rule inject_libraries

v1.0.0

27 Sep 13:09
Compare
Choose a tag to compare

The v1.0.0 release is a major release that aims to make luau -> lua at least as viable as possible.

  • Add remove_redeclared_keys rule
  • Add inject_libraries rule
  • Add remove_generalized_iteration rule
  • Succeed cargo test

Try this .darklua.json5 configuration!

{
	rules: [
		"remove_interpolated_string",
		"remove_compound_assignment",
		"remove_types",
		"remove_if_expression",
		"remove_continue",
		"remove_redeclared_keys",
		"remove_generalized_iteration"
	]
}

This demo release is only targeted for windows_x86_64.

v0.3.0

05 Sep 08:41
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

A demo with remove-continue update

  • Add optimizations with remove-continue based on continue and break statements count
  • PR'ed into darklua

v0.2.0

04 Sep 08:30
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release

Just a demo but updated (Now remove_continue rule supports GenericFor, Repeat and While)

BTW, To transpile(no no ofc it's not perfect yet, just a simple example usage) Luau to Lua, try this .darklua.json5.

{
	rules: [
		"remove_if_expression",
		"remove_continue",
		"remove_comments", // optimization
                "remove_compound_assignment",
		"remove_interpolated_string",
		"remove_types",
                "remove_spaces" // optimization,
                "remove_function_call_parens" // optimization
	]
}

TO-DOs

  • minifying remove_continue (use __DARKLUA_REMOVE_CONTINUE_continue{hash} if there are more continue statements than break statements) related to #202
  • Implement remove_generalized_iteration rule (need more idea to go ahead against tons of limitations!) related to #203
  • Implement remove_duplicated_keys rule (due to ({1, [1] = "a"})[1] is "a" in Luau while 1 in Lua)

v0.1.0

03 Sep 16:30
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Just a quick demo (for x86_64 windows only)