Live data from Hacker News

The “Build Your Own Redis” Book Is Completed

build-your-own.org

111–120 of 131 posts

Re: The “Build Your Own Redis” Book Is Completed

#111
post #76

Earlier quoted context omitted.

Why would it be factually incorrect? You tell it to proof-read, not add stuff. It works great.

ChatGPT does not know how to proof read. It is not an artificial inteligence. It will take your input and determine the most likely response matching the data it was trained with. Just like how ChatGPT fails at simple math - ChatGPT doesn't know math https://ai.stackexchange.com/questions/38220/why-is-chatgpt-...

Still works great to ask it to proofread so whatever point you're trying to make is irrelevant.

Re: The “Build Your Own Redis” Book Is Completed

#112

Earlier quoted context omitted.

Sigh. I had to actually go look this up. Sometimes it's just easier not to talk, because all of the skeletons of old normalized words come to light. I truly was not trying to slur anyone, and apologize if my (unlucky) attempt at humor resonated sour for anyone.

I propose adding some Unicode sign like the double turnstile [1], ⊨ (ALT+8875), which can signify "is a semantic consequence of" or "is stronger than", after a polysemic word to imply that no racial/socially derogatory connotation is to be derived from the word in that phrase, for example, "the text reads too auto-jipped⊨" or "the master⊨ branch is fubar" in a Git context. Or perhaps an even better sign would be the…

That would be abused faster than you can type "gamer".

Re: The “Build Your Own Redis” Book Is Completed

#113

Earlier quoted context omitted.

Sorry to hear that. I don't have a Kobo so I can not troubleshoot this. Would a small-sized PDF be readable on your device?

k2pdfopt actually has an option for my model, cropping some of the excess margins helps a lot, but I will say epubcheck found some invalid markup in there, so it could be related to that.

I have updated the EPUB on Gumroad. Would you mind checking it again? I might add a PDF version with bigger a font size if it's not working.

Re: The “Build Your Own Redis” Book Is Completed

#114

Earlier quoted context omitted.

k2pdfopt actually has an option for my model, cropping some of the excess margins helps a lot, but I will say epubcheck found some invalid markup in there, so it could be related to that.

I have updated the EPUB on Gumroad. Would you mind checking it again? I might add a PDF version with bigger a font size if it's not working.

I tried and it still doesn't work. File shows 1/1 pages, which is blank.

Re: The “Build Your Own Redis” Book Is Completed

#115

Earlier quoted context omitted.

ChatGPT does not know how to proof read. It is not an artificial inteligence. It will take your input and determine the most likely response matching the data it was trained with. Just like how ChatGPT fails at simple math - ChatGPT doesn't know math https://ai.stackexchange.com/questions/38220/why-is-chatgpt-...

I’ve learned over the last few months that there are certain trigger words that instigate basically pointless discussion around e.g. “what it means to learn”. I can now add “read” to that list. Let’s play word taboo! The rules are we can’t talk about GPT using anthropomorphic terminology. Does GPT predict less than useful mathematical computations? Yes, and not just less than useful but basically useless. Does GPT pr…

Of course you're more than welcome to use whatever tech for whatever purpose.

Personally, I'm not confident that ChatGPT wouldn't hallucinate facts when prompted to 'just' proof-read.

I would rather poor English than confident factual errors.

Re: The “Build Your Own Redis” Book Is Completed

#116

Earlier quoted context omitted.

I have updated the EPUB on Gumroad. Would you mind checking it again? I might add a PDF version with bigger a font size if it's not working.

I tried and it still doesn't work. File shows 1/1 pages, which is blank.

Added a cropped PDF with a larger font size. Hope that will work.

Re: The “Build Your Own Redis” Book Is Completed

#117
post #103

Is anyone aware of an in-depth explanation about how key-value store persistence, such as Redis RDB, is built? A guide on compaction would be really interesting and useful.

I believe this book is such an explanation. At least for the key-value store persistence bit

Could you point me to the chapter on persistence?

Re: The “Build Your Own Redis” Book Is Completed

#118

Earlier quoted context omitted.

I’ve learned over the last few months that there are certain trigger words that instigate basically pointless discussion around e.g. “what it means to learn”. I can now add “read” to that list. Let’s play word taboo! The rules are we can’t talk about GPT using anthropomorphic terminology. Does GPT predict less than useful mathematical computations? Yes, and not just less than useful but basically useless. Does GPT pr…

Of course you're more than welcome to use whatever tech for whatever purpose. Personally, I'm not confident that ChatGPT wouldn't hallucinate facts when prompted to 'just' proof-read. I would rather poor English than confident factual errors.

For example, here's a section from the Build Your Own Redis book:

Our server will be able to process multiple requests from a client, to do that we need to implement some sort of “protocol”, at least to split requests apart from the TCP byte stream. The easiest way to split requests apart is by declaring how long the request is at the beginning of the request. Let’s use the following scheme.

The protocol consists of 2 parts: a 4-byte little-endian integer indicating the length of the following request, and a variable length request.

Starts from the code from the last chapter, the loop of the server is modified to handle multiple requests:

GPT suggested this instead:

Our server will process multiple requests from a client by implementing a protocol to separate requests from the TCP byte stream. The simplest method for separating requests is to include the length of each request at the start. The protocol consists of two parts: a 4-byte little-endian integer indicating the length of the request and a variable-length request. The server code from the previous chapter has been modified to handle multiple requests in the following manner:

There are no hallucinated facts because the most probable continuation of the given prompts is one that can gather all required information from the original text itself.

It's sort of like the difference between the truthfulness of analytic and synthetic claims. An analytic claim would be like "It is raining and you're outside, naked, and unsheltered so therefor water is falling on your skin from the sky." A synthetic claim would be like "It is raining outside".

Synthetic claims are said to be contingent on facts outside the text itself. These are the cases where GPT is completely useless.

The error rate for analytic claims is much lower although anyone who is writing anything should do a lot of review before publishing. Think of it like you asked your assistant to write something. You're gonna wanna read it over before you slap your name on it.

I mean, I actually don't care if you use these tools or not but your explanation of how it works will guide other readers in the wrong direction so I feel the need to correct the narrative you've presented.

Re: The “Build Your Own Redis” Book Is Completed

#119

One of my pet peeves when I was learning programming is that I couldn't find any books that would teach how to write tests in real world. There was that chicken and egg problem then, when potential employers would skip my CV because I didn't have any TDD experience and I couldn't find anywhere how to learn this. Before I even learned that something like testing exist, I was so confident like "oh I could write somethi…

A long time ago I found the chicken and egg problem to be more general than TDD. It was more along the lines of, "how do you write a program when you don't have the code (subroutines, other functions) it needs to run?" Where do you start - at main() or say, opening a file that doesn't yet exist to read/write some data? It was always a struggle. Then I found Structure and Interpretation of Computer Programs (SICP)[0]…

Brilliant, thank you for sharing!
Post reply on HN