Conversation
- add RESPite to the solution, but *DO NOT* reference from SE.Redis - update eng tooling and migrate field parsing from FastHash to AsciiHash - update the toy server *completely* to the v3 specification
NickCraver
left a comment
There was a problem hiding this comment.
I left comments for 3.0 (holy bytes batman), but the more I look at this the more I think we should not backport a change this large with 2.x, and instead just get 3.x previews going. Let's discuss on call and see where y'all are at, just which way I'm leaning after assessing the diff.
| if (types.IsDefaultOrEmpty & parseMethods.IsDefaultOrEmpty & enums.IsDefaultOrEmpty) return; // nothing to do | ||
|
|
||
| var sb = new StringBuilder("// <auto-generated />") | ||
| .AppendLine().Append("// ").Append(GetType().Name).Append(" v").Append(GetVersion()).AppendLine(); |
There was a problem hiding this comment.
Suggest using System.CodeDom.Compiler.IndentedTextWriter here - handy for cleaner generation downstream
There was a problem hiding this comment.
literally never heard of it before; took a look... I'm not sold; there's no fluent API, so I have to either do
tw.Write("// ");
tw.Write(GetType().Name);
tw.Write(" v");
tw.Write(GetVersion());
tw.WriteLine();or I need to use interpolated strings
tw.WriteLine($"// {GetType().Name} v{GetVersion()}");Are you proposing this latter? It is a bit more allocatey, but I guess it doesn't kill anyone...
|
@NickCraver I think I can summarize your feedback into a few buckets:
Is that fair? I think I've resolved everything except that last AsciiHash one and the indented writer; I'd prefer to punt on the writer for now, and personally I'm more than comfortable with the FastHash -> AsciiHash. Thoughts? |
- fix where RESP3 default is specified for the toy server
This is a very large part of #3014, dragged down into v2 - pretty much as much as possible without making the v3 client changes
Purposes of this PR:
MULTI/EXEC(which cannot be easily implemented on the V2 core)