Hacker Newsnew | past | comments | ask | show | jobs | submit | tym0's commentslogin

Did an AI write this? Completely missed the point ^^'

Do you still have to pass every args as json/strings or has there been an improvement on that front?

This has never been the case. Custom elements are DOM Elements and so are just JavaScript objects. Just like you can do aEl.disabled = true, you can set any prop to any type of value.

I think they mean in the markup via <some-tag data={anObject}> ala React, svelte, etc.

It's still exactly like that.

I was on board until I saw that those can't easily be opened from a local file. Seems like local access is one of the main use case for archival formats.


Html is already a good single-file html format. Images can be inlined with data-uri. CSS and javascript have been inlineable since the very beginning. What more is needed? Fonts? Data-uri, once more.

Hell, html is probably what word processor apps should be saving everything as. You can get pixel-level placement of any element if you want that.


They explicitely contrast it with single file html, giving an example that is much more performant than waiting for the single 280Mb html file to load.

Yes, they're both approximately the same in terms of size on disk and even network traffic for a fully loaded page, one is a much better browser experience.

> You can get pixel-level placement of any element if you want that.

You may well be able to, but it is largely anathema to the goals of html.


Agreed, I was thinking it's like asm.js where it can "backdoor pilot" [1] an interesting use case into the browser by making it already supported by default.

But not being able to "just" load the file into a browser locally seems to defeat a lot of the point.

[1] https://en.wikipedia.org/wiki/Television_pilot#Backdoor_pilo...


Could it be solved with a viewer program? Any static HTML server?


Any static HTML server. Also if you try to load the page directly it suggests just untarring the contents back into a folder structure and provides a perl command line as a suggestion for how to do that.


It sounds like it would be pretty easy to write a super simple app with a browser in it that you could associate with the file type to spin these up. IMO.


I mean `claude -p "spin up a python webserver in this directory please"` or alternately `python -m http.server 8080 --bind 127.0.0.1 --directory .` is not hard


Sure, but opening ports tends to be a headache when all you want to do is view the contents.

On this case I wonder if the format can be further optimized. For example, .js files are supported for loading locally and albeit a very inefficient way to load assets, it could overcome this local disk limitation and nobody reads the HTML source code in either way so it won't need to win any code beauty contests. I'll later look into this theory and ping the author in case it works.


> For example, .js files are supported for loading locally

Technically yes, but last time i tried that it gives you CORS errors now. You can start your browser with CORS disabled, but that makes sharing your .html file impossible. So back we go to inlining stuff :)


Yep, inlining it seems. :-(


`npx http-server` anywhere node is installed


althttpd is even easier. :)


Wouldn't recommend, only packaged on Alpine and nix.


It's a single-binary program that's easy to compile. You don't need to depend on packaging...


Time to spin up a mumble server again...


Then you're not familiar with software consultancy because that's exactly what they do.


Ah ok then let’s just call them contractors because that’s what exactly what they do.


Oh man, as someone who used to contribute to a statically typed lispy language this would be the dream for me.


there's always carp lang but no gc


That's the language I was talking about :)

But none of us have worked on it in a while.


Carp is great and I would love to include a mode of jank which is very much Carp-esque. If you're interested in working together on this, please let me know.


Most of my contributions were to the stdlib so my knowledge of the implementation of the type system is limited sadly.

Maybe Erik, the creator, would be interested. I know he was looking at rewriting Carp in cpp at some point.


It's too bad. I was looking at it the other day, looks really interesting.


It's still a fun language to play with :)

My favourite thing was to run it on all kind of microcontrollers as you could just emit C. Wrote a small GBA game with it.


Yeah I like this layout and it seems to be available on all Linux distros. I only use it occasionally to talk to friends back home though, not sure how it is for constant use.


Using a bool instead of empty struct also means that there is more way to use it wrong: check the bool instead of if the key exist, set the bool incorrectly, etc...

I would argue using bool hurts readability more.

Even better write/use a simple library that calls things that are sets `Set`.


I could've sworn we got "sets" in the Go's standard library along with the "maps" module but... apparently not? Huh.


Almost made it into 1.18 but looks like it doesn't add enough value and has some open questions like what to use for a backing data type and what complexity promises to make.

https://github.com/golang/go/discussions/47331


Honestly insane in 2025 to not have a generic Set.



I feel it would be more interesting to show statistics about the words used rather than search.


If you dig a tiny bit in the devtools, you’ll see the sqlite file that’s loaded in the frontend with all of the data :)

A word cloud or some stats is a great idea!


I feel the same. If someone would ask me for a recommendation I would point them toward Zellij but if you've been using tmux for years it's probably not worth it.

The modal nature of Zellij is nice though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: