ohai.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A cozy, fast and secure Mastodon server where everyone is welcome. Run by the folks at ohai.is.

Administered by:

Server stats:

1.8K
active users

#erlang

10 posts10 participants0 posts today

🌗 為什麼我們需要模組?
➤ 對 Erlang 模組的重新思考
groups.google.com/g/erlang-pro
Joe Armstrong 在 Erlang 程式設計羣組中提出了一個問題:我們是否真的需要模組?他認為模組雖然提供編譯、發布和替換的單位,但也帶來了函數歸屬的困擾,並可能破壞封裝性。他提議一種替代方案:去除模組,使用全局的、可搜索的關鍵值數據庫來儲存所有具有唯一名稱和元數據的函數,並透過這個數據庫進行開源貢獻。
+ 這篇文章觸發了我對 Erlang 模組設計的反思,的確,有時候很難決定一個函數應該放在哪個模組裡。
+ 移除模組的概念聽起來很激進,但如果能有效地管理函數命名和版本控制,或許能帶來更靈活的開發體驗。
#Erlang 程式設計

groups.google.com[erlang-questions] Why do we need modules at all?

I just made an Erlang GUI "Hello World" in a Fedora 41 Toolbox.

$ toolbox create erlang

$ toolbox enter erlang

$ sudo dnf install erlang

$ erl -smp

1> wx:new().
{wx_ref,0,wx,[]}

2> M = wxMessageDialog:new(wx:null(), "Hello World").
{wx_ref,35,wxMessageDialog,[]}

3> wxMessageDialog:showModal(M).

Thanks to:

arifishaq.wordpress.com/wp-con

wxerlang.dougedmunds.com/

#erlang#gui#fedora
Replied in thread

@AmenZwa I'm puzzled that you don't mention Erlang. I'm not a programmer, but I follow the discussions. Maybe I'm completely out of date. I thought WhatsApp was built by 5 programmers in Erlang. Then completely rewritten when it was purchased by a large corp. Surely the importance of C in stability is due to the corporate infrastructure. I would have thought the brightest people would use the best new tools for prototyping and proof-of-concept for a new business, then sell it and move on. I'd hope that at least one Ukrainian group is using the Erlang infrastructure to program swarms of drones. I thought #Erlang was good for small and large #systems programming.