5 ms·
Wasp: WASM Programming Language
- ModernMech 5y agoSeems there’s a name collision, as I thought of this project when I read “Wasp programming language”: https://github.com/wasp-lang/wasp https://github.com/wasp-lang/wasp
- tuddman 5y agoand iota: https://github.com/iotaledger/wasp https://github.com/iotaledger/wasp which while not a DSL, also compiles to WASM
- PotatoPancakes 5y agoI love the idea of having everything in one language; dealing with just one thing instead of HTML, CSS, and JavaScript. But isn't that why everyone moved over to React, Angular, and Vue? It's nice that this is in WASM but honestly, I think I prefer React components written in TypeScript, and you can probably get that compiling to WASM with AssemblyScript. My two cents: this is a super neat hobby project! Probably won't ever make it to production anywhere though.
- emteycz 5y agoNo, JSX in AssemblyScript with the same dev experience is very far away. AssemblyScript is awesome, but right now it's more similar to C (with TS syntax) - it's not a TypeScript runtime on Wasm, it's a lowlevel language that looks nearly the same, that hopes to integrate Wasm GC etc when it comes (not yet).
- eyelidlessness 5y agoStatic TypeScript is much closer to regular TypeScript. But it doesn’t support JSX either (and I while it might make sense with a custom pragma it certainly wouldn’t make sense with React as a default).
- beepbooptheory 5y agoThat's ultimately why I couldn't move forward in it. My brain just kept thinking typescript and it was hard to manage the cognitive dissonance of it being identical syntax but with invisible limitations I wasn't used to.
- p4bl0 5y agoThe optional parentheses makes the syntax quite ambiguous. fibonacci it - 1 + fibonacci it - 2 I'm only hoping to understand what we have here because I already know what Fibonacci is.
- TheMatten 5y agoThis really just seems to be ML-style syntax - which is not ambiguous at all, it's just different from C-like languages (functions applied one argument at a time, with function application (empty space) having the biggest precendece)
- heinrich5991 5y agoIn this case (and if it were interpreted as Haskell syntax), the above term would be wrong.
- postalrat 5y agoIs it one of these? fibonacci (it) - 1 + fibonacci (it) - 2 fibonacci (it - 1) + fibonacci (it - 2) fibonacci (it - 1 + fibonacci (it - 2))
- marcosdumay 5y agoOn any sane ML-style language, it would be this: (fibonacci it) - 1 + (fibonacci it) - 2 But I guess it isn't the case here, because that code doesn't make sense.
- tantalor 5y agoThe actual example in the readme is unambiguous: fibonacci(number - 1) + fibonacci it - 2
- l30n4da5 5y agoMy thoughts -- why does everyone have to come up with some new, _novel_ way of writing html? Looks like all the examples of wasp are just declarative objects and/or html, so not sure what wasp can do just from looking at those.
- jedisct1 5y agoEspecially when it doesn't seem to bring anything over haml and pug.
- trutannus 5y agoThe most concise and precise way to write a language is generally in the language itself too.
- jedisct1 5y agoDoesn't really apply to HTML. Using indentation instead of XML-like opening and closing tags is way more concise, and encodes exactly the same information.
- zamadatix 5y agoIt's shorter, I don't know about concise though I suppose that's a subjective point anyways. While it's generally exactly the same there are some corner cases involving formatting rather than structure tags where it's not always 1:1.
- deleted 5y ago[deleted]
- obiwan14 5y agoThinking the same thing too. I find it a lot easier to read an HTML markup that a Wasp equivalent. Perhaps it's because I'm not a bard core dev, but reading all those {} is visually straining.
- harryvederci 5y ago
- cjohnson318 5y agoI'm not sure how wasp and angle interact. It looks like angle uses wasp, so is angle the important thing here? Or is wasp a standalone thing?