I have a BIG problem, and I want feedback from the community :
I’m trying to do a graphql server with websockets push and to do so I went the ruby way (I was doing ruby before elm). But the performance is not great and I have this problem where ruby wants to map database lines to objects and objects to arrays of records to send them to the browser when what I want is just requesting lists of records, mapping on them, and sending them to the client through websockets. So I went Crystal, but the type system in Crystal is undergone, and it’s basically impossible to type the returns of functions, and implicit is beloved here so you get weird compiler issues.
So : I need a way to communicate with Redis on the backend to store and retrieve my data, and a way to send to the client a record, and a way to do some side effects.
The options are :
elm (I know it’s not written for that case, but I don’t see any other simple language that doesn’t allow objects) ?
What would you do ?