Better HN
topnewbestaskshowjobs
Log inSign up

notnullorvoid

971 karma · joined Jun 30, 2023 (3y ago) · 477 submissions

Submissions

comment 1y ago · link · parent

It took them a week to respond about the initial report for v12.0.0, the exploit was so trivial and obvious that even that should have been a warning to go check newer versions themselves, even if they hadn't seen the follow up message that had been sent a few days prior showing that the vulnerability was present in later versions.

comment 1y ago · link · parent

> This is beyond damning.

Absolutely agree.

> It's also exactly the reason why the whole Javascript ecosystem is really showing how immature it is and the hype and euphoria of Vercel is contributing to its clumsiness.

I would hardly say the whole JS ecosystem is immature. There's tons of mature projects that take security very seriously and are written by highly skilled programmers.

> They are now also pushing "Vibe Coding", which is a hot air hype parade, about to be brutally hit with reality when others are deploying production code that is riddled with hundreds of security vulnerabilities

There are certainly many fresh programmers entering the ecosystem and "vibe coding" among other hyped trends are able to ride that wave. It's pretty clear that those hyping it are either new themselves (don't know better), or cater to an audience of new programmers. Those in the latter group are doing it to farm engagement, and/or are really out of touch from what real software systems look like/require.

The silent majority of moderate to highly experienced JS programmers know that these LLMs produce shit code outside of boilerplate and small demos. It's very easy to tell if you try to use them on anything else.

It is concerning on many levels though that new programmers are being guided off a cliff like this. Programming influencers and companies advocating for "vibe coding" and the like should be called out for sabotaging the next generation of programmers.

comment 1y ago · link · parent

The trivial nature of the initial exploit does not instil confidence, nor does it that no one noticed it during the refactor that lead to the second variation of the exploit.

comment 1y ago · link · parent

I was told I have astigmatism by multiple optometrist, but I'm convinced they aren't right. I have clear double image (not blurring) in one eye shifted by ~1% or so down and to the left, no prescription has ever corrected it in the slightest (some have made it worse). These days I just live with it and don't wear glasses. I've contemplated getting eye surgery if I was confident that the issue would be corrected.

comment 1y ago · link · parent

I've been choosing not to use most of the AI code assistant stuff for a while, I try it every now and then. Each time it's the same outcome, it actively reduces my productivity by a fair amount. I suspect this is due to a mix of the majority of my programming being non-trivial (library building, complex-ish algos), and that I'm a bit of a perfectionist coder who enjoys programming.

LLMs are useful tools for programming, as a kind of search engine and squeaking rubber duck. AI as a programmer is worse than a junior, it's the junior that won't actively learn and improve. I think current AI architecture limits it from being much more than that.

comment 1y ago · link · parent

It's a very flawed test.

> We sourced real tasks that were previously solved by paid contributors.

It seems possible/likely the answers would in the training data (time dependant, maybe some were answered post training, but pre benchmark).

comment 1y ago · link · parent

This was my thinking as well. Also if they have metrics that show the top suggestion is picked 90% of the time after x characters (or even user based metrics like Bob always picks the top suggestion after 10 characters), then they can preemptively generate the response to the top suggestion leading to near instant feeling responses.

comment 1y ago · link · parent

US push for local manufacturing might play into that a bit since TSMC's Arizona fab only just started producing 4nm. Nvidia is planning to provide GPUs for major US datacenter expansion, so using locally produced chips should help significantly (especially if the chip tariffs end up becoming a reality).

comment 1y ago · link · parent

This will need refactoring before being enabled, and possibly might not be enabled at all because it would introduce a perf regression do to the necessary checks to branch between moveBefore or insertBefore.

This was brought up multiple times to the html spec authors, but no changes were made.

comment 1y ago · link · parent

According to the spec it throws in the following cases:

  Parent - Moved Node
  disconnect - connected  
  connected (Doc A) - connected (Doc B)  
  connected - disconnected
The last one is the most concerning one. Most of the top performing frameworks do child node reconciliation something like this https://github.com/WebReflection/udomdiff/blob/e58db3ad28b72.... Each node could be unmoved (no-op), new (disconnected), or moved from within the parent (connected). Now if one wants to leverage moveBefore each of these nodes needs to be checked for it's connection state.

comment 1y ago · link · parent

Shipping it in its current state does seem premature. The spec still hasn't addressed a major concern from rendering library authors, which was that an explicit check to see if a node is connected is now required to branch between using moveBefore or insertBefore, since moveBefore throws if used to place a disconnected node.

comment 1y ago · link · parent

Signal based libraries already don't need VDOM. It's possible that it'll allow faster reordering of elements that are already connected, but the added checks needed to see if an element is connected (need to use insertBefore if not connected) might also cause overall perf regression. The main thing is that it allows elements to be moved without triggering disconnect/connect.

comment 1y ago · link · parent

This is mostly a sentiment I see from people who used or heard of JS 10+ years ago and didn't bother to learn added JS language features and recent tooling.

Standard libs can be great, but they should really be reserved for baseline features, especially in a language like JS where all changes must be backward compatible. The standard JS has now is not at all what it was in the early 2010s, it's a very good set of baseline features.

comment 1y ago · link · parent

Something I see many JS benchmarks struggle with is GC. Benchmarks run in tight loops with no GC in between, leading to results not representative of real world use. Rarely do they even run GC between the different test cases, so earlier cases build up GC pressure negatively impacting the later cases and invalidating all results.

comment 2y ago · link · parent

> the content has become horrendous

Do you attribute this to bots?

I agree that content has gone down hill quite a bit. Though personally I don't think it has anything to do with bots. People I used to follow and respect have devolved into posting memes and engagement bait. When there is discussion it usually ends up as 2 sides taking past eachother. I'm pretty sure it has something to do with social media feeds in general, information overload, and providing means of fast gratification.

It really does feel like social media is making people stupider, myself included. At the same time it's also providing me some sense of interest aligned community aligned that I can't really get elsewhere. I'm sure others feel the same.

It's possible that I'm wrong about social media making us stupid, and very possible that it's just illuminating the stupidity that was always there.

Either way I wish it were reversed and trending towards increase in highlighting smart discussion.

(Side note, I've also tried Mastodon and found that there was equal or greater stupidity in the communities there)

comment 2y ago · link · parent

They may not look it, but the underlying terrain is done with voxels. It's harder to notice because the voxels are smaller, and use techniques like marching cubes to render smooth looking angled surfaces.

Here's a GDC talk about No Man's Sky world generation:

https://youtu.be/sCRzxEEcO2Y?si=H0r5zPRfO1CCeZ_m

Voxels doesn't necessarily mean something looks blocky like Minecraft.

comment 2y ago · link · parent

wgpu is the main rust crate for webgpu rendering, and it's what Firefox is using for it's experimental webgpu support. It's also enabled by default in Firefox nightly builds. I don't think it'll be long before it ships in stable.

comment 2y ago · link · parent

Minecraft-likes are among one of the most successful game formulas.

Some examples:

No Man's Sky (survival, voxel, proc gen)

Astroneer (survival, voxel, proc gen)

Valheim (survival, proc gen)

Enshrouded (survival, voxel)

Terraria (survival, proc gen)

Like it or not there's a lot to be gained from learning how to make a Minecraft-like. Does making one guarantee success, NO, but same goes for any other type of game.

comment 2y ago · link · parent

To use your analogy, the Apple stadium security will probably not let you in if you are visibly carrying pyrotechnics, but if you have a large backpack they aren't likely to look inside. In order to give the illusion that they have good security they also pick many people at random and refuse them entry and make up a reason on the spot.

comment 2y ago · link · parent

I primarily eat vegetarian (eggs, and legumes for protein), but some meat every other day or so. I take supplements and ensure my diet is balanced. Something about meat and red meat in particular does make my body generally just feel significantly better though. More energy, clear headed, etc.

I've thought it might be due to in part to high metabolism. My entire family is quite slender and generally have trouble gaining weight.

comment 2y ago · link · parent

It really depends on the set of prompts you present the LLM. If it's anything requiring reasoning, you'll often get nonsense that sounds like sense. It has a higher chance of being accurate with knowledge queries.

LLMs are impressive, a very lossy search engine in a small package, capable of outputting convincing natural language responses.

comment 2y ago · link · parent

Having authn stateless whether with JWTs or not is a bad idea. By extension refresh tokens are a bad idea. Doesn't mean JWTs are a bad idea, if used as a general auth token they are fine. Implementing revocation of JWTs also isn't very hard but you need somewhere to store the revocation state.

comment 2y ago · link · parent

100% accuracy should be the goal, but the way to achieve that isn't going to from teaching an AI to construct a definitive sounding answer to 100% of questions. Teaching AI how to respond with "I don't know", and give confidence scores is the path to nearing 100% accuracy.

comment 2y ago · link · parent

Hmm yeah I kinda like the concept that it's "hallucinating" 100% of the time, and it just so happens that x% of those hallucinations accurately describe the real world.

comment 2y ago · link · parent

Postel's law should not be applied so broadly, and certainly shouldn't be used as an argument against further validation of inputs.

Garbage inputs are the responsibility of the sender, not the receiver. You can and should accept a small margin of error in inputs where errors may logically appear, but if the receiver accepts too much error then it becomes responsible by creating a complicit norm. If the responsibility of error remains on the sender then introducing further validation is less likely to cause breakage in communication.

comment 2y ago · link · parent

I don't believe they are talking about a VS Code extension embedding PDF.js but rather an Electron app that has PDF.js embedded by default. My guess is Slack.

comment 2y ago · link · parent

Here's an idea, maybe we stop doing that.

comment 2y ago · link · parent

As much as I dislike many of the legacy issues with JavaScript I find TypeScript to be the best language to iterate with. If Rust had GC without need for wrappers like RC though I think that would be my preferred iteration language. I mostly try to write my TS in a manner that would translate to Rust, but that's hard to do sometimes when it comes to memory management.

comment 2y ago · link · parent

My bad, that makes sense.
1
1213141516