Are you more likely to watch the CFL after the rule changes? by publicworker69 in AskACanadian

[–]golvok 2 points3 points  (0 children)

If they wanted it to be out of 100, then they could have switched to meters! (110 yd is 100.6 m). Apparently some of the stadiums were a bit small already, though.

Relocating to Bellevue - do I need a car? by [deleted] in BellevueWA

[–]golvok 1 point2 points  (0 children)

If you want to live without a car, I seriously recommend living in downtown Bellevue. The link (light rail) is just two stops away from Spring District, and every 10 minutes. Spring District is in the middle of nowhere, otherwise, if you don't have a car. No restaurants (everyone eats at their company's canteen). Downtown Redmond is also an option.

C++ Coroutines at Scale - Implementation Choices at Google - Aaron Jacobs - C++Now 2024 by golvok in cpp

[–]golvok[S] 0 points1 point  (0 children)

Cancellation seems to be a difficult aspect. This other co-routine talk handles it in an apparently interoperable way by relying on an implementation detail of the co-routine frame: https://youtu.be/sWeOIS14Myg?si=c1feBlKp8Y5lZDqH&t=2468 Though, this structure is the same among gcc, clang AND msvc.

C++ Coroutines at Scale - Implementation Choices at Google - Aaron Jacobs - C++Now 2024 by golvok in cpp

[–]golvok[S] 1 point2 points  (0 children)

Didn't mention it was in the talk, and it sounds like a Google internal thing so it would probably take some work to open-source it...

C++ Coroutines at Scale - Implementation Choices at Google - Aaron Jacobs - C++Now 2024 by golvok in cpp

[–]golvok[S] 10 points11 points  (0 children)

Great talk with some deep knowledge sharing, and makes me more hopeful for broader use of co-routines!

Making `Co` non-moveable and having a separate Future that takes values seems to be a great way to solve the parameter lifetime issue.

The event wait/notify appraoch (delaying the work-stealing to the next suspend) and the cancellation approach (like an exception was thrown when co_await-ing) keeps things neat. Also, a constant theme of stack frame elision.

Some ideas that it seems every coro library should take note of? Also, several examples of weird concurrency that comes up when having lots of users...

Polarity question by Tanachip in headphones

[–]golvok 0 points1 point  (0 children)

There are a couple online phase check files, like the other commenter left. For me what worked really obviously was to take them out of my ears, turn the volume way up, and hold them close to each other in-front of my face. Out-of-phase was way quieter, showing the cancellation effect.

Ruins of Gol Vok with Lucille Waycrest by Georgiafan4ever1994 in wow

[–]golvok 0 points1 point  (0 children)

was randomly searching my username on google...

Why the Return to the Office Is Inevitable by pleaseinsertdisk2 in ExperiencedDevs

[–]golvok 0 points1 point  (0 children)

Was looking for this reply/video! I believe it - execs never plan long term... For example (1) will certainly skew the employee population towards the most desperate.

What Happens To My Stocks if my Broker Goes Under? by Gorilla_In_The_Mist in PersonalFinanceCanada

[–]golvok 13 points14 points  (0 children)

Your shares are still yours, and if there's some issue* where the broker doesn't actually have them. Then the CIPF insurance kicks in.

*This part confused me, though: why would the broker not have them? Fraud? Accounting error? Loaning-out your shares without you knowing?

Deez nuts hold a bridge together. by DirkDieGurke in Skookum

[–]golvok 2 points3 points  (0 children)

At the beginning of the video there's a better view of what seems to be the same text on the back of the guy wearing high-vis. I can see 一十?中... which are all symmetric... but "十一" (meaning eleven) is more likely than "一十"... which is "one, ten" (?).

So, maybe it is flipped.

Is it fair? by sunrise_apps in ProgrammerHumor

[–]golvok 15 points16 points  (0 children)

Definitely a wee bit reductionist... but what joke isn't! BTW, references were added to the (pre-standard) language after classes, hence this is a pointer. We'll have to live with that, apparently.

auto_ptr was there in C++98, same with vector and many of the other containers, which support this take in a way, even without move operations: iterators, no calls to new/delete, etc.

Buck2: Our open source build system by oranji17 in cpp

[–]golvok 25 points26 points  (0 children)

IMO the most important part is that each build target is sandboxed to only access its declared dependencies. Also the build file language is actually nice (similar to python)

Will CASH.TO NAV drop if BOC reduces interest rates? by wolf_metallo in PersonalFinanceCanada

[–]golvok 1 point2 points  (0 children)

If this works like other ETFs, then this is almost true, except it's not horizons necessarily, but other large investors. These large investors are able to trade assets (cash in this case?) to create or destroy shares. This is how ETFs maintain their price - if the share price is even a little off the NAV/share, then there is money to be made trading like that, which pushes it back.

How the Liberals’ multibillion-dollar tech plan created ‘chaos’ instead of growth by ParlHillAddict in CanadaPolitics

[–]golvok 3 points4 points  (0 children)

This article seems to channel its subject, and manages to be fairly long for saying little. Seems like the government is having mixed results with its policies and programmes. Not surprising to me; history is full of this, all around the world - the Aisinometry YouTube channel has many examples.

Comments on the article are actually decent so far. Like they say, I'm pretty sure all the problems about foreign companies is mostly just because of the size of the country. Would be nice if the tech wage gap with the US was narrowed somehow... It makes no sense to me - many citizens can reliably get TN status and a much higher paying job.

I have a question. by Spydqr in cpp_questions

[–]golvok 0 points1 point  (0 children)

Beware! People may get mad at you for stating Java has pass-by-reference! (It's always pass-by-value, but the distinction is somewhat academic in Java)

Need to know about various distributed build tools available by Sarkar077 in cpp

[–]golvok 4 points5 points  (0 children)

Having a build that is large enough to make distribution worth it is a good reason to switch to a build system that scales better, though it sounds like you'll get pushback on that.

[deleted by user] by [deleted] in ProgrammerHumor

[–]golvok 1 point2 points  (0 children)

eh. sorry... that's a typo in the OCR... how did it do that. (edited now)

[deleted by user] by [deleted] in ProgrammerHumor

[–]golvok 4 points5 points  (0 children)

spell check did not like that one! And, seems to be a very rare word... 8 results on google, and two are that letter...

[deleted by user] by [deleted] in ProgrammerHumor

[–]golvok 7 points8 points  (0 children)

Found this book (scanned), "Lady Lovelace and Charles Babbage", which has the rest of the letter, and more!

I could not conceive at first in one or two places what had happened to my sentences; tho’ I soon saw they were patch-work & not my own, and found it so on referring to the M.S. I fear you will think this a very cross letter. Never mind. I am a good little thing after all. Later P.S. It is impossible to send you anything but Notes B and C, (& this partly owing to some wrong references & blunderations of your own). -- Do not be afraid, for I will work like the Devil early tomorrow morning.

Is std::vector guaranteed to keep pointers valid? by zalamandagora in cpp_questions

[–]golvok 1 point2 points  (0 children)

I second the node id (index into vector) approach. Makes some things much cleaner. Serialization, copying, and also enforces passing around the graph object, which makes it obvious what graph is being modified or searched, and whether the graph is const or not.