« first day (2307 days earlier)      last day (2656 days later) » 

nwp
11:13 PM
Someone wrote an interesting question, I spent half an hour to make an answer that actually works and in the meantime the question got dupe-hammered and the dupe doesn't even answer the question.
 
link?
 
@Mikhail There are definitely alternative rad-hard processors (e.g., last time I noticed, Atmel had some rad-hard LEON-based SPARC chips). OTOH, there aren't a lot of alternatives. Given how things like this work out, it may easily have been a non-technical concern (e.g., chips fabricated in the US by a US-based company).
 
@BartekBanachewicz A friend of mine uses his bike even in the winter.
 
@nwp Any constexpr class, right?
 
11:18 PM
@nwp why do humans attempt these silly things?
 
@sehe You don't think so?
 
@caps TMP has been turing complete all along
 
@nwp I like that but I think you'd want shadowing warnings on
 
nwp
@caps I believe so, but important classes such as std::string are not constexpr.
 
@sehe I guess I'm thinking in terms of what is within reach of someone like me, who's not a TMP expert. It was possible before, but only modern C++ makes it attainable for the low-to-moderate-expertise programmers.
@nwp Right, you have to use std::string_view (which is constexpr) or use a library that has a constexpr string class. They exist.
 
nwp
11:22 PM
@CaptainGiraffe for fun and profit of course!
I actually got it working and feel whatever the politically correct term of cock blocked is.
 
It's only a matter of time.
 
@nwp It's reopened now.
 
nwp
I wrote my answer, now I can sleep happy :D
 
how would you use that in readable code?
3
 
nwp
You consider the template stuff to be like a library that you don't need to understand, you just use it. And the usage auto f = passn(some_lambda); is reasonably readable.
At least that's how I rationalized it.
 
11:29 PM
@nwp I vehemently disagree.
 
nwp
To be honest I have no clue how this could be useful, but I had fun writing it.
 
11:51 PM
police confirmed they were treating the death as unexplained but not suspicious.
how can you treat it as not suspicious when you can't explain what happened?
 
@BartekBanachewicz This can be attributed to an inconsistency in the language's design of strings: character literals correspond to char const*, but you work with them most commonly via std::string. If you want to use strings, use character literals with an s suffix (this obviously doesn't work with older interfaces). In other languages, this inconsistency does not exist (because string literals are of the corresponding string type in the first place).
 

« first day (2307 days earlier)      last day (2656 days later) »