csmr

csmr

Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley:

Mutonex gamedesign was finished some years back and I wrote the initial version as microservices-style Ruby and Javascript servers, but decided to make it an Elixir-based monolith. It is very much pre-alpha, but I feel the gameserver modules are now set.

Mutonex gameserver now has 7 app components, the major ones being:

Kind of hidden under the hood are the Phoenix pubsub/channels, db/ecto and the game session supervisor. Also added sobelow for vulnerability scans.

Sounds convincing? But I’m new to Elixir, am I even doing this right? I’ve done my best to be succinct. Can you suggest points of improvement?

Please, also free to test-drive or pick this repo apart, suggest improvements? GitHub - csmr/mutonex at dev · GitHub (dev branch)

The monorepo also has easy-to-start containerized dev-env, the graphics-content generators, and a browser-client in vanilla JS & Three.js 3D WebGL. The sectors will be based on real Earth satellite images, eventually. Just for fun!

Showing Posts 1 to 4

derek-zhou

derek-zhou

it would be easier if you just list out the design decisions that you are not so sure of. Asking people to :pick apart" your code is a big favor, unless your code is a gold mine for good ideas.

csmr

csmr OP

Yes it is, unless they really like reading Elixir code. Personally, I like the implementation so far, and I think I’ve got things at least semi-right. The websocket connection seems to work in milliseconds, versus +100 ms for http.

But being new(ish) to Elixir, Genserver and Phoenix-based websockets, its hard to tell if I’ve done something silly or obviously wrong.

derek-zhou

derek-zhou

Code review works in a work environment because the reviewer is also a stakeholder. I’d also advise against “preemptively” fixing issues you haven’t even perceived, I am assuming they exist. It may feel like taking a shortcut but will harm your growth in the long run.

csmr

csmr OP

Sorry, lost me at ‘work environment’, as that is not what it is. This is all FOSS and if its not Just for fun for you, you don’t have to do anything. Thanks for your comments.

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
yarrichar
I’m very new to Elixir, so sorry if this is a silly question: I am wondering what happens to the mailbox of a process when the machine i...
New
pragdave
How do I tell Hologram not to escape HTML when substituting into templates? {Textile.render(@product.long_description)} escapes the HTM...
New
Fl4m3Ph03n1x
Background When trying to execute mix release on a Windows 11 machine for a Phoenix project I get the following error: * assembling mark...
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
rlipscombe
I’d like to create a file with 600 permissions (rw-------), but there’s a race condition if I create it and then change the permissions. ...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews