Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
obi1kenobi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
61.
▲
by
obi1kenobi
3y ago
Tool author here. I think the same overall approach I described here should work for Go as well: https://news.ycombinator.com/item?id=36653954 One would just need a machine readable data source for Go package APIs, and woul
62.
▲
by
obi1kenobi
3y ago
No worries! Trustfall is even more general than semver actually, one can use it to query any data source -- even HN itself: https://play.predr.ag/hackernews Here's a link to that project if you'd like to check it
63.
▲
by
obi1kenobi
3y ago
cargo-semver-checks is the tooling you describe. It doesn't currently catch every possible semver violation, so it won't suggest version numbers for you yet , but that's the eventual goal!
64.
▲
by
obi1kenobi
3y ago
Tool author here. Your hunch is absolutely right. An analysis I and a few contributors did for Rust showed that over 1 in 6 of the top 1000 most downloaded Rust crates has broken semver at least once in a way our tool can detect & where
65.
▲
by
obi1kenobi
3y ago
cargo-semver-checks author here, thanks for the kind words :) I've written several blog posts about how semver in Rust is particularly tricky and has unexpected edge cases, if you'd like to see specific examples of things non-obvi
66.
▲
by
obi1kenobi
3y ago
Author here! Excited to see this on the front page, ping me with any questions! I recently gave a talk about the tool, addressing: - why semver in Rust is important and harder than it looks - how the tool works - why it took until 2022-2023
67.
▲
by
obi1kenobi
3y ago
https://predr.ag/blog/ A few of my more popular posts: - Falsehoods programmers believe about undefined behavior: https://predr.ag/blog/falsehoods-programmers-believe-about-u... - To ace exams, ge
68.
▲
by
obi1kenobi
3y ago
The Rust rpds crate is awesome: https://crates.io/crates/rpds
69.
▲
by
obi1kenobi
3y ago
I've had my eye on Taxi for a while, and it's neat! I agree that the problems it aims to solve are real and painful in real life. In my experience, I'm not sure people care about schemas or schema languages — they are just im
70.
▲
Bark – Text-prompted generative audio model
(github.com)
416 points
by
obi1kenobi
3y ago
|
89 comments
71.
▲
by
obi1kenobi
3y ago
This is awesome! So excited to play around with it!
72.
▲
A definitive guide to sealed traits in Rust
(predr.ag)
3 points
by
obi1kenobi
4y ago
|
1 comments
73.
▲
Mediocrity can be a sign of excellence, and other stories
(predr.ag)
2 points
by
obi1kenobi
4y ago
|
0 comments
74.
▲
by
obi1kenobi
4y ago
It's a very exciting time to be working in this space! Going beyond structured databases and file formats like JSON/CSV, there are also systems that can query APIs, source code, ML models, etc. My own Trustfall query engine is one
75.
▲
by
obi1kenobi
4y ago
I'm not sure about arbitrary graphs, because all kinds of weird and wonderful math exists out there :) But from 7 years of working on graph databases, and even participating in some graph query language standardization work, I know two
76.
▲
by
obi1kenobi
4y ago
Thanks! Reactive/live/materialized queries are certainly a possibility I've tried to keep open and I'd love to build, but there's so many possible things to build from here that I'm not sure when that might hap
77.
▲
by
obi1kenobi
4y ago
SQL is kind of a monster language to parse properly[1], and has some unfortunate and confusing edge cases[2]. It would have cost a ton of time and energy to implement properly, and all it would have ended up with is "SQL but worse.&quo
78.
▲
by
obi1kenobi
4y ago
I appreciate it! Writing is hard (especially not in my native language) and I'm always looking to improve, so feedback like this is valuable. To be honest, that blog post was targeted at cargo-semver-checks users and r/rust reader
79.
▲
by
obi1kenobi
4y ago
Good call, thank you! I'll almost certainly do something along those lines.
80.
▲
by
obi1kenobi
4y ago
I bumped into him and showed it to him in person one time :) Realistically, the docs are still very sparse -- I wasn't planning on posting this for another few months, but someone else noticed my project and beat me to it! New data pro
81.
▲
by
obi1kenobi
4y ago
Might I direct you to a 10min talk I gave on the subject? https://www.hytradboi.com/2022/how-to-query-almost-everythin... The motivation is that queries that are trivial in a SQL database are painfully impractical over
82.
▲
by
obi1kenobi
4y ago
As I wrote in reply to your other comment, the join algorithms are the adapter's choice. I wouldn't necessarily recommend using it as a SQL replacement, though. There's no measurable MoM growth yet. This is the first major lo
83.
▲
by
obi1kenobi
4y ago
Trustfall's Adapter API that data providers implement leaves the joining to the adapter implementation. It provides an iterator of rows and an edge (essentially a join predicate), and asks for an iterator of (row, iterator of rows to w
84.
▲
by
obi1kenobi
4y ago
Trustfall isn't trying to compete with SQL; doing so would be suicidal and pointless. If the dataset being queried already has a statistics-gathering query optimizer, it's just the wrong call to not use that optimizer. If one wrot
85.
▲
by
obi1kenobi
4y ago
The language is syntactically similar to GraphQL, but the semantics are much richer -- in terms of expressiveness Trustfall is more like SQL than GraphQL. No language syntax makes everyone happy :) But it's definitely is something that
86.
▲
by
obi1kenobi
4y ago
Please feel free to open issues on the repo whenever anything is unclear and I'd be happy to help out!
87.
▲
by
obi1kenobi
4y ago
To be completely honest, I was planning on doing a "Show HN" in a month or two, but someone posted the link today and it caught me a bit off-guard -- that's why the docs and examples aren't there yet :) There's defi
88.
▲
by
obi1kenobi
4y ago
I'm actually just one specific Kenobi :P Thanks, this made me laugh out loud :)
89.
▲
by
obi1kenobi
4y ago
Yes, in at least two ways: - It could be used as the "ingestion process" itself: write the ingestion as a Trustfall query (or queries) over the data sources, and store the results in a traditional database or other system. - It co
90.
▲
by
obi1kenobi
4y ago
It should all be doable: - Trustfall queries can in principle be compiled into SQL and executed on an analytical database. I haven't built this into Trustfall right now, but a prior project I built that used very similar syntax had thi
More ›