Ondřej Čertík
Ondřej Čertík
One question: this module talks about "colors", but these are specifically terminal colors, and in fact only "ansi escape sequences", but it seems all terminals now converges to support those,...
And since we require to setup a terminal (on Windows) even to just print colors, we might as well use this machinery for other terminal things, such as the goal...
> I don't think the fact Fortran doesn't support proper enums should be a show stopper. I agree. All I am advocating for is to consider and search for the...
I reread my comments, I still agree with them. Essentially: * I am not a big fan of overloading operators and derived types, it feels like an API that one...
As discussed in #658, it seems we all agree to go with the route of "merge much quicker to experimental, and reserve the right to completely change or even remove...
I agree, these would be all useful. Compilers should detect `exp(x) - 1` and `log(1 + x) ` and do the right thing, but it cannot hurt to have those...
We started implementing pure Fortran versions of such functions as `sin` in LFortran: https://gitlab.com/lfortran/lfortran/-/blob/7e067df8f684f9762cd7e67c6a4bdd081e2971f9/src/runtime/pure/lfortran_intrinsic_trig.f90#L70 We plan to implement `atan2` similarly as in the article @Beliavsky mentioned. I suggested here to...
@arjenmarkus thanks for the question. LFortran currently has a runtime module that just interfaces a libc version of the math routines: * https://gitlab.com/lfortran/lfortran/-/blob/06213849e4066eeed4dc0f15d6ceefbd5a5b64a1/src/runtime/impure/lfortran_intrinsic_math.f90 * https://gitlab.com/lfortran/lfortran/-/blob/06213849e4066eeed4dc0f15d6ceefbd5a5b64a1/src/runtime/impure/lfortran_intrinsics.c This module should satisfy most...
> yes, I am interested to help out. It is an exercise in practical mathematics :). (FYI: I have experience with implementing special functions in a different language) Perfect! You...
The `sin` implementation that I linked to is 1e-16 accurate based on our measurements. Ultimately there are two approaches, so we should have two versions; * The best possible accuracy...