Skip to content

GSoC 2024 ‐ Jaysukh Makvana

Jaysukh Makvana edited this page Aug 20, 2024 · 6 revisions

About me

I am Jaysukh Makvana from Surat, Gujarat, India. I am a final year Bachelor of Technology student in the department of Computer Science and Technology at Indian Institute of Technology, Jodhpur.

Project overview

Referring the implementation of Complex64 and Complex128 arrays, I proposed adding support for Boolean array in stdlib-js which will be backed by Uint8Array. BooleanArray should have prototypes that any typed array have like get, set, sort, reverse, at etc. After implementing the BooleanArray constructors and prototypes we need to refactor the packages of @stdlib/array/* to add the support of boolean datatype across the entire array namespace. In the same way, We need to refactor the packages of @stdlib/strided/* to add the support of boolean datatype across the entire strided namespace. In parallel, We need to add some assertion package which we need to deal with different BooleanArray operation. Similar to strided and array namespace we need to refactor the packages of @stdlib/ndarray/* to add the support of boolean datatype across ndarray namespace. In the end, We need to add new packages like mskfilter, mskreject and mskput to ndarray namespace to get ndarray API parity with typed arrays.

Project recap

  • At the starting of Coding Period, I had @stdlib/array/bool containing constructors and some prototypes like set, length etc. So, I started my work with adding the various prototypes for the BooleanArray. I added the map, sort, find, findLast, findIndex, findLastIndex, reverse, toReversed, toSorted, every, some, indexOf, lastIndexOf, includes, slice, subarray, reduce, reduceRight, join, toString, keys, values, with, at, fill, filter, toLocaleString, copyWithin, entries and forEach prototypes for BooleanArray. I added benchmarks, tests and docs files for the same.
  • I added the some assertion utilities which I needed to refactor the array and strided namespace which includes @stdlib/assert/is-booleanarray, @stdlib/assert/is-same-booleanarray and it's base implementation. I added the one of the important package which reinterprets the BooleanArray as Uint8Array as @stdlib/strided/base/reinterpret-boolean.
  • After those work, I refactored the packages of array namespace to add the support of boolean datatype to array namespace.
  • Similarly, I refactored the packages of strided namespace to add the support of boolean datatype to strided namespace.
  • Similarly, I refactored the packages of ndarray namespace to add the support of boolean datatype to ndarray namespace.
  • Finally, I added the @stdlib/ndarray/base/mskfilter and @stdlib/ndarray/base/mskreject which used for the masking of ndarray.

Completed work

Current state

Curretly, project having support of BooleanAray across the entire array, strided and ndarray namespaces.

What remains

TODO: add a summary of what remains left to do. If there is a tracking issue, include a link to that issue.

Challenges and lessons learned

TODO: add a summary of any unexpected challenges that you faced, along with any lessons learned during the course of your project.

Conclusion

This summer has been an incredible learning experience. Through this program, I have gained valuable insights into various aspects of feature development within a codebase. I've learned how to write and implement tests to ensure code correctness, add benchmarks to assess performance efficiency, and, most importantly, write clean and readable code. I am deeply grateful to Athan Reines and Philipp Burckhardt for providing me with this opportunity. I would also like to extend my heartfelt thanks to my mentors, Athan Reines and Pranav Goswami, for reviewing my work, providing valuable feedback and being readliy available for the discussions.

Clone this wiki locally