Skip to content
TheChatArchiveThe Chat Archive
GLMchatglm3-6b· Zhipu AIHugging Face Arena Human Preference 55K

Write a Delphi function that reverses a string. Don't be verbose, be efficient.

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Metallama-2-13b-chat’s answer.
  1. User

    Write a Delphi function that reverses a string. Don't be verbose, be efficient.

  2. GLM Assistant

    function ReverseString(const S: string): string; var I, J: integer; begin for I := 1 to Length(S) do begin J := Length(S) - 1 - I; S[I] := S[J]; S[J] := S[I]; end; end;

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.