GSoC Journey Blog Week 8
Madhav2310
Published: 08/06/2022
What did you do this week?
- Modulo(3rd argument) added to pow #876 Merged with Main - Turns out the pow function of the math.py library and the builtin libraries and modulo function is something of the builtin lib and not the former.
-
Fmean, Median, Median_low, median_high, mean overload functions implemented #877 - Open - After having implemented the Fmean, Median, Median_low, Median_high functions, I pushed it. based on the suggestions and improvements we discovered a bunch of issues. For example I was writing sorting code for a bunch of functions. So as suggested I tried making a single internal _sort() function, which worked well. Howeve when I tried to overload it for f64 and i32, It threw an error. Similarly on enabling llvm for statistics, we discovered an error in the symbol table which is being worked on now.
-
Variance and stdev functions added to statistics.py #901 - Will be merged after issues of #877 getting resolved.
Did you get stuck anywhere?
I'm also parallelly working on the numpy_intrinsic library, however I was having trouble understanding the construction of the elemental tests for the functions.
What is coming up next?
I'll try to get all the open PRs merged while proceeding on expanding the statistics module. I'll also make sure to make make progress on and push some numpy_intrinsic functions alongside appropriate tests.
View Blog Post
GSoC Journey Blog Week 7
Madhav2310
Published: 07/29/2022
What did you do this week?
Due to on-campus Internship tests in my Institute, I had requested a leave this week. I'll make sure to make up for it in the coming weeks.
What is coming up next?
I'll still have my tests ongoing (about 2-3 every day) in the upcoming week, but I'll try to push some PRs on the statistics.py and lpython_intrinsic_numpy.py libraries.
View Blog Post
GSoC Journey Blog Week 6
Madhav2310
Published: 07/24/2022
View Blog Post
GSoC Journey Blog Week 5
Madhav2310
Published: 07/15/2022
What did you do this week?
Issues raised:
- DoLoops not working for i64 increment variable #770
Ongoing Pull requests:
- Do_loop increment variable generalized #771
- Mean, Geometric Mean & Harmonic mean Functions implemented in Statistics.py module #769 : Initiated the Statistics.py module and implemented mean (overloaded for different datatypes), geometric_mean & hyperbolic_mean along with integration tests for each.
- Decimal Module : Errors resolved and ready for merging.
- Supplementing pow tests #747
- Capitalize, upper and lower python builtin functions : Errors resolved, On hold as classes and class methods are not implemented yet.
While implementing Capitalize, I was looping over the character array with i64 as increment variable. As it turned out, for loop had been implemented to only work with i32. So I raised this an issue, and with tried to fix it by accepting the use case datatype and iterating using that. Other than that, its was becoming complicated to implement methods without class support so I've moved to functions and have begun the statistics module.
What is coming up next?
As the Mid Eval is close, I'll try to get all the open PRs merged while proceeding on expanding the statistics module.
Did you get stuck anywhere?
I raised an issue wherever I got stuck and the mentors suggested workarounds. it gets very tricky to pass tests and checks with methods implementations. So I'll for the meantime I'll focus more on functions based modules as per my GSoC proposal.
View Blog Post
GSoC Journey Blog Week 4
Madhav2310
Published: 07/08/2022
View Blog Post