ด้วยแพทช์ของท่าน Prathan Thananart ตอนนี้ chamkho-pg รองรับ macOS แล้ว ทำให้ค้นหาข้อความแบบ full-text บน PostgreSQL โดยใชัตัวตัดคำสำหรับภาษาต่างๆ เช่น จีน ญี่ปุ่น เขมร เมียนมา ลาว ฉาน ไทยและอื่นๆ ได้ และสำหรับท่านอยากลองเขียน Rust กับสิ่งที่ไม่ใช่เว็บดูบ้าง chamkho-pg ก็เป็นตัวเลือกหนึ่งครับ

github.com/veer66/chamkho-pg/c…

reshared this

Does Rust have pointer operations that are "constrained UB" on data races?

I'm writing a crash dumper that has to read arbitrary memory. In practice, that memory should be static after a crash, but for safety, let's assume it might not be. Rust's std::ptr says that it is UB to perform concurrent accesses, even when using read_volatile. But is this really "dragons come out your nose" UB, or just "the data may tear / be anything" UB? Even Atomic types say "it is not allowed to mix atomic and non-atomic accesses".

I'm pretty sure I can just use atomics anyway and it will work (and atomic loads with relaxed memory model should just map to regular loads anyway), but it's still UB on paper.

Is there anything left in Rust core? Or do I have to write assembly code to be strictly compliant-with-the-spec?

in reply to Asahi Lina (朝日リナ) // nullptr::live

I think read_volatile is fine, since the doc for that says "That being said, the semantics will almost always end up pretty similar to C11’s definition of volatile."

which is also what the kernel relies on, so should be good enough in practice

I'd freak out more about pointer provenance, but I think if you invent that raw pointer out of thin air from an usize, that should be fine too

fair warning: I have no clue, just nightmares from paulmckenney talks

จะเรียกว่า "กูบอกมึงแล้ว" หรือ ''เพิ่งพูดยังไม่ทันขาดคำ'' ได้ไหมนะ จริงๆมันก็ไม่น่าแปลกใจอะไรหรอกที่บังเอิญเจอพอดีคนพูดเรื่องนี้ ข่าวเรื่องพวกนี้ มันมีจริงในสังคมอะนะ เวลาโพสต์โผล่มามันเลยมาใกล้ๆกันได้
This entry was edited (7 months ago)

SukinoVERSE reshared this.

Help us test the Identity Policy Audit migrate feature in today's Test Day! It's only running for today, so please consider contributing.

Learn more: fedoramagazine.org/contribute-…

#Fedora #Linux #OpenSource

💫 M1 GPU dev stream! 💫

Page tables... again? Let's reimplement GPU page tables in Rust! 🦀

Why? Because upstreaming reasons... and also because I want to write a GPU crash dumper ^^

🕐 Now~!
▶️ youtube.com/live/gVvm3_G7UAQ

#VTuber #ENVtuber #linux #stream

จอใหม่ของ raspberry pi เป็นจอด้านด้วย ราคาไทยสี่พันต้น th.cytron.io/p-raspberry-pi-mo…

Raspberry Pi 500 and Raspberry Pi Monitor are available now gamingonlinux.com/2024/12/rasp…

#RaspberryPi #RPi #Linux

OBS Studio 31 released with first-party YouTube Chat features, new NVIDIA filters and Linux improvements gamingonlinux.com/2024/12/obs-…

#OpenSource #OBSStudio

EA pledge another 23 accessibility patents for public royalty-free use gamingonlinux.com/2024/12/ea-p…

#EA #Gaming #PCGaming

ตอนหอบแมวกลับมาก็แอบกังวลอยู่ว่าจะนอนได้ไหม กินได้ไหม เพราะเคยมาพามาแค่ตอนเด็กๆไม่กี่เดือน เมื่อคืนเห็นลูกกินอิ่มนอนหลับก็ดีใจมากๆ เลยอะ ต่อไปนี้อยู่กันสี่คนนะลูกนะ

Steam sets a new record with 39 million concurrent users online gamingonlinux.com/2024/12/stea…

#Steam #Gaming #PCGaming

Minimalist mini-game filled survival city-builder Dawnfolk gets a release date and new demo gamingonlinux.com/2024/12/mini…

#Dawnfolk #IndieGames #Linux #LinuxGaming

itch.io store was taken down by Funko due to "trash AI Powered" phishing report gamingonlinux.com/2024/12/itch…

#Gaming #itchio #PCGaming #IndieGames #Funko

#InfiniTime 1.15.0 is out!

It brings a new Always-On-Display mode, a weather forecast app, a dice rolling app, persistent alarm and many other features, improvements and bug fixes!

It's time to upgrade your #pinetime !

github.com/InfiniTimeOrg/Infin…

@PINE64

This entry was edited (7 months ago)

Massachusetts: Pedestrian crosswalk decoy program nabs transgressors

"A plain clothes officer attempts to cross in a crosswalk. While most motorists are compliant and follow the rules of the road there were dozens of violations observed. Subsequently, eleven motor vehicles stops were conducted within a two hour period. During the traffic stop officers educated the operator of the motor vehicle on the crosswalk law"

I love it! More, please!

stronghaven.substack.com/p/cat…

#Massachusetts #walking

in reply to Korawich Kavee

ที่ว่ามาจะเห็นว่ารักษา flow ให้รถไฟด้วยกัน สำคัญกว่าแค่ปล่อยให้บริ้นๆไปให้ได้ มีรายละเอียดที่ simplify ไปเยอะนะแต่เอาแค่นี้ก่อนละกัน

#พิพิธภัณฑ์วันละนิด #มาสโตดนของคนเดินทาง

ศาลเจ้าอะสึตะ เมืองนาโกย่า

ประวัติอย่างคร่าว ๆ คือเป็นศาลเจ้าสำคัญระดับประเทศเพราะเป็นบ้านของดาบคุซานางิ หนึ่งในเครื่องราชกกุธภัณฑ์ของจักรพรรดิ สถาปัตยกรรมก็ล้อมาจากศาลเจ้าอิเสะซึ่งเป็นสถาปัตยกรรมศาลเจ้ายุคแรก ๆ ของญี่ปุ่น

ความที่เราชื่นชอบดาบญี่ปุ่นเป็นทุนเดิม ประทับใจที่นี่มากเพราะดาบเยอะ ที่ชอบคือมุมกิจกรรมให้ผู้เข้าชมได้ลองถือดาบญี่ปุ่นแต่ละขนาด ซึ่งปกติดาบพวกนี้ไม่มีทางได้จับแน่นอน นึกออกไหมว่าแค่ได้จับดาบจริงก็ตื่นเต้นแล้ว นี่ได้ลองถือดาบด้วย ถึงได้รู้ว่าดาบใหญ่พวกดาบทาจิกับโนะดาจิหนักเป็นบ้า ถือเข้าไปได้ไงฟะตั้ง 10 โล (มีบอกน้ำหนักและมีบอกให้คนถือระวัง ๆ ไว้ด้วยเพราะคมจริง)

SukinoVERSE reshared this.

"องค์กรที่ทำเกือบทุกอย่างยกเว้นเว็บเบราว์เซอร์"

blognone.com/node/143528

ตัวสะกดที่ผมยอมรับเลยว่าสะกดผิดมาตลอดคือ "หลงระเริง" ซึ่งตามพจนานุกรมแล้วควรสะกดเป็น "หลงละเลิง"

---
ละเลิง ก. เหลิงจนลืมตัวเพราะลำพองหรือคึกคะนอง เช่น หลงละเลิงจนลืมอันตราย.
---
ระเริง ก. ร่าเริงบันเทิงใจ, สนุกสนานเบิกบานเต็มที่, เช่น แมวไม่อยู่หนูระเริง อย่าระเริงจนเกินไป.
--

มีคนเจอกรณีเดียวกันนี้ด้วย:
gotoknow.org/posts/660448

SukinoVERSE reshared this.

in reply to 𝙛𝙧𝙖𝙣𝙠

I don't think that's practical... I certainly don't want to have to add an Nvidia GPU to the vt.social server (and be locked into their messy software ecosystem) just for this... and I'm lucky I own the server, many Fediverse hosts are using VPSes and things like that.

If only glaze/nightshade used standard APIs not locked to one vendor and weren't so expensive that you have to have a decent GPU to run it at all...

I.T. COUNTRY reshared this.

We often see images comparing the space cars take up to other modes of transportation. I want us to also consider the energy cost, noise pollution, air pollution, and heat generation that are equivalent when compared to cars in these images. Thinking this way, it's beautiful and very fitting for Thailand. What we can save by not succumbing to car dependency
This entry was edited (7 months ago)

เขาว่า data center กินทั้งไฟ กินทั้งน้ำ แต่จ้างงานท้องถิ่นไม่เท่าไร หลายประเทศจึงต่อต้าน แต่ไทยอ้าแขนรับ
youtube.com/watch?v=mSAZIrRZWS…
in reply to Mishari Muqbil

@mishari 1. ผมไม่คิดว่าเราจะพิเศษไปกว่าอเมริกาใต้ที่เป็นลุ่มน้ำแอมะซอนครับ ซึ่งทางนั้นเขามีปัญหากับ DC มาแล้ว

2. เรื่องไฟฟ้าต้องเพิ่มการใช้พลังงานหมุนเวียนขึ้นอีกถ้าเรามีเป้า net zero

3. เรื่องภาษี ผมฟังคุณภาวุธพูดหลายครั้งว่าธุรกิจที่รันบน DC ส่วนใหญ่จะรับชำระด้วยบัญชีต่างประเทศที่เก็บภาษีถูกกว่าไทย (เช่นไอร์แลนด์) ที่ตกถึงไทยเป็นสัดส่วนน้อยมาก (เดาว่าตรงนี้ trigger ให้ รบ. คิดลดภาษีนิติบุคคลเพื่อดึงภาษีกลับมาไทยครับ)

As with all my endeavors, don't expect much from this, but I'm gonna try to build a multiplayer mod for #SnekStudio to display multiple models and share tracking data. Wish me luck?

twitch.tv/copygirl

#Streaming #VTuber #VTuberEN

อยู่ที่ Bsky.com ด้วยนะคนับ ฟอล์มาฟอล์กลับแบบฉับไวเลยนะคนับ
bsky.app/profile/niyayzap.bsky…
This entry was edited (7 months ago)

cwt 🐍 reshared this.