Tag: reflection
5 รายการ
Blog
Python inspect.signature: ตรวจรูปแบบ callable โดยไม่เรียกโค้ดจริง
อ่าน parameter kind และ default เพื่อเช็ก capability ของ plugin แบบไม่ execute พร้อม unittest
Python inspect.getmembers_static: สำรวจ object โดยไม่เผลอเรียก property
เทียบ getmembers กับ getmembers_static ผ่าน descriptor ที่มี side effect และ unittest แบบ isolated

Reflection เปิดตัว Beam 501B: open-weight คู่แข่งใหม่ที่ยังต้องรอ weights และ model card
วิเคราะห์ Beam 501B/23B active ตั้งแต่ข้อมูลฝึก, RL scale, คำอ้างด้านประสิทธิภาพ ไปจนถึงสิ่งที่ยังตรวจซ้ำไม่ได้ก่อน artifacts ออก
Java ClassValue: ผูก cache กับ Class โดยไม่สร้าง static map ถือ class loader ไว้
ใช้ ClassValue คำนวณ metadata ต่อ Class แบบ lazy พร้อม remove, concurrency contract และ Java 17 assertions
Go reflect.TypeAssert: ตรวจชนิดจาก reflect.Value โดยไม่สร้าง interface กลาง
ย้ายจาก Value.Interface().(T) มาใช้ reflect.TypeAssert พร้อมอธิบายกรณีที่แก้ได้และขอบเขตของ reflection