question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’d love to use Moo for a library I’m building, but it needs to be extremely lightweight (even more than 4KB minzipped).

Is there a possibility of adding an option to precompile, a step which would basically moo.compile a grammar and then output a generated, more lightweight JS file that could be tweaked and customized?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nebrelbugcommented, Sep 26, 2019

@nathan thanks!

I seem to remember once running a benchmark that showed that str[0] actually ended up being faster than str.charCodeAt(0). Is there a reason why charCodeAt was chosen?

0reactions
tjvrcommented, Sep 29, 2019

Is there a reason why charCodeAt was chosen?

Benchmarks at the time showed that it was slightly faster. It’s certainly possible that’s changed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

precompilation - Wiktionary
NounEdit. precompilation (countable and uncountable, plural precompilations). The act or process of precompiling.
Read more >
Tutorial on precompilation - The Julia Programming Language
This particular installment covers background material–some key underlying concepts and structures–that will hopefully be useful in later ...
Read more >
ASP.NET Precompilation Overview - Microsoft Learn
The precompilation process performs actions on various types of files in an ASP.NET Web application. Files are treated differently depending on ...
Read more >
Precompilation Process - DB2 - Mainframestechhelp
The compilation process of application language(COBOL, PL/I, etc.,) and DB2 (SQL queries) is called as Precompilation Process.
Read more >
Precompilation of embedded SQL applications with the ... - IBM
After you create the source files for an embedded SQL application, you must precompile each host language file containing SQL statements with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found