News for hackers. Stuff that matters.
Re:Weird Python Integers by alephnil on Thursday August 24, 2017 @06:46PM (#15094732)
All newer versions of Fortran will segfault, but back in the days they would not. Back in the ninties I fixed a bug we found when porting a Fortran 77 program from HPUX to Linux. The program would segfault on Linux, but worked on HPUX.

The reason was that in one subroutine, a parameter value was stored in a local variable, then used for computation and restored at the end. Since constants was stored in read only memory when using g77 on Linux, but not on the f77 compiler on HPUX, the Linux port would crash, but not the original HPUX version. In that the code you had above would have worked.

Re:Weird Python Integers by emmelaich on Thursday August 24, 2017 @10:43PM (#15095744)
Yeah, a "fun" thing to do was to change the value of built-in constants such as pi.
Re:Weird Python Integers by DonHopkins on Friday August 25, 2017 @07:07AM (#15097574)
That feature was required by the Indiana General Assembly.

https://en.wikipedia.org/wiki/Indiana_Pi_Bill

Re:Weird Python Integers by emmelaich on Sunday August 27, 2017 @06:32PM (#15113174)
More like ridiculed than required.

I was going to mention Indiana but was more hoping that it wouldn't be mentioned at all.