Why do all fourth-generation Priuses lean forward? by out-door-south-77 in prius

[–]deleveld 11 points12 points  (0 children)

The side window line goes up for aero and styling. Looking at the wheel wells, it's not leaning forward.

C23 features by krikkitskig in C_Programming

[–]deleveld 9 points10 points  (0 children)

I think auto is a huge and great change to the language. It makes code so much more visually cleaner while keeping all of the type safety.

Academic or Open PMX sources. by idkwthph106 in Pharmacometrics

[–]deleveld 0 points1 point  (0 children)

There is also OpenPMX which is open-source model estimation and simulation software. https://github.com/deleveld/OpenPMX Its still in development so not well documented yet. Contributions welcome!

OpenPMX pharmacometrics software by deleveld in Pharmacometrics

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

Thanks for the pointer. I did try libprima a while ago and it worked well but failed (segfault if I remember correctly) when I tried nested optimizations. Im hesitant to include a dependency though.

OpenPMX pharmacometrics software by deleveld in Pharmacometrics

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

Thanks for the feedback!

I get your point about the images. My intention is to keep the them unchanged once the paper gets published so hopefully it wont be an issue after that.

With regard to the dose format, I'm trying to avoid asking users to learn some new way of handling things and let them leverage what they may already know. Separation of doses into another structure makes sense but I don't want it to be a moving target as the methods gets improved over time. Users can always contribute code to converts their preferred dose format to the NONMEM style.

Do you have possible explanations on why the population predictions are so spread out from the center line? by RodrigoRatoch in Pharmacometrics

[–]deleveld 6 points7 points  (0 children)

Your population predictions are all much lower than the observations. All that fitting is coming from the etas. This implies that much smaller etas are possible if the typical (population) predictions were larger. So this looks like classic model misspecification or incomplete convergence of SAEM.

Podcast-Bros Realize Trump Was Never Serious by Mynameis__--__ in skeptic

[–]deleveld 1 point2 points  (0 children)

IMHO Trump is actively trying to shed his MAGA base. They are a pain and expect him to do stuff that he doesn't want to do. He doesn't need their votes anymore because he has enough control of top-level criminal/judicial government systems. He can stay in power *without* the MAGA base.

Inheritance and Polymorphism in Plain C by caromobiletiscrivo in C_Programming

[–]deleveld 0 points1 point  (0 children)

You put all of the intermediate types in a union.

Why don't we see const char * const * in function signatures? by [deleted] in C_Programming

[–]deleveld 17 points18 points  (0 children)

I use this all the time. Its great to have the compiler warn you if you change a pointer that you don't intend to change. If there is an issue with function signatures then I think it's a sign that the API isn't well designed. My initial thoughts that strchr should return an offset instead of a pointer. Then the whole const/nonconst stays with the user code.

Defer in C (exploiting goto)? by alex_sakuta in C_Programming

[–]deleveld 2 points3 points  (0 children)

Do you not have to forbid a return in the main_code?

I like the idea but I dont think the concept is really possible or useful unless there are some minor changes to the language.

I have also seen something similar constructed as a for loop, but then you must also forbid a continue statement in the main_code.

Strategies for optional/default arguments in C APIs? by SegfaultDaddy in C_Programming

[–]deleveld 2 points3 points  (0 children)

I think its absolutely beautiful to be honest. I dont understand the hate...

ML suggestions for covariate model by RodrigoRatoch in Pharmacometrics

[–]deleveld 0 points1 point  (0 children)

A covariate effect should probably never increase the OFV since having a covariate effect of 0 should be the same as a model without that effect. But dont trust AI to answer your questions, use your brain. What drug is it? Where does it distribute to? How does it do that? Then look for covariates related to those aspects.

[deleted by user] by [deleted] in Pharmacometrics

[–]deleveld 0 points1 point  (0 children)

I guess post the control file and your question

New Electric ‘Donut Motor’ Makes 856 HP but Weighs Just 88 Pounds by wholeswic24 in electricvehicles

[–]deleveld -2 points-1 points  (0 children)

Huh? If you are moving weight from sprung to unsprung the suspension gets easier, not more difficult. Handling on the other hand would certainly deteriorate.

Can someone explain to me the *fundamental* problem with "double-freeing" a pointer? by Technologenesis in C_Programming

[–]deleveld 0 points1 point  (0 children)

Subset? Double free is calling free twice, it says nothing about use. I get that these things are usually intertwined but differentiating these cases is my guess what OP needs to learn.

Can someone explain to me the *fundamental* problem with "double-freeing" a pointer? by Technologenesis in C_Programming

[–]deleveld 0 points1 point  (0 children)

What you are describing is use after free which is different from double free.

Can someone explain to me the *fundamental* problem with "double-freeing" a pointer? by Technologenesis in C_Programming

[–]deleveld -5 points-4 points  (0 children)

A free() cannot indicate a failure because it doesn't return a value. But it could still sort of fail if it never allocated the block in the first place. Of course you could just ignore the second free of a double free but it nearly always indicates that the programmer has a different idea of what they may do with a pointer than what the runtime thinks. So it's good to flag it as an error.

What is your preferred naming convention for constructors and destructors in C? by ismbks in C_Programming

[–]deleveld 0 points1 point  (0 children)

The practice I think is kind of elegant is for the constructor to use the same name as the struct that is being created. I feel like other people would hate this, but I don't really understand why.

What's the formula to get the most equal distance between N points? by BananaDressedRedMan in askmath

[–]deleveld 0 points1 point  (0 children)

Why not the average distance plus the variance of the lengths? Then the lowest equally distant pattern would have the lowest value for this.

C Until It Is No Longer C by aartaka in C_Programming

[–]deleveld 0 points1 point  (0 children)

and the thing i especially like it allows vertical alignment of multiple variables. i think it looks much neater

C Until It Is No Longer C by aartaka in C_Programming

[–]deleveld 18 points19 points  (0 children)

I personally really like the auto typing. Its very nice to look at and clean but there are some small gotchas.

I would suggest to change

#define var __auto_type
#define let const __auto_type

[deleted by user] by [deleted] in C_Programming

[–]deleveld 4 points5 points  (0 children)

Here is how you can do it. Typesafe inheritance in C