Fork me on GitHub
#babashka-sci-dev
<
2021-12-17
>
Ben Sless11:12:07

Something I've been wondering about with sci, would it be possible to tweak its evaluation semantics , for example to make it call by need and not call by value?

borkdude11:12:57

Perhaps with a hack ;)

Ben Sless11:12:28

Most likely, how complicated do you assume it would be?

borkdude11:12:56

I suspect it would be easier to do a program transformation to wrap everything in delays

borkdude11:12:21

as SCI assumes the same semantics as clojure and doesn't really try to do anything different

borkdude11:12:48

but having said this @mauricio.szabo has done some hacks to implement a sort-of async/await in SCI on JS

borkdude11:12:59

which is similar

borkdude11:12:27

perhaps I can find his hacks, or he can link them here

borkdude11:12:28

now that we have history in this slack it should be "easy" to find... let me try

borkdude11:12:58

https://twitter.com/mauricio_szabo/status/1426713696789794816 and then he did make it so, but I lost track where the code is...

borkdude11:12:49

better link (slack permalinks are hard)

mauricio.szabo11:12:57

Hi there - just jumping in the conversation now. If someone is interested I can discuss my hack :)

Ben Sless12:12:12

Can it be used as a baseline to implement a partial evaluator?