HNHacker News
TopNewBestAskShowJobs

pointlessone

846 karma · joined January 14, 2022

submissionscomments
pointlessone··on ZjsComponent: A Pragmatic Approach to Reusable UI Fragments for Web Development
I see what you mean. I do understand the desire to reduce boilerplate. I'd go for a small framework like Lit (I'm sure there are even smaller ones out there) for that but I wouldn't fault anyone for writing their own. I guess, good for you you could get a paper out of it, too. It just doesn't feel particularly novel to warrant one.
pointlessone··on ZjsComponent: A Pragmatic Approach to Reusable UI Fragments for Web Development
How is this different to the standard WebComponents then?

I mean, web components are JS with HTML in them and you have all the power of JS to manage state and functionality. In case of zjs you have HTML with JS in it and you get an entry point callback to set up your instance (and another to clean it up).

BTW, the API is a little awkward (`exports.onConnect = function () { /.../ }`) and easy to mix up with the standard syntax (`export function onConnect() { /.../ }`) which you can't actually use here.

In either case you have to include a script into your page to make the component work. But also when you have many different components in case of regular webcomponents you use a somewhat readable markup:

    <x-counter start-at="100"></x-counter>
    <x-counter start-at="200"></x-counter>
    <x-whatever></x-whatever>
With zjs you have to use the same tag for everything:

    <zjs-component remote-src='counter-obj.zjsc' start-at='100'></zjs-component>
    <zjs-component remote-src='counter-obj.zjsc' start-at='200'></zjs-component>
    <zjs-component remote-src='whatever-obj.zjsc'></zjs-component>
To me this looks not unlike the primordial div soup. And on top of it it's 1 more request as compared to regular webcomponents.

The point is if HTML inclusion is not the main feature, but rather the per-instance state then regular WebComponents seem like a better solution if only for being a standard. When a reader sees a WebComponent they immediately know what they're dealing with. zjs appears to solve the same problem but differently, yet uses WebComponint API itself.

pointlessone··on ZjsComponent: A Pragmatic Approach to Reusable UI Fragments for Web Development
There are quite a few HTML include components out there. A quick GH search return a lot of results.

From very simple (https://github.com/include-html/include-html.github.io/blob/..., from 3 years ago), to more sophisticated, including script execution (https://github.com/SirPepe/html-import/blob/master/src/html-..., from 4 years ago; or even https://github.com/webcomponents/html-imports/blob/master/sr..., dating back 9 years). I haven't checked all of them but there's a decent chance there's something that covers each feature of OP, maybe even at once.

pointlessone··on ZjsComponent: A Pragmatic Approach to Reusable UI Fragments for Web Development
OP doesn’t feel that novel. I read the code and it all has been done before.
pointlessone··on ZjsComponent: A Pragmatic Approach to Reusable UI Fragments for Web Development
It’s remarkable that you can write a paper about a 100 lines of code (literally). Maybe I should try that some time.
pointlessone··on Seedance 1.0
Some of the shots are impressive but… Even among these hand-picked examples there’s a plenty of unnatural movement. And it seems like it was trained on the most hyperactive subset of tiktok as it apparently can’t hold a scene for more than 5 seconds.
pointlessone··on Left-Pad (2024)
He clearly could delete his packages so he did. In the left-pad incident, apparently, the community didn’t have the serenity to accept that.
pointlessone··on “The Mind in the Wheel” lays out a new foundation for the science of mind
> An argument against it is that there are clearly people driven by the desire for "more", with no visible upper bound.

At the moment it's unknown whether it's a normal function of the system or a result of miscalibration/malfunction (assuming the theory is correct). Existence of these people is only an evidence for the capacity of the system, not a description of the nominal function.

pointlessone··on What if humanity forgot how to make CPUs?
OK, no silicone. But we might be just fine after all. Just yesterday we had a story about Bismuth transistors that are better in every way than silicon ones. Maybe a tad more expensive. There are a plenty of other semiconductors out there too. We’ll have to adjust manufacturing but it will probably be just one upgrade cycle skip. Even with a complete mind wipe it’s still not that bad if only silicone is out.
pointlessone··on Show HN: I built a tool to find devs based on code, not LinkedIn titles
GitHub profile is not a CV.

A few things that immediately jumped at me:

- Not all code is on GitHub and not all of it is public. Recently I see more and more code moving elsewhere: GitLab (both managed and self-hosted), Codeberg, Forgejo instances.

- Even the code that is on GH might live outside of personal profile. Many notable FLOSS projects have their own organisations on GH. People who produce a lot of that code have direct commit access and don’t keep forks on their profiles. You’re missing all of the most prolific developers here.

- Location field in a GH profile is full of jokes. Search for “space”, “internet”, “/dev/null”, etc.

- It picks top repos weirdly. I tried to find my profile. It picked one repo that is not in my profile and wasn’t there probably for a long time, and another that is a public archive and hasn’t been updated since 2017. Both are forks with minimal contributions on my part. I have pinned repos in my profile that are much fresher and, arguably, more relevant.

But the project looks sleek. Probably helpful in addition to Linkedin and whatever to uncover more potential candidates. I’m glad it works for you.

pointlessone··on America faces a Trumpian economic slowdown
Well, there are talks about a mineral deal with Russia, others also mention gas and oil. Who knows, maybe it can grow into an all encompassing trade deal. Very good for America. The best.
pointlessone··on America faces a Trumpian economic slowdown
Depends on how you count. There are tariffs on everyone for steel and aluminium. There are specific tarrifs on Canada, Mexico, EU, and China. Trump promises to back off from NATO, which pisses off pretty much everyone on the European continent (EU or otherwise). The recent counch incident in the Oval Office wasn’t taken well in the Europe as well.
pointlessone··on Show HN: I built a memory-safe web server in Rust
Why doesn’t benchmark include Ferron itself?
pointlessone··on The FFT Strikes Back: An Efficient Alternative to Self-Attention
I’m still confused. Does it treat the input tokens as a sampled waveform?

I mean, say I have some text file in ASCII. Do I then just pretend it’s raw wav and do FFT on it? I guess it can give me some useful information (like does it look like any particular natural language or is it just random; sometimes used in encrytion analysis of simple substitution cyphers). It feels surprising that revers FFT can get a coherent output after fiddling with the distribution.

pointlessone··on The FFT Strikes Back: An Efficient Alternative to Self-Attention
OK, I admit that the math flies way over my head and I barely understand the text around the math. Can someone please explain (in basic English) how this is equivalent to attention mechanism? What friquencies does it talk about? How does it encode positional relations between tokens?
pointlessone··on Zed now predicts your next edit with Zeta, our new open model
Maybe the model itself can be ran locally but the wa it’s currently integrated in Zed it runs on the server.
pointlessone··on Kagi – Introducing Fair Pricing
Let me be sceptical for a second. This is such a non-feature. A single search a month consitutes usage. You literally have to forget about Kagi for more than a month to have any advantage here. My guess it this happens less than in 0.1% of paying accounts. Wake me up when they announce unused searches rollover.
pointlessone··on Thoughts on having SSH allow password authentication from the Internet
Does every random system automatically picks up Yubikey? Does SSH on all platforms find that key?
pointlessone··on Maybe ChatGPT has some pre-frontal cortex problems
But does the patient get better or worse with each update?
pointlessone··on Ask HN: How to unblock RSS feeds on Cloudflare hosted sites?
Nothing whatsoever. The feeds that failed to fetch in my Miniflux at the time are still failing. If anything a few more feeds joined them with the same symptoms.
pointlessone··on The age of average (2023)
Exactly. This is how you can place in time things like TVA in Loki and the office in Severance even though they do not belong to that time canonically.
pointlessone··on Show HN: I made Gyroscopic Gyro Sandwiches
Yeah, it seems this free-rotating design would keep one side down if the center of gravity is not exatly on the intersection of all rotation axes. This might be worse than a common single-axis cooking.
pointlessone··on JSON parsers that can accept comments
We should’ve kept XML.
pointlessone··on Worldtimeapp.com Easy Timezone Converter
Reminds me a bit of Hovrly[1]

[1]: https://hovrly.com/

pointlessone··on Sequin: A powerful little tool for inspecting ANSI escape sequences
Animated images in the readme are not a very good experience. I’m trying to read the output and make sense of it and it just blinks out. There’s no good reason to have animation here. We all know how text is typed in the terminal.
pointlessone··on Is the US an Ochlocracy?
Could you expand a bit on that?
pointlessone··on Feds: Critical Software Must Drop C/C++ by 2026 or Face Risk
50-70% defect reduction is significant, though.

It is true that black hats are going to focus on the remainder pretty much by definition because there’s no other choice. The rest is a problem and it needs a solution. But the fact that it exists is not a sound argument against choosing a memory-safe language.

Current solutions are not ideal but they still eliminate a huge portion of defects. Today we can avoid all the memory issues and we also can focus on the next biggest category of defects. If we’ll keep halving possible defects it won’t take long before software is near defect-free.

pointlessone··on Apple iPhone 16 Is Now Illegal in Indonesia, Ban Leaves Tourists in the Lurch
Indonesia is big but is it a big market for Apple? I mean even western consumers are a bit miffed by $1k phones and average salary in Indonesia is ~$227/mo [1]. Is there enough buyers to sell $15m worth of iPhones, let alone make that much profit?

[1]: https://investinasia.id/blog/salary-in-indonesia/

pointlessone··on Using Cloudflare on your website could be blocking RSS users
I see this on a regular basis. My self-hosted RSS reader is blocked by Cloudflare even after my IP address was explicitly allowlisted by a few feed owners.
pointlessone··on My WordPress Slack Ban
I don’t think the fact that it’s a B2 fork is relevant. He wouldn’t be able to relicense even if it wasn’t a fork but initially chosen GPL.
← PreviousPage 4 of 10Next →