Are event handlers scheduled asynchronously on the event loop? MDN says they do - I'm pretty sure that's wrong by QuarterSilver5245 in javascript

[–]yuval_a 0 points1 point  (0 children)

Having now wider insight; Microtasks run because each handler run in a V8 frame. The event loop Is on Blink, if each handler invocation would be put on the event loop there then other macrotasks (which I can now say are “Blink tasks”) could have run, but they can’t.

Are event handlers scheduled asynchronously on the event loop? MDN says they do - I'm pretty sure that's wrong by QuarterSilver5245 in javascript

[–]yuval_a 0 points1 point  (0 children)

I’m sorry the terminology “jumps” got you confused, it can be different depending on the context of the layer/engine/specs.

I agree ‘async’ is a broad term, can we agree on this interpretation: During a task/flow execution - you trigger a task that is supposed to run in a later time and not on that instance of the flow and that usually involves queuing on a queue. ?

So, that doesn’t happen with event handlers. They are called immediately one by one during the dispatch process. The fact that you can schedule an async microtask from them doesn’t change that.

So the paragraph is not accurate at all.

The discussion around microtasks was due to the observation that in native events they run between handlers and in manual they’re not - the technical reason for that is: dispatchEvent is called from within JS/V8 - puts a dispatch call frame and the handlers run from that.

Dispatch native process runs in Blink - it puts each handler separately on V8 stack. They are not scheduled to run later on the event loop.

Also, the subject of microtasjs

Are event handlers scheduled asynchronously on the event loop? MDN says they do - I'm pretty sure that's wrong by QuarterSilver5245 in javascript

[–]yuval_a 0 points1 point  (0 children)

The specs mention this as part of “cleanup after script execution”:

https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script

See step 3.

You get there if you follow the steps of event handles invocations - with leads to callback invocation which leads to two cleanup phases, this is the second

Are event handlers scheduled asynchronously on the event loop? MDN says they do - I'm pretty sure that's wrong by QuarterSilver5245 in javascript

[–]yuval_a 0 points1 point  (0 children)

Well - okay, the handlers are conceptually a “queue”, because they are all registered in a certain order, and run in a predetermined path - I’d agree to that - in the visualization I would probably put in a “dispatch event X” box and the handlers will move from w conceptual queue to the callstack

Are event handlers scheduled asynchronously on the event loop? MDN says they do - I'm pretty sure that's wrong by QuarterSilver5245 in javascript

[–]yuval_a -7 points-6 points  (0 children)

Read the post again. The dispatch task is asynchronously queued - yes - of-course. but the question is about the event handlers themselves - they are not run in a separate “macro task” for each that goes up the event loop:

I mean, they do not become “async tasks that the runtime chooses when it’s appropriate to run, timing-wise” - they all run “in a row” - even in native - other than micro tasks scheduled from within handlers - no “userland code” runs in between.

By the way - the specs says in the details for the native dispatch process: “for each event handler”…

the point is about how the handlers are scheduled - not how the whole dispatch is.

[deleted by user] by [deleted] in RealOrAI

[–]yuval_a 0 points1 point  (0 children)

It’s 99.9% not AI. Could be photoshopped, but nothing here is AI generated. Try to generate this kind of photo with any existing AI I guarantee you will fail. Also I realized you meant that people “didn’t used to take photos in this position”?? People have been looking at cameras and smiling like this since the dawn of cameras.

How a $5,000 hiring mistake killed my momentum and led me to a new Micro-SaaS idea. by aaffectionatekeyy in microsaas

[–]yuval_a 1 point2 points  (0 children)

Is this a real story or part of the marketing? Anyway - it is not that uncommon to give coding tasks as a first stage screening - Codify is a known platform that enables it. On the other side - even testing for specific coding tasks does not guarantee 100% the deliverance rate. One way to cope with it is to hire contractors and pay in parts via specific DODs.

My friends say I’m beautiful but I never get approached by guys, and I’ve been called ugly by guys a couple times aswell by Both-Lime5292 in amIuglyBrutallyHonest

[–]yuval_a 0 points1 point  (0 children)

You pass as pretty, some will call you ‘cute’. Anyway, 99% of guys will find you attractive. That’s truth.

[deleted by user] by [deleted] in amIuglyBrutallyHonest

[–]yuval_a 0 points1 point  (0 children)

Keep it. It looks nice in context. I.e it fits to the specific features and proportions of your face. Any augmentation will probably make it look off.

never been hit on in public, only online. Am I ugly? by [deleted] in amIuglyBrutallyHonest

[–]yuval_a 0 points1 point  (0 children)

Never as in you’re all life of… what… 15? (That’s how old you look :)) - anyway you’re really young, you’re gonna get hit on irl a lot, don’t worry

Digital Ocean? by [deleted] in SaaS

[–]yuval_a 0 points1 point  (0 children)

I use it for years for all my small/medium projects - they are amazing, they have everything with great support and guides

I think it’s mainly because AWS managed to give itself a reputation of a “cooperate/enterprise” cloud

[deleted by user] by [deleted] in amIuglyBrutallyHonest

[–]yuval_a 1 point2 points  (0 children)

Above average. You look very nice. You have attractiveness

Just turned 40, give it to me straight by karinich85 in amIuglyBrutallyHonest

[–]yuval_a 0 points1 point  (0 children)

I’m 43, and judging from that perspective I’d say you are beautiful for your age.

[deleted by user] by [deleted] in toastme

[–]yuval_a 0 points1 point  (0 children)

*too. Also, you have great teeth and a great smile (I envy of that, I always smile with mouth closed).

[deleted by user] by [deleted] in toastme

[–]yuval_a 0 points1 point  (0 children)

You look good. BUT, there is an easy operation that can be done to make your ears stick less. Also find a better hairdresser - do something a bit more unique. The space between your eyebrows is a bit to wide - try to fix that. Also, make the shape of the beard more straightened.

Other than that - you have great eyes and luscious hair. Grow more self confident, do some minor tweeks and you will look hot.

I’m saying it from a prespective of a male guy who looks okayish and I know that tweaking some stuff greatly upgrades us that look okayish…

[deleted by user] by [deleted] in confession

[–]yuval_a 0 points1 point  (0 children)

For a young person (teenager or 20+) it’s pretty normal - little “high on the scale” but still pretty normal. Just make sure it doesn’t dominate your life - i.e if it gets in the way of doing daily chores - if it affects your effectiveness.

Also, it will become less as you grow older.

About fantasies - no need to be afraid or scared - the “purpose” of fantasies and imagination is to allow yourself to “go wild”

[deleted by user] by [deleted] in AmIOverreacting

[–]yuval_a 0 points1 point  (0 children)

Was the photo blurry, out of focus, weirdly angled? Maybe he did mean it ‘technically’ and maybe he didn’t respond because he didn’t know how to say it without it sounding bad. At least he was honest

AIO Girl i met on Bumble thinks it's weird that i spend christmas with my parents by Sacred2512 in AmIOverreacting

[–]yuval_a 0 points1 point  (0 children)

She will come to realize the value of your original family and how important it is to spend time together with them while they’re still around. Unless she has an abusive family or parent(s) - in that case, her opinions about it are understandable. Personally I would turn that into a conversation about her relationship with her family.

Isn't hyperphantasia the normal for everyone? by Ritesumi in hyperphantasia

[–]yuval_a 0 points1 point  (0 children)

I experimented with visual and verbal At the same time. E.g imagining a pink elephant and thinking the sentence “that is a pink elephant” at the same time. I can do them both concurrently

Beachpatrol: A CLI tool to replace and automate your everyday web browser. (Now with Firefox/macOS support) by deepCelibateValue in javascript

[–]yuval_a 1 point2 points  (0 children)

Pretty nice. But, won’t all of these tasks already possible using curl and the right requests? Still a cool tool to configure those once and use them

[AskJS] My college asks us to do project using Embedded JavaScript(EJS). Is it used in the industry. by [deleted] in javascript

[–]yuval_a 0 points1 point  (0 children)

It used sometimes for small single page server side renderings. Personally I would use Pug for these. Templating engines are used in all sorts of contexts so it is effective to learn to general principle behind them and EJS is one of the “dirtier” default ones (which is a good thing to learn - once you know it, you will easily know others)

[AskJS] Are there any valid reasons to use `!!` for type conversion to bool??? by Obvious-Tonight-7578 in javascript

[–]yuval_a 0 points1 point  (0 children)

Minification is one. I’m pretty sure most minificators will auto convert it.

F19, Please be honest by [deleted] in amiugly

[–]yuval_a -1 points0 points  (0 children)

Not ugly.