"the beauty in dsl-able languages"
> an attempt to document why my wip sketch of a web framework, kibble, does things in the way they are, with a specific focus on how it uses the kotlin syntax’s “dsl-ability”.
https://w.on-t.work/dslable
Discussion
"the beauty in dsl-able languages"
> an attempt to document why my wip sketch of a web framework, kibble, does things in the way they are, with a specific focus on how it uses the kotlin syntax’s “dsl-ability”.
https://w.on-t.work/dslable
@kopper hey so
it would also be quite cool if a language did have this as an interface, and built a class/struct/whatever declaration syntax as a dsl that’s shipped in the standard library, perhaps executed in some context similar to zig’s comptime. imagine the ways you could compose those!
can i introduce you to our lord and savior coffeescript
@kopper it removes itself from the compiled code but you could make it do fucked up compile time shit if you wanted. the parser is some LALR bullshit i've been meaning to rewrite it
@hipsterelectron@circumstances.run i've known of coffeescript for quite a while and used it for a tiny bit back in the day but since typescript and the advent of Autocomplete That Works in javascript i haven't really looked back at it, may be a good idea to revisit it in the future
@kopper i have produced a prototype to generate typescript types as jsdoc but since i'm not writing js right now i haven't done more with it
@hipsterelectron@circumstances.run though my potential problems with it today would be around not being able to make use of newer native syntax such as native arrow functions to shrink the compiled bundle sizes (meaning more reliable js distribution across slower networks)
@hipsterelectron@circumstances.run having a compiler that does not concern itself with matching JS semantics and can therefore execute much of the transformations described in writeups like https://yoyo-code.com/javascript-style-for-optimal-size/ could be really interesting. better output for less work on the dev!