It looks like you're new here. If you want to get involved, click one of these buttons!

- 14.1K All Categories
- 7.8K Mining
- 389 Pool Discussion
- 1.1K General Project Discussion (non-technical)
- 361 Education
- 689 Protocol and Client discussion
- 131 web3-js
- 22 Whisper
- 12 Swarm
- 2 RLP
- 252 IoT & Hardware
- 870 Smart Contracts and Dapps
- 28 Serpent
- 297 Solidity
- 361 Projects
- 1.2K Reference clients code and builds
- 244 Eth & AlethZero- Cpp Implementation
- 441 Geth - Go Implementation
- 222 Mist
- 14 Node.js Implementation
- 34 Python Implementation
- 47 Mix
- 21 Other Implementations
- 147 Meetups
- 29 Other Events
- 170 Jobs & Skills
- 172 Press and Articles
- 70 Audio/Video
- 258 Ether Sale
- 866 Other Languages
- 35 Chinese
- 202 German
- 24 Italian
- 94 French
- 2 Hebrew
- 9 Japanese
- 63 Portugese
- 34 Romanian
- 131 Russian
- 192 Spanish
- 36 Turkish
- 105 Watercooler

I will be participating to this forums, since I am doing an ICO soon and I am reading it.

Here is a fun thing. This small function it taking a LOT of time to compile (20s here, while the SNT contract is taking 5 seconds only!)

Maybe some guru can explain why this is taking so much time, there is no loop.

Also the magic of this function is to make run out of gas any contract.

```
function last(uint x) returns (uint) {
uint last=x/1000000000000000000;
if (last<=0) last=x/100000000000000000;
if (last<=0) last=x/10000000000000000;
if (last<=0) last=x/1000000000000000;
if (last<=0) last=x/10000000000000;
if (last<=0) last=x/1000000000000;
if (last<=0) last=x/100000000000;
if (last<=0) last=x/10000000000;
if (last<=0) last=x/1000000000;
if (last<=0) last=x/100000000;
if (last<=0) last=x/10000000;
if (last<=0) last=x/1000000;
if (last<=0) last=x/100000;
if (last<=0) last=x/10000;
if (last<=0) last=x/100;
if (last<=0) last=x/10;
if (last<=0) last=x/1;
return last;
}
```

Have fun!