7,041 reputation
11733
bio website
location
age
visits member for 3 years, 10 months
seen yesterday

2d
comment Why is float the default in the majority of languages?
@supercat, about an unbounded type, my unbounded integer implementation is templated on the base as well as on the representation type and one reason is that I sometimes use a big decimal base.
2d
comment Why is float the default in the majority of languages?
@supercat, about BCD, see any IBM mainframe -- AFAIK COBOL mandate the availability of BCD -- and the IEEE 754-2008 standard decimal exchange format has provision for three decimal digits per 10 bits encoded in something which is more a packed BCD form than binary (there is also provision for a binary significant, IIRC IBM mainframe and POWER have them available in hardware).
2d
comment Why is float the default in the majority of languages?
@supercat, DFP format are usually BCB based, so normalization is shifting (but for software implementation, I'd not be surprised if keeping the significant part in binary and doing the normalization by multiplication -- by reciprocal for division -- would not be better performancewise).
2d
comment Why is float the default in the majority of languages?
@supercat, floating point, whatever the base, implies normalization and denormalization steps.
Oct
19
comment Rewriting GPL code to change license
@Lohoris,see my previous comments; it's not striclty needed, it's a way to ease the proof. About "going way too far", clean room approach was deemed necessary by the lawyers of a company I worked for (not for GPLed code, but I don't think the license has any influence of that), and the lawyers of the current one don't want us to look at GPLed code relevant to our projects.
Oct
17
comment Automatic assessment of student programming assignments using CI
@JeffO, a first filter, yes. Automatic grading? No. I would not like to code review things written by people whose code has only been graded by an online judge, even if it included static analysis and style checks.
Oct
17
comment Automatic assessment of student programming assignments using CI
See various "online judges" for programming competitions. Note that there is much more to teach than just having a program which pass some tests.
Oct
16
comment Why isn't HTML/CSS/HTML5 considered a programming language?
I'm not sure I'd make turing completeness the criteria for being a PL or not. For instance GEB has one exemple of something I'd call a PL without hesitation but where termination is determinable (and thus is not TC).
Oct
14
comment Parsing: Size vs. Frequency
"Please note I would like to omit factors such as bandwidth/ connection speeds and method of connection and discuss this from a performance standpoint." My guess is that networking related behavior will dominate all other factors from a performance POV.
Oct
14
comment Is checking for cin.eof() really necessary?
See stackoverflow.com/a/1284294/136208
Oct
1
revised Why implement a lexer as a 2d array and a giant switch?
added 62 characters in body
Oct
1
answered Why implement a lexer as a 2d array and a giant switch?
Sep
30
awarded  Explainer
Sep
29
comment How do I compile my software for all platforms from Ubuntu Linux 64 bit?
@StephenOstermiller, I don't know what most projects use, I do know that in the 20 years of my career we always had computer farms with a set up so that we could run tests on all supported platforms and we would never deliver something to our customer which had not passed the tests (or at least had to failure waived out).
Sep
9
comment Why friend in C++ should be in the header file?
@Arun, the C++ compilation model is not adapted to that. Module could be a way to provide it, but AFAIK the current proposals don't consider it as a goal (there are a lot of things that modules could provide, I don't expect all of them will be provided, especially in the first version).
Sep
8
comment GPL- How much source must be released?
@JörgWMittag, my understanding is that linking is not even needed to create a derivative work (source: company lawyer in an IP training).
Sep
8
comment What is use of universal character names in identifiers in C++
You can't write that for two reasons, first UCS outside string and character literals can't refer to character in the basic sets without making the program illformed, second if that clause was not present UCS are handled in phase 1 of the translation and thus there would be not difference in handling between an UCS refering to a character in the basic set and the character itself.
Sep
8
answered Why friend in C++ should be in the header file?
Aug
28
comment Why don't compilers inline everything?
@mouviciel, performance matters. In my experience, hardware progress is always completely eaten by increase in the data size and in the complexity of what you want to do (for instance decreased response time allows new more exploratory use models which depend on near instantaneous reaction).
Aug
28
awarded  Nice Answer