Post AYjVCySvsC8EGjBrTk by xameer@mathstodon.xyz
 (DIR) More posts by xameer@mathstodon.xyz
 (DIR) Post #AYjLk9uFMKq3lX9RKK by amiloradovsky@stereophonic.space
       2023-08-14T18:59:50.594516Z
       
       0 likes, 1 repeats
       
       what do you think of #Lua? — it seems like the same niche which #Python occupies nowadays, but IDK how they compare
       
 (DIR) Post #AYjLyQ7Ft8VA5s2JKi by genmaicha@stereophonic.space
       2023-08-14T19:01:40.634163Z
       
       1 likes, 0 repeats
       
       @amiloradovsky it's pretty sensible and easy to implement (it's recommended as an example to study if you're implementing your own virtual machine) but in my limited experience it feels a little bit like a toy
       
 (DIR) Post #AYjNeYzNOBprjH0h0a by freakazoid@retro.social
       2023-08-14T19:20:04Z
       
       1 likes, 0 repeats
       
       @amiloradovsky I would not use it for standalone programs with its vanilla runtime, but it's fantastic for embedding and playing around with modifying the runtime!
       
 (DIR) Post #AYjObhpw8Y9UFtnQu0 by freakazoid@retro.social
       2023-08-14T19:25:25Z
       
       0 likes, 0 repeats
       
       @amiloradovsky Of course, it's C, so you need to be working with some systems language that interfaces well with C.For embedding there are more JS choices available these days than there were the last time I was looking for an embedded interpreter, though, and I think JS is a better choice if you want something familiar to users. There are also Python implementation that are easy to embed, across multiple host languages.Though you didn't say you were looking for an embedded language.
       
 (DIR) Post #AYjObibnGcQueKBeUq by amiloradovsky@stereophonic.space
       2023-08-14T19:31:55.055816Z
       
       0 likes, 0 repeats
       
       @freakazoid ATM I'm just trying to estimate whether it'll be painful to deal with should I need to, like Perl for example — I don't know it and don't wanna learn itfor embedded languages, I'd rather pick Guile than something JS, if I'm not constrained, of course
       
 (DIR) Post #AYjUlRebl4CYgcWaBc by freakazoid@retro.social
       2023-08-14T19:47:57Z
       
       1 likes, 0 repeats
       
       @amiloradovsky Yeah there are plenty of embeddable Schemes. Now that I think of it the only thing that's prevented me from using those is that in I have generally wanted languages that could be reasonably sandboxed against semi-trusted code, and I haven't found an easily embeddable Scheme where that was practical. It definitely is with Lua, though it takes some work.With Scheme there's also the other way around: calling C code from Chicken Scheme is very nice, since it compiles to C while still supporting full continuations.
       
 (DIR) Post #AYjUlSW8Y31HMdZKca by freakazoid@retro.social
       2023-08-14T19:52:13Z
       
       1 likes, 0 repeats
       
       @amiloradovsky But no, it's not painful to deal with unless you consider arrays that start at 1 and the generally weird way arrays work to be a dealbreaker. Overall it's less weird than JS IMO.
       
 (DIR) Post #AYjVCySvsC8EGjBrTk by xameer@mathstodon.xyz
       2023-08-14T19:43:40Z
       
       1 likes, 0 repeats
       
       @amiloradovsky I was fascinated by it till i thought about numerical computationJit was new to me tooIt didn't last long , I am aware, neovim and vlc are using it to name.a few , that doesn't make it rust