Better HN
topnewbestaskshowjobs
Log inSign up

openquery

562 karma · joined Mar 1, 2020 (6y ago) · 156 submissions

Submissions

121.

Complex Procedural Rust Macros(getsynth.com ↗)

1 points · by openquery · 5y ago · discuss

122.

Mobile phones on aircraft(en.wikipedia.org ↗)

48 points · by openquery · 5y ago · 50 comments

comment 5y ago · link · parent

Ah you're right. I got excited by this and wanted to share but I am not working on the project directly...

edit: Thanks for pointing this out. Removed from Show HN.

124.

Gather - Online workspace for teams(gather.town ↗)

1 points · by openquery · 5y ago · 4 comments

comment 5y ago · link · parent

Nice!

We spent quite a bit of time on performance over the past month. We called out to a Python runtime to generate semantic data types (names, addresses etc.). As of 0.5.0 ripped it out and replaced it with a pure Rust semantic data generator called fake-rs.

comment 5y ago · link · parent

Hey HN! We're Synth - a bunch of engineers out of Europe building tooling for developers. We're very excited about what we're working on and wanted to share it with the community.

We've been quite frustrated with the status quo of test data generation - after speaking to tons of other devs we've realised that many people are struggling when it comes to generating realistic looking test data.

Also, where people don’t want to copy sensitive production data to testing environments, data obfuscation can be a huge time-sink.

Enter Synth: a declarative data generator (see our website: https://getsynth.com/, github: https://github.com/getsynth/synth)

Synth enables devs and dev teams to have their application data models as code (basically a hierarchy of files) in their repos. These files can then be used to generate data for a local dev environment, automated testing in CI or even for sharing across organisations. The parameters of generation can also be tweaked to push the data model to its limits for QA, and even scaled for load testing / performance testing.

We're now working on taking the next step, and building a DSL around Synth. The Synth DSL will enable users to concisely define what data should look like and get going.

We're open source and written 100% in Rust. We believe that by making test data be as easy as using production data, we can improve the security and privacy for all of us. We'd love to get more early users as the initial feedback is positive but limited.

Thank you and looking forward to any feedback / ideas about how we can build a better tool for you!

P.S. Synth launched on HN a while back (https://news.ycombinator.com/item?id=24198114) as an ML solution to create realistic (and safe) copies of your sensitive production data as a service. This approach quickly hit several limitations which couldn't address the use-cases we are trying to solve, happy to go into more details on this if anyone is interested.

127.

Tired of creating test data by hand, we've built an open source data generator(getsynth.com ↗)

14 points · by openquery · 5y ago · 3 comments

comment 5y ago · link · parent

Congrats to the talented people at Hashicorp.

I love Terraform and have used it for years (before 0.12 I think). The workflow, meaningful diffs and reproducible 'infrastructure-as-code' gave a user experience that really was a massive step up to what I was used to (basically cloud console and scripts in CI).

In fact the Terraform workflow / philosophy inspired some of the design of an OSS 'data-as-code' tool (https://www.getsynth.com/) that we're building a company around. We wanted to use HCL instead of JSON for our config to start off with, but the Rust HCL parsers when we started the project weren't really robust so we settled.

Anyway, congratulations Hashicorp!

comment 5y ago · link · parent

This looks convenient (and performant). But how does it scale as queries join across tables?

If you need to create test data with complex business logic, referential integrity and constraints we've been working on declarative data generator that is build exactly for this: https://github.com/openquery-io/synth.

130.

Synth (YC S20) Is Hiring Rust Software Engineers(ycombinator.com ↗)

by openquery · 5y ago

comment 5y ago · link · parent

Thanks for the question.

> Anyone able to weigh in on what "at scale" means here? Just "N number of records" where N is larger than is tenable by manual curation?

Scale here refers to the complexity of the schema. (I admit perhaps the wording is misleading). If your schema is sufficiently complex, generating coherent data can be a massive PITA - Synth alleviates that pain :).

> What about generating realistic amounts of data for performance testing (millions of records), and pushing that to shared database servers, or making it available for developers to populate their local databases? Are there best practices for this?

Good question. As Synth currently stands, theoretically it can do millions of rows but it would take a while as it's making calls to a Python runtime to piggy-back off the Faker lib.

I think I'll make a follow up post about this as it is quite an interesting question.

132.

How to create PostgreSQL test data at scale(openquery-io.github.io ↗)

22 points · by openquery · 5y ago · 2 comments

comment 6y ago · link · parent

Great experience. Obviously I can't say what non-remote YC is like - and I assume that we did miss out on the interpersonal aspect of YC slightly.

But honestly, kudos to the YC team. At a time when remote working was not as established as it is today - things were still awkward as people were not necessarily used to socialising over Zoom - the array of tools which have been developed to make remote working easier during the pandemic were not as refined and so on - the YC team delivered a really excellent experience which was very fulfilling.

We had loads of time with the partners - we met a bunch of other founders (even became friends with some). Every event that I attended was executed perfectly, with almost 0 scheduling or connection issues.

The only reality (not much could be done about this) which was a bit awkward is juggling time zones. We are based in Europe so all events were deep in the PM.

(Also not paying an exorbitant rent for 3 months definitely helped our runway)

comment 6y ago · link · parent

> I need a lot of specific scenarios set up

Yes we've seen this quite a lot in the wild. The truth is this is not very well defined - how do you get your data to tell a story depends on the story you are trying to tell.

We are trying to come up with a more rigorous framework for abstract representations of 'scenarios' . It's on our roadmap so keep an eye out for this :)

comment 6y ago · link · parent

Unfortunately I can't go into specifics here.

What I can say is that these were alternative[0] datasets.

[0] https://en.wikipedia.org/wiki/Alternative_data_(finance)

comment 6y ago · link · parent

It's hard to say. Delphix is quite opaque on what they do exactly and getting through requires booking a demo.

From what we have seen, Delphix is very much focused exclusively on large enterprise, and by extension does not look like a tool which is focused on the developer experience (could be wrong here).

We are much more focused at addressing the engineers in businesses - at the end of the day it's developers who will be using this tooling.

comment 6y ago · link · parent

That's a great question. I had to divert to my co-founder Damien who is spear-heading the research side of the company.

The gist of it is that if the the original data has a spike around -71, you will indeed see a spike in the synthetic copy as well. What it boils down to under the hood is a decision on the value of a continuous degree of freedom between two pieces of information:

- the information that you have a significant number of users located in Boston, and

- the information that any given particular user is located in Boston.

At a high level, we are taking the view that for your synthetic data to be realistic, it would need to spike around Boston if and only if most of your users are in Boston. This also means that you are not leaking information about any given individual user and that the behavior of the crowd is OK. Put more simply, if you have a single user located in Boston and all the others in, say, San Francisco, then your synthetic data should not end up having users in Boston at all.

Currently we do not have any bespoke support for lat/lon data, beyond it being like any other float of course. It is planned for the next release though! So check back in a couple weeks and it'll be there

comment 6y ago · link · parent

We haven't looked into the logistics of supporting Oracle yet. The fact that Oracle is closed source makes everything a little bit harder. This was our experience when adding MsSQL Server support.

Feel free to get in touch if you would like to discuss more about your use case :)

comment 6y ago · link · parent

> Creating models from a file borks on anything non-UTF8 (i.e. most legacy system outputs)

Yes - this is a WIP. Thanks for pointing it out

> `synth model inspect` output does not match the docs - how do I see the JSON?

Ah yes this is a typo in the docs. We'll fix it up. What you're looking for is: `synth --format json model inspect <model-id> | jq`

Thanks for the feedback!

comment 6y ago · link · parent

Thanks for the feedback. I'll make sure this is clear.

Why is this important for you?

comment 6y ago · link · parent

I wouldn't say it's misleading but I see where you're coming from. I play the piano so this was what inspired the name.

It turns out that picking a name for a startup/product which is representative of what you do is hard!

comment 6y ago · link · parent

Not yet - but it's on our roadmap. Feel free to get in touch if you would like this to be accelerated and we can find out more about your use case :)

comment 6y ago · link · parent

If you can't wait, you can always run `synth model sample <model-id> --ouput <some-directory> --sample-size <number-of-rows>` which will generate synthetic data directly into your directory as CSV files. You can then ETL that into your database.

Hope this helps :)

comment 6y ago · link · parent

Hey!

> Is there a way to guarantee a specific set of test data each time

Absolutely. You can seed the model so that the data you get each time is completely reproducible

> For this testing it's not as important that the data is repeatable, but the testers have a few different scenarios they want to test, so I'd need a way to make a low-data, medium-data, and high-data test set where the backing data fit within some ranges.

This is a great use-case for Synth. With the upcoming Firehose API you can point it at an existing database and specify how much synthetic data you want to generate and pump into your db.

For now you can either create a database and write the ETL, or do `synth model sample <model-id> --ouput <some-directory> --sample-size <number-of-rows>` to sample directly from the model into a directory of CSV files and use that to load your database

Feel free to get in touch if you would like to learn more :)

comment 6y ago · link · parent

Thanks for the feedback. This is exactly what we're looking for.

> It is 100% easier for me to export a little production data to test on (and maybe sanitize), or to write a small script to generate a few users and those things I need to test.

In your case it may very well be. But when you are an organization with a schema which has 100+ tables and these tables have scattered sensitive information this can become a nightmare to manage. I've seen this first hand. Furthermore if you are trying to generate more than 'a little' data this can get more complex as you have to create factories and write a lot of code to make the whole thing coherent and tell a story. I think undertaking the added complexity of Synth is a trade-off one should consider depending on the sophistication of the testing data they require.

> If I did use it, i'd prefer it to be much easier to use

I think this misconception may be attributed to the fact that we use machine learning under the hood. We've spent a lot of time abstracting the developer away from this. In fact you can run the whole lifecycle with 1 line of code:

`synth model new --from-database <database-uri> --train --deploy`

> I would still be concerned about whether this is deterministically creating data or if its random?

At this point you can choose. You can either pick a seed with which the whole generation process starts (this may not be in production yet) or elect to randomly seed it.

Thanks for the great questions :)

comment 6y ago · link · parent

Thanks for your comment :)

These are all very good points. We are in the process of figuring out a natural way to express user-specified semantic types. We have some ideas but more on this coming soon!

comment 6y ago · link · parent

Yes - you're absolutely right in that data is a messy business.

Even in the early days we've seen crazy data types and constraints that makes our job of completely automating the process hard. However, every instance of this makes the product better and this transfers to the next customer.

> You really need an analysis phase that can tell a customer whether their data will work or not

This is part of the roadmap, it's a non-trivial piece of engineering. In the meantime you can try it for free and see if it works for you :)

comment 6y ago · link · parent

Thanks for the question!

For now text data will be marked as `categorical` or `text`. When you have sensitive data you want to use `text` which will provide a lorem-ipsum type generator.

If the model has classified that column with the semantic type `text`, no information from the column should be leaked :)

123456