Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Igor Munkin <imun@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH] lua: introduce function for uuid comparison
Date: Tue, 17 Nov 2020 23:08:25 +0100	[thread overview]
Message-ID: <ac4556a5-6d5a-0e85-cd32-759a5befcdeb@tarantool.org> (raw)
In-Reply-To: <20201117091114.GA14086@tarantool.org>

Hi! Thanks for the reply!

>> tarantool> u1 = 'b0b681e9-dd43-4341-98b4-a973b23f1421'
>> ---
>> ...
>>
>> tarantool> u2 = uuid()
>> ---
>> ...
>>
>> tarantool> type(u2)
>> ---
>> - cdata
>> ...
>>
>> tarantool> type(u1)
>> ---
>> - string
>> ...
>>
>> tarantool> u2 < u1
>> ---
>> - true
>> ...
>>
>> tarantool> u1 > u2
>> ---
>> - true
>> ...
>>
>> Doesn't this look wrong?
> 
> Yes and no. At first result is the same.

Oh, shit. I am so stupid. Sorry, Oleg and Igor, my bad.

My comment about comparison being wrong is not fair, obviously.

But still propose to use static_alloc. I do not insist. Only if perf
matters. (For me it matters always, so I would try.)

  reply	other threads:[~2020-11-17 22:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 20:04 olegrok
2020-11-12  9:44 ` Sergey Bronnikov
2020-11-12  9:55   ` Oleg Babin
2020-11-13  6:37     ` Sergey Bronnikov
2020-11-16 21:36 ` Vladislav Shpilevoy
2020-11-17  9:11   ` Igor Munkin
2020-11-17 22:08     ` Vladislav Shpilevoy [this message]
2020-11-18  8:02   ` Oleg Babin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ac4556a5-6d5a-0e85-cd32-759a5befcdeb@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=imun@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH] lua: introduce function for uuid comparison' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox