News for hackers. Stuff that matters.
Re:Expresso: A simple expressions language with polymorphic ... by throwaway894345 on Friday June 12, 2020 @02:50PM (#23502398)
I wish there were more statically typed embeddable languages that weren’t functional. I mostly make tools for developers and that audience doesn’t especially find the functional syntax or paradigm to be very helpful.
Re:Expresso: A simple expressions language with polymorphic ... by centimeter on Friday June 12, 2020 @04:16PM (#23503398)
Well-designed type systems tend to show up in functional languages for good reason, especially if we restrict ourselves to small languages. It's much easier to make coherent typing rules in languages with clean semantics.
Re:Expresso: A simple expressions language with polymorphic ... by _bxg1 on Friday June 12, 2020 @04:06PM (#23503266)
It's my guess that a rich static type system would be harder to implement for a non-functional language, due to mutability and such. Though there could also just be cultural overlap between the people who want to write a small statically-typed language and the people who like the functional paradigm
Re:Expresso: A simple expressions language with polymorphic ... by throwaway894345 on Friday June 12, 2020 @04:16PM (#23503408)
> It's my guess that a rich static type system would be harder to implement for a non-functional language, due to mutability and such.

Only if you represent (im)mutability in the type system, and I would argue that you shouldn't for an embedded scripting language. We don't want to constrain every aspect of the program to the type system; we just want some quick assurance that the shapes snap together properly.

> Though there could also just be cultural overlap between the people who want to write a small statically-typed language and the people who like the functional paradigm

No doubt.

Re:Expresso: A simple expressions language with polymorphic ... by dunefox on Friday June 12, 2020 @03:40PM (#23502897)
Developers don't find functional languages helpful? Do you somehow believe that only Java programmers are called developers or what am I missing here?
Re:Expresso: A simple expressions language with polymorphic ... by throwaway894345 on Friday June 12, 2020 @04:09PM (#23503304)
> what am I missing here?

Java isn't the only non-functional language and by virtually every measure, functional languages rank lower than other language paradigms on just about every index (e.g., TIOBE doesn't have a single functional language in their top 20). If I had to guess, people find the spartan syntax hard to read and gratuitously unfamiliar, especially considering there are many highly-ranked languages which borrow functional concepts but retain the more structured (and probably more human-readable) syntax.

Re:Expresso: A simple expressions language with polymorphic ... by smabie on Friday June 12, 2020 @06:53PM (#23504702)
I mean, Scala is functional, pretty popular, and has a familiar syntax. Also ReasonML, if that counts.
Re:Expresso: A simple expressions language with polymorphic ... by dunefox on Saturday June 13, 2020 @04:26AM (#23507862)
> functional languages rank lower than other language paradigms on just about every index

Because what is popular isn't what is best.

> but retain the more structured (and probably more human-readable) syntax

There is nothing more structured or readable about C-like syntax.

Re:Expresso: A simple expressions language with polymorphic ... by throwaway894345 on Saturday June 13, 2020 @11:33AM (#23510133)
My target audience is developers generally, not functional programmers specifically, and developers disagree with your assessment. Sorry.
Re:Expresso: A simple expressions language with polymorphic ... by _bxg1 on Friday June 12, 2020 @04:06PM (#23503273)
Maybe they meant "the particular developers that [they] make tools for"
Re:Expresso: A simple expressions language with polymorphic ... by dunefox on Saturday June 13, 2020 @04:33AM (#23507887)
Doesn't seem like it.
Re:Expresso: A simple expressions language with polymorphic ... by wtetzner on Saturday June 13, 2020 @01:04PM (#23510840)
People that prefer functional languages seem to be the only ones that care enough to put in the time to build them.