447 karma · joined Feb 12, 2020 (6y ago) · 138 submissions
Plabayo: https://plabayo.tech developer of: https://ramaproxy.org/ (commercial: https://ramaproxy.com)
My personal time goes mostly to my family (in all its aspects), my endeavours in FOSS and studies in both languages and mathematics.
comment 3d ago · link · parent
Many years later while trying to figure out how we could best filter on our upstream proxies based on request and user requirements, and after having read a book of a fellow belgian about proc macros, did it come to me that this might actually work, and it did. That said, if you compare the first version of this lib vs what it is now it is still same in spirit but has gotten much better by now.
Thanks for the search term though :) Could you share your C++ library and the queries that hit the bandwidth limit? Your memory-bandwidth question got me to try this, and we just released the result in 0.7.1. VennDB already used bitmap indexes and could start from a selective filter. The change was to intersect dense indexes a block at a time, so if the first two filters empty a block, we can skip the remaining reads for it.
On an M4 Max with 8.4M rows, eight independent filters went from 184 to 158 µs. When the first two ruled out seven out of eight regions, it went from 183 to 78 µs. Those timings cover building the query through reading the first match. I’d be curious to see your C++ library. What did the queries look like when you hit the bandwidth limit?
comment 1w ago · link · parent
This project started about three years ago as a small piece of a proxy project (ramaproxy.org): on every request we pick a random upstream proxy that matches a handful of flags and a country or city. The data barely changes, the queries happen constantly. Scanning a Vec got slow, and SQLite felt like a lot of database for "give me a random row with these flags".
VennDB is a Rust library: you add a derive macro to a struct, and it generates a database type and a query builder for it. Bools become bitmasks, filter values become sets of rows, and a query is the intersection of those sets. It can pick a random match without finding all of them first.
It is mostly a bitmap index, generated from your struct so you don't have to write and maintain it yourself. It is also narrow on purpose: append-only and in-memory, with no updates or deletes. As such it is not really a database in the traditional sense of the word, but as I was not sure how to name it differently given it does fulfill a niche subset of usecases that I would otherwise use an (in-memory) database for it seemed fitting.
We just released 0.7, which rewrote the engine. In the README compares it with a hand-written roaring bitmap index, SQLite and a plain Vec. roaring gets close on some queries. We're not database experts, so if the benchmarks look unfair or there's prior art we missed, I'd like to hear it.
3.
Show HN: VennDB: append-only in-memory Rust DB for rows queried using bit flags(github.com ↗)
49 points · by gdcbe · 1w ago · 4 comments
comment 2mo ago · link · parent
7.
Proxy Web GUI inspector coming to rama CLI in 0.5(plabayo.tech ↗)
3 points · by gdcbe · 2mo ago · 1 comment
8.
Rust 1.98 got a P-critical miscompilation(github.com ↗)
49 points · by gdcbe · 3mo ago · 3 comments
comment 3mo ago · link · parent
When you mention tower you might mean two things:
1. the `Service` and `Layer` concept. That is in the end just a "tool" to provide composition. Just like you also use records (`structs`), procedures (functions) etc... We also lean on that concept. And also note that Tower did not invent that concept either. So in that sense Rama is just another child down the lane of this lineage.
2. The tower ecosystem. Rama can bridge into it, but it's true that we are not itself part of it. Six years ago Rama was still built directly with Tower. Later we created `tower-async`, and eventually we went our own road. This because it was clear at that point (and still is) that the tower ecosystem is not really gonna change any time soon despite rust having evolved a lot since its initial conception.
So if you like the concept of Tower, with its services and how it allows you to compose than you will also like Rama. That's however kinda where the comparison ends. Rama is a protocol agnostic network framework to build clients, servers and proxies. That is not what Tower is or its goal. Tower its only goal is provide an impl of the concept of "services". Rama uses that same concept, but its just one of many ways how we allow composition and is in a way just one of the concepts that make it so nice to build network services / network stacks.
Now different than what you might be used to in tower, is that in rama the service concept is everywhere (https://ramaproxy.org/book/intro/services_all_the_way_down.h...). You might also like to read https://plabayo.tech/blog/rama-101-2-core-concepts. With rama your services go through the different OSI layers, and easier to use and implement.
Rama is there as the foundation to build network services. Tower is there to provide you with a way to impl the concept of Services. Tower is also a ecosystem and we keep a very close eye on it. I suggest you explore Rama a bit for yourself. A lot more will be clear to you than whatever I might say here.
comment 3mo ago · link · parent
You can learn more about our project name origin at https://ramaproxy.org/book/faq.html#why-the-name-rama
I hope as you learn more about our project that you get excited once again! :)
comment 3mo ago · link · parent
Earlier this week we released Rama 0.4, and with it we are bringing system configured proxy support to clients (rama-net), this includes PAC support (rama-pac) driven by Javascript within a WASM runtime (rama-js). It also expands our gRPC support and adds support for ttRPC, a lightweight alternative to gRPC running directly on top of TCP.
Read more in the blog post and discover also the other new features and improvements that Rama brings in this new release, that is 0.4.
As always we are very much open to feedback on this Release, rama itself or how it is presented. It's a project 6 in the making, with everything written for production purposes since day 0. Feedback is always greatly appreciated especially if it allows us to improve Rama. Contributions welcome of course as well.
13.
Rama 0.4: System proxy and PAC support(plabayo.tech ↗)
8 points · by gdcbe · 3mo ago · 5 comments
comment 3mo ago · link · parent
Just like websites also give zero fcks about accept-language header... sure do geoip lookup, so much easier... not
15.
Rama 101.1: HTTPS clients and layers of abstraction(plabayo.tech ↗)
2 points · by gdcbe · 4mo ago · discuss
comment 4mo ago · link · parent
Large projects build with rama use it as well. But those are proprietary from partners so sadly cannot share those.
comment 4mo ago · link · parent
No clue how an AI would write it, but that is sadly how I write, sentences that are perhaps ending a bit too... late. I like my comma's and my em dashes... always have... Used to blog a lot more, trying to pick it up again, with this blog article being hopefully the first of many more to come.
And yeah mostly want to highlight the fact that is ready for production because sometimes people are worried for < 1.0 projects, but want to make sure that people know that we and plenty of other companies are already using it in production for serious projects, not just a hobby or R&D thing.
Our aim is to solve a real world problem with this, so that we can all stop reinventing the same duct-tape mess and instead have a shared foundation that we can all build upon. Such that if there is something to improve or a mistake it has to be fixed once and all rama users benefit from it. While still ahving the flexibility to use and stack your different services however you wish.
comment 4mo ago · link · parent
Here is some context and info about the framework that I am quoting from our README to provide you with context:
Rama is a modular service framework for the Rust (programming) language.
The framework is intentionally explicit. Your network stack is built from services, layers, transports, protocols, and state that you compose yourself. That makes the shape of the system visible in the code, instead of hidden behind framework magic or configuration.
This makes Rama a good fit not only for proxies, but for network services where the stack itself matters: how traffic enters, how it is decoded, where state lives, what gets inspected, what gets transformed, and where it goes next.
Whether you're inspecting traffic for security analysis, writing a web service, emulating clients with custom user agents, controlling connection behavior for advanced testing, or building high-performance proxies, Rama provides a clean and composable Tokio-native foundation for network services in Rust.
Rama is used in production for network security, data extraction, API gateways, routing, and other networked systems.
comment 4mo ago · link · parent
21.
Show HN: Rama 0.3 release (5 years in the making)(plabayo.tech ↗)
2 points · by gdcbe · 4mo ago · 5 comments
comment 4mo ago · link · parent
The second nicest thing with Elm is the philosophy of if it compiles it works. And to be honest you can get that same feeling with most of Rust as well. Sadly not as much of a haskell feeling but at least it has a warm shadow of some of its functional ancestors.
comment 5mo ago · link · parent
Companies love to cut costs, and just like they axe employee numbers at will, they will just as well make that kind of budget quickly dissapear the moment they realize they can go a different path for same or better value... Or simply because share holder short-term value demands it...
comment 5mo ago · link · parent
It's not that the utility of it put in question. What is however a giant question mark is how the heck any of the big AI companies are ever gonna get that ROI? Given how many of us are becoming more and more fine with local models that run just fine especially on a good enough computer which most developers have anyway...
comment 5mo ago · link · parent