Giter VIP home page Giter VIP logo

Comments (10)

mosesn avatar mosesn commented on May 13, 2024

I think we might have removed util-eval from being tested. We're going to stop supporting it in scala 2.11 (at least I think that is the current plan).

cc @bmdhacks

from util.

richardclose avatar richardclose commented on May 13, 2024

Ah, OK. I have a use-case for eval, but I can fork it if eval won't be part of twitter util going forward. Feel free to close this issue, or let me know if I should do it.

from util.

bmdhacks avatar bmdhacks commented on May 13, 2024

I'm not opposed to keeping util-eval around if somebody wants to do the work to forward-port it to the 2.11 compiler interface, but at Twitter we're trying to migrate everyone off of it in favor of other configuration mechanisms.

from util.

travisbrown avatar travisbrown commented on May 13, 2024

ScalaObject is now replaced in the develop branch, and we'll be publishing util-eval for 2.11 soon.

from util.

mquinson avatar mquinson commented on May 13, 2024

Do you guys have a test for the case where invalid code is compiled? I've an error on my project that is inspired from util-eval and even if I think that the error is mine, I wanted to check...
Here is the error that I get: BuggleInc/PLM#421

from util.

koertkuipers avatar koertkuipers commented on May 13, 2024

do i understand it correctly that util-eval will be made available for 2.11?
thats good news

i would be curious to know what other configuration mechanisms are preferred over util-eval. i did not realize it had fallen out of favor. we use it extensively for runtime compilation of classes...

thanks

from util.

mosesn avatar mosesn commented on May 13, 2024

@koertkuipers we generally suggest that folks use the flags API instead. It can be found in util-app, and it's described in the TwitterServer docs. If you're using flags, we generally recommend that you use TwitterServer.

from util.

koertkuipers avatar koertkuipers commented on May 13, 2024

@mosesn
i assume you already fixed util-eval up for scala 2.11, because i got the tests for it to run just fine in with one change in Eval.scala:

   private lazy val libPath = try {
-    classPathOfClass("scala.ScalaObject")
+    classPathOfClass("scala.AnyVal")
   } catch {
     case e: Throwable =>
       throw new RuntimeException("Unable to load scala base object from classpath (scala-library jar is missing?)", e)

from util.

travisbrown avatar travisbrown commented on May 13, 2024

@koertkuipers Yep, see this commit in develop.

from util.

koertkuipers avatar koertkuipers commented on May 13, 2024

great! i was looking on the wrong branch :(
glad to see its back. if it no longer has importance inside twitter i will
look around for alternatives (scala Toolbox comes to mind) but for now we
love this tool to run quick jobs from text files (in scalding and spark),
and for Scala DSL config files, which we use extensively (i still like it
way better than json or yaml).

happy to help out next time it needs to get migrated.

best, koert

On Thu, Feb 12, 2015 at 5:54 PM, Travis Brown [email protected]
wrote:

@koertkuipers https://github.com/koertkuipers Yep, see this commit
84b9fa5
in develop.


Reply to this email directly or view it on GitHub
#105 (comment).

from util.

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.