Feb 1, 2021 12:13
If it's more about improving the compiler, you can ask on gitter.im/ethereum/solidity-dev
Feb 1, 2021 12:12
You can generally ask on gitter.im/ethereum/solidity
Feb 1, 2021 12:11
I'm @hrkrshnn on gitter. And @hrkrshnn:matrix.org on matrix
Feb 1, 2021 12:11
How about matrix?
Feb 1, 2021 12:08
Yeah. This has to be done by the optimizer.
Feb 1, 2021 12:05
Yeah. That sounds right.
Feb 1, 2021 12:05
In this example, r would return 0.
Feb 1, 2021 12:05
```
contract C {
    function f() public returns(uint r) {
        assembly {
            r := mload(10000)
        }
    }
}

contract D {
    C c = new C();

    function g() public returns(uint old, uint intme, uint aft, uint Cmemory) {
        assembly {
            old := mload(10000)
            mstore(10000, 200)
            intme := mload(10000)
        }

        Cmemory = c.f();

        assembly {
            aft := mload(10000)
        }
    }
}
```
Feb 1, 2021 12:04
For one, it's not in the memory after you do the external call.
Feb 1, 2021 12:03
How else would you do it?
Feb 1, 2021 12:02
You need to store it before you do the external call.
Feb 1, 2021 12:02
Yeah.
Feb 1, 2021 12:01
That is, to remove the unnecessary copy.
Feb 1, 2021 12:00
Yes. This is the job of the optimizer. It currently can't handle this case.
Feb 1, 2021 12:00
In your example, you don't need a copy.
Feb 1, 2021 12:00
But the abi encoding can be different. Which is why you need a copy.
Feb 1, 2021 11:53
Yep
Feb 1, 2021 10:05
@NikaKurashvili tagging just in case, you don't get notified otherwise.
Feb 1, 2021 10:05
In this case, the encoding is the same, though.
Feb 1, 2021 10:04
Hi again. So the problem is that, in general the copy memory -> memory is the abi encoding of the memory object. In general, it may not be the same.
Jan 29, 2021 11:58
Yeah. Not sure about this. I've to look more into the reasons.
Jan 29, 2021 11:55
There seems to be an extra copy.
Jan 29, 2021 11:54
Interesting. I was taking a quick look at the intermediate representation.
Jan 29, 2021 11:54
Is that difference with the optimizer enabled?
Jan 29, 2021 11:54
If you use memory then there would be the copies: calldata -> memory -> call-opcode. The same remains even when you use calldata.
Jan 29, 2021 11:54
No. If you look here, call opcode needs its input from memory. So calldata -> memory is a must.
Jan 29, 2021 11:54
Because it's an external call. Actually my older comment was incorrect. There would be a copy even when both the arguments are in calldata. Because the call opcode needs its input in memory. So I think using memory or calldata in your test function probably doesn't make any difference, gas wise. However, changing to calldata in again should be cheaper.
Jan 29, 2021 11:54
You can replace uint[3] memory bla and uint[3] memory haha to uint[3] calldata .... The compiler copies it since you wrote that the array is in memory.
 

 *scratch*

General discussion for emacs.stackexchange.com
Jan 19, 2016 07:47
@AaronHall Not sure if this is what you are looking for, but you could use latex_header to achieve things like changing themes, remove or add footers, etc.
 

  DG Reading Group

Room for reading group working through Lee's "Intro to Smooth ...
Dec 22, 2015 09:49
Now, I've to leave. Talk to you soon.
Dec 22, 2015 09:48
gitk or git-gui in the repo.
Dec 22, 2015 09:47
Okay! Try gitk and you can find my email there.
Dec 22, 2015 09:44
Anyway, I'll be stuck in the airport for about 6hrs this Friday. I can make use of the time trying to fix the issues if you can provide me with access to the server.
Dec 22, 2015 09:38
Can you paste the output of tags/tags somewhere?
Dec 22, 2015 09:36
So what are the current issues that you are facing?
Dec 22, 2015 09:34
I will have some spare time this friday and saturday. Hopefully, I can work on it.
Dec 22, 2015 09:33
@RobertCardona Does make tags populate the tags/tags file?
Dec 22, 2015 09:32
This is a paste of the output.
Dec 22, 2015 09:29
I'm getting errors executing make tags.
Dec 22, 2015 02:16
@Robert Can you upload code for the site?
Dec 20, 2015 14:15
That's unfortunate.
Dec 20, 2015 14:12
Is there some way to circumvent the minimum rep (like mod-intervention)?
Dec 20, 2015 14:05
The subreddit currently has 99 readers!
Dec 20, 2015 14:04
I still don't quite understand the tags, though.
Dec 20, 2015 14:04
Even I was thinking the same.
Dec 20, 2015 14:02
How will the webpage be organized? Is each section going to correspond to an exercise?
Dec 20, 2015 13:59
That's cool.
Dec 20, 2015 13:58
@RobertCardona So have you tried setting up the server? Is there something that I can help?