Hacker News new | ask | show | jobs
by Vesuvium 2306 days ago
Let's start a css-less tech trend, shall we? :)
3 comments

All my websites are built with Unity targeting WebGL! /s
What is this black magic? Serious question.
Unity and WebGL is pretty common now days. You'll find a good chunk of the games at https://itch.io/games/html5 use exactly that.
Unity supports builds targeting WebGL and WASM.

Last time I stumbled on an "io game" built this way, the lack of WASM debugging tools made it very hard to hack at the game :(

I like CSS, can we start with JS first instead?
I wonder if anyone's tried to write a language primarily for manipulating the DOM that's less... "quirky" than JavaScript? With WebAssembly being fairly well supported these days I suppose someone with a background in language design could write an interpreter in C for such a domain-specific language and target WASM.

Of course, people would say "what's the point" when JS is a thing and widely supported. I wonder if there'd be a) a compelling improvement in performance and b) a compelling improvement in reliability if we just wholesale replaced it based on lessons learned? I reckon even just keeping JS and eliminating implicit coercions would be a huge improvement (as well as maybe automatic semicolon insertion) and reduce the debugging times considerably.

> I wonder if anyone's tried to write a language primarily for manipulating the DOM that's less... "quirky" than JavaScript?

I don't know about "less quirky", but Microsoft tried with VBScript. Google tried with Dart. Initially, Dart meant to be interpreted by the browser (not transpiled to JS). I'm sure there might have been similar, smaller projects, but Javascript-in-the-browser has momentum that's hard to beat.

WASM cannot access the DOM. Not yet, anyway. I find this ridiculous, but that's the situation.
Does Elm count?
https://morg.systems/

I'm trying my best :D

    <link rel='stylesheet' href='res/lettercrap.css' />
    <link rel='stylesheet' href='res/style.css' />
;o