News for hackers. Stuff that matters.
Re:Vugu: Vue-like frontends in pure Go, HTML, and CSS by theptip on Friday April 16, 2021 @08:26PM (#26840531)
I’ve been idly wondering if something like this might be viable in Python now. Taking the “server-side rendering” approach further, with WebAssembly you could just write your scripting in your server language and compile to js, instead of having to split your stack and do JS plus server.

(Of course many are already solving this problem in the other direction by using node on the server. I do hear “unified full stack language” as being given as a benefit in that case.)

Re:Vugu: Vue-like frontends in pure Go, HTML, and CSS by IggleSniggle on Friday April 16, 2021 @10:17PM (#26841095)
Are you aware of Kotlin? Or Scala? Closure? What about ReasonML (related to OCaml)?

These are all languages that (roughly speaking, there’s nuance in their differences) transpile to bytecode or to JavaScript (ReasonML can also compile to native code). Come to think of it I think Haskell might have this now too.

There are many such languages! If “unified full stack language” is the goal, I think it makes sense to explore languages that were designed from the ground up with this in mind.

If the goal is “let programmers from ecosystem XYZ program in a new context” then I’m all about these experiments! Heck, I was a front end dev before becoming a backend dev via nodejs, so I get the appeal and think folks should go for it.

I am worried about the adoption of wasm, though, and not for the reasons you might think. We already complain about bloated js on the web, but it’s a high level language running in as a highly optimized VM focused on its effective support, with an ecosystem of developers that value small efficient packages. With wasm, it feels like we are on the verge of having Flash all over again, but this time *100 or more.

As the saying goes, “Give a man high level tools and he’ll fish for a day. Teach a man how to make a match and he’ll reinvent the fishing pole from matchsticks for a lifetime.”

Re:Vugu: Vue-like frontends in pure Go, HTML, and CSS by spicybright on Saturday April 17, 2021 @06:46PM (#26848103)
Can you clarify ReasonML compiling to native? Native web stack?
Re:Vugu: Vue-like frontends in pure Go, HTML, and CSS by IggleSniggle on Saturday April 17, 2021 @07:54PM (#26848500)
ReasonML compiles to native binary as a dialect of OCaml (ie for server code). It also compiles to JavaScript to produce frontend code.

Read more about it here:

https://reason-native.com/docs/native-basics