🌘 Odin 語言若支援巨集(Macros)的設想
➤ Odin 設計哲學:務實主義下的元程式設計考量
https://www.gingerbill.org/article/2025/07/31/if-odin-had-macros/
本文探討了 Odin 程式語言是否應納入類似於巨集(macros)的元程式設計機制。作者 GingerBill 強調 Odin 的設計哲學是以實用主義為導向,旨在為特定問題提供更優雅、更符合語言特性的解決方案,而非盲目追隨通用功能。雖然作者承認巨集與元程式設計的潛在價值,但他認為 Odin 的現有語法和設計已能有效處理許多過去可能需要巨集才能解決的問題。文章以 Go 語言的推式迭代器(push-based iterators)為例,展示了一種不依賴閉包(closures)且極具 Odin 風格的實現方式,能生成高效的程式碼。作者最終總結,儘管這種特定於迭代器的「類巨集」功能在理論上可行,但考量到 Odin 的核心設計原則和避免「滑坡效應」(slippery slope)——即一旦允許特
#程式語言設計 #Odin #巨集 #元程式設計 #設計哲學
If Odin Had Macros - gingerBill

Have been doing some recreational programming to learn Odin and SDL3 GPU by going through Nadako's excellent tutorial.

SDL3 GPU reminds me of D3D11, just less verbose, like all of SDL is.

I've come so far that I started organize the code the way I'm used to and implement stuff on my own.

Currently working on Odin bindings for Crunch. (Yes, very recreational.)

https://www.youtube.com/playlist?list=PLI3kBEQ3yd-CbQfRchF70BPLF9G1HEzhy

#odin #sdl3

Odin SDL3 GPU Tutorial

YouTube

Sacred King

In many historical societies, the position of kingship carried a sacral meaning & was identical with that of a high priest & judge.

Divine kingship is related to the concept of theocracy. Although a sacred King doesn’t necessarily rule through his religious authority. But rather, the temporal (or non-religious) position itself has a religious significance behind. The monarch may be divine, become divine, or represent divinity to a greater or lesser extent.

In sacred kingship, the king often has little political power, & is contrasted with divine kingship where the king triumphs in the politico-religious struggle between the people & the king. A sacred king is often encumbered with ritals & used as a scapegoat for disasters such as famine & drought. However, they can become divine & achieve greater power.

In Africa, sacred kings are often represented as volatile & potentially dangerous wild animals. The Ashanti flog, yes flog, a newly selected King (Ashantehene) before enthroning him.

From the Bronze Age in the Near East, the enthronement & anointment of a monarch is a central religious ritual, reflected in such titles as Messiah or Christ. This became separated from worldly kingship. Sargon of Akkad described himself as a “deputy of Ishtar.” This is like how the modern Catholic popes take the role of the “Vicar of Christ.”

Kings are styled as shepherds from the earliest times. The term was applied to Sumerian princes such as Lugalbanda in the 3rd millennium BCE. Shepherd imagery combines themes of leadership & the responsibility to supply food & protection, as well as superiority. As a mediator between the people & the divine, the sacred King was credited with special wisdom (like Solomon or Gilgamesh) or vision (via oneiromancy). Oneiromancy is a form of divination based on dreams, & also uses dreams based on dreams, & also uses to predict the future.

Here are some examples of some sacred kings:

  • Chakravartin, a righteous king derived from Indian religious thought
  • Devaraja, a cult of divine kings in Southeast Asia
  • Germanic kingship
  • Kings in pre-Christian Scandinavia & England claimed descent from God’s such as Odin & Freyr. Scandinavian kings in pre-Christian times served as priests at sacrifices.
  • The kings of Goryeo claimed descent from the Dragon King
  • Holy Roman emperors
  • Imperial cults
  • The Omukama of Kitara ruled as a heavenly sovereign
  • The High King of Ireland, according to medieval tradition, married the sovereignty goddess
  • The Eze Nri, ruler of the defunct Igbo Nri Kingdom in present-day Nigeria. He was addressed as “Igwe,” meaning “heavenly one” in the Igbo language, & has bestowed his title to the monarch of a contemporary traditional state of the same name.
  • The Emperor of Japan is known in Japanese as Tenno (Heavenly sovereign) & was formerly believed to be a living kami.
  • The Kende was the sacred King of the Magyars in the 9th century.
  • The Khagan
  • The kings of Luba became deities after death.
  • The earthly power of the papacy.
  • Pharaoh, the title of Ancient Egyptian rulers. The pharaoh adopted names symbolizing holy might.
  • The last vestige of Athenian monarchy, Archon basileus, mainly retained the duties of overseeing certain religious rites.
  • The Son of Heaven, an East Asian title
  • Shah & Guardianship of the Islamic Jurist, Islamic concepts
  • The kings of Sparta claimed direct descent from Heracles himself, & served as hereditary priests.
  • Madkhalism in Islam
One-Time Monthly Yearly

Make a one-time donation

Make a monthly donation

Make a yearly donation

Choose an amount

$1.00 $5.00 $10.00 $1.00 $5.00 $10.00 $5.00 $10.00 $15.00

Or enter a custom amount

$

Your contribution is appreciated.

Your contribution is appreciated.

Your contribution is appreciated.

DonateDonate monthlyDonate yearly

#3rdMillenniumBC #9thCentury #Africa #AncientEgypt #ArchonBasileus #Ashantehene #Ashanti #Athens #BronzeAge #Catholic #Chakravartin #Christ #Devaraja #Divination #DivineKingship #DragonKing #Dreams #EastAsia #EmperorOfJapan #England #EzeNri #Freyr #Germanic #Gilgamesh #Goryeo #Heracles #HighKingOfIreland #HighPriest #HolyRomanEmperor #IgboLanguage #IgboNriKingdom #Igwe #Indian #Ishtar #Islam #IslamicJurist #Japanese #Judge #Kami #Kende #KingSolomon #KingsOfLuba #Lugalbanda #Madkhalism #Magyars #Messiah #Monarch #NearEast #Nigeria #Odin #OmukamaOfKitara #Oneiromancy #Papacy #Pharaoh #Popes #PreChristian #Priests #SacredKing #SargonOfAkkad #Scandinavia #Shah #Shepherds #SonOfHeaven #SoutheastAsia #Sparta #Sumerian #Tenno #TheKhagan #Theocracy #VicarOfChrist

America's Proud Pour Hundred and Europe's Haughty Nobility and the Ancestors They Are Always Boasting Of (1893) by Frederick Burr Opper, from Puck, v. 34, no. 865.

Source: Library of Congress

https://pdimagearchive.org/images/f7cf3c1b-f227-4ea5-851e-bb203af6f321

#woden #satire #caricatures #societies #genealogy #odin #vikings #scandina #art #publicdomain

An Eye on Society by Studio Giftig @studiogiftig, a collaboration between Niels van Swaemen and Kaspar van Leek at Arenavägen 7, 121 88 Stockholm-Globen, Sweden in July 2022 for @kollektivet.livet and @wallstreetstockholm. Model: Michiel Visser @sailorchiel. Photos taken August 2025.
⠀⠀⠀
"Nowadays, Odin is sometimes used as a symbol within right-wing parties excluding people. To counter this, we used Odin as a contemporary model for equality. His ravens fly around the world to tell him what is happening in the world. One of them whispers it in his ear, after which he takes a critical look at society. Amongst other references he is holding a book with the anti-racism icon on the cover." @studiogiftig July 4, 2022
⠀⠀⠀
Artist website: https://studiogiftig.nl/
⠀⠀⠀
#acrylic #antiracism #artfestival #artinpublicspaces #collaboration #dutchartist #gatukonst #globalstreetart #insearchofstreetart #montanacans #mural #muralart #odin #painting #photorealistic #publicart #ravens #realism #rsa_graffiti #stockholmstreetart #street_art_community #streetart #streetarteverywhere #streetartist #streetartphotography #streetartsweden #studiogiftig #supportartists #urbanartist #wallart

Very interesting computer language discussion. Very good points are made on the way. Guests are Ginger Bill and José Valim.

#theprimeagen #ThePrimeTime #YouTube #Elixir #Rust #Odin

https://youtu.be/tXJfS6jI9Z0?si=3O2mTb7wBy14_bKT

2 Language Creators vs 2 Idiots | The Standup

YouTube
I finally found out how to fix the setup for #odin #vscode debugging using LLD. I added the -linker:lld flag in addition to -debug. Seems obvious in hindsight 🤦‍♂️ Now I can set breakpoints in VSCode and inspect the memory live. Much more convenient than printf debugging. #programming #amcoding

Divulgada a lista de autores selecionados pela Medusa Editorial para a antologia Canções do Norte, com contos sobre os povos nórdicos e eslavos, bem como a capa oficial e a aguardada pré-venda.

Canção do Norte é o quarto volume da Coleção Mundi: uma jornada literária pelas mitologias do mundo.

Link para a pré-venda:
https://www.consultoriamedusa.com/product-page/can%C3%A7%C3%A3o-do-norte

#livros #norse #vikings #odin #eslavos #fantasia #mitologia

I'm subscribed to various #Reddit topics involving TV shows, like /r/magnumpi, /r/cowboybebop and /r/firefly and fans are always asking and scrambling to new streaming services when their show disappears from their own service. For the love of #Odin: Just buy a #blu_ray player and buy the #DVD box or #Blu_ray box of your favorite show and watch to your hearts content. I've been buying these shiny discs since their release, but you don't have to be like me, just buy your favorites.