-
Notifications
You must be signed in to change notification settings - Fork 141
[P1] Document BigInt #1002
Comments
See also #887 |
@sarahgp wrote https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt This needs reviewing. @Elchi3 can you give her some feedback and help her with future work here? Provided she still wants to contribute further, of coursde ;-) |
Yes, I am still interested in contributing and I am open to feedback. I've also been emailing with @iulia-codes about contributing. My next plan is to take on the Updates starting from the top, but if other people want to hop in (I have limited time), I am totally glad for that, too. |
Hey, thanks for re-filing this on GitHub! I've updated the description to use checklists. I've glanced over the two pages that were created so far and they look excellent! I'm happy to review more and let me know if there are questions with the items on the to-do list above. |
Hi all, so I've updated the main https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray but I am missing permissions to create new page. Can the page placeholders already be created ? https://developer.mozilla.org/en-US/docs/new?slug=BigInt64Array&parent=5612 and https://developer.mozilla.org/en-US/docs/new?slug=BigUint64Array&parent=5612 I will work on these next. |
@iulia-codes I am happy to give you page creation permissions. What's you MDN username? I am also happy to create the placeholders for you, but it looks like when you use the jsxref macro call to create a reference to a new page, it is creating them under /JavaScript/Reference, whereas it should be creating them under /JavaScript/Reference/Global_Objects, e.g. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array So ideally we should create them as children of Global_Objects, e.g. by going to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects and using the "New sub-article" option in the gear menu. |
Hi @chrisdavidmills, my username is iulia on MDN Good thing to know about the hierarchy of the pages & thanks for creating the two new pages :) |
OK, cool. I've given you page creation permissions.
Yeah, I had to do a bit of digging here. I asked around, and it looks like the jsxref macro has a couple of bugs in terms of where new pages a created, if you use it to create links to new/non-existent pages.
You are welcome. Let me know if you need any more help. |
@iulia-codes Hi there! I just wanted to do a quick check in about the two pages I created for you to fill in. Do you think you'll have time to do them soon? If not, don't worry about it — we can just delete them again until you are ready. |
Hey @chrisdavidmills, I noticed the pages are gone, but that's okay, as I've continued updating on the already existing pages. I have planned to update the two new pages that you created by the end of May.
|
Also, what is missing in the Falsy page? https://developer.mozilla.org/en-US/docs/Glossary/Falsy |
Great work on all of those, @iulia-codes. The new content you wrote looks very good to me. Would it make sense to also add context to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_Types#Literals ? |
Hi @iulia-codes; thanks for all the work on this! If you are ready to start working on those two new pages, I can always reinstate them again. Would you like me to do so? |
Hi @chrisdavidmills yes, I can finish it this weekend and then maybe have it up for review. |
Definitely @littledan will add a reference there as well. |
@iulia-codes ok, cool! I have reinstated the following pages, so you can now edit them and fill them in:
As always, let me know if you need any help. I'll check my mail a couple of times over the weekend, just in case. |
Just a heads up, at the moment the BigInt page itself says:
Without making any mention of bitwise operators, which do appear to be supported. |
BigInt as a new type/primitive/literalThe next bunch of docs that is ready for review is about BigInt as a new type/primitive/literal. I've reviewed and completed what @iulia-codes did and the pages listed below belong to this topic. Review welcome.
|
@chrisdavidmills Could you review the docs that I've listed in the last four comments here? |
@Elchi3 Sure. Might take me a few days to dig myself out of this current hole, but I should get to them by the end of the week ;-) |
@Elchi3 OK, so I've reviewed all the stuff on #1002 (comment) The pages all look great and make sense. I just did a bit of light copy editing really. You had a question here:
I'm not an expert, but yeah, looks like it. |
Thanks Chris! It looks like another contributor added a BigInt version of that code in the meantime already. I've just looked that over and removed "works only in Chrome" which isn't true anymore :) |
OK, I've also now reviewed everything at #1002 (comment) Again, all reads really well. Just a few minor bits of copy editing to do.
OK, great! |
Bump |
I've added "Bitwise operators are supported as well, except >>> (zero-fill right shift) as all BigInts are signed. Also unsupported is the unary + in order to not break asm.js." |
I've now reviewed everything at #1002 (comment). All looks fine, just made a few really minor copy edits. |
OK, everything at #1002 (comment) now reviewed too! Only a few copy edits.
Is it just all Math methods? In which case, you already basically say that, so I think we're OK. |
Yeah, it is all of them. Thank you a lot for all your reviews! 👍 |
I'm going to close this. Thanks everyone who helped on this! If there is follow-up work on BigInt, please file a new issue and cc me. |
Cross-filed from https://bugzilla.mozilla.org/show_bug.cgi?id=1476965.
See also https://trello.com/c/toqiqtQ1/17-bigint-fx-67 for the content roadmap Trello card detailing the bugs that need to be ddc'ed one this is done.
Florian's recommendations:
I think we should document this sooner rather than later. I'm adding my brain dump on what I think needs to be done. There might be more work involved here, but this is a start.
BigInt is a new primitive type and this needs to be added to a few places (with notes on type conversation)
BigInt should be mentioned/referenced from relevant Number docs
BigInt comes with a new numeric literal (n)
BigInt and typeof
BigInt API:
BigInt TypedArray API:
BigInt and interaction with other parts of JS (add examples)
All new reference pages need compat data and interactive examples, see
The text was updated successfully, but these errors were encountered: