195 karma · joined Nov 13, 2018 (8y ago) · 63 submissions
1.
Nvidia Flare Local Inference(github.com ↗)
5 points · by seddonm1 · 1mo ago · discuss
comment 5mo ago · link · parent
[0] https://www.phoronix.com/review/clear-linux-48p-ubuntu/6
comment 5mo ago · link · parent
comment 8mo ago · link · parent
I actually sidestepped the annoying btrieve problem by exporting the data using a go binary [0] and I write it to a sqlite instance with raw byte arrays (blobs). btreive is weird because it has a dll but also a a service to interact with the files.
P.s. I have spent a lot of hours on this mainly to learn actual LLM capabilities that have improved a huge amount in the last year.
comment 8mo ago · link · parent
[0] https://reorchestrate.com/posts/your-binary-is-no-longer-saf...
[1] https://reorchestrate.com/posts/your-binary-is-no-longer-saf...
comment 9mo ago · link · parent
Its scary - once you get the differential testing harness set up it seems to be just a matter of time/tokens for it to stubbornly work through it.
comment 9mo ago · link · parent
I have a demonstrated process here on my blog (all hand written without AI).
This bit about how to brute force decompilation: https://reorchestrate.com/posts/your-binary-is-no-longer-saf...
And this about how to do the conversion and address the LLM hallucination problem: https://reorchestrate.com/posts/your-binary-is-no-longer-saf...
Yes, it is absolutely possible.
8.
Show HN: Using LLMs and differential testing to convert code(reorchestrate.com ↗)
2 points · by seddonm1 · 9mo ago · discuss
comment 9mo ago · link · parent
It is written up in my link - please bear in mind it is really hard to find the right level to communicate this level of detail at - so I'm happy to answer questions.
comment 9mo ago · link · parent
I'm also doing this on an old Win32 DLL so the task is probably much easier than a lot of code bases.
comment 9mo ago · link · parent
https://reorchestrate.com/posts/your-binary-is-no-longer-saf...
I am able to translate multi-thousand line c functions - and reproduce bug-for-bug implementation
12.
Show HN: Your binary is no longer safe(reorchestrate.com ↗)
3 points · by seddonm1 · 9mo ago · discuss
comment 9mo ago · link · parent
What you need is differential, property testing. I’m sure it would work for you (you can skip the first half as you already have the source):
https://reorchestrate.com/posts/bringing-a-warhammer-to-a-kn...
comment 9mo ago · link · parent
This was written to store many thousands of images for machine learning
16.
Bringing a Warhammer to a Knife Fight(reorchestrate.com ↗)
2 points · by seddonm1 · 9mo ago · 1 comment
comment 2y ago · link · parent
Yeah I just drop this one file [0] into my Tokio projects and I have a SQLite with single writer/multi reader pool done in a few seconds.
[0]: https://github.com/seddonm1/s3ite/blob/0.5.0/src/database.rs
comment 2y ago · link · parent
Also, and more fundamentally, your application state is the most valuable thing you have. Do whatever you feel makes you most comfortable to make sure that state (and state transitions) is as well understood as possible. rusqlite is that for me.
comment 2y ago · link · parent
You can see how the transactions work in this example[1]. I have a connection `.write()` or `.read()` which decides which queue to use. I am in the process [2] of trying to do a PR against rusqlite to set the default transaction behavior as a result of this benchmarking so hopefully `write()` will default to IMMEDIATE and `read()` remains DEFERRED.
[0] https://docs.rs/num_cpus/latest/num_cpus/ [1] https://github.com/seddonm1/s3ite/blob/0.5.0/src/s3.rs#L147 [2] https://github.com/rusqlite/rusqlite/pull/1532
comment 2y ago · link · parent
All good and valid questions.
1. I work mostly in Rust so I'll answer there in terms of async. This library [0] uses queues to manage workload. I run a modified version [1] which creates 1 writer and n reader connections to a WAL backed SQLite and dispatch async transactions against them. The n readers will pull work from a shared common queue.
2. Yes there is not much you can do about file IO but SQLite is still a full database engine with caching. You could use this benchmarking tool to help understand where your limits would be (you can do a run against a ramdisk then against your real storage).
3. As per #1, I keep connections open and distribute transactions across them myself. Checkpointing will only be a problem under considerable sustained write load but you should be able to simulate your load and observe the behavior. The WAL2 branch of SQLite is intended to prevent sustained load problems.
[0]: https://github.com/programatik29/tokio-rusqlite [1]: https://github.com/seddonm1/s3ite/blob/0.5.0/src/database.rs
21.
Show HN: SQLite Transaction Benchmarking Tool(github.com ↗)
128 points · by seddonm1 · 2y ago · 21 comments
comment 2y ago · link · parent
We were using it to manage a millions of images for machine learning as many tools support S3 and the ability to add custom metadata to objects is useful (harder with files). It is one SQLite database per bucket but at the bucket level it is transactional.
comment 3y ago · link · parent
It builds a single Python WASM module with all dependencies included (they use VFS) and a Dockerfile to make the process easy (and actually worked first go). It does produce large files though: wasi-python3.11.wasm 110MB
comment 3y ago · link · parent
25.
Plugins for Rust(reorchestrate.com ↗)
1 points · by seddonm1 · 3y ago · 1 comment
comment 3y ago · link · parent
I hope it is useful.
27.
Show HN: Postgres Logical Replication with Rust(github.com ↗)
2 points · by seddonm1 · 4y ago · discuss
comment 4y ago · link · parent
Here is a comment and link to some code which seems to work: https://github.com/sfackler/rust-postgres/issues/116#issueco...
comment 4y ago · link · parent
Today I would like to present a proof-of-concept implementation of the Arc declarative ETL framework (https://arc.tripl.ai) against Apache Datafusion (https://arrow.apache.org/datafusion/) which is an Ansi SQL (Postgres) execution engine based upon Apache Arrow and built with Rust.
The idea of providing a declarative 'configuration' language for defining data pipelines was planned from the beginning of the Arc project to allow changing execution engines without having to rewrite the base business logic (the part that is valuable to your business). Instead, by defining an abstraction layer, we can change the execution engine and run the same logic with different execution characteristics.
The benefit of DataFusion over Apache Spark is a significant increase in speed and reduction in execution resource requirements. Even through a Docker-for-Mac inefficiency layer the same job completes in ~4 seconds with DataFusion vs ~24 seconds with Apache Spark (including JVM startup time). Without Docker-for-Mac layer end-to-end execution times of 0.5 second for the same example job (TPC-H) is possible. * the aim is not to start a benchmarking flamewar but to provide some indicative data *.
The purpose of this post is to gather feedback from the community whether you would use a tool like this, what features would be required for you to use it (MVP) or whether you would be interested in contributing to the project. I would also like to highlight the excellent work being done by the DataFusion/Arrow (and Apache) community for providing such amazing tools to us all as open source projects.
Edit: format