danielasfregola / random-data-generator-magnolia Goto Github PK
View Code? Open in Web Editor NEWRandom generator of test data in Scala based on Scalacheck and Magnolia
License: Apache License 2.0
Random generator of test data in Scala based on Scalacheck and Magnolia
License: Apache License 2.0
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:
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?
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 :)
We would upgrade to the latest version of magnolia
Upgrade to Magnolia 0.7
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)
Duplicate of DanielaSfregola/random-data-generator#50
We just need to replicate the following PRs in random-data-generator-magnolia:
....why am I not able to make it work?
Asked for advice in etaty/scalacheck-magnolia#1
upgrade to magnolia 7.1
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.