[爆卦]Fortran compiler是什麼?優點缺點精華區懶人包

雖然這篇Fortran compiler鄉民發文沒有被收入到精華區:在Fortran compiler這個話題中,我們另外找到其它相關的精選爆讚文章

在 fortran產品中有22篇Facebook貼文,粉絲數超過10萬的網紅純靠北工程師,也在其Facebook貼文中提到, #純靠北工程師42h ---------- https://reurl.cc/v1aOyj 工程師的鄙視鏈,古老版本: Ada被Fortran鄙視, Fortran鄙視Lisp, Pascal工程師也覺得他比Lisp棒, Lisp工程師則是看不起Ada跟Fortran他們,覺得他們的語言太高階 CO...

 同時也有10000部Youtube影片,追蹤數超過2,910的網紅コバにゃんチャンネル,也在其Youtube影片中提到,...

fortran 在 4Gamers編輯部 Instagram 的精選貼文

2020-11-22 06:56:24

Intel 於 SuperComputing 2019 發表oneAPI產業倡議,以建立一個開放、遵循標準、一致的程式設計模型,提供開發者於 CPU、GPU、FPGA 及其它加速器,自由選擇最佳硬體的可能性,並將其結合為「XPU」。⁣ ⁣ oneAPI 完成版產品將於 2020 年 12 月推出,可...

  • fortran 在 純靠北工程師 Facebook 的精選貼文

    2020-10-05 01:38:02
    有 50 人按讚

    #純靠北工程師42h
    ----------
    https://reurl.cc/v1aOyj
    工程師的鄙視鏈,古老版本:
    Ada被Fortran鄙視,
    Fortran鄙視Lisp,
    Pascal工程師也覺得他比Lisp棒,
    Lisp工程師則是看不起Ada跟Fortran他們,覺得他們的語言太高階
    COBOL工程師在一旁靜靜看著他們不說話在冷笑
    結果Assembler鄙視包含COBOL的所有語言
    (輕鬆一下,各位不要太認真)
    ----------
    🗳️ [群眾審核] https://kaobei.engineer/cards/review
    👉 [GitHub Repo] https://github.com/init-engineer/init.engineer
    📢 [匿名發文] https://kaobei.engineer/cards/create
    🥙 [全平台留言] https://kaobei.engineer/cards/show/5273

  • fortran 在 Inside 硬塞的網路趨勢觀察 Facebook 的最佳解答

    2020-08-10 06:06:51
    有 283 人按讚

    Frances Allen 在 IBM 工作 45 年退休後才坦承,最初推廣 Fortran 時一度受阻,因外界對這個高階程式語言抱持著懷疑的態度。

    不過, Fortran 如今是世界第一個被正式採用,且流傳至今的高階語言。

  • fortran 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文

    2020-04-02 12:51:23
    有 390 人按讚


    หนึ่งในปัญหาคลาสิก เวลาเขียนโปรแกรมที่ทุกคนต้องเจอเลย
    ก็คือการบวกลบเลขทศนิยมในภาษาโปรแกรม ของบางภาษา นี้แหละ
    เช่น JavaScript, Python, Perl, C#, C, C++, Java, PHP, Fortran
    (และอื่นๆ อีกหลายภาษาที่ไม่ได้กล่าวถึง)
    .
    หลายครั้งที่มันอาจเพี้ยนได้ เช่น
    👉 0.1+0.2 ไม่ได้เท่ากับ 0.3
    แต่ได้เป็น 0.30000000000000004
    .
    👉 หรือ 0.1 บวกกัน 10 ครั้ง ก็ไม่ได้เป็น 1
    แต่ได้เป็น 0.9999999999999999
    .
    คนเขียนโปรแกรมเจอแบบนี้เข้าไป
    ก็เหมือนมวยโดนหมัดน๊อคมึนงงในดงโค้ด
    :
    :
    แต่ใช่ว่ามันจะเพี้ยนทุกครั้ง ซะเมื่อไร เช่น
    0.5+0.5 = 1 (ถูกต้องเป๊ะ)
    0.2+0.3 = 0.5 (บังเอิญไม่เพี้ยน)
    .
    สำหรับ กรณี 0.2 กับ 0.3 มันถูกตัดเศษเหลือเป็น
    0.2000000000000000111022302462515654042363166809082031250
    กับ
    0.2999999999999999888977697537484345957636833190917968750
    พอบวกกันจึงได้ 0.5 พอดี แบบฟลุ๊คๆๆ ซึ่งไม่ควรทำได้
    (ตรงสอบดูได้ 0.2+0.3 == 0.5 ได้ค่าออกมาเป็น true)
    :
    :
    สาเหตุที่เป็นเช่นนี้
    ก็เพราะว่าคอมพิวเตอร์มันรู้จักแต่ เลขฐาน2 อะนะ
    ต่อให้เราเขียนโค้ดใช้เลขฐาน10 ก็ตาม
    สุดท้ายเวลาโค้ดมันถูกรัน ก็จะกลายเป็นเลขฐาน 2 อยู่ดี
    .
    😨 แล้วก็เป็นความซวยที่จะมาเยือนคนเขียนโปรแกรม
    เพราะเวลาแปลงเลขฐาน10 ไปเป็นเลขฐาน 2
    บางกรณีมันแปลงแล้ว ดันได้ตัวเลขที่ไม่รู้จบเสียด้วยซิ
    จึงทำให้การเก็บทศนิยมผิดเพี้ยนไปได้
    .
    สำหรับรูปแบบการจัดเก็บเลขทศนิยม ในหลายภาษา
    เขาจะนิยมใช้มาตรฐาน IEEE-754 floating point
    เช่น 0.1 จะถูกมองว่าคือ 1/10
    .
    เมื่อเก็บเป็นเลขทศนิยมฐานสอง
    ตามมาตรฐาน IEEE-754 floating point จะได้เป็น
    0.0001100110011001100110011001100110011001100110011...
    เป็นทศนิยมไม่รู้จบในรูปเลขฐานสอง ....นี้คือสิ่งที่คอมมองเห็น
    .
    พอคอมแปลงกลับมาเป็นทศนิยม เพื่อให้มนุษย์โลกอ่านเข้าใจ
    ในรูปฐาน 10 ก็จะได้เป็น
    0.1000000000000000055511151231257827021181583404541015625
    ทว่าคอมมันจะตัดให้เหลือแค่ 0.1 (คนจึงเห็นแค่นี้)
    :
    🤔 ซึ่งความเพื้ยนแบบนี้
    แน่นอนทำให้เกิดบั๊กเวลาคำนวณตัวเลข
    - ยิ่งงานต้องการคำตอบที่ละเอียดมาก เช่น งานธนาคาร ก็จะประสบปัญหา เป็นต้น
    - หรือเวลานำไปใช้ในเงื่อนไขเปรียบเทียบพวก if, while ฯลฯ ก็อาจมีบั๊กเกิดขึ้นได้ เป็นต้น
    .
    😀 แต่ไม่ต้องห่วง ในหลายๆ ภาษาเขาจะมีวิธีแก้ปัญหานี้อยู่ครับ
    ป้องกันการคำนวณตัวเลข ไม่ให้คลาดเคลื่อน เช่น
    - ใน Java ก็จะมีคลาส BigDecimal เอาไว้บวกลบคูณหาร สำหรับเลขทศนิยมโดยเฉพาะ
    - ใน Python ก็จะมีคลาสคล้ายๆ กัน เช่น Decimal
    - ส่วนใน JavaScript อาจใช้ไลบรารี่ ซึ่งมีให้เลือกเยอะเช่น
    https://github.com/MikeMcl/decimal.js/
    https://github.com/MikeMcl/bignumber.js/
    https://github.com/MikeMcl/big.js/
    - ภาษาอื่นที่เหลือลองไปศึกษาเองดูนะครับ
    .
    .
    เรื่องบวกลบคูณหาร เลขทศนิยม ถือเป็นเรื่องสำคัญที่ไม่ควรมองข้าม
    โดยส่วนตัวก็เคยเจอความเผลอเรอตรงนี้
    ในระดับโปรเจคระดับธนาคาร ก็เคยพลาดมาแล้ว
    สุดท้ายต้องมาไล่นั่งแก้โค้ดหลายบรรทัด
    เสียเวลานั่งไล่ test ใหม่อีกรอบอีก
    .
    หมายเหตุเห็นคอมเมนต์สงสัยว่า
    PHP กับ C# รอดชะตากรรมเดียวกันไหม ?
    ก็บอกว่าไม่รอดครับ
    .
    // ลองดูตัวอย่างโค้ด C#
    Console.WriteLine( ((0.1+0.2) == 0.3)); // False
    Console.WriteLine( ((0.1+0.2) == 0.30000000000000004)); // True
    // ลองดูตัวอย่างโค้ด PHP
    echo number_format(0.1+0.2 , 17);
    .
    ++++++
    เขียนโดย โปรแกรมเมอร์ไทย thai programmer
    อ่านเรื่อง IEEE-754 floating point ได้ที่
    https://th.wikipedia.org/wiki/จำนวนจุดลอยตัว
    One of the programming time class issues that everyone needs to encounter.
    It's a positive, negative, decimal number in the programming language of some languages.
    เช่น JavaScript, Python, Perl, C#, C, C++, Java, PHP, Fortran
    (And many other languages not mentioned)
    .
    So many times it can be crazy like
    👉 0.1 + 0.2 is not equal to 0.3
    But got to be 0.30000000000000004
    .
    👉 or 0.1 plus 10 times. It's not 1
    But got to be 0.9999999999999999
    .
    The programmers found this.
    It's like boxing. I got a punch. I'm confused in the code.
    :
    :
    But it's not crazy every time.
    0.5 0.5 0.5 0.5 1 (Exactly correct)
    0.2 0.2 0.3 0.3 0.5 (accidentally not crazy)
    .
    For 0.2 and 0.3 cases, it was cut as debris.
    0.2000000000000000111022302462515654042363166809082031250
    With
    0.2999999999999999888977697537484345957636833190917968750
    Let's be positive. I got 0.5 fits. Fluke which I shouldn't do.
    (I can see the exam. 0.2 + 0.3 == 0.5 I got the value to be true)
    :
    :
    The cause is like this
    It's because computer only knows the base number 2
    Even if we write code, use base number 10
    Finally, when the code is run, it will become the base number 2 anyway.
    .
    😨 and it's bad luck to visit the programmers.
    Because time converts base number 10 to base number 2
    In some cases, it's converted. I get an endless number.
    So that the decimal collection is wrong.
    .
    For decimal numbers storage in multiple languages
    He will be popular with IEEE-754 floating point standards.
    For example, 0.1 will be seen as 1/10
    .
    When it's kept as a decimal number, binary digits.
    According to IEEE standards-754 floating point will be.
    0.0001100110011001100110011001100110011001100110011...
    It's an endless decimal in the second base number.... This is what the computer sees.
    .
    When the computer comes back to a decimal, so that the world can read and understand.
    In the base photo, 10 will be.
    0.1000000000000000055511151231257827021181583404541015625
    But the computer will cut it down to 0.1 (that's all I see)
    :
    🤔 This kind of friendship
    Definitely make a time bug. Calculates numbers.
    - The more jobs require a detailed answer, such as banking job, the problem is etc.
    - or time to apply in comparison terms. If, while etc, there may be a buck happening. etc.
    .
    😀 But don't worry. In many languages, there will be a solution to this problem.
    Prevent calculation of numbers from discrepancy, e.g.
    - In Java, there will be a BigDecimal class. Plus, multiply, multiply for decimal numbers.
    - In Python there are similar classes like Decimal
    - Parts in JavaScript may use a lot of library to choose from, e.g.
    https://github.com/MikeMcl/decimal.js/
    https://github.com/MikeMcl/bignumber.js/
    https://github.com/MikeMcl/big.js/
    - Other languages. Let's study it yourself.
    .
    .
    A positive, multiply, digging, decimal numbers are important things that shouldn't be overlooked.
    Personally, I have experienced the accident.
    Bank level project. I have already missed it.
    Finally, I have to sit and solve many lines of code.
    Waste of time. Sit to chase the new test again.
    .
    Note, see comments, wonder if
    PHP and C #survive the same fate?
    I told you that you won't survive.
    .
    // Check out the C code trailer #
    Console.WriteLine( ((0.1+0.2) == 0.3)); // False
    Console.WriteLine( ((0.1+0.2) == 0.30000000000000004)); // True
    // Check out the PHP code trailer
    echo number_format(0.1+0.2 , 17);
    .
    ++++++
    Written by Thai programmer thai coder
    Read IEEE-754 floating point at
    https://th.wikipedia.org/wiki/จำนวนจุดลอยตัวTranslated

  • fortran 在 コバにゃんチャンネル Youtube 的最佳解答

    2021-10-01 05:19:08

  • fortran 在 大象中醫 Youtube 的精選貼文

    2021-10-01 05:10:45

  • fortran 在 大象中醫 Youtube 的最讚貼文

    2021-10-01 05:09:56

你可能也想看看

搜尋相關網站