Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by der_Fidelis on Saturday May 04, 2019 @03:14AM
(#19824960)
At that point, why not just use another jvm language with these features like Kotlin?
[ Parent
| on HN ]
Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by _old_dude_ on Saturday May 04, 2019 @08:53AM
(#19826111)
Scott McKinney, the guy behind that library, is also the guy behind Gosu [1].
Selling a new language is hard, selling a library is easier, even if this one has a hook deep in the code of javac.
[1] https://en.wikipedia.org/wiki/Gosu_(programming_language)
Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by sisu2019 on Saturday May 04, 2019 @03:32AM
(#19825012)
the main feature of this allows you to transparently use structured data as types in your code like type providers in .net. I love kotlin but it can't do anything remotely like that.
Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by jillesvangurp on Saturday May 04, 2019 @05:11AM
(#19825339)
Yep, I'm wondering if this actually works in Kotlin as well. I'm thinking it may probably play nice with this as is since Kotlin can interact with Java classes. However, the compiler plugin might be a problem. If so, this would be an awesome thing to add to Kotlin.
Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by iSnow on Saturday May 04, 2019 @08:43AM
(#19826072)
Ever tried to "sell" an alternative language in BigCo Enterprise? Where I work, Javascript is still a front-end only language and just tolerated as a toolchain for compiling LESS, ECMAScript etc.
Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by based2 on Saturday May 04, 2019 @07:53AM
(#19825882)
or Scala https://www.scala-lang.org/
Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by marcinzm on Saturday May 04, 2019 @02:08PM
(#19828129)
Scala comes with a lot of overhead in terms of features (and breaking changes in versions) and is still missing the meta-programming aspect of this library. In fact, scala has now deprecated all it's previous attempts at meta-programming and is still trying to work out it's next attempt (which is I believe black-box only so can't do what this library does).
Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by james_s_tayler on Saturday May 04, 2019 @05:52AM
(#19825469)
at that point why not use C#?
Re:Manifold: Java Type-Safe Metaprogramming, Structural Typi...
by tigershark on Saturday May 04, 2019 @01:21PM
(#19827820)
C# doesn’t support type providers, only f# supports them.