# Fortran-lang GSoC 2024 Project ideas & mentors

**URL:** <https://fortran-lang.discourse.group/t/fortran-lang-gsoc-2024-project-ideas-mentors/7367>\
**Category:** GSoC-2024\
**Created:** [February 8, 2024, 9:08pm UTC](https://fortran-lang.discourse.group/t/fortran-lang-gsoc-2024-project-ideas-mentors/7367 "2024-02-08T21:08:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [February 8, 2024, 9:12pm UTC](https://fortran-lang.discourse.group/t/fortran-lang-gsoc-2024-project-ideas-mentors/7367/3 "2024-02-08T21:12:51Z")

</div>

Project recommendation by @hkvzjal

> [@Will the Fortran Community participate at GSoC 2024?](https://fortran-lang.discourse.group/t/will-the-fortran-community-participate-at-gsoc-2024/7266/11):
>
> ## String to number conversion (stdlib)
> 
> This project will enhance stdlib’s string handling capabilities for fast number parsing in Fortran.
> 
> Recently, a new module was added to stdlib called [`stdlib_str2num`](https://github.com/fortran-lang/stdlib/blob/master/src/stdlib_str2num.fypp) which implements fast routines for converting strings to numerical types. The participant would get familiar with these implementations and subsequently:
> 
> - Create a full benchmark suite for the string to number conversion, across compiler vendors, operating systems, and CPU architectures.
> - Explore ways to improve robustness and efficiency, e.g. error handling.
> - Propose a shallow interface for the [string\_type](https://github.com/fortran-lang/stdlib/blob/master/src/stdlib_string_type.fypp) facility in stdlib.
> - Propose an enhancement to the [loadtxt](https://github.com/fortran-lang/stdlib/blob/master/src/stdlib_io.fypp) facility function to speed-up file reading.
> - Depending on the advancement, the participant is also encouraged to include a roadmap for inclusion of the inverse conversion by following the initiative in this thread [ryu-based to\_string function](https://github.com/fortran-lang/stdlib/issues/627)
> 
> **Relevant thread on Fortran Discrouse** : [Faster string to double](https://fortran-lang.discourse.group/t/faster-string-to-double/2208)
> 
> **Expected outcomes:** Enhancement of stdlib fast string to number conversion
> 
> **Skills preferred:** Fortran and C programming, understanding of floating-point arithmetic
> 
> **Difficulty:** intermediate, 175 hours
> 
> **Mentors:**  
> José Alves @hkvzjal  
> [call for mentors]  
> (@Carltoffel @everythingfunctional @ivanpribec you were listed in the previous proposal, do you want to stay in the list?)  
> @milancurcic (I added the shallow interface for string\_type following your comment in the PR)

* * *

Original post:

> [@Will the Fortran Community participate at GSoC 2024?](https://fortran-lang.discourse.group/t/will-the-fortran-community-participate-at-gsoc-2024/7266/11):
>
> Here another idea in replacement of the Faster string to number conversion (stdlib) one String to number conversion (stdlib) This project will enhance stdlib’s string handling capabilities for fast number parsing in Fortran. Recently, a new module was added to stdlib called [stdlib\_str2num](https://github.com/fortran-lang/stdlib/blob/master/src/stdlib_str2num.fypp) which implements fast routines for converting strings to numerical types. The participant would get familiar with these implementations and subsequently: Create a full benchmark suite for the string to num…

---

_[View the full topic](https://fortran-lang.discourse.group/t/fortran-lang-gsoc-2024-project-ideas-mentors/7367)._
