Git Product home page Git Product logo

random-data-generator-magnolia's People

Contributors

danielasfregola avatar igosuki avatar mergify[bot] avatar scala-steward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

random-data-generator-magnolia's Issues

Misleading compiler error for missing (sub-)arbitrary

When I alter the README example to use an additional java.time.Instant field, like this:

import java.time.Instant

import com.danielasfregola.randomdatagenerator.magnolia.RandomDataGenerator

object MyApp extends App with RandomDataGenerator {

  case class Example(text: String, n: Int, inst: Instant)

  val example: Example = random[Example]
}

Then I get the following error messages:

  • Error: could not find implicit value for evidence parameter of type org.scalacheck.Arbitrary[Example]
  • Error: not enough arguments for method random: (implicit evidence$1: reflect.runtime.universe.WeakTypeTag[Example], implicit evidence$2: org.scalacheck.Arbitrary[Example])Example.

This is misleading because an Arbitrary[Example] can be created but not an Arbitrary[Instant]. If I add an implicit Arbitrary[Instant] in scope, it compiles just fine and yields the expected result.

Can this be improved?

Can random method be lazily evaluated instead of eager evaluation

I have been using the previous version of random-data-generator, which is based on shapeless, for quite sometime and is awesome. Recently, I tried using this for generating a Billion records. Since the random method is doing an eager evaluation, this is causing me an OOM error. Could you please guide me in this regard, as this would be my on going task to generate billions of records.
Thank you.
Note: Ideally, this is not an issue but calling out for help :)

Broken test coverage

Test coverage seems to be broken since the upgrade to scala 2.13 and sbt 1.3.2.
We should fix it sooner rather than later (see #15's builds)

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.