skysight-inc/HackerNews huggingface dataset:
Show HN: RemoteStorage – sync localStorage across devices and browsers
Hey HN! Wanted to share a new library and server I've recently been working on called remoteStorage.

When building frontends with Javascript, the native localStorage API is super useful for keeping track of state between sessions in the same browser, but it's not as good a solution when your data needs to be shared across multiple devices or browsers.

For instance, let's say you want to show a welcome modal to all new users that sign up for your product. If you use localStorage to track if a user has already seen this modal, your users will end up getting the experience repeatedly every time they switch devices or browsers, or whenever Chrome decides to nuke your data.

I built remoteStorage to help fix that. Using the same API as localStorage, remoteStorage allows you to easily read and write data on the fly while maintaining state across browsers and devices in order to provide a better user experience.

The project is built as a monorepo in Typescript and contains a JS library that works across any Javascript stack (including Node.js and React Native) and is lightweight (~1 kb minified). The server is built with Nest.js with a disk-persisted Redis Database. It can be deployed in a few minutes using Docker.

One of the biggest challenges when building this was coming up with a secure scheme for handling authentication while still keeping the API dead simple for frontend devs to use. While the project is intended to store non-sensitive data like impression events/preferences, I still wanted to make sure data couldn’t easily leak or be tampered with.

One solution has been to generate a unique secret UUID per user on your own backend to identify the user. Alternatively, you could create a simple wrapper/proxy API around remoteStorage that uses your own authentication method to verify the user's identity before allowing them to access the data (this is super simple to build with React Server Components). Then, you could pick a secure and secret Instance ID that is not publicly available to ensure that only your application can access the data.

Has anyone felt the same pain points with localStorage before? Is this solution useful? Let me know what you think or ideas for how I can improve it :)
I brought up translation as a risk with a friend. If you pay someone for a translation these days, there is a chance they will just feed it to some AI to cut costs. You'll have no way to validate yourself if you don't speak the language.
> We also need to get lobbyists out of Washington

You can't have (representative) democracy without lobbying. It is not that you need to get the lobbyists out, you need to convince more lobbyists in. It is likely that the average Joe has not talked to their representatives even just once, let alone on the ongoing basis necessary to fulfill the demands of democracy.
It's certainly useful to draw carefully thought out comparisons between human and AI performance at various tasks.

But this meme is not that. It's literally just a meme that's posted reflexively to any and all posts that unfavourably compare AI to humans, without any thought or analysis added.
There has never been a better time to game on Linux
I host a Meetup just to meet new people interested in startup. I started it because there wasn’t a startup focused Meetup in my area. It’s hard for me to imagine that the $70/6 months is what prevents someone from hosting a high quality Meetup. There is so much more time value (and even money) to hosting high quality Meetup than the fee they collect.
This isn't an argument about the capabilities of LLMs, it's an argument about whether we use the term AI - and that ship sailed a long long time ago.

If your point is that LLMs won't lead to some kind of extreme AI capability that you're imagining or you've read about in science fiction books, you can just say that instead. But LLMs are already as AI as can be.
Using Amazon for shopping is terrible, borderline unusable in 2024. They're hard to compete with because they're giant and have an amazing logistics network, but it also seems like there's a big vacuum in the market for an "everything store" that's actually good.
Ask HN: What tech are you most excited about in 2024?
What new tech are you excited about this year? Software, language, hardware, anything.
Don't be so sure that all, or even most, junior employees know any such thing. I've seen junior employees fired for doing silly things in prod before[1]

[1] Of course whatever more senior bozo granted the junior the rights to blow up the thing(s) they did should have been fired instead. That's not the way things work in the corporate world.
Blaming consumers for the modern advertising industry is like blaming Soviet factory workers for bread lines.
(We detached this subthread from https://news.ycombinator.com/item?id=38970252 - there's nothing wrong with it, but I wanted to pin the workaround link to the top.)
Passion projects are what really matters. I think making everything about revenue is what's wrong with the whole world, and I think feeling the way you feel (you wasted your time) is a direct symptom of living under such a parasitic economic system. Our right to access the basic necessities of life is dependent on our willingness to turn a profit for some already-rich person. You didn't waste your youth, you used it well. It would have been a waste to spend such a wonderful time working yourself to death.
> But otherwise this warning is too early.

When would the right time have been to warn people about the current generation of social media?

We now have a ton of information about how technology will be used and abused, and we have a laundry list of known problems that we have not solved. Algorithmic social media and engagement-driven content are front and center.

To me, the warning is appropriate not based on what hasn't happened yet, but based on what already has.
> This is visible in the very healthy deep tech industry in Europe.

How can it be deep if new ventures find it difficult to secure funding? If you can't continually grow new companies, you can't develop much depth.

> whereas American companies seem to be much better at creating consumer facing technology.

America's B2B tech sector is just as dominant.

Europe certainly has the population and wealth to be a major tech player, but they've underperformed.
By organization he clearly meant single for-profit corporation. While the language was imprecise, he surely wasn’t referring to these types of entities.
This is an HN comment thread, not a peer-reviewed paper on "lies convenient to the fossil fuel industries".

However, for your convenience, I used google to search for "are solar panels net energy positive" and found this as the 2nd link:

https://www.solarmelon.com/faqs/solar-panels-use-energy-manu...

This contains a link to at least one peer-reviewed paper:

https://pubs.acs.org/doi/abs/10.1021/es3038824

I can almost guarantee that a similar process will elicit similar answers for every other point in the GP's list.
You can lead a horse to water...

Refusing to acknowledge that other people have valid arguments and continuing to repeat the same thing over an over again is indeed 'unbeatable'.

People then ceasing to continue to argue with you because you aren't listening to them is them recognizing they are wasting their time.
YouTube introduced ads almost 18 years ago. There's a whole generation of users who have never experienced YouTube without ads. Not to mention the majority of users don't make use of ad-blockers.
wildcard redirects are not kommen and the spec talks about redirect validation
As a back up to my large shell history, and using atuin w a self hosted atuin server), on most of my frequently used machines, I have a spunkUF running anyway, so I also have it logging/indexing .bash_history (to my offsite spunk server.). (so I have powerful search and timestamps for any of my commands, forever)
https://www.youtube.com/shorts/QvJ4K1i8l8M
just to be sure:
you don't look for recursive edit do you?

https://www.gnu.org/software/emacs/manual/html_node/emacs/Re...
I'm not clear what you mean there, but it seems that C-u C-x C-e, gets a lot of the way there?
Gene name errors: Lessons not learned (2021)
I had the same reaction, then watched the video after reading your post. So cool. Excellent catastrophic failure at the end too :)
Ordinary Men: Elon Musk and the court biographer
Lots of questionable assumptions in this article, but I wanted to call this particular calculation out because it's so blatant:

5 MAF/year of 6% salinity brine contains more than 10 million tonnes
of magnesium, comparable to current global production, not to mention
other light metals. At spot prices around $5000/T, a mature brine
extraction industry could net >$50b/year

"Net" means after expenses, so this calculation is assuming that extracting 100% of the magnesium from the brine would have zero cost, not to mention that it also assumes that doubling the world supply of magnesium would have zero impact on its price.
>Do you mean using brute force (exact search) and not approximate nearest neighbor search?

Yes.

>doing an exact search with 100k vectors takes about 1 second.

The speed can depend on the language/runtime of your choice and the number of dimensions. What language/runtime did you use, how many dimensions in a vector? (I heard too many dimensions for vector search is an overkill)
z-scores just require knowing a standard deviation and a mean. you only need an assumption of normality if you want to do things like assign p-values. of course, that is mostly how they are used.
https://www.nrel.gov/docs/fy23osti/85332.pdf

Which energy storage is $1/kWh? I thought battery was ~100$
I work in reliability and I've sat at the intersection of this question before.

Kind of, but not really. A lot of times you'll see UDP blocked from EMEA, which stops a good amount of attacks but doesn't solve the problem. It also creates problems for services that rely on UDP like VOIP. These days, even if the command originates from EMEA many of the participants are IOT devices that've been compromised - and those may live in the host country!

Blocking an entire country can do something, sometimes, but it also opens up a wormhole of optics when users who are not knowingly part of malicious activity complain they can't access a service that the rest of the world can. Of course, the host country that operates with a decent degree of CYA acts like they have no idea why someone would do such a thing.

Mitigating this stuff long term is often a game of 4D chess on a rotating board.
The way COVID responses developed augers very poorly for future emergencies. We responded to worst case scenarios with a chainsaw when a scalpel was more appropriate. This was heavily influenced by conjecture on social media. See the SVB bank run as another example of panic on social media being a virus itself.
Μoney and political will comes from interest. And talent goes where the interest is too.
What do you mean by high bar? Cochrane group are specialists who do exactly that and provide gold standard of evidence. Sometimes the evidence goes against accepted wisdom. That's how science work.
Sometimes I read comments like this and feel a swell of gratitude that I don't work with braindead novices that make LLM-like mistakes. Are your coworkers actually that bad?
> Those bolts may have very well been in place and passed an inspection during install, but rattled loose and fell out (and then subsequently were blown out of the plane when the plug failed.)

The bolts the NTSB can't find are not the ones that have been found to be loose. The bolts they can't find are the ones with the castellated nuts and cotter pin. Very hard to imagine those vibrating loose. And for the door to transit in an upward direction it would really require all four of those to fail or for them to not exist.

https://www.youtube.com/watch?v=maLBGFYl9_o at around the 7:26 mark has a great explanation of how the door is secured and it seems like as long as there is at least one of the four bolts installed the door can't move.
Not sure how you got to this conclusion from the initial post.

My point was condemning somebody to existence in this world is.
> I highly doubt that SpaceX would have imposed 63 corrective actions on itself without effective oversight.

Eh, I don't know if I agree with that. Most of the actions were very straightforward "stuff we need to fix to make the rocket do what we want it to do and not do what we don't want it to do".

Like, one of the actions was "make the launch pad not explode when the engines turn on". That was the root cause of the engine failures that led to the flight termination. Was SpaceX really not going to do that anyway?

Besides formalizing the process and writing down a list of 63 bullet points and using the legalese of "corrective actions" for them, I think the result would have been basically the same without the FAA looking over their shoulder.

But the main reason for my belief is that the Falcon 9 launch success streak is currently better than any other rocket in history (by a large margin), at 241 launches and counting (and 180 launches since the last landing failure). To put this in context, other launchers with a similar or greater number of launches go 30-50 launches between failures. Unless SpaceX is just incredibly unbelievably lucky, they seem to understand how to do RCA to build reliable rockets.
If you think you have good ideas write a position paper and open it up for comments. A wiki even.

Your site currently has little food for thought.
As a non-cult dumb Apple end user, I'm slightly fed up of people talking on behalf of me and telling me what is good for me.

The only app I ever paid for through the store was Pixelmator (desktop) and that was when it was $10 a number of years ago. I don't have any paid iPhone apps at all. The impact of the store on me as an end user is mostly zero.

I haven't had to repair anything yet. I've got phones going back to 2015 which have had new batteries and that's it. I took them to Apple and they sorted it within a couple of hours each time. I had one display issue on a 6s back in 2016 and they just gave me a new phone there and then in the store that day. Also you can buy official parts and equipment to repair your stuff from them as well.

I barely use iMessage. It's not a controversy. Everyone here (UK) uses WhatsApp. Half the people out there, even on iPhones don't even know or care what iMessage is.

My mac just sort of works mostly. I have a PC too because I have two bits of software I can't get rid of yet. I'd rather use the Mac because it doesn't kick me in the balls every 30 minutes like the PC does. The PC is a dire experience from hell (Windows 11). And I've got a lot of experience with Linux running back over 25 years and then a decade of commercial unix before thaet. I don't want to take the day job home thanks.

As for privacy, what other options do I have? It's not perfect but it's the least bad. I either use an android infested with microsoft stuff which is full of Telemetry as well as Google stuff which is infested with advertising and tracking or I use just Google stuff which is infested with advertising and tracking or I get a defanged Android which adds a thousand layers of friction to every day of my life.

My position is distinctly "meh" at this point when I hear people telling me what is good for me because they're not telling me that. They're telling me what I am doing is bad for me then going silent when they're asked to cough up a better solution.
Interesting hadn’t heard of this hidden feature. No, ordinary users of the site cannot see this.
>> unattended LLM do anything for your company at all. It can, and will, fuck up dramatically sooner or later.

> So, just like any other random employee?

Right, might as well just replace it all with a roll of the dice in that case. Wait do we have to quantify our comparisons? no, no, sorry, I almost forgot this was the internet for a second.
>Right, they invest it. And what does that investment create? Jobs

No, overpriced housing. You want jobs? You need more income equality to fund spending.
The Salton Sea in its current iteration was created by the failure of an irrigation canal. Before that there was no Salton Sea as we know it or tourist area.
I suspect a possible DDoS attack from something Kiwi Farms related, it seems they really don't like the guy over there?

https://archive.is/yOObX
Bending Spoons is a european company, and one of their major advantages is that salaries in europe are lower, obviously they need to fire the american employees of any company they buy to play that out.
That doesn't make it a hit piece. A hit piece is when you are slandering someone unfairly, not publishing something un-noteworthy.

I suppose I don't know whether TFA is being unfair, but I have no reason to doubt what they say, and calling this a hit piece is a bit of a leap for me.
- Far better language design, actually designed from ground up to write Mathematics in, rather than hacked in later.

- Specially, the language supports symbolic computation natively. In a lot of software, you have to declare symbols as symbolic variables before using them. In Mathematica, you don't have to deal with this nonsense.

- A library of both symbolic and numerical algorithms that is far far far better than any other library out there. Especially its outstanding how much symbolic computation algorithms are built in. Fairly fast numerical algorithms as well. Best of all, Mathematica guesses the best algorithm to use in a particular situation with frightening accuracy.

- A lot of Maths is just built in. Example: A number of common Groups are just there for you to immediately start playing with.
Ask HN: Do you also turn away from blog posts with advertising?
Even though the content might be good I simply cannot concentrate when reading a piece from someone where things blink, glitter or somehow disturb the reading experience ?

I have come to realize that i can only read content when it's served cold.
This feels like catnip for techies who are afraid of turning 35.
This all works in evil-mode as well, and by default you get the cool live-preview (not sure how to enable that for the vanilla C-M-%)

:%s/\([0-9]+\))/\,(1- \#1))/

will turn

1) one
2) two
3) three

into

0) one
1) two
2) three
https://www.amazon.com/s?k=sorry
Hah, wrote my comment directly after reading the parent and then read yours, which says basically the exact same thing!
Look whatever Elon Has done, using the title "Ordinary Men" which is a book that is an exploration of how an police battalion in Nazi Germany became accustomed to and learned to enjoy killing Jews is a bit over the top.

https://www.amazon.com/Ordinary-Men-Reserve-Battalion-Soluti...
Bean Soup
It's a dumb/lazy/specious talking point. You can kill someone with a pencil just like you can kill someone with a gun, but the gun scales up the danger so we treat it and regulate it differently. You can kill someone with a bike, a car, or an airplane, but the risks go up at each step so we treat and regulate the respective drivers differently.

If AI gives every individual the power to suddenly scale up the bullshit they can cause by 3+ orders of magnitude, that is a qualitatively different world that needs new considerations.
> A lightweight neural network is then used to reconstruct a hole-free image including detail beyond splat resolution.

Seems like if you added a similar super resolution step to 3DGS you would get similar detail improvements?
Oh man, it only comes in brown?
Relationships of trust between users and the LLMs they choose to use definitely exist.
Order some new Pod Bay doors HAL.
Yea the whole industry sucks, but it’s just an easier political move to ban “outsiders” from doing shady things.
It does matter, though. Suppose you need X amount of fresh water output per month. And suppose that for Y dollars, you can build a plant that supplies X if it runs 24 hours per day.

If, instead, you can only run your plant 8 hours per day instead of 24, then you need to build a plant three times as big, which costs 3Y dollars.

This is where batteries (or other energy storage) may become useful. If you can build them for less than 2Y dollars, then you can build the whole system for cheaper.
One the topic of Game of Life, this is one of the coolest things I've ever seen:

https://oimo.io/works/life/

The blog post that explains it is truly mind-blowing stuff.

https://blog.oimo.io/2023/04/10/life-universe-en/
It's the use case that requires the bare minimum functionality. Godot might require more recent lower-level APIs than the other GUI toolkits, but if the use cases are similar, then it wouldn't require more performance out of them than the other GUI toolkits would. Using software-based implementations of those APIs would more than likely be sufficient, meaning that there's no dependence on any specific class of GPU.
That reminds me of one of the cases against Tommy Robinson (in 2018). As far as I could tell from abroad, he really didn't disclose anything that hadn't already been disclosed in traditional media.

https://en.wikipedia.org/wiki/Tommy_Robinson_(far-right_acti...

And even if he did -- there is something wrong with a justice system that would let that lead to these guys going free:

https://en.wikipedia.org/wiki/Huddersfield_grooming_gang

Reading the dates (years!) relevant to the case is enough to make anyone shutter -- first complaint taken seriously (allegedly) was in 2011 and the arrests didn't happen until 2017.

Some cases seem to be more about politics than about the law (let alone justice).

---

Do I have to say it? I probably do. I think Robinson is an idiot. A football hooligan who seems to have oppositional defiant disorder.

He is also right that there is a problem with Muslim crime in the UK -- and their grooming gangs seem to be a huge problem and there has indisputably been a cover up of it.
Would ChatGPT really output a malformed sentence like that? From what I've seen the impressive part is it makes correct English sentences (whether they make sense or are true or not is another matter). This looks like something a human with regular/bad English would write.
What happens when ChatGPT apologizes instead of answering your question about whether the text is an apology or a product description?
Yes, he doesn't like cryptocurrency projects. I don't see much vague about it.

The other clauses about bigotry are pretty much aligned with GitHub's ToS, which has "GitHub does not tolerate speech that attacks or promotes hate toward an individual or group of people on the basis of who they are, including age, body size, ability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, sexual identity, or sexual orientation", and "We have the right to refuse or remove any User-Generated Content that, in our sole discretion, violates any laws or GitHub terms or policies."

While people who don't like these policies call it "deplatforming", in the US the freedom of association is a protected First Amendment right, with only limited exceptions for certain protected classes like race, ethnicity, and national origin where there is a strong tension between the First Amendment protections and other constitutional protections.

I don't know about Dutch law though.
People need to be aware of their investments.

If I buy shares in Phillip Morris, then I better be ok with people smoking cigarettes and everything that entails.

Especially if I’m publicly attaching my name with “prepend supports Phillip Morris.”

There’s gradations of being a dick, but approving your portfolio managers plan to buy shady companies is still a dick move. So is not being aware of what your portfolio manager buys.
> I'm sorry, but "issue-rule-application-conclusion" is the standard analytical framework for questions of this nature.

Do you, heh, have any case law to that effect? No, that's silly. "You're shipping my code and have to stop" is an open and shut case. That no one has bothered to prosecute such a case against an iOS app is notable, but not proof of anything but inertia.