Vyper: Meeting - 9th April 2018

Created on 3 Apr 2018  路  5Comments  路  Source: vyperlang/vyper

Meeting Details

General Bi-Weekly meeting.
Start: Monday 9th April 2018, 14:00 UTC (https://time.is/UTC)
Hangouts: https://meet.google.com/czc-kuep-jda

Agenda

meeting

Most helpful comment

Not sure I will be able to join the call.
Anyway I think we should add #752 to the VIP Discussions.

All 5 comments

Feel free to comment any additional agenda items here.

Not sure I will be able to join the call.
Anyway I think we should add #752 to the VIP Discussions.

Improving shift function.

shift is compiled to the following code:

   ['if', ['sle', '_s', 0], 
          ['div', '_v', ['exp', 2, ['sub', 0, '_s']]], 
          ['mul', '_v', ['exp', 2, '_s']]]]],

When _s == 0, ['div', '_v', ['exp', 2, ['sub', 0, '_s']]] and ['mul', '_v', ['exp', 2, '_s']]]] are the same. But in the div branch, it need to execute sub which potentially costs more gas. Suggest using slt instead of sle. This will also ease the verification. On the other hand, EIP145 proposes supporting shift opcode directly in EVM. Not sure when it will happen.

@yzhang90 Please create the two tickets/bugs you have discovered, much appreciated :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lsaether picture lsaether  路  4Comments

ben-kaufman picture ben-kaufman  路  4Comments

nrryuya picture nrryuya  路  4Comments

domrany64 picture domrany64  路  3Comments

ben-kaufman picture ben-kaufman  路  4Comments