Open Collective
Open Collective
Loading
This Month in Mun - January 2020
Published on February 24, 2020 by Remco

The dawning of a new year is often marked by reflection and the conception of resolutions. We felt that the goals we had previously set for Mun v0.2 were still true, so with the help of our community we pushed forward with our plans.

Community

The first PR of the year was made by a new community contributor. Welcome! Their PR was quickly followed by some PRs from a recurring contributor. These are some examples of good first issues that we hope will invite new contributors into our community, while helping improve the quality of life for our users and developers:

  • refactor: renamed public to pub and removed some un-used functions [PR#26]
  • test: add test to check if compiler output strings is valid utf8 [PR#67]
  • refactor: replace CStr::from_ptr(ptr).to_str() with from_utf8_unchecked [PR#66]
  • feat: compiled libraries have munlib extension instead of dll/so [PR#75]
  • fix(hotreloading): no more ‘successfully compiled’ message if code has errors [PR#78]
  • fix(diagnostic): move console cursor to new line after error log [PR#79]
  • test: add unit tests for LineIndex::line_str [PR#86]

A community member independently wrote a VSCode plugin for Mun syntax highlighting (source), for which we are very grateful!

The decision to call hot reloading-enabled libraries *.munlib is another great example of our community’s involvement. It was coined by one of our community members on our Discord and consequently received most upvotes.

If you like our vision of a hot reloading-powered world and would like to be a part of our journey, then join us on Discord, follow us on Twitter, or watch us on Github.

v0.2 progress

In december we had already implemented language support for data structures, but [PR#64] was not merged until earlier this month. That allowed our focus to shift to integrating structs with the Mun runtime, support for external (non-Mun) functions, Mun-Rust interoperability, and Mun-C interoperability:

  • feat: use extern functions in dispatch table [PR#90]
  • feat: add marshalling of structs [PR#83]
  • refactor: dynamically include struct information in type information [PR#84]
  • feat: add struct as marshallable field type [PR#87]
  • feat(runtime_capi): add functions for interoperability [PR#88]

Some bug fixes and miscellaneous quality of life improvements were also merged:

  • feat: add manual generation of abi, runtime-capi [PR#69]
  • feat: better error message printing when signature is missing [PR#80]
  • fix: struct initialization fix for non constants [PR#81]
  • fix(struct): prevent erroneous caching of struct types [PR#89]

Roadmap

Next up on our TODO list are language support for external functions, wrapping up Mun-C interoperability, hot reloading of struct data, and garbage collection.