Git Product home page Git Product logo

Comments (8)

rvirding avatar rvirding commented on June 24, 2024

Half of the problem has been solved.

  • The #(unbound_func #(extend-module 1)) comes from a new form I have added which the shell didn't recognise and so tried to evaluate it as a function. extend-module allows you to add module information (exports, attributes, etc) not only in the top define-module but in different places as well and the compiler collects and combines them later.
  • The Warning: unable to translate macro 'INT_LOG' I think is because the body of the macro consists of 2 expressions (perfectly legal) and at the moment I only handle macros whose body consists of 1 expression. I will fix it.

I have restructured the lfe repo a little and you can get the latest version with improved code generation in the develop branch. The lfe-dev branch will disappear soon and there will soon be an lfe-dialyzer branch which contains some dialyzer interface modules, and the normal develop.

from lfe.

oubiwann avatar oubiwann commented on June 24, 2024

Awesome, Robert -- thanks!

from lfe.

yurrriq avatar yurrriq commented on June 24, 2024

Fixed with logjam, no?

from lfe.

oubiwann avatar oubiwann commented on June 24, 2024

@yurrriq Well, logjam offers what is essentially a work-around...

It would be nice if LFE was capable of addressing the two bullet points @rvirding outlined above (and I think it does now).

Maybe the other half of the problem to which Robert referred is the Erlang parse transforms (used by lager) which LFE can't do anything about?

from lfe.

yurrriq avatar yurrriq commented on June 24, 2024

Ah, right... I wonder how we might support parse transforms. I suppose we might have to transform the parse transforms first. 🙃

from lfe.

oubiwann avatar oubiwann commented on June 24, 2024

I just checked, and it's still a problem:

> (include-file "include/lager.hrl")
1: Warning: unable to translate macro 'INT_LOG'
LEVEL2NUM

from lfe.

yurrriq avatar yurrriq commented on June 24, 2024

😞 Thanks for checking.

from lfe.

oubiwann avatar oubiwann commented on June 24, 2024

The logjam work-around uses older lager for logjam + older Erlang versions.

For newer versions of Erlang that support the new logger module, logjam just uses that.

Closing.

from lfe.

Related Issues (20)

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.