Post AS7PuZAWTmSFppq4rg by chjara@snowdin.town
 (DIR) More posts by chjara@snowdin.town
 (DIR) Post #AS6VJyFMgL1fSw4plI by Moon@shitposter.club
       2023-01-28T14:00:36.206195Z
       
       1 likes, 0 repeats
       
       I basically just want node.js but with real concurrency
       
 (DIR) Post #AS6VOt9Z2ybz7Gi0Z6 by icedquinn@blob.cat
       2023-01-28T14:01:41.889946Z
       
       0 likes, 0 repeats
       
       @Moon does graal run javascript
       
 (DIR) Post #AS6VTXBe93OyR7tjnM by Moon@shitposter.club
       2023-01-28T14:02:28.241349Z
       
       0 likes, 0 repeats
       
       @icedquinn dunno but it would need language extension
       
 (DIR) Post #AS6VZZzCeNGar7xaxk by hckr@shitposter.club
       2023-01-28T14:03:39.363157Z
       
       1 likes, 0 repeats
       
       @Moon @icedquinn https://github.com/oracle/graaljs
       
 (DIR) Post #AS6Ve6OO6fmcWJtf5k by hckr@shitposter.club
       2023-01-28T14:04:27.844223Z
       
       1 likes, 0 repeats
       
       @Moon @icedquinn since they don't mention it, i assume it's not faster than regular node or w/e
       
 (DIR) Post #AS6VjpCyuQasxkI46C by hckr@shitposter.club
       2023-01-28T14:05:30.253796Z
       
       1 likes, 0 repeats
       
       @Moon gleam.run
       
 (DIR) Post #AS6VnfrzZUoX9rJB44 by Moon@shitposter.club
       2023-01-28T14:06:06.220278Z
       
       0 likes, 0 repeats
       
       @hckr @icedquinn basically the way you do concurrency in js is you launch a worker with a script, a worker is just a separate thread running that js script. So it does it but its pathetic for actually programming
       
 (DIR) Post #AS6VxAWOyiW8pSjkga by hckr@shitposter.club
       2023-01-28T14:07:55.070176Z
       
       0 likes, 0 repeats
       
       @Moon @icedquinn i think you'd really enjoy gleam if you gave it a couple hundred lines of practice code. it's a slight departure from the prototyping approach of js to a more functional-compositional approach, but i think you've done some elixir before? anyhow, it's worth at least a glance. it's pretty sick. it can also apparently compile to js. i didnt know that until today, but thar she blows.
       
 (DIR) Post #AS7OxA0aNh8EiTrdY0 by chjara@snowdin.town
       2023-01-29T00:20:55.067440Z
       
       0 likes, 0 repeats
       
       @Moon you mean promises or you mean parallelism
       
 (DIR) Post #AS7OxAcA7zBob1Re7M by Moon@shitposter.club
       2023-01-29T00:24:00.758369Z
       
       0 likes, 0 repeats
       
       @chjara you can launch a worker or a separate process with a script file of course but obviously that is the absolute shittiest way to do multiprocessing.with regard to promises, in js you can't cancel them in-flight (except fetch)
       
 (DIR) Post #AS7P9osaFYAEwz9pYm by emilis@puff.place
       2023-01-28T14:11:25.941Z
       
       0 likes, 0 repeats
       
       @Moon@shitposter.club if your problem space requires concurrency, a scripting language isn't the right tool to begin with.like im not even being an asshole about correctness, it's literally doing self harm as the design goals of what a scripting language tries to accomplish is very opposed to what a concurrent system that is possible to reason about would be trying to do.
       
 (DIR) Post #AS7P9q5NlRzogy9Z9E by Moon@shitposter.club
       2023-01-29T00:26:11.053548Z
       
       0 likes, 0 repeats
       
       @emilis the difference between a scripting language and a programming language are not relevant in this case imo insofar as v8 isn't doing plain interpreting
       
 (DIR) Post #AS7PuZAWTmSFppq4rg by chjara@snowdin.town
       2023-01-29T00:25:05.975863Z
       
       0 likes, 0 repeats
       
       @Moon oh, yeah, js's stuff is kinda lousy in that regardalso wrt promises that kind of makes sense that there's no way to abort them as like they don't represent a computation but an eventual result
       
 (DIR) Post #AS7PuZiYRFg1XNlFuS by Moon@shitposter.club
       2023-01-29T00:34:46.293428Z
       
       0 likes, 0 repeats
       
       @chjara oh yeah i just mean something like spawn in elixir would be nice, where you don't have to think much you can just launch any function in an async way. obviously js isn't really running a pure js promise parallel but in practice i'm doing a ton of async io stuff
       
 (DIR) Post #AS7QVeUXeTUf3ft1kW by Moon@shitposter.club
       2023-01-29T00:41:28.682217Z
       
       0 likes, 0 repeats
       
       @emilis maybe i'm wrong, obviously my problems would go away if i just moved away from node.js to elixir