non / imp Goto Github PK
View Code? Open in Web Editor NEWmacro for summoning implicit values
License: MIT License
macro for summoning implicit values
License: MIT License
This very small library has all the hallmarks of one that will be used by many, many libraries. So please can we have a Scala.js version sooner rather than later, please?
Hi there,
I just found out about this project and I find it very interesting; mostly because I didn't even know there was a runtime cost for using implicitly
!
Do you have any benchmarks that you can share comparing imp
with implicitly
?
Thanks!
Currently the tests assume that they are run from the top-level of the repo.
However, it seems like during the release
command the tests run with a different working directory (which means they fail). For now I have disabled the tests during releasing, but it would be better to figure out how to make it work correctly.
This looks like an oversight, since:
While adding scala.js support, I was forced to remove the src/main/scala_2.10
and src/main/scala_2.11
directories. Previously we used:
unmanagedSourceDirectories in Compile +=
(sourceDirectory in Compile).value / s"scala_${scalaBinaryVersion.value}"
This didn't work with scala.js, so I was forced to write macros that worked in both 2.10 and 2.11. However, this makes the macros under 2.11 slightly less powerful.
Old code (more powerful):
def summon[Ev](c: Context)(ev: c.Tree): c.Tree = ev
New code (2.10 compatible):
def summon[Ev](c: Context)(ev: c.Expr[Ev]): c.Expr[Ev] = ev
Stephen Compall suggests that instead of returning Ev
that the imp
method should return Ev with ev.type
to avoid losing refinements.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.