I'm no expert in C++ so not sure if it's meant to look like that, but that code is making my brain hurt.
Just argument parsing makes my eyes bleed... https://github.com/mrc-ide/covid-sim/blob/master/src/CovidSi... That stuff is priceless: else if (argv[i][1] == 'C' && argv[i][2] == 'L' && argv[i][3] == 'P' && argv[i][4] == '1' && argv[i][5] == ':') I guess string comparisons are complicated. I also fail to see why they used ':' as the separator and why they didn't use a proper library to parse argv...
Imperial College London have released their Covid-19 epidemic simulation
21–30 of 82 posts
Re: Imperial College London have released their Covid-19 epidemic simulation
#22Alumnus here, it’s Imperial College, London. It is a university (in its own right), but always goes by that name.
Only since 2007. Uni of London before that for 100 years. Used to play them at sports as part of the ULU league.
Re: Imperial College London have released their Covid-19 epidemic simulation
#23Some people have raised issues with the model[1][2], or rather, the software implementation of it. There's also a (flagged) submission on HN discussing this[3] referencing [1]. [1] (warning: possibly partisan link) https://lockdownsceptics.org/code-review-of-fergusons-model/ [2] https://github.com/mrc-ide/covid-sim/issues/165 [3] https://news.ycombinator.com/item?id=23099212
That issue is unhelpful. Yes, no good tests, but how about suggesting ways it can actually be improved? Why are devs such bores when it comes to things like this? They have released the model, review it and suggest improvements! Don't grandstand "We, the undersigned etc etc" as if that's going to help improve the codebase in the slightest. Carmack is OK with it, he's put his name to reviewing it. That's not to excuse…
Re: Imperial College London have released their Covid-19 epidemic simulation
#24Alumnus here, it’s Imperial College, London. It is a university (in its own right), but always goes by that name.
Only since 2007. Uni of London before that for 100 years. Used to play them at sports as part of the ULU league.
Re: Imperial College London have released their Covid-19 epidemic simulation
#25Interesting tidbit for HN, Jobn Carmack helped a little with this project apparently https://twitter.com/ID_AA_Carmack/status/1254872368763277313
Re: Imperial College London have released their Covid-19 epidemic simulation
#26This code is great fun. Start here to explore the horror: https://github.com/mrc-ide/covid-sim/blob/master/src/CovidSi... I like the way InitModel() crashes (I think) if a global pointer called bmh (short for bitmap header) isn't first initialized by calling InitBMHead() from Bitmap.cpp. I guess it's obvious to academics with giant brains that InitModel() depends on a bitmap existing. But it gets worse - the pointer…
I appreciate you pointing out the flaws, but I fear they sarcasm is not really warranted. Shit code or not, you can call it out without denigrating the guy. It's nice they aired their source code out for people to look at, least we can do is to critique without snark.
Re: Imperial College London have released their Covid-19 epidemic simulation
#27Given the complexity, poor language/framework choice (should have used either Rust or Tensorflow), bad code design, and unclear determination of the parameters (especially the fact they don't seem to be estimated from real data with Bayesian inference, or if they are they didn't release that), as well as the ludicrous CPU and RAM usage making it impossible for most people to run it and thus check it, it doesn't seem like it has any chance of actually being a good model.
If this is the state of the art for the most important statistical modelling project in the world, we are in the dark ages.
Re: Imperial College London have released their Covid-19 epidemic simulation
#28.
I bet the quality of local administration would go through the roof if all mayoral candidates were forced to be proficient at SimCity.
Re: Imperial College London have released their Covid-19 epidemic simulation
#29Is this thing actually being used for policy decisions? Given the complexity, poor language/framework choice (should have used either Rust or Tensorflow), bad code design, and unclear determination of the parameters (especially the fact they don't seem to be estimated from real data with Bayesian inference, or if they are they didn't release that), as well as the ludicrous CPU and RAM usage making it impossible for m…