Monday, January 29, 2018

Youtube daily report Jan 29 2018

Hello, everyone, this is Mohit Devda here and Today I am going to show you 5 Cool New

Whatsapp Tricks.

But before moving on, make sure to get subscribed and press the bell icon to get notifications

for all my upcoming videos.

Now that you have done that, let's get started.

To send a recorded message to any contact in the WhatsApp requires you to hold the mic

button for recording.

But, now, it is possible to lock the recording and you can record for longer duration also

without continuously holding that mic button.

So, it is a very small change but is very useful for some people.

This may be an old trick but many people don't actually know about it.

So, you can easily manage your WhatsApp storage by going to the settings, Data and Storage

usage and after scrolling, you will see Storage Usage, tap on that and you will see all your

contacts and groups in the decreasing order of shared data.

Now, you can tap on any contact and you will see all the details of the data shared with

them.

From here, you can delete all the messages, images, or videos, etc. shared with that particular

contact only.

So, when your storage gets full, you can use this trick to easily manage your WhatsApp data.

This one is the latest feature by Whatsapp which lets you play Youtube videos directly

on the chat screen.

The video is played in a floating window which is freely movable and you can even go to another

chat while watching the video which is so much convenient.

This trick also works during the video calls.

So, when you call any contact you can minimize that video call by swiping down.

It will be there in a circular window at any corner of the screen and you can now use WhatsApp

with the video call still going on.

So, this is a useful feature and you must try it.

Message delete also known as Message Recall is a nice and useful feature for WhatsApp.

Using this feature, you can delete any WhatsApp message sent by you but under the time limit

of 7 minutes.

That message will be deleted for the person at the other end also.

After 7 minutes, you will be able to delete the message from your own smartphone only.

Keep in mind that it would be visible to the other person also that you have deleted the

message.

So, this feature is very useful in case of accidentally messaging someone as now it is

possible to quickly recall it.

The last feature of this video is very useful in some cases.

Now using WhatsApp, it is possible to share your Live location with your friends.

To do this, you just need to tap on Location and from here you will get the option of Sharing

Live Location.

So, Now you don't need to stay in one place, as using live location your friend would be

easily able to find your current location.

So, these were some cool tricks and features of Whatsapp and tell me in the comments which

feature you liked the most.

Also, if I missed something else or you know more WhatsApp tricks, then let me know in

the comments down below.

So, that was it for this video.

Thanks for Watching and I will see you guys in the next one.

For more infomation >> 5 Cool New Whatsapp Tricks - January 2018 - Duration: 3:13.

-------------------------------------------

LÀM THẾ NÀY SAU 1 THÁNG HẾT LUÔN TÓC BẠC TÓC RỤNG LẠI CÒN SÁNG MẮT BỔ MÁU - Duration: 4:11.

For more infomation >> LÀM THẾ NÀY SAU 1 THÁNG HẾT LUÔN TÓC BẠC TÓC RỤNG LẠI CÒN SÁNG MẮT BỔ MÁU - Duration: 4:11.

-------------------------------------------

[Y메이커②]'톱스타 트레이너' 윤태식 "공유, 타고난 피지컬+노력甲" - ShowBiz Today - Duration: 3:08.

For more infomation >> [Y메이커②]'톱스타 트레이너' 윤태식 "공유, 타고난 피지컬+노력甲" - ShowBiz Today - Duration: 3:08.

-------------------------------------------

女星裸坠身亡,杨旭文还能洗清吗? - Duration: 13:37.

For more infomation >> 女星裸坠身亡,杨旭文还能洗清吗? - Duration: 13:37.

-------------------------------------------

금메달 뺏어간 소트니코바 사진에 '좋아요' 눌렀다가 악플 받고 있는 손연재 - Duration: 4:00.

For more infomation >> 금메달 뺏어간 소트니코바 사진에 '좋아요' 눌렀다가 악플 받고 있는 손연재 - Duration: 4:00.

-------------------------------------------

simple rangoli for beginners||rangoli designs with dots||rangoli by niha - Duration: 2:09.

Niha rangoli

Please subscribe and press the bell icon for further notifications

For more infomation >> simple rangoli for beginners||rangoli designs with dots||rangoli by niha - Duration: 2:09.

-------------------------------------------

A Weekend Stay At Luxurious Hotel Ambra Cortina in Cortina d'Ampezzo - Duration: 2:00.

The Hotel Ambra Cortina is at the heart of Cortina d'Ampezzo in the north of Italy.

The main square of Cortina is a 2 minute walk away, along with Corso Italia, the main shopping

street in town.

As you enter the hotel the reception will be on your right, facing the bar and lobby

area.

The lobby is where you will find Elisabetta, the owner of the hotel sitting in the evenings,

talking to the many guests.

She has run the hotel for ten years, decorating every wall with stylish art and filling all

the rooms with sumptuous furniture.

Going up to the room there was artwork at every turn of the stairs, representing Elisabetta's

style.

There was also plenty of storage, a minibar and a safe as well as lots of magazines in

the room.

The bathroom was spacious with a sink, a toilet and a bidet as well as two shower heads for

comfort.

The towels were very soft and each room comes with a thick bathrobe to warm you up after

a long day of skiing.

The breakfast was downstairs in a cosy room serving continental and cooked breakfast.

There was lots of artwork even in the breakfast room, in particular many lovely oil paintings.

During my second day Elisabetta showed me some of the other rooms, including the upstairs

double where only a glass panel separates the bathroom from the bedroom – making for

a special experience for the guests.

For more infomation >> A Weekend Stay At Luxurious Hotel Ambra Cortina in Cortina d'Ampezzo - Duration: 2:00.

-------------------------------------------

Δράση 4.1.3 Υλοποίηση επενδύσεων που συμβάλλουν στη χρήση ΑΠΕ του ΕΣΠΑ - Duration: 3:27.

For more infomation >> Δράση 4.1.3 Υλοποίηση επενδύσεων που συμβάλλουν στη χρήση ΑΠΕ του ΕΣΠΑ - Duration: 3:27.

-------------------------------------------

사라포바, 살색톤 의상에 드러난 근육질 몸매 '아찔!'[ 자동차 세계 24_7] - Duration: 1:13.

For more infomation >> 사라포바, 살색톤 의상에 드러난 근육질 몸매 '아찔!'[ 자동차 세계 24_7] - Duration: 1:13.

-------------------------------------------

Tiết Lộ Gây SỐC Về Tổng Số Tiền Thưởng Của U23 Việt Nam ~~ Lên Tới 100 TỈ ĐỒNG !! - Duration: 3:50.

For more infomation >> Tiết Lộ Gây SỐC Về Tổng Số Tiền Thưởng Của U23 Việt Nam ~~ Lên Tới 100 TỈ ĐỒNG !! - Duration: 3:50.

-------------------------------------------

Gala vinh danh U23 Việt Nam tại SVĐ Mỹ Đình | Khoảng 45 triệu người tới cổ vũ U23 Việt Nam - Duration: 10:25.

For more infomation >> Gala vinh danh U23 Việt Nam tại SVĐ Mỹ Đình | Khoảng 45 triệu người tới cổ vũ U23 Việt Nam - Duration: 10:25.

-------------------------------------------

EJ Carter is Up Next

For more infomation >> EJ Carter is Up Next

-------------------------------------------

NordVPN User Testimonials: Why Do I Need a VPN? - Duration: 3:28.

Hey.

What's up, guys?

This is Kevin The Tech Ninja and today we're going to talk about VPN.

Now VPN may not be the sexiest subject to talk about, but with everything that's going

on in the world as far as hacking, leaked information, and stuff like that, VPNs now

are more important than ever.

And if you're wondering what a VPN does, it protect your privacy and encrypts your connection

to servers when you browse the Internet.

So this means your Internet service provider cannot spy on you and know exactly what you're

doing, to sell this information or block you from accessing certain things.

NordVPN has over 1,000 servers in 61 countries and they're always adding more servers.

NordVPN is based out of Panama, which is a premiere location for VPN.

In my use I didn't notice any speed differences, as they have super fast servers.

It didn't matter if I was accessing the Internet via a server in Mexico or Latvia.

The Internet was just as fast if I wasn't using NordVPN.

You can access VPN servers through a super intuitive map with pop-ups that give you all

of the available locations to connect to.

You can also type in any country in the search field and connect from there.

So NordVPN is the only VPN service to get all the green checks from PCMag's VPN line-up

of 2017.

If that hasn't convinced you yet, it was also given the Editor's Choice from PCMag

and is recommended by CNet, Buzzfeed, and Wired.

So pretty much everyone is jumping on NordVPN right now just because of what it offers.

So, speaking about what it offers, let's actually take a look into what VPN offers

for the subscription.

So, unlike other paid VPN services, NordVPN actually allows you to have up to six simultaneous

connections of one account.

This means you could share it with friends or family, or just have all your devices running

at once downloading stuff, if that's what you're into.

Not only that, it's also one of the only ones to give you unlimited and unrestricted

bandwidth for each and every device.

Which means you can pretty much use exactly what you want and when you want on every

single device that's active.

With NordVPN you're given full control of where you're connected and when you're

using iOS, Android or Windows or Mac app.

And there's a dedicated 'Kill Switch' to just kill the connection if you want to

switch off the VPN for a minute.

So let's look at some of the features that you get when you sign up for NordVPN.

For security you get military grade encryption, you get CyberSec which is going to shield

you from intrusive advertisements and malicious online threats.

You also get Double VPN which is going to encrypt your Internet traffic twice to create extra

layer of online privacy.

Now when you use a VPN, you do always lose a little bit of speed, it doesn't matter

who the VPN is.

So, you gonna lose some speed in terms of how fast it is with your regular Internet

with no protection at all and then with a VPN.

So these are the speeds that I got with the VPN and then without the VPN.

Check this out.

Now without a VPN I was getting anywhere between 93 and 73 down, upload speeds were about 34,

33.

And then with the VPN on I was getting speeds of anywhere between 33 and 50.

So download speeds did drop a significant amount.

But you've got to remember those are still very decent speeds and I'm getting way more

protection than I was before.

My upload speeds almost untouched.

Remember, they were 34 on the other one with it off, but with it on I got anywhere 32

and 30.

And again, that's pretty much the same.

The other interesting thing was that actually my ping time were actually lower with the

VPN on vs. with it off.

For more infomation >> NordVPN User Testimonials: Why Do I Need a VPN? - Duration: 3:28.

-------------------------------------------

I'm The Best Vũ đoàn Múa ấn độ liếc mắt qua đã thích - Duration: 5:47.

I'm The Best Vũ đoàn Múa ấn độ liếc mắt qua đã thích

For more infomation >> I'm The Best Vũ đoàn Múa ấn độ liếc mắt qua đã thích - Duration: 5:47.

-------------------------------------------

Simple Optimization Techniques — How to Create a Compiler part 2/5 - Duration: 28:45.

Good evening! [In Arabic language]

In the last episode,

we created a parser for a B-like programming language.

It parses each function into a tree structure,

where expressions contain expressions.

Today we will focus on optimization.

As I have said before,

much in programming is actually work –

towards making the work itself easier.

The code I wrote so far –

does not single-mindedly just aim towards the end result.

Code like this, for instance, helps constructing expressions –

using much shorter code than would be otherwise necessary.

In that similar mindset, these functions I just added –

help identifying the type of the expression or identifier.

However today the video topic is optimization.

In the interest of getting this video out in reasonable time,

I am going to compromise a little bit on good programming practices.

I start by taking the list of functions out –

from inside the main program,

and moving it into a global variable.

This will simplify the rest of this episode quite a bit.

Much of the optimizations in today's episode –

concern with replacing code with simpler alternatives –

that accomplish the same outcome.

One of the most important factors,

that decide whether some code can be replaced with some other code –

is whether that code has side-effects or not.

A side-effect is when an expression produces any other outcome –

than its return value.

In this is_pure() function,

we already wrote some basic rules in episode 1,

but so far we assumed that –

any function call automatically taints the expression as inpure.

This is not necessarily the case.

Calling a pure function,

such as one that simply returns the sum of two variables,

is a pure expression.

For example, replacing two calls to the same function with one call,

or deleting the call entirely,

will not change how the program works –

assuming the same result is calculated.

We need a way to classify functions.

This is more complicated than it sounds;

the pure_fcall cannot just make the decision when it is called.

Instead, if will check a precalculated variable.

There is one variable that indicates whether the function is pure,

and another that tells –

whether we even know whether the function is pure or not.

Of course, we need a way to calculate these variables.

My language does not have any global variables,

but it has pointers.

If a function takes a pointer parameter,

and it dereferences a pointer on the left side of an assign operator,

we can assume the function has side-effects.

It causes changes outside strictly its return value.

Of course, the effect is commutative.

No, viral.

No, what's the term for that?

If the function calls another function that has side-effects,

this function, too, will have side-effects.

Because the dependency chain between functions may run in any order,

we must loop this resolving process –

until we no longer can label any function as certainly pure or impure.

To implement this function right now,

we needed a special kind of for-loop –

that iterates through all sub-expressions in an expression tree.

Here is how I defined the for_all_expr function.

It operates on the depth-first principle.

The first node to be processed will be the deepest possible child node.

After all child nodes have been processed,

only then does the parent node get processed too.

For convenience's sake,

I decided to support two kinds of functors.

Those which return a boolean value, false or true,

to indicate whether the caller found whatever it looked for,

and the processing should be stopped immediately,

and those that return nothing.

To support both conventions, a helper function is needed,

that unifies both types of functions.

If the provided functor returns nothing,

this function returns the default parameter given.

Otherwise it returns whatever the functor returns.

I am surprised that –

there is not such a function already in the standard library.

While we are at it,

let's add a function that compares two expressions –

and tells whether they are equal.

This will be very helpful later.

The first category of optimizations is called "constant folding".

We are going to walk through every single expression in the code,

and optimize them using this ConstantFolding function.

We begin by checking the type of the expression.

If the expression is, say, a negate operation,

and the parameter is an integer constant,

we can replace the negate operation with the negated integer constant.

If the expression is an equals-comparison,

and both operands are integer constants,

we can perform the comparison at compile-time –

and simply replace the expression with an integer constant,

zero or one.

The same can be done if the operands are identical pure expressions.

Actually, the name of this function is a bit of a misnomer.

This function does all sorts of simplifications.

For instance, pointer expressions can be simplified,

if an address-of operator is immediately followed by a dereference operator,

or vice versa.

If an assign-statement has the same expression on both sides,

the assign-operation is redundant –

and can be replaced with the source operand,

assuming the operand has no side effects.

If we know at compile time that a loop operation will never loop,

we can delete the entire loop statement.

Now the add-operation requires much more work.

Let's get back to that later,

because there is a certain general principle we must take care of first.

Let me show you what I mean.

This is the tree structures that the compiler generates –

when it parses an add-expression that contains four operands.

It generates three add-expressions, that each have two operands.

But the thing is, this exact same outcome –

can be accomplished with many different structures.

Some of these work only because the add-operator is commutative,

meaning the order of operations does not matter,

but the simplest possible structure is the one shown in the lower-right corner,

where we have exactly one add-operator, and four parameters.

Interestingly enough, this same optimization can be performed –

on some operators that are not commutative,

as long as you keep the order of execution unchanged.

For example the and-operator.

All of these trees perform the same sequence of operations,

but again the fourth one is the simplest one.

So for add, comma, logical or, and logical and operators,

check if any child expression is the same type as the parent expression.

For every such child that is found, adopt the grandchildren directly.

Now the add-expression may contain an assorted mixture –

of all kinds of expressions, including number literals.

Just in case there are multiple number literals in the add-group,

or maybe there is a zero there, we'll quickly sum them up.

If the sum is nonzero, we'll add it back.

While we are at it, we can also convert negations –

into a slightly more efficient format.

After all this work, there is a possibility –

that the expression has been reduced into just a single operand,

or possibly into nothing at all.

In such cases, the expression can be reduced further.

But we are only getting started!

Next let's tackle the && and || operators.

Consider this example expression.

Consider how this is evaluated.

First, "a" is checked.

If it is zero, the process stops and the && evaluates into 0.

Otherwise, "b" is checked.

If it is zero, the process stops and the && evaluates into 0.

Otherwise, one is checked.

Well, one is not zero.

So the next expression is checked.

"x" is stored into "c".

If the result is zero, the process stops and the && evaluates into 0.

Otherwise, "d" is checked.

If it is zero, the process stops and the && evaluates into 0.

Well, zero is zero.

So the process stops and && evaluates into 0.

There are two observations to be made here.

The value of "e" was never checked,

because the literal zero that preceded it –

meant that nothing that comes after it is evaluated!

Also, because of the presence of the zero,

we know the && expression always returns zero in this case.

Technically, all of these expressions that we evaluated were useless.

We can optimize the expression like this.

The literal 1 expression was deleted,

because that cannot contribute to the result in any manner.

"e" was also removed, because it is never evaluated.

"d" was removed too,

because this expression has no side-effects,

so it does not influence the outcome in any manner.

However, neither "a" nor "b" can be removed,

because their values determine –

whether the assignment expression gets executed or not.

The assignment expressions is not a pure expression,

so it cannot be deleted either.

Finally, because we already know what the && operator will return:

always a zero,

we can simply ignore the return value –

and just return a literal zero using a comma operator.

This may benefit other optimizations that come later.

The || operator works exactly the same,

except that the consequences of zero and nonzero are reversed.

So, delete all operands that cannot possibly change the outcome.

If an operand is encountered –

that shortcuts the evaluation and forces the outcome,

delete all operands that came after that operand.

Next, we tackle the comma expressions.

This is where it gets complicated,

but let's start gentle.

Comma expressions are basically sequences of operations.

If we encounter an operation –

that prevents anything after it from being executed,

such as a return statement,

the remaining operations in the comma can be deleted.

This is one particular special case that I also deal with here.

Have a look at this comma expression.

No, wait.

This one.

That's actually an optimization I am yet to write.

Here.

This is a comma expression.

A sequence of assorted operations.

Only the result of the last expression is important;

In this case it is the assignment into z.

But expressions with side-effects have to be kept too.

While the dereference of "s" is not an expression with side-effects,

and of course neither is plus operation on the far left side,

the assignment operation has side-effects, so that one has to be kept.

So, we loop through all the parameters.

Any pure expressions, except the last, will be deleted.

However, even if the expression is not pure,

its impurity may be limited.

For certain types of expressions,

we can skip over the calculation and just rob the operands.

We can also apply the exact same logic into while-loops,

as long as we are careful –

to not accidentally delete the loop condition expression.

Consider this expression: x + 3 + (y = 4)

This expression accomplishes two things:

It assigns y := 4.

And it returns a value.

What does it return?

It returns x + 7.

However, currently the code cannot optimize this as x + 7,

because the 4 is hidden inside the parenthesis-expression.

A naïve attempt would be to sum these two numeric literals,

which would produce this expression.

But this would be a blunder.

While the expression does now correctly return x + 7,

it no longer assigns y := 4.

It now assigns y := 7.

So we cannot do that.

The correct way to optimize is shown on the right.

A comma expression is created between the = and + operations,

and the right-hand side of the assign expression is duplicated.

This way,

other optimizations will eventually convert this expression like this.

The result is exactly what we wanted in the first place:

y := 4, and then x + 7 is calculated and this value is the result.

However!

If the right-hand side of the assign expression has side-effects,

the optimization I proposed here would be a mistake,

because it causes the expression to be evaluated twice.

This is what must be done instead.

The result of the side-effect expression is assigned into a temporary variable,

and that temporary variable can be then copied –

as many times as necessary.

The next operation is fascinating.

Consider this example expression: z := the sum of x++ and y++.

The parser generates this complicated tree for this expression.

There are two comma expressions,

and the sum of these comma expressions is assigned into z.

This is what we can convert it into.

Two things have happened here.

First, the comma expressions from the inside of the outer sum expression –

have been extracted, so that only the last components –

of the comma expressions are retained in the sum.

Then, the assign into z is moved inside the comma expression.

This produces an overall much flatter tree structure than we started with.

Where there were six nested levels of expressions before,

there are now at most three,

yet it still behaves exactly the same as before.

We can also do the same operation –

for the first element in && and || expressions,

as long as we only operate on the first element.

We begin by scanning the parameter list –

backwards from the end anchor, until we find a comma expression.

This delimits the parameters into two sections.

The first section will be processed.

If there is a comma expression,

its parameters will be moved into the outer comma expression,

except for the last one.

If something was moved,

then this expression is replaced with a comma –

where the original expression is its last item.

However,

for anything except the last parameter in the first section,

the expression is moved into a temporary variable –

and that temporary variable s put in its place.

This ensures the unchanging of the evaluation order –

of different expressions.

Now if we take these rules for the "if" expression,

and try to apply it to the "while" expression verbatim,

we will produce incorrect behavior.

In the original expression, x gets incremented on each loop,

but in this modified form, x gets incremented only once,

before the loop.

Here is how it must be corrected.

The parts that were extracted –

from inside the loop to the outside of the loop –

must be replicated at the end of the loop.

Yes, this optimization may actually make the code longer.

But it has to be done,

if we wish to enable certain other optimizations to work.

Now you may have noticed that –

this optimization function does not necessarily bring out –

the best possible result immediately.

It may have to be run multiple times.

We will simply run this loop as long –

as running the optimization for one of the functions –

produces any changes to the structure.

I created a couple of testcases to make sure this works as intended.

In this layout, on the top you can see the original code.

On the left, what the parser produced for this code,

and on its right side, how it was optimized.

This first example shows how powerful the add-expression flattener is.

You can also see it calculated the sum of 4 + 7 at compile time,

despite them being in separate sub-expressions.

In the second example I modified the numbers so that their sum is zero.

You can see the integer literal is completely absent –

from the optimized output,

because adding zero to something would not accomplish anything.

The third example experiments with the negation operations.

The original expression contains five negations,

but the optimized expression contains only four.

You can verify this on pen and paper,

if you don't believe this optimization was correct.

The simple removal of two consecutive neg-operations seems to work alright.

An odd number of neg-operations still retains one, as it should.

Pairs of address-of and dereference operations get reduced, too.

This is one of the tests for the comma reducer.

Ignore the first two functions;

they are just artificial examples –

of pure and impure functions for the sake of the test.

The actual test function contains a sequence of five statements,

plus the implicit return statement.

As we can see, the optimizer detected all the pure expressions –

and deleted them.

The last expression in the list is kept, even though it is pure,

because it is returned as the function return value.

This testcase has three functions.

In the top example, x is stored into x.

Somehow it gets optimized into nothing.

How come?

Let's look at the middle function first.

x is stored into x, and then it is returned.

Storing a variable into itself –

gets optimized into just the variable itself.

Now, when we look back at the first function,

we can guess what happened.

First, the self-assignment got optimized as just the variable.

Then, the variable was removed,

because it was a pure expression in a comma statement.

The assignment was not a pure expression,

but the variable alone was pure.

So it got removed.

Only the return statement remains.

In the third function,

the left-hand side and the right-hand side –

of the assign expression are not identical,

so the assignment was not removed.

However, the source operand was duplicated for the return value.

And here it seems there is actually a bug in my design!

If you pass, say, number eight, as a parameter to this function,

you would expect that the function returns nine.

But the "optimized" version first increments the variable once,

and then increments it again when returning,

so it actually returns ten instead of nine!

This is a bug that must be fixed!

Let's make a note about that.

This is why we test.

Here is another example of the comma optimization.

Here, this function contains two return statements.

The second return statement can never be reached,

so the optimizer deleted it.

The function always returns 100.

In this example we have two while-loops.

The first while-loop will never run,

because the loop condition is known at compile-time to be false.

So it was deleted.

The second while-loop, on the other hand,

never terminates.

It is an infinite loop.

So any code that comes after that is dead code;

it can never be reached.

So the rest of the code was deleted by the optimizer.

Then we have the && sequence.

This is exactly the same example as earlier at 9:21 in this video.

The one was deleted, because it cannot change the result.

The zero was deleted, because it forces the result.

The "e" was deleted, because it would never be evaluated –

because of the zero.

This is the || version.

Here, because the compiler knows at compile-time –

that this || expression will always match because of the 1-literal,

it made that assignment into x explicit rather than conditional.

This function does two postincrements.

There is nothing too interesting about this test,

other than that the optimized tree is a great deal simpler than the original one.

The optimizer did not notice –

that the value of "x" is never used after it is incremented,

and technically it could delete the whole addition,

but that's all right:

I didn't write that kind of optimization yet.

We will get to that topic in the third or fourth episode.

This is almost the same as the previous one,

except now we have a function call instead of an addition.

There is something weird here.

Notice the function call?

It seems to have created a temporary variable,

stored a function pointer into that variable,

and then called the function indirectly at the end.

This is not incorrect behavior, but it is certainly odd,

and very likely a pessimization.

I will have to fix that.

This is the optimization –

that I explained in great detail at 14:11 in this video.

The assign expression is flattened out –

in order to make the add-expression optimizable…

But something is wrong here.

The compiler has created a temporary variable –

for the number three literal,

and this blocks the optimizer –

from performing the very purpose it was designed to do.

I will have to fix this too!

The problem with the last two tests –

was that the compiler created temporary variables –

for simple expressions that were effectively compile-time constants.

The is_pure() function is not enough to detect these situations.

We need a second classification method –

that determines whether an expression conveys a compile-time constant.

A compile-time constant is a number literal –

or a string literal, or a function identifier,

or any simple expression –

that consists of only compile-time constants.

We can immediately use this function to simplify some existing code.

So here!

This is the loop –

that hoists sub-expressions out from parents –

and replaces them with temporaries.

We will just simply check that –

if the expression is a compile-time constant,

the hoisting is not performed.

Done.

Then there was that problem with the x+1 assignment going wrong.

This is easiest to fix here, when checking for the self-assignment.

In short,

if the target expression is also used in the source expression,

a temporary variable will be created,

and that temporary variable will be referred to –

in each location in the source expression.

Then, it no longer matters if the temporary variable gets duplicated.

Now let's get back to test 7.

This is how it changed.

The +1 expression still gets duplicated, but the function does not change;

a bug is not introduced, which is the most important thing.

It would be nice,

if the whole source expression did not have to be duplicated —

it really does not need to be duplicated —

but no optimizer is perfect.

If I copied the target expression instead of the source expression,

that plus-seven optimization would be impossible.

Speaking of that.

This is what happens when the source expression is not duplicated properly,

but dubious temporary variables are created.

And we fixed that.

Now, it gets optimized properly as was originally intended,

thanks to the compile-time constant detection.

Technically that assignment into a temporary variable –

is unnecessary here, but it does not hurt.

In the next episode –

we will deal with a whole new category of optimizations –

that makes all these temporary variables not matter in the least.

We will create a register-based intermediate language –

that is one step closer to actual machine code.

Subscribe to my channel and click the bell icon –

to make sure you won't miss one episode!

As always, thank you for all your support.

In case you have questions,

make sure you first check the video description,

the links in the video description; and the top-fiveish comments —

to make sure your question has not been already answered twenty times.

I do appreciate and heartily welcome all of your comments,

thumbsups, shares, and so on,

but it will make things faster for you –

if you just spent ten seconds –

looking first whether your question has already been answered.

Have a most pleasant and fulfilling day!

See you again! [In Arabic language]

For more infomation >> Simple Optimization Techniques — How to Create a Compiler part 2/5 - Duration: 28:45.

-------------------------------------------

Honda Civic 10th Gen shift boot - Duration: 20:12.

Sorry, Left the AC ON

**Connectors**

** Hot Glue **

** Hot Glue **

For more infomation >> Honda Civic 10th Gen shift boot - Duration: 20:12.

-------------------------------------------

BREAKING NEWS !! Reputed BBC pundit urges Liverpool to sign Premier League superstar Riyad Mahrez - Duration: 3:06.

Liverpool have been urged to sign Leicester City attacker remoras by

former Scotland international and BBC Sports pundit Pat Nevins following the

shocked FA Cup exited the hands of West Bromwich Albion on Saturday the FA Cup

was seen as the Reds most likely avenue to win a trophy the season but all the

hopes were dashed when they were beaten 3-2 by Allen pardhu's Baggies at Anfield

in the wake of the defeat calls for manager Jurgen Klopp to strengthen his

side took boys again Nevin has advised the club to make a move for the Foxes

before the January transfer window slams shut the Algerian winger was reportedly

a forty nine million pound target for us but the club decided to not pursue his

signature and eventually inform the Foxes that we are not interested in

their player the BBC pundit has urged us to change our stance on the situation

and move from Aras Reed Morris would thrive in this Liverpool team Nevin told

BBC five lives as quoted by the Liverpool Echo because he plays well in

teams that have a lot of possession and that play attacking football maras just

looks like a Liverpool player to me and if I was in charge at Liverpool's I'd be

banging down Lester's door to get him Liverpool legend in the club's current

u18 manager Steven Gerrard was also critical of the Reds performance against

West Brom during the midweek speaking to BT sport he said this club is about

winning trophies so to get knocked out of this competition is a big blow for

Jurgen Klopp and a big blow for this team this was a realistic trophy that

they could have won obviously they're not one of the favourites to win the

Champions League you never know what can happen in that competition of course but

this was their best chance of silverware Liverpool weren't good enough it could

have been more than 3-hundred half West Brom caused Liverpool all kinds of

problems that's the worst I've seen Liverpool here the season the display

against West Brom was clearly one of our worst this season and Gerrard is right

in pointing out that we missed out on our only realistic chance of silverware

while Clough has maintained a strong stance that is no hurry to replace

Cuttino signing a player of the quality and proven pedigree if Mars could prove

to be a game-changer for the club on the whole with only a couple of days left in

the window let's hope our manager decides to bring

in some reinforcements

For more infomation >> BREAKING NEWS !! Reputed BBC pundit urges Liverpool to sign Premier League superstar Riyad Mahrez - Duration: 3:06.

-------------------------------------------

CORAZON DE METAL - JOEY MONTANA / TUTORIAL - Duration: 13:38.

For more infomation >> CORAZON DE METAL - JOEY MONTANA / TUTORIAL - Duration: 13:38.

-------------------------------------------

[ENG SUB] BTOB Minhyuk - 'Christmas Time~ Only You~' Introduction Message - Duration: 1:10.

Hello, Japanese Melodys. I'm Minhyuk

We'll be releasing our 1st album and I play the main character for the song 'Christmas Time'

This is the first time we had a Japanese PV with a main character

I think our title 'Christmas Time' really fits the Christmas season and when you hear it your heart will become warm

There's lyrics like "I love everything about you" and it's a beautiful song

It'd make me happy if you listened to it a lot

And, of course we're preparing for our concerts in Osaka on December 4th and in Tokyo on the 9th

We will get ready together, eh… Get ready to enjoy yourselves, I want to have lots of fun with you guys

And lastly, the most important news! We will be releasing our first Japanese album on December 7th

Please give it lots of love and support

Bye bye~

For more infomation >> [ENG SUB] BTOB Minhyuk - 'Christmas Time~ Only You~' Introduction Message - Duration: 1:10.

-------------------------------------------

I challenged making slime made of laundry paste and borax - Duration: 3:39.

For more infomation >> I challenged making slime made of laundry paste and borax - Duration: 3:39.

-------------------------------------------

독서실 화장실 변기 물이 얼어서 XX을 못보고 있어요 - Duration: 2:39.

For more infomation >> 독서실 화장실 변기 물이 얼어서 XX을 못보고 있어요 - Duration: 2:39.

-------------------------------------------

베트남에서 영웅 대접받은 박항서 근황 | THQ Channel - Duration: 1:51.

For more infomation >> 베트남에서 영웅 대접받은 박항서 근황 | THQ Channel - Duration: 1:51.

-------------------------------------------

HIIMMARYMARY (HIMM) #2 DISLIKENESS (A DARKER TRUTH) - Duration: 8:40.

himm hey walk me back and then today's video we're going to be doing episode 2 of hi

I'm Mary Mary or him I figured out what him was so I know that this is an Arg

and I know that this is fake but we enjoy puzzles I remember when I did the

first episode we didn't know if it was real or not

we were Boober bamboozled we needed to figure out was the girl in trouble did

she need help and we successfully figured it out man I would say it was

the quickest case that we have ever solved as a team but you guys wanted me

to go on with the series and I decided that I would complete it because I don't

like starting stuff and not finishing it so what we're gonna do is we're going to

explain episode 2 we're gonna go on the journey together and we're gonna figure

out the puzzles so this time I have it in the program and that's going to be

enable us to slow it down and make sure we don't miss things this time in the

first episode Mary woke up in a house she was locked in there she could not

get out she was trying to open the doors that she just couldn't get out it was

very eerie very creepy had a very strange vibe so in this one I'm assuming

she's just checking her surroundings out and we're gonna see where it goes from

there

Oh Oh okay so it looks like she put in she has the peanut butter she takes it

out shuts it opens the door back up and it's there again so it looks like things

regenerate kind of like a spawn tom from a video game I kind of like that it's

kind of cool she's got the ability to shower this is wonderful and that not

the lots only works sometimes so you can see that the lots don't work all the

time so she's going throughout different places and placing flashlights that way

she's never caught in the dark now we know Mary never shows her her full face

we got her tapping on the door here I'm trying to pay attention to any details

okay we have a tack here this I don't know but it makes me think it couldn't

be Morris code so we're gonna check out the taps and then we'll go and consult

the internet gods aka Google we'll see if this is Morse code probably not but I

imagine it's AG it gets very lonely in a situation like this now I'm assuming

this is the Morse code translation for help now I don't know if that's correct

but it does sound just like it and it seems to me like this is probably the

closest thing to it I'm probably wrong but it just seems like the tapping would

not be for no reason so she's going through the house looking through books

trying to figure out who she is we find pictures of her

whoa but make no mistake we never see her face so this time we had a little

flicker but I'm a hundred percent sure we can slow it down now ooh so let's see

I don't look good in it so this little flicker said I do not look good in it so

is she hiding her face because she doesn't look good in it or can we just

art do we not have the ability to see her face now this is a really intriguing

part and if you get scared easily or disturbed warning it's extremely creepy

we only ever see half of her face oh my god

the reaction is normal hot tea would be freaked out the lady in

the mirror the lady in the mirror is there any significance of the lady in

the mirror so interesting symbolism here spiritually light has symbolic

attachment to illumination awareness and wisdom therefore in terms of spiritual

symbolism mirrors reflect the truth they reflect what is that's interesting

so whatever is going on in this mirror represents some sort of truth and it's

creepy yes it is she does not know who she is

so whatever this truth that we are seeing has something to do with her true

identity okay we seen some words here bottom left tried to fix it tried to fix

it what does this mean she ended up tearing the head off of the picture that

she was cutting out so the laughing continues through the night I imagine

it's very disturbing she's probably not getting any sleep

so this says she's so much prettier than me I want to break the mirrors very

cryptic so interesting that it ends in this way

the girls laughing it looks like she's not gonna be able to go to sleep started

off she's trying to figure out her surroundings learn how she how can she

survive in this situation she doesn't know who she is she's finding bits and

pieces here and there the reflection the mayor symbolizing the truth what that

truth is it seems very very dark so go ahead and bring him out it looks to me

like she has a very dark past for her to be ending up in a situation like this it

could be a Dante's Inferno top deal she could have died in gone to hell

now bear with me this is a quick quad of a jump but she could be trapped in a

symbolic hail if you will to repeat the happenings over and over but like I said

we are only in episode 2 of this Arg things are still to develop I'm sure

there's gonna be some crazier things and as interesting as this is I'm always

interested in what you think so why don't you go ahead and leave your

creative and/or interesting responses the comment box B looks like this always

brothers and sisters I will see you in the next video yeah it's it's getting

strange I like you know going into this video I wasn't sure if the rest of the

series was gonna be enjoyable for me to do seeing as it was we we didn't know

what was going on we solved the case pretty quick cuz I mean the rip squad

we just hands-down get stuff done but it is fun the puzzles are always fun I

really do want to know what your opinion is on us so don't forget to tell me in

the comment section below you can head over it where I'll be there too

but if you're new here don't forget to subscribe but notifications turned on

and B in the comment section after every single video cuz I'm gonna be there Greg

the cat's gonna be there and the rest of rip squads gonna beat there and that's

just the reason why this channel loves you

For more infomation >> HIIMMARYMARY (HIMM) #2 DISLIKENESS (A DARKER TRUTH) - Duration: 8:40.

-------------------------------------------

Huawei mate lite 10 unboxing | Full Review | Four Cameras in Phone - Duration: 5:09.

Huawei mate lite 10 unboxing | Full Review | Four Cameras in Phone!

thank for watching Huawei mate lite 10 unboxing video's

For more infomation >> Huawei mate lite 10 unboxing | Full Review | Four Cameras in Phone - Duration: 5:09.

-------------------------------------------

"이게 실화냐?" 베트남의 꿈 같은 '박항서 신드롬' | THQ Channel - Duration: 4:40.

For more infomation >> "이게 실화냐?" 베트남의 꿈 같은 '박항서 신드롬' | THQ Channel - Duration: 4:40.

-------------------------------------------

The Three Musketeers (1993) - The First Battle - Duration: 6:00.

For more infomation >> The Three Musketeers (1993) - The First Battle - Duration: 6:00.

-------------------------------------------

5 Cool New Whatsapp Tricks - January 2018 - Duration: 3:13.

Hello, everyone, this is Mohit Devda here and Today I am going to show you 5 Cool New

Whatsapp Tricks.

But before moving on, make sure to get subscribed and press the bell icon to get notifications

for all my upcoming videos.

Now that you have done that, let's get started.

To send a recorded message to any contact in the WhatsApp requires you to hold the mic

button for recording.

But, now, it is possible to lock the recording and you can record for longer duration also

without continuously holding that mic button.

So, it is a very small change but is very useful for some people.

This may be an old trick but many people don't actually know about it.

So, you can easily manage your WhatsApp storage by going to the settings, Data and Storage

usage and after scrolling, you will see Storage Usage, tap on that and you will see all your

contacts and groups in the decreasing order of shared data.

Now, you can tap on any contact and you will see all the details of the data shared with

them.

From here, you can delete all the messages, images, or videos, etc. shared with that particular

contact only.

So, when your storage gets full, you can use this trick to easily manage your WhatsApp data.

This one is the latest feature by Whatsapp which lets you play Youtube videos directly

on the chat screen.

The video is played in a floating window which is freely movable and you can even go to another

chat while watching the video which is so much convenient.

This trick also works during the video calls.

So, when you call any contact you can minimize that video call by swiping down.

It will be there in a circular window at any corner of the screen and you can now use WhatsApp

with the video call still going on.

So, this is a useful feature and you must try it.

Message delete also known as Message Recall is a nice and useful feature for WhatsApp.

Using this feature, you can delete any WhatsApp message sent by you but under the time limit

of 7 minutes.

That message will be deleted for the person at the other end also.

After 7 minutes, you will be able to delete the message from your own smartphone only.

Keep in mind that it would be visible to the other person also that you have deleted the

message.

So, this feature is very useful in case of accidentally messaging someone as now it is

possible to quickly recall it.

The last feature of this video is very useful in some cases.

Now using WhatsApp, it is possible to share your Live location with your friends.

To do this, you just need to tap on Location and from here you will get the option of Sharing

Live Location.

So, Now you don't need to stay in one place, as using live location your friend would be

easily able to find your current location.

So, these were some cool tricks and features of Whatsapp and tell me in the comments which

feature you liked the most.

Also, if I missed something else or you know more WhatsApp tricks, then let me know in

the comments down below.

So, that was it for this video.

Thanks for Watching and I will see you guys in the next one.

For more infomation >> 5 Cool New Whatsapp Tricks - January 2018 - Duration: 3:13.

-------------------------------------------

STO LAT NIECH ŻYJA NAM - zespół (teksty/lyrics/songtexte/info) Kramsk sala OSP DW266 - Duration: 2:35.

For more infomation >> STO LAT NIECH ŻYJA NAM - zespół (teksty/lyrics/songtexte/info) Kramsk sala OSP DW266 - Duration: 2:35.

-------------------------------------------

The Three Musketeers (1993) - A Private Party - Duration: 2:15.

For more infomation >> The Three Musketeers (1993) - A Private Party - Duration: 2:15.

-------------------------------------------

simple rangoli for beginners||rangoli designs with dots||rangoli by niha - Duration: 2:09.

Niha rangoli

Please subscribe and press the bell icon for further notifications

For more infomation >> simple rangoli for beginners||rangoli designs with dots||rangoli by niha - Duration: 2:09.

-------------------------------------------

Funny Clown Bibi | Learn Construction vehicles RC Loader Jamara Details in Funny Video for kids - Duration: 3:28.

Hi Kids,

Today Funny Clown Bibi will present you a video with Construction vehicles.

In this video for kids you will learn construction vehicles rc Loader details in funny construction video for kids.

Do not forget to subscribe under the video and like it

Click on the picture to see other funny videos

For more infomation >> Funny Clown Bibi | Learn Construction vehicles RC Loader Jamara Details in Funny Video for kids - Duration: 3:28.

-------------------------------------------

Vsauce - 旋轉(CC中文字幕) - Duration: 17:32.

For more infomation >> Vsauce - 旋轉(CC中文字幕) - Duration: 17:32.

-------------------------------------------

EJ Carter is Up Next

For more infomation >> EJ Carter is Up Next

-------------------------------------------

বাংলা ইসলামী গান 2018 | বাংলা শ্রেষ্ঠ Gojol | বাংলা নতুন gojol 2018 Best gozol - Duration: 4:56.

বাংলা ইসলামী গান 2018 | বাংলা শ্রেষ্ঠ Gojol | বাংলা নতুন gojol 2018 Best gozol

বাংলা ইসলামী গান 2018 | বাংলা শ্রেষ্ঠ Gojol | বাংলা নতুন gojol 2018 Best gozol

বাংলা ইসলামী গান 2018 | বাংলা শ্রেষ্ঠ Gojol | বাংলা নতুন gojol 2018 Best gozol

bd waz

No comments:

Post a Comment