https://github.com/lpil/sceall
I needed this, and it seemed we didn't have anything that could stream IO. Enjoy!
1 messages · Page 1 of 1 (latest)
https://github.com/lpil/sceall
I needed this, and it seemed we didn't have anything that could stream IO. Enjoy!
What does the name mean 👀
I should learn to read
Gonna steal that error type so I can stop just saying SystemLimit in my version of the same thing
https://hexdocs.pm/child_process/
You even looked at it and told me I should figure out how to clean up processes when the beam exits 😅
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
you know I can fix those things!
What things?
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
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
where's the function colouring?
pub fn lines(on_line callback: fn(String) -> Nil) -> Stdio
The way it's supposed to be used is that you provide the process.send call here
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
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
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
I know we disagree on this 😄
So yeah no time wasted then 😌
I read the name initially as "scéal" (pronounced "shk-ale"), "story" as Gaeilge. 😁
you read right
Nah it’s “shell”, not “story”!
Tá Gaeilge agat?
Gaeilge na Scoile. 😅 Is Éireannach mé.
I’ve only recently started learning 🙂
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!
My family are from Kerry, but I’m from London
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.
I do enjoy the naming choices for these packages :)
I don't know how to name this thing...
Irish dictionary
But these names are cool and unique!
It’s such a good and easy trick