Better HN
topnewbestaskshowjobs
Log inSign up

gdcbe

447 karma · joined Feb 12, 2020 (6y ago) · 138 submissions

Co-Founder / CTO / Principal Engineer, researching and developing technology related to networking, proxies, reverse engineering & mathematics.

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.

Submissions

comment 3d ago · link · parent

I have a deep background in C++ and C with classes myself (drivers, embedded and most if at all for Game Engine development). That's also where I used bitflags a lot, though at much smaller scale. After having programmed in many different other languages as well over the years and decades I have settled for most of my work on Rust these days, having picked it up ~ 11 years ago.

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

Hi HN, I'm the author.

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 3w ago · link · parent

Who had known that their Mac Minis would be the servers they never wanted to sell again :')

comment 4w ago · link · parent

Seems not to be only an issue in the development world though.

At least in Belgium there’s also a lot of unregistered solar panels to the point that the energy regulator is using satellite imagery to catch and find them…

comment 2mo ago · link · parent

Starting from the upcoming 0.5 release of Rama (~ end of September '26), Rama's CLI `serve proxy` command will have a Man-In-The-Middle (MITM) mode `--mitm` that will serve a (protected) web GUI to monitor and engage with the network flowing through the proxy. Happy to also anwer any questions here regarding rama the network framework, or our CLI tool built with it.

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

You might want to read the “prior art” section of their article…

comment 3mo ago · link · parent

That is a question I can answer in many ways. But the prime answer is that it's a weird question to ask.

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

That’s an unrelated project indeed, both in terms of ownership as well as what it is about.

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

Info for those who do not know Rama yet: it is a modular rust framework to build network services of any kind (client, server or proxies). For projects where you need to combine multiple protocols, be in control of the stack, build advanced stacks or any kind of proxy, rama is probably for you. And if not, do reach out to us.

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

I have yet to see an actual part of that policy which requires a cookie banner though. Seems more to me that it's a combination of (a) websites allowing all kind of fcked up use cases of cookies on their site (most sites do not even need cookies for real) and (b) not respecting http headers that ask to not be tracked... They much rather have a very confusing popup that kinda forces you to accept all :) How convenient.

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

Yes we use it for rama [1]. You can check its justfile and CI workflow file how we use it. Those run thousands and thousands of tests thx to nextest and what feels like instantly (once compiled).

Large projects build with rama use it as well. But those are proprietary from partners so sadly cannot share those.

[1]: https://github.com/plabayo/rama

comment 4mo ago · link · parent

Thank you very much for developing nextest. It is what allows our projects like rama [1] to run thousands and thousands of tests in a blink of an eye! Keep it up!

[1] https://ramaproxy.org

comment 4mo ago · link · parent

Thank you very much. We will see, I have been on this for 5 years, if it takes another 10 years for the wider global community to discover rama, so be it. We have patience.

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

OP Here, sorry for not being clear. And happy for feedback on our presentation, docs, my article and ofc the code itself. It has been under developed since over 5 years, and was used in production right from the start. Now we are at a point that it is used by several different companies and even more individual users.

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

Yes the blog post was written completely by me. Not entirely certain what triplet you are referring to, or what that might be, but your suggestion is spot on. Going to add a comment with more context of what rama is as a comment myself. Appologies. Not yet used to promoting projects myself...

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 nicest thing of Elm is how much it feels like Haskell. Have built some fun things with Elm years ago.

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

Seems to flag any project related to networking — regardless if it is a network framework or a podcast website — as unsafe... oh well... let's see how it is once they losen up...

comment 5mo ago · link · parent

Maybe in USA in big tech where companies give absurd wages to engineers anyway in some states, that might be acceptable. But to make their ROI they need that (and more) to be spend world wide... no way that is gonna be a budget that is gonna fly in the long term...

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

What if you phrase the question from "will AI ever be useful" (a term as utterly vague as "IT") to "will it ever be able to promise the financial gains these companies are hoping? Especially with local models eating their lunch :shrug:

comment 5mo ago · link · parent

I do not disagree with what you are saying, but I honestly still believe that most of the utility we experience are honestly gonna become very boring very soon that we can just run local... Even if it's a bit more slow who cares, can just run in background while you work on other stuff yourself, read up on things, review other work...

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

Congratulations terts and team. In November’25 we had pleasure to interview you about roto and Nlnetlabs [1]. Happy how far it has come already. Before the summer ends We’ll implement support for it in rama [2] to support scripted services and anything else you might want! Looking forward to that day. Until then, keep it up!

[1]: https://netstack.fm/#episode-14

[2]: https://github.com/plabayo/rama

comment 8mo ago · link · parent

… is that even legal to do for microsoft? Are there no requirements to adhere to certain standards? Would have thought that is part of it.

comment 8mo ago · link · parent

Father of three here as well, amen to that. Soo hard, but oh so amazing.
12345