Comments (8)
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 topdefine-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.
Awesome, Robert -- thanks!
from lfe.
Fixed with logjam, no?
from lfe.
@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.
Ah, right... I wonder how we might support parse transforms. I suppose we might have to transform the parse transforms first.
from lfe.
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.
from lfe.
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)
- Update docs for 2.x
- Compilation error when binary pattern matching with size variable HOT 6
- Dialyzer warning with custom behaviours HOT 2
- Internals for maps are inconsistent, depending on how they're constructed. HOT 1
- Is there any advantage to installing lfe via Make or rebar? HOT 3
- Multi-variable binary generator not working with list/binary comprehensions HOT 11
- Window switching make junk appear in Emacs LFE mode buffer HOT 3
- == macro expansion is incorrect HOT 1
- Record accessors in guards don't work HOT 3
- Feature Request: Github Discussions HOT 1
- Run tests without rebar3 HOT 4
- Add make targets for testing HOT 1
- README: Run tests with Makefile HOT 3
- Improve workflow for publishing LFE to hex.pm
- Odd recursion bug with rebar3_lfe as a plugin dep HOT 1
- v2.1.1 tagged but not marked as latest HOT 5
- lc/2 not defined HOT 8
- ets-ms is attempting to match 'undefined' when using match-record with unspecified slots HOT 5
- Error expanding (seemingly valid) qlc macro HOT 12
- Extend documentation for patterns HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lfe.