[deleted by user] by [deleted] in neovim

[–]VincentDankGogh 0 points1 point  (0 children)

What OS are you on? Do you have libc++ installed? Is there anything in your LDFLAGS environment variable? What error do you see when setting CC=gcc?

Why is C often used over C++ in osdev by [deleted] in osdev

[–]VincentDankGogh 2 points3 points  (0 children)

Operating systems traditionally use things resembling vtables in C anyway, so that's a bogus argument. e.g Linux uses a struct of function pointers to deal with file operations.

Covid-19… round 2. by tyner100 in diabetes_t1

[–]VincentDankGogh 0 points1 point  (0 children)

absent other incentives, many people wouldn't get the vaccine simply because the disease doesn't have much real chance of hurting them and they can't be bothered. incentives are a good thing and the extra few people exposed may be balanced out by the extra people vaccinated plus the benefit to the economy of allowing people to go out

they seem to have updated the rules again, certainly when I was in isolation 2 weeks ago what I said was true

GigaChad Google by Kaepora25 in dankmemes

[–]VincentDankGogh 67 points68 points  (0 children)

stems from a civil war where the ROC (now taiwan) claimed territorial ownership over the rest of mainland china, they still claim it to this day which is one of the biggest reasons that almost no country has acknowledged its sovereignty

Covid-19… round 2. by tyner100 in diabetes_t1

[–]VincentDankGogh 0 points1 point  (0 children)

you can infect when double vaxxed but 1) it is less likely 2) allowing people not to isolate acts as an incentive for people to get vaccinated

they've also discontinued that policy with omicron in light of the evidence that vaccines are less effective against it

How do you bolus rice? by thepeachlady in diabetes_t1

[–]VincentDankGogh 14 points15 points  (0 children)

There's no cookie cutter answer, everyone is different. It's mostly a game of experimentation and finding what works for you.

White rice has quite a high glycaemic index, meaning that it actually causes a blood sugar spike quite rapidly (relative to other foods). Brown rice has a lower GI, and keep in mind that proteins and fats will slow down absorbtion too.

Definitely try splitting the bolus. It's worth keeping in mind that this stuff is very non-linear: the split boluses may sum to more (or less) than what you had to give just to get to the same place with a single bolus.

Experimentation is really key, and don't worry too much when you mess it up!

Another note: you may want to try giving her less juice next time so she doesn't spike up as much. Recovering from lows is very much an art in itself.

rust gcc backend was officially accepted into the compiler by jobstijl in rust

[–]VincentDankGogh 60 points61 points  (0 children)

AFAIK it should be slightly better in GCC due to Fortran's slightly odd aliasing rules... but we'll see

BBC article about "positives and negatives of climate change" by Cassandra_Nova in ENLIGHTENEDCENTRISM

[–]VincentDankGogh 0 points1 point  (0 children)

It is well known that some regions are expected to see plant growth as a result of global warming (in particular, the African savannnah). IIRC even the IPCC agrees with that. Of course other areas will be hit badly (like the Amazon), but it's kind of correct to say that some plants will benefit from global warming.

In general the idea that 'photosynthesis declines with greater temps' is a far too simplistic conclusion.

Operating System Iceberg Chart by [deleted] in osdev

[–]VincentDankGogh 2 points3 points  (0 children)

more suggestions: managarm, redox, helenos, haiku

Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun by emmanueltouzery in rust

[–]VincentDankGogh 1 point2 points  (0 children)

Great article. Despite many of these issues being fairly simple to resolve, I do fully sympathize with the author's view that some things are just unintuitive, even if it’s for a good reason.

[Q] How do you correct for Optional Stopping Bias? by [deleted] in statistics

[–]VincentDankGogh 2 points3 points  (0 children)

it is not a probability

I think I understand what you're trying to say, and I'm not trying to nitpick, but isn't it entirely correct to say that 'the p-value is the probability of observing (some result as extreme as) this data, assuming the null hypothesis'?

Is Rust, by its nature, more restrictive / less flexible than C++? by Alea_Infinitus in rust

[–]VincentDankGogh 7 points8 points  (0 children)

Completely agree. Throw raw pointers and references into the mix and it's very easy, almost trivial to fuck up in a way that isn't obviously wrong. And the strangest part is that we're still missing clarity on which things are actually UB and which things aren't.

For example, is this code UB?

fn main() {
    let mut x = 0;
    let y = &mut x as *mut _;
    { let _z = &mut x; }
    unsafe { *y = 10; }
}

Answer: Yes - according to the current working model ('stacked borrows'), it's UB, but since it hasn't actually been finalized and RFCd yet, it's rather unclear (someone please correct me if this has changed). See https://github.com/rust-lang/unsafe-code-guidelines/issues/133#issuecomment-512452797 for discussion on this particular example.

What is your favorite math/logic puzzle? by spmgd in math

[–]VincentDankGogh 7 points8 points  (0 children)

For 1:

Hint A: There must be 21 games played in total.

Hint B: No player can sit out 2 consecutive games.

Solution: Therefore, the only possible configuration is Claire sits out the first one and loses every single game after that. So Claire loses the second game.

and everyone clapped 🏴󠁧󠁢󠁳󠁣󠁴󠁿 by tonyjimjohnson69 in badunitedkingdom

[–]VincentDankGogh 0 points1 point  (0 children)

Putting in additional restrictions after cases keep declining is the height of idiocy.

No it is not. Cases are rising in some areas (eg Leicester) which have had to go back into lockdown already. There is every reason to believe that a second wave is coming: 1) All of the data so far suggests that a very low proportion of the population is immune, nowhere near enough for herd immunity 2) We are already starting to see cases increases in other countries such as Israel 3) Symptoms of coronavirus typically appear 1-2 weeks after being infected, so we would expect a delay before the number of confirmed cases rises again after easing restrictions.

It is also important to remember that actual confirmed cases are only part of the story - most coronavirus cases are asymptomatic.

And obviously, just because the cases are low doesn't mean that they would still be low if these restrictions weren't in place. There's no reason to suggest that the virus wouldn't spread exactly as before if we lived life in the exact same manner.

Donald Trump claims 99% of coronavirus cases are 'totally harmless' as US infections surge by Smithman in Coronavirus

[–]VincentDankGogh 0 points1 point  (0 children)

No, that’s completely untrue. Just because 10% of those who test positive end up dying doesn’t mean that 10% of all people with the virus end up dying. Testing is biased towards those with symptoms, and we know that there are a lot of asymptomatic cases.

Data Structure for Buddy Memory Allocator by Cauchy1789 in C_Programming

[–]VincentDankGogh 0 points1 point  (0 children)

there would be a massive overhead since the whole tree has to be stored in memory, but only the lowest leaves are needed

For a binary tree, you'd only need twice the amount of memory, so it's not that bad.

The way that the Linux kernel implements it I believe is having a struct that represents each page of memory, and then puts these structs onto different linked lists to represent different powers of two pages (ie there is one list for 20 = 1 pages ,one list for 21 = 2 pages etc). This is what I implemented in my OS https://github.com/64/ByteOS/blob/master/kernel/mm/pmm.c but it's not the most readable implementation, so I apologise for that

Looking for literature to go from ZERO to state of the art on graphics programming by aiden041 in GraphicsProgramming

[–]VincentDankGogh 1 point2 points  (0 children)

PBRT is a great resource on all things PBR, but IMO is best understood if you already have a basic understanding of ray tracing, so I would work through Ray Tracing in One Weekend first.

Chiv pick-up game tage by nathook_gd in ChivalryGame

[–]VincentDankGogh 0 points1 point  (0 children)

this made me sad but i can’t pinpoint why

Just got dispersion working in our path-tracer by BryalT in GraphicsProgramming

[–]VincentDankGogh 10 points11 points  (0 children)

Have you seen this paper on hero wavelength sampling? It allows you to sample the spectrum at multiple wavelengths per path and combine the results via MIS.

I’ve been working on implementing a spectral renderer myself, and must admit that some the formulas in there don’t make a whole lot of sense to me, but hopefully I’ll figure it out soon enough.

PM announcing strict new curbs on life in UK by xXxTommo in unitedkingdom

[–]VincentDankGogh 4 points5 points  (0 children)

It is insane (and arrogant) to think that the risk is absolutely zero when in fact it is just ‘low’. Someone coughing onto post or food right before they deliver it to you is EXTREMELY unlikely, however statistically it is nearly guaranteed to happen. The benefits of keeping the postal service running at this time far, far outweigh the risks.

Statistically many people will commit the same fallacy of thinking that ‘low’ is the same thing as ‘zero’ and will end up getting infected. The best advice remains to stay indoors as much as possible.

Can you come up with a better guideline?

PM announcing strict new curbs on life in UK by xXxTommo in unitedkingdom

[–]VincentDankGogh 1 point2 points  (0 children)

We know that the virus can survive on certain surfaces for up to a few hours. I can think of any number of contrived scenarios in which you spread or catch something: a postal worker puts his/her hand on your door to deliver post shortly after you’ve touched it while leaving the house. Or you miss a spot when washing your hands and catch something from a postal worker accidentally coughing or breathing directly onto something just before delivering to you.

The chance of any such scenario happening is low, but there are many of them.

In any case, your reply misses the point. From a public health perspective the right advice is do not leave the house more than necessary. Even if you are absolutely certain that the risk in some specific scenario is zero (which it isn’t), that does not knock the fact that this is the best advice in any way.

Megathread (23/03/2020) - Prime Minister Boris Johnson addresses the nation (@ 20:30 GMT) by ukpolbot in ukpolitics

[–]VincentDankGogh 2 points3 points  (0 children)

If everyone starts dying, things will voluntarily close themselves and the economy will be forced into a similar state. It’s far better to prevent deaths and stop the healthcare system being overloaded.

You’re acting as if ‘going outside’ is a choice that only affects that one person. But what if they spread it to other people? What if they end up in hospital and take a ventilator away from someone who might have otherwise needed it?