The thing I would have liked to know is why they don't use an existing fast SQL parser. Was being slightly incompatible with all existing SQL dialects a product requirement?
I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
31–40 of 79 posts
Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#32Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#33How long did this take?
Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#34Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#35Good read, but "70x" is always misleading.
Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#36Earlier quoted context omitted.
I think AI is powertool. Period. If you give it to people who are skill, it will create a mess. I think democratization of intelligence is going to be interesting. You could say the same with same about internet. I think it is part of evolution. May be intelligence or expertise is what does not make us special. May be it is that we are ingenious amd creative with tools and thats how we evolve.
There are some studies that suggest human brain sizes have been shrinking over the last 20,000 years. The theory is that as civilization developed the demand for individual humans to be independently intelligent has weakened because we developed a "collective brain" and also self-domesticated to be more cooperative.
Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#37Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#38Makes me think of all the algorithms we specify in proof languages and then hand-implement in production languages - this setup could maybe let you just specify the proof of an algorithm and then let LLMs derive efficient implementations with the (slow) proof as an oracle
Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#39I cannot believe they're sticking to their guns on this website design. It's awful.
Re: I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code
#40Well despite my current anti AI sentiment, I have to admit that after reading the article, It was a good use of AI, done by someone with good technical skills. Still I have the feeling that this only works because of the vast accumulated knowledge pre-AI, and if everybody keeps going in this path, it will end up making everyone not advancing their knowledge at the pace they did before. I feel that this AI immersion i…
> till I have the feeling that this only works because of the vast accumulated knowledge pre-AI I'm not about to say that there's nothing new under the sun, but parsers are a really well-understood problem where 99.9% of people don't need frontier knowledge and wouldn't be in a position to use it anyway. And I don't think that people doing research on parsers would ever rely on LLMs for precisely that reason. But we'…