News for hackers. Stuff that matters.
Re:“Little Languages” by Jon Bentley (1986) [pdf] by codr4 on Friday August 31, 2018 @08:40AM (#17885015)
I'm not that fond of fancy strings myself, or things like CL's LOOP macro. I prefer real code with composable abstractions. The problem in my mind is that they're not integrated into the host language, and therefore don't compose well with the rest.

But that being said, using a simple embedded glue/scripting language that's fully integrated into the host environment makes a lot of sense to me. Emacs Lisp, Autocad, any game engine etc. It's a tried and proven strategy.

I started writing my own glue language [0] for C++ since I couldn't find anything simple and integrated enough for my taste.

[0] https://github.com/codr4life/snabl

Re:“Little Languages” by Jon Bentley (1986) [pdf] by wtetzner on Friday August 31, 2018 @12:15PM (#17886736)
Is Lua not good enough for C++?
Re:“Little Languages” by Jon Bentley (1986) [pdf] by codr4 on Friday August 31, 2018 @02:49PM (#17887905)
Lua is written in C, which is a very different language these days.

Snabl uses the C++ standard library all the way through, which leads to a tighter fit in C++ applications.

And I have enough issues with some of Lua's design choices to rule it out either case. Everything is most definitely not a table and I want an expressive, generic and gradual type system built in.

Re:“Little Languages” by Jon Bentley (1986) [pdf] by wtetzner on Friday August 31, 2018 @04:33PM (#17888460)
Cool. Was just curious about your thoughts on it.