#Sceall - Spawn shell programs and stream their stdio using BEAM ports

1 messages · Page 1 of 1 (latest)

narrow rapids
vale ravine
#

What does the name mean 👀

narrow rapids
#

😁

vale ravine
#

I should learn to read

sharp cave
#

Gonna steal that error type so I can stop just saying SystemLimit in my version of the same thing

narrow rapids
#

oh wait you already made this? despair

#

I did search but didn't find it

sharp cave
narrow rapids
#

lmao

#

I guess I'm a total fool

#

Ah this isn't the same thing, you can't use it with OTP

#

It introduces function colouring so you can only use it on JS

#

Phew, not time wasted

sharp cave
#

you know I can fix those things!

narrow rapids
#

What things?

sharp cave
#

The thing I could do with a real subject would be monitoring the caller to kill the process

#

I didn't super feel worth it since it would leak in a lot of cases anyways since we didn't call init:stop

narrow rapids
#

Sorry, not sure what you mean

#

I was saying child_process introduces function colouring so can only be used in JS applications or small BEAM scripts that don't need to work with any other concurrency stuff, while sceall works in any BEAM program, so it's not wasted having both

#

Both have the same orphan process problem because you can't solve it inside the BEAM

thin hornet
#

where's the function colouring?

narrow rapids
#
pub fn lines(on_line callback: fn(String) -> Nil) -> Stdio
sharp cave
#

The way it's supposed to be used is that you provide the process.send call here

narrow rapids
#

Adding extra unsupervised processes and wasteful message sending in order to use an alien and much more complex API is not good idea

#

It's the lowest common denominator problem

sharp cave
#

There's a supervised and factory versions. The synchronous API does not spawn extra processes

#

The extra process was required for input processing reasons anyways, but I can check if I can sometimes not spawn it

narrow rapids
#

I think it would be better to use OTP, the way that OTP programs work is very well established

#

The core generic server abstraction being shared means that everything is compatible, understandable, and efficient

sharp cave
#

I know we disagree on this 😄
So yeah no time wasted then 😌

floral crystal
#

I read the name initially as "scéal" (pronounced "shk-ale"), "story" as Gaeilge. 😁

thin hornet
#

you read right

narrow rapids
#

Nah it’s “shell”, not “story”!

floral crystal
narrow rapids
#

I’ve only recently started learning 🙂

floral crystal
#

My parents speak (Munster) Irish fluently, but when they moved up to Dublin in the 70s (and I was born), the Irish-speaking community there was very nationalist and republican, so they didn't really involve themselves in it. So my siblings & I don't speak it more than what we learned at school.

#

There's a bit of a revival of the language in Ireland in the current generation, which is great.

#

Anyhow, nice to see the project name!

narrow rapids
#

My family are from Kerry, but I’m from London

floral crystal
#

Ah Kerry's amazing. I grew up on the east coast, but I live in Tipperary these days. My partner & I visit Killarney and the region fairly often.

last creek
#

I do enjoy the naming choices for these packages :)

ruby ravine
#

I don't know how to name this thing...
Irish dictionary

#

But these names are cool and unique!

narrow rapids
#

It’s such a good and easy trick