Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of NUMERICAL RECIPES IN FORTRAN

    NUMERICAL RECIPES IN FORTRAN

    William H. Press · 1992

    MathematicsProgramming
    Open LibraryAmazon
    Stats for nerds
    1recommend
    6mentions
    6people
    2012–2025years
    17% recommend67% neutral17% critical

    Mentions per year

    20122014201620182020202220242025

    What Hacker News says

    1. AdieuToLogicDec 2025
      Two valuable (and related) resources when learning FORTRAN are:

        The NUMERICAL RECIPES in Fortran 90 book[0]
        The NUMERICAL RECIPES website[1]
      
      0 - https://www.cambridge.org/us/universitypress/subjects/mathem...

      1 - https://numerical.recipes/

      thread
    2. AnimatsJan 2024
      > In our experience, the only examples we have found of a failure with the current collector, even in multi-threaded code, were contrived.

      I once found a real incompatibilty. This collector assumes that a pointer to a block must point to somewhere in the block, or, in later versions, at least somewhere really close.

      The original Numerical Recipes in C was a conversion of Numerical Recipes in FORTRAN. FORTRAN arrays start at 1. So, NR in C had an array allocator which returned an array address computed such that subscripts starting at 1 would work.[1] If you allocated a 100x100 array of 4-byte f32 values, the array address would be offset downward by (100+1)*4 bytes. That would not look like a pointer to the array to the garbage collector.

      By the third edition, in 1986, the Numerical Recipes people had converted to C++, dropped FORTRAN array compatibility, and the problem went away.

      [1] http://s3.amazonaws.com/nrbook.com/book_C210.html page 19.

      thread
    3. abernard1Dec 2020
      I concur.

      The dynamic inheritance part of Ruby is still core even in a non-Rails ecosystem. That does make optimizing performance more difficult.

      But on a much simpler level, a lot of Pythonic data code is just functions + values, without them being complected in an object. That makes a lot of stuff like wrapping numerical libraries in C very easy in Python. I think you'd still have a bit of a culture shock writing procedural, return-by-value code in Ruby. That's pretty normal in Python and I think one of the (many) reasons it got picked up by STEM disciplines in academia. Looks over shoulder at awful code in Numerical Recipes in Fortran book.

      Different strokes for different folks and all that, I just think there are probably constraints (and cultural values) that Python has that make it more suited to data problems than Ruby.

      thread
    4. codezeroNov 2020
      One of my favorite problems is solving median based on a stream of data that you can replay, but only using, something like 3 variables of the same type of the data (which I think needs to be integer) from the book Numerical Recipes in FORTRAN.

      It’s to optimize finding the median from a tape drive in the 70s, but the technique is pretty cute.

      You make a guess at the median, then basically sum how many are over, and under that value, then guess again until you have an even split.

      It’s also a problem I like to use to nerd snipe people, because why not.

      Check my work, because it’s been a long time since I worked with FORTRAN and I could have just remembered incorrectly :)

      https://github.com/jonlighthall/nrf77/blob/master/mdian2.f

      thread
    5. dylangs1030Aug 2013
      Numerical Recipes in Fortran 77? http://www.amazon.com/Numerical-Recipes-Fortran-Scientific-C...

      Cool, I'll give it a go, thanks for sharing :)

      thread
    6. nlMay 2012
      I loved Hypercard.

      In 1992 I was in my final year of secondary school and got into a science extension program which paired students with industry.

      Somehow or other I ended up with a guy from DSTO (Australia's publicly funded defence arm), and he thought it would be a good idea for me to test the results of underwater acoustic transmissions against some results they had (he didn't tell me why this was needed, but it was pretty obvious..)

      Anyway, he was a Fortran programmer who used a VAX. My family had a Mac Plus with Hypercard. He gave me "Numerical Recipes in Fortran"[1] and I ended up implementing Newton's method[1] in Hypercard. After that I felt I really understood calculus...

      [1] http://www.haoli.org/nr/bookf.html

      [2] http://en.wikipedia.org/wiki/Newtons_method

      thread

    Related

    Cover of NUMERICAL RECIPES IN C
    2010–2026

    NUMERICAL RECIPES IN C

    William H. Press
    9 recommend · 40
    Cover of Numerical recipes
    2009–2025

    Numerical recipes

    Julien C. Sprott
    2 recommend · 3
    Cover of Numerical methods for scientists and engineers
    2013–2026

    Numerical methods for scientists and engineers

    Richard Hamming
    5 recommend · 10
    Cover of Introduction to mathematical statistics
    2009–2025

    Introduction to mathematical statistics

    Robert V. Hogg
    3 recommend · 7
    Cover of Numerical Optimization
    2016–2025

    Numerical Optimization

    Jorge Nocedal
    6 recommend · 12
    Cover of An Introduction to Error Analysis
    2016–2024

    An Introduction to Error Analysis

    John R. Taylor
    3 recommend · 4
    Cover of Introduction to the theory of computation
    2008–2026

    Introduction to the theory of computation

    Michael Sipser
    66 recommend · 96
    Cover of Optimization techniques with Fortran
    2021

    Optimization techniques with Fortran

    James L. Kuester
    1 recommend · 2