News for hackers. Stuff that matters.
Re:The Blog Is the Program by monkpit on Wednesday December 15, 2021 @08:29PM (#29573769)
I really fail to see the distinction between writing some functions in a language, compared to a “new language” or dsl or something.

Maybe it’s just my past experiences clouding my judgement, but if I see something saying it has its own language, or dsl, or flavor of a language… it makes me want to run away!

Re:The Blog Is the Program by fineIllregister on Thursday December 16, 2021 @06:52AM (#29577293)
That's Racket's primary feature.

Making a new language in Racket is just writing some functions (and macros, which in Racket are a kind of function). This means pretty much all your tooling comes along for free (syntax highlighting, debugger, etc).

The reason that someone might write a DSL is because it better fits the problem. The OP's example Pollen for instance, provides an easy way to run a full programming language to produce HTML output, something that can be tedious without language support.

Re:The Blog Is the Program by soapdog on Thursday December 16, 2021 @06:45AM (#29577258)
Be aware that Racket is a language toolkit and offers the tools and workflows to work with language development. Also, I didn't claim that my functions were a new language, I said that Pollen is a language. Pollen is not just a bunch of functions in a language, it is a proper programming language, I invite you to check it out.

Maybe I didn't explained it well on the post. Racket comes with many languages, not necessarily DSLs, some are full blown languages. People also ship new languages as packages. Pollen is one of such languages. The post details how I can leverage the fact that I can write Racket functions and use other modules and call them from Pollen. The main objective is to make people more interested in more flexible systems for blogging. That people should mould their blog to their experience and not the other way around (which is much more common).

Re:The Blog Is the Program by unstatedAnswers on Wednesday December 15, 2021 @10:39PM (#29574507)
“You mean, in the absence of docs, I have to debug the compiler??”

I agree, it’s a turn-off, for sure

Re:The Blog Is the Program by soapdog on Thursday December 16, 2021 @06:47AM (#29577267)
If there is one thing that Racket, Pollen, and that community do pretty well is documentation. Check out https://docs.racket-lang.org and https://pollenpub.com

Also, debugging the compiler is not as daunting if you want to. I never needed. The DrRacket IDE comes with all the tools and workflows to make that just like debugging any other program.