[Wikidata-bugs] [Maniphest] [Commented On] T234784: Investigate whether BCmath is sufficient for Wikibase

2019-10-07 Thread jeblad
jeblad added a comment.


  The Wikibase number type uses bcmath, which is a PHP interface to the BC 
library, which is the library that implements the BC utility in *nix. The 
BCmath extension implements a Lua interface to the bcmath interface library in 
PHP. The bcmath C-library is pretty old, and is not IEEE 754 compliant, but the 
Wikibase numbers, ie the Wikibase quantity, ie a whole bunch of Wikidata 
statements use this format.
  
  No, it is //not// a proposal to replace bcmath with decnumber, it is a 
question whether BCmath is a sufficient implementation according to the current 
assumptions made in Wikibase number.
  
  I have already got a reply from people at WMDE, they use bcmath. The 
remaining question is whether the BCmath extension (aka Lua interface) is a 
sufficient implementation for processing Wikibase numbers according to their 
assumptions.

TASK DETAIL
  https://phabricator.wikimedia.org/T234784

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jeblad
Cc: jeblad, Aklapper, darthmon_wmde, DannyS712, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Wikidata-bugs, 
aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T234784: Investigate whether BCmath is sufficient for Wikibase

2019-10-07 Thread Aklapper
Aklapper added a comment.


  > It seems sufficient, but it could be that something more complete or faster 
is necessary,
  
  @jeblad: "sufficient" or "necessary" for what exactly? Is this a proposal to 
replace `ldecnumber` (if that is currently used by some Wikidata extension, not 
clear here?) with `bcmath`? This task is lacking any context; see 
https://www.mediawiki.org/wiki/How_to_report_a_bug

TASK DETAIL
  https://phabricator.wikimedia.org/T234784

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Aklapper
Cc: jeblad, Aklapper, darthmon_wmde, DannyS712, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Wikidata-bugs, 
aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs