<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Programing - แท็ก - Kawin&#39;s Pages</title>
        <link>https://kawin.dev/tags/programing/</link>
        <description>Programing - แท็ก - Kawin&#39;s Pages</description>
        <generator>Hugo -- gohugo.io</generator><language>th</language><managingEditor>kawin.v@kkumail.com (Kawin Viriyaprasopsook)</managingEditor>
            <webMaster>kawin.v@kkumail.com (Kawin Viriyaprasopsook)</webMaster><lastBuildDate>Sun, 13 Aug 2023 00:19:58 &#43;0700</lastBuildDate><atom:link href="https://kawin.dev/tags/programing/" rel="self" type="application/rss+xml" /><item>
    <title>GOMAXPROCS เพื่อนที่ดีของ DevOps</title>
    <link>https://kawin.dev/posts/go/automaxprocs/</link>
    <pubDate>Sun, 13 Aug 2023 00:19:58 &#43;0700</pubDate>
    <author>kawin.v@kkumail.com (Kawin Viriyaprasopsook)</author>
    <guid>https://kawin.dev/posts/go/automaxprocs/</guid>
    <description><![CDATA[<div class="featured-image">
                <img src="/featured-image.webp" referrerpolicy="no-referrer">
            </div><p>ตั้งแต่ Go 1.5 เป็นต้นมานั้น ค่าของจำนวน <code>User-Level</code> ที่ Go App จะสามารถให้ทำงานพร้อมกันนั้นในแต่ละ Instance จะถูกกำหนดด้วย GOMAXPROCS แล้วทีนี้ค่าของ GOMAXPROCS จะมีค่าตามนิยามนี้
<div class="details admonition note open">
        <div class="details-summary admonition-title">
            <i class="icon fas fa-pencil-alt" aria-hidden="true"></i>Note<i class="details-icon fas fa-angle-right" aria-hidden="true"></i>
        </div>
        <div class="details-content">
            <div class="admonition-content">GOMAXPROCS sets the maximum number of CPUs that can be executing simultaneously and returns the previous setting. It defaults to the value of runtime.NumCPU. If n &lt; 1, it does not change the current setting. This call will go away when the scheduler improves.</div>
        </div>
    </div></p>]]></description>
</item>
<item>
    <title>Go กับปัญหาโลกแตก Value หรือ Pointer</title>
    <link>https://kawin.dev/posts/go/value_or_pointer/</link>
    <pubDate>Mon, 31 Jul 2023 18:33:40 &#43;0700</pubDate>
    <author>kawin.v@kkumail.com (Kawin Viriyaprasopsook)</author>
    <guid>https://kawin.dev/posts/go/value_or_pointer/</guid>
    <description><![CDATA[<div class="featured-image">
                <img src="/featured-image.webp" referrerpolicy="no-referrer">
            </div><p>ในเวลาที่เขียนภาษา Go มักจะมีคำถามนึงโผล่มาเสมอ คือตกลง func นี้จะใช้ Value หรือ Pointer ดีนะ เดี๋ยวเรามาดูความแตกต่างกัน</p>]]></description>
</item>
<item>
    <title>ออกแบบ Go struct ด้วยความรู้วิชา Computer Architecture และ Data Structure</title>
    <link>https://kawin.dev/posts/go/struct_memory/</link>
    <pubDate>Sun, 30 Jul 2023 13:01:50 &#43;0700</pubDate>
    <author>kawin.v@kkumail.com (Kawin Viriyaprasopsook)</author>
    <guid>https://kawin.dev/posts/go/struct_memory/</guid>
    <description><![CDATA[<div class="featured-image">
                <img src="/featured-image.webp" referrerpolicy="no-referrer">
            </div><p>ตอนสมัยเรียนวิศวคอมพิวเตอร์มีคำถามนึงโผล่มาเสมอว่าวิชาอย่าง Computer Architecture กับ Data Structure เรียนไปทำไมกันนะ จนกระทั้งจบออกมาได้เขียนภาษา Go ถึงได้เอะใจว่า ทำไม Go ถึงได้มี data type แบบกำหนดขนาด เช่น <code>int8</code> <code>int16</code> <code>int32</code> <code>int64</code> และอื่น ๆ ทำไมถึงไม่เป็น <code>int</code> หรือ <code>number</code> เฉย ๆ ไปเลยแบบภาษาขี้เกียจอย่าง TypeScript กันนะ จนได้มานั่งอ่านเกี่ยวกับ <a href="https://go.dev/src/go/types/sizes.go" target="_blank" rel="noopener noreffer ">sizes in Go</a> ถึงได้รู้ว่าเราสามารถใช้ความรู้ในวิชา Computer Architecture และ Data Structure มาช่วยให้เราเขียน Go ออกมาได้ประสิทธิภาพอย่างที่ควรจะเป็น</p>]]></description>
</item>
</channel>
</rss>
