Re:Wasp – A programming language that understands what a web...
by mark_l_watson on Monday July 26, 2021 @06:15PM
(#27966162)
The implementation is in Haskell, which makes sense, but after looking at the code, I don’t think my Haskell skills are good enough to work on the implementation.
I like that the generated code and assets are human readable, so if you decide to stop using Wasp, it looks like you could just maintain the generated code.
Re:Wasp – A programming language that understands what a web...
by remram on Monday July 26, 2021 @12:26PM
(#27961434)
What is the advantage of an entirely new language, when you can use decorators or other DSL-like constructs like Rails' on top of existing general-purpose languages?
Re:Wasp – A programming language that understands what a web...
by blacktriangle on Monday July 26, 2021 @01:57PM
(#27962731)
In this case based on them targeting node/express on the backend and react on the front, the advantage is that you can create a language that is easily-ish translateable into Javascript.
The problem with using a Ruby or other language DSL is that since you're giving the developer full access to the programming language, you now have to also support translating the full scope of the programming language into Javascript.
One might then say just make it a JS framework except that JS syntax doesn't lend itself to these kinds of DSLs the way Ruby and several other languages do.
Re:Wasp – A programming language that understands what a web...
by cyanydeez on Monday July 26, 2021 @10:18PM
(#27967894)
the detaios presented on the main page look like they are basically creating a dsl based around typescript, then exploding that into existing frameworks.
its a code generator, which will feel nifty, but as soon as any idea you have needs real coding and the dsl isnt prepared for it, so long dsl or hello magical routines.
somewherd in q0 years therely be a dev cursing these guys build script with limited documentation andmumbling to himself "it reads fine...it reads fine..."
Re:Wasp – A programming language that understands what a web...
by blacktriangle on Tuesday July 27, 2021 @08:53AM
(#27971803)
The value prop of this does seem really wierd. So you accept a limited DSL in return for eventually being able to target multiple web stacks...but the point of this is to abstract away all those web stacks? I really don't get it.
But in all seriousness, this is pretty cool.
I like that the generated code and assets are human readable, so if you decide to stop using Wasp, it looks like you could just maintain the generated code.
The problem with using a Ruby or other language DSL is that since you're giving the developer full access to the programming language, you now have to also support translating the full scope of the programming language into Javascript.
One might then say just make it a JS framework except that JS syntax doesn't lend itself to these kinds of DSLs the way Ruby and several other languages do.
I didn't realize this was for web app frontend. This is not mentioned in the repo, in fact the README seem to indicate otherwise:
> Concepts such as app, page, user, login, *frontend*, production, etc. are baked into the language
its a code generator, which will feel nifty, but as soon as any idea you have needs real coding and the dsl isnt prepared for it, so long dsl or hello magical routines.
somewherd in q0 years therely be a dev cursing these guys build script with limited documentation andmumbling to himself "it reads fine...it reads fine..."