Geoffroy Couprie

@geal
1,006 Followers
182 Following
150 Posts
messing with Rust and crypto at Proton, ex Apollo GraphQL
Making and breaking networking tools in Rust
Works on nom, biscuit, sōzu, lapin - he/him
wwwhttp://geoffroycouprie.com/
bloghttps://unhandledexpression.com/
githubhttps://github.com/Geal
twitterhttps://twitter.com/gcouprie
Un article sur les jetons Biscuit dans le MISC du mois de Juillet 😃
https://boutique.ed-diamond.com/en-kiosque/1690-misc-134.html
Misc 134 - LES EDITIONS DIAMOND

Techniques de contournement des EDR       Principes de fonctionnement des EDR Contournements par appels système directs Contournements via NTDLL

I am not happy about the UX yet, but it feels like a good approach to state management in parsers.
I don't like the idea of carrying state in the input type, this infects every parser and kills performance.
Storing state in a thread local is an inspiration from other projects like tracing makes a much nicer approach, because you only access state exactly where you want, and you can add it or remove it without ceremony.
Here I use it to bound recursion between 2 parsers
(a few more #[inline(always)] later...) I just noticed a very interesting result. This is a screenshot of json benchmark results, VS nom 7. The non verbose (small error type) version can be slightly faster, the verbose version is way faster than in nom 7, great.
But what's incredible here is that the verbose version is now on par with the fast one!
You can get a complex error type with minimal overhead!!
Usually, when faced with a performance problem, you would look for a smart way to do less work. Today we do not do that. Today we sprinkle #[inline] all over the code until it tastes good
Oh so there's a generation Alpha now. Come sit at the old people's table now, zoomers. Don't sit too fast or your knees will give out
I've been looking at so much yaml these days, this might help https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow
indent-rainbow - Visual Studio Marketplace

Extension for Visual Studio Code - Makes indentation easier to read

if rustc starts screaming BRACE BRACE that means the const generics are going down hard
At this point it's not "have I been pwned" but how many times. Is there a rewards card we can fill here? 1 free year of 1password at the 10th data breach?
chatGPT is a great tool to generate a lot of noise from a small signal. But can it do the reverse? Yes!
Here's chatGPT summing up a bunch of noise