News for hackers. Stuff that matters.
Re:Writing a SQL database from scratch in Go by eatonphil on Sunday April 12, 2020 @08:49PM (#22852158)
Unexpected, but welcome, to see the first part in the series on here right now. I just published the second part [0] today, featuring binary expressions and WHERE filtering. It also updates the REPL to use a prettier table-printing library and a readline implementation.

The repo [1] has some additional bare notes on architecture and links to similar, more mature projects (primarily go-mysql-server and ramsql).

[0] https://notes.eatonphil.com/database-basics-expressions-and-...

[1] https://github.com/eatonphil/gosql

Re:Writing a SQL database from scratch in Go by bogomipz on Monday April 13, 2020 @12:47AM (#22853256)
This is great. Do you plan on continuing this blog series? If so I hope you post it here. Cheers.
Re:Writing a SQL database from scratch in Go by eatonphil on Monday April 13, 2020 @09:29AM (#22855638)
Definitely! I typically do post here. There are also links for various ways to subscribe on the site itself (e.g. twitter, email).
Re:Writing a SQL database from scratch in Go by nednar on Monday April 13, 2020 @05:15AM (#22854266)
The idea is nice, but it seems like the text is not explaining much. If you don't have a background in parser writing you have no clue what types are defined there and why in the very first code block. If you're not an SQL expert you might still know what SELECT and WHERE is, but do you think everybody knows what's an INTO keyword is used for? Where does the lex function come from? Why do I have a lexer and a lex()? Where does the cursor come from that I give into it? Why don't I give it a string? My user input SQL statement is a string, right? Why does the lex function have two for loops? What can't be done in one? Does this whole logic actually have a name maybe? What other alternatives to parsing SQL are out there? Why choose this path?

All that knowledge can't be gathered by just staring at the source code. And for people who understand the source code well enough to gather all this info themselves maybe they don't need the blog post around it, right?

Now all this I don't say to demotivate you. I hope you're strong enough to get over negative feedback and think about rewriting it to something more useful. I see a lot of potential here. But every good writer needs one (or ten million hacker news reading) editors to get to the really good content.