ityonemo

ityonemo

Spinning this off in a new thread because I think it’s interesting and merits its own discussion. Agree with @hauleth that the basis should be spinning up a c-node inside of julia, but it’s going to need a bit more than that. A few questions:

  • How to manage Julia versions to run on
  • Julia has a --worker node setting, should we use that?
  • How do you load up the correct dependencies? Also, julia annoyingly uses global dependencies, more like python than elixir, which has project-level dependencies.
  • Is there something really high performance that one could do like memmapping memory segments and passing data across that way? How do you detect if that capability exists? (windows? Linux? MacOS? etc)

Separately, would anybody be interested in doing a collab on this for SpawnFest 2020?

Showing Posts 29 to 20

Changxin

Changxin

Oh, Thanks!

I’ve been working on a reasoning system using Elixir/OTP (I’m really enjoy it !!!). The system should have been connected to the robot hardware, but for testing purposes a simulated environment Webots was chosen.

Unfortunately, webots doesn‘t have a language interface for Elixir. So, I use Julia call its dll and transfer robot status to Elixir by Socket.

Well, the status information also includes camera images, so msgpack may be a good choice, just like what AirSim does. But the images are represented by String and its resolution is relative small, so JSON is used by the system. :joy:

I want a good interoperability between Julia and Elixir, both are great programming languages! However, now, Socket + JSON or MsgPack may be more realistic.

josevalim

josevalim

Creator of Elixir

If you are sending textual data, we didn’t see a large improvement between JSON and Erlang.

Also note that sending Erlang terms to a server is insecure.

So if you are sending binaries and want efficiency, I would go with msgpack or similar. :slight_smile:

Changxin

Changxin

Yes, Socket is more flexible than Stantard IO, emm, I have a question that when communicate with Erlang by Sockets, Json Format or Erlang External Format which one is preferred?

dokie

dokie

Yeah no worries, I took it is the spirit it was intended :slight_smile:

ityonemo

ityonemo OP

haha sorry that was more of a shower thought. Unfortunately the julia worker interface is not very well documented, so I would say, for a team that has to deliver a product it’s probably not worth the hyperoptimization yet, but you know, it would probably be “fun to look into”. That sort of a thing.

dokie

dokie

Good point and for some of our Julia services it might be a good option. I will discuss this idea with the team and see it we can add it to our backlog. Cheers

ityonemo

ityonemo OP

I think though you can configure julia workers to listen on a socket with a much more lightweight protocol (and even instruct K8S to use that protocol as a liveness check), without having to drop in such a heavy system. I guess it depends on what your latency requirements and how long each job takes; if your julia jobs are on the order of milliseconds you might care; if your julia jobs are on the order of minutes or more HTTP is a-ok and probably easier to debug if something goes wrong.

dokie

dokie

Unfortunately our architecture of the platform we have built on k8s is better handled by having the 2 runtimes and services written in the 2 languages on different pods so we can scale independently

hcs42

hcs42

We actually started doing this before 1.0… and it was not trivial. Then the situation improved with 1.0 and the new package compiler, which we started to use. But it still required some non-trivial work. We haven’t modified this part of our code since then, so I’m not sure how much changed since 1.0.

Good luck with your next project!

ityonemo

ityonemo OP

Sorry I wasn’t able to figure out the spawnfest registration. I was in the process of evaluating if I should quit my job due to some unexpected developments, and that consumed a lot of energy.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
axelson
Hi there! :wave: @frigidcode and I (but mostly him) have been running an Elixir Book club, we’re almost done with Designing Elixir Syste...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
georgeguimaraes
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews