News for hackers. Stuff that matters.
Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by huhtenberg on Wednesday January 26, 2022 @11:18AM (#30087380)
Not take away from the brevity of the code, but these 60 lines translate into 168KB of JavaScript.
Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by dane-pgp on Wednesday January 26, 2022 @11:27AM (#30087534)
Wait until you find out how big the browser that runs that code is!
Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by ivanbakel on Wednesday January 26, 2022 @11:58AM (#30088051)
This is a blithe statement - the browser isn't downloaded whenever a user navigates to the page. 1/6th of a MB for a page this simple is pretty substantial.
Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by antihero on Wednesday January 26, 2022 @11:57AM (#30088033)
Do you download the browser on every request?

Of course 168kB is still nothing but your comparison is flawed.

Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by teaearlgraycold on Wednesday January 26, 2022 @11:58AM (#30088053)
Don’t give web developers any ideas.
Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by recursivedoubts on Wednesday January 26, 2022 @01:08PM (#30089260)
hyperscript is ~22k gziped and cached after the first request

the size is not an issue

now, the runtime on the other hand...

Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by skavi on Wednesday January 26, 2022 @06:59PM (#30093974)
wait is this not being compiled to js?
Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by irq-1 on Wednesday January 26, 2022 @12:52PM (#30088950)
_hyperscript_web.min.js is 84.1 KiB (86,093 bytes) and when zipped it's 22.1 KiB (22,641 bytes)
Re:Show HN: A simple Wordle clone in 60 lines, using Hypersc... by ajusa on Wednesday January 26, 2022 @01:42PM (#30089820)
Looks like they doubled the size by accident, in the network debugger the first is a 302 that resolves to the actual file. It shows 84kb twice because of that.