Better HN
topnewbestaskshowjobs
Log inSign up

programmarchy

1,892 karma · joined Apr 15, 2012 (14y ago) · 1,207 submissions

Submissions

comment 1y ago · link · parent

Seems like you should be correct. A shadcn button is just react, tailwind, and @radix/react-slot. But if you simply create a new shadcn Next.js template (i.e. pnpm dlx shadcn@latest init) and add a button, the "First Load JS" is ~100kB. Maybe you could blame that on Next.js bloat and we should also compare it to a Vite setup, but it's still surprising.

comment 1y ago · link · parent

With OpenAI models, my understanding is that token output is restricted so that each next token must conform to the specified grammar (ie json schema) so you’re guaranteed to get either a function call or an error.

Edit: per simonw’s sibling comment, ollama also has this feature.

comment 1y ago · link · parent

Okay, that makes sense. I thought they could just log in to a dummy site, not that it was proxying requests through to a real site. Yikes.

comment 1y ago · link · parent

I’m missing something. If WebAuthn is “ssh for the web” then why would it matter if Bob was phished and logged into the fake crypto portal running on the raspberry pi? It’s not like the attacker now knows his private key. Is the danger that Bob also would share his crypto wallet keys with the fake site or something?

comment 1y ago · link · parent

He paid 75K which is not bad though.

comment 1y ago · link · parent

CoreVideo and CoreAudio are both implemented in C on Apple systems. There are higher level APIs like AVFoundation implemented in Obj-C/Swift, but the codecs themselves are written in C. Even the mid-level frameworks like AudioToolbox and VideoToolbox are written in C. I’m not as familiar with Microsoft but imagine it’s similar.

Also the article doesn’t actually mention OOP. You can use polymorphism without fully buying into OOP (like Go does).

The great thing about C is its interoperability, which is why it’s the go to language for things like codecs, device drivers, kernel modules, etc.

comment 1y ago · link · parent

For one, ffmpeg is 9 years older than Go. Plus, when dealing with video files a garbage collected language probably isn't going to cut it. C++ and Obj-C also feel overkill for ffmpeg.

comment 1y ago · link · parent

Right, and if US made a deal with Russia to cease their support for Iran, then they become much more vulnerable to an attack by Israel and US.

comment 1y ago · link · parent

One explanation would be an agreement with Putin softening support for Iran in exchange for US softening support for Ukraine.

comment 1y ago · link · parent

Glad to hear this. I’m planning to use Vault in a new project that has sensitive security concerns. I liked Hashicorp’s concept of “encryption as a service” as a way of protecting engineering teams from cryptographic footguns.

comment 1y ago · link · parent

I’m not super familiar with browser notifications, but I want to use them in my next project. Does this library make it easy to add push notifications to my web app similar to airship for mobile app push notifications?

comment 1y ago · link · parent

Great post. I discovered SSE when building a chatbot and found out it’s what OpenAI used rather than WebSockets. The batteries-included automatic reconnection is huge, and the format is surprisingly human readable.

comment 1y ago · link · parent

Is anyone using Prometheus / Grafana for LLM metrics? Seems like there’s a lot of existing leverage there. What makes LLM metrics different than other performance metrics? Why not use a single system to collect and analyze both?

comment 2y ago · link · parent

Don't see a problem with YC "dutching" and spreading their bets across multiple forks/teams.

comment 2y ago · link · parent

It's not an either-or, though, is it? Why can't we both improve developing the native population and siphon the best and brightest from everywhere else?

comment 2y ago · link · parent

The linked PDF (Storm-2035 [1]) from Microsoft is more detailed and interesting than the blog post. However, what's missing from the reports is how they detected those operations and how they tied them to different groups. There's a lot of claims being made without showing all of the supporting evidence.

To give them the benefit of the doubt, they likely want to keep their detection methods secret to make circumvention more difficult. And it all sounds totally plausible of course. But at the same time, a degree of skepticism is warranted because Microsoft has a huge incentive to fearmonger about AI so they can lock it down and capture the market. And what better way is there than to use the usual bogeymen to do so.

[1] https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcor...

comment 2y ago · link · parent

If I were an indie game dev, I'd rather pay for hardware resources than Unity license fees. It's $2K/year even if you're not making money yet. There is a free version but it's heavily limited (no physics, no VR).

comment 2y ago · link · parent

Wow, that's an amazing achievement.

At one point, UE had an option to build for HTML5, which was later deprecated and offloaded to a community fork [1] which was abandoned. So I thought it'd never happen. Well done!

[1] https://github.com/UnrealEngineHTML5

comment 2y ago · link · parent

All of this activity would still be logged.

comment 2y ago · link · parent

> Solving the problem for international transfers simply requires greater international cooperation

Right, simply need to solve for world peace, ending all wars and economic sanctions. Kumbaya.

comment 2y ago · link · parent

Not a climber myself but this is super impressive. Curious about what techniques you’re using. Is this based on a GAN model?

comment 2y ago · link · parent

Play stupid games, win stupid prizes…

comment 2y ago · link · parent

This is an impressive project because of how several existing libraries were leveraged and synthesized into a powerful tool. Keen insight and well executed.

comment 2y ago · link · parent

This has been covered in the past. Some people may own their car but the robotaxi model folds into transportation infrastructure, like Uber. Cars sitting in parking lots and driveways 90% of the time is incredibly stupid and wasteful. Not to mention commercial transport. The market is enormous.

comment 2y ago · link · parent

Classic 90/90 rule. Not surprising to anyone who has done innovative engineering. The last stretch is always the hardest.

comment 2y ago · link · parent

Musk's Tweet about FSD is pretty much spot on. Just being electric isn't enough of a market differentiator anymore. Too many copycats. Sacrificing a new model to focus on FSD is a great move. Many stockholders probably won't be able to stomach it, though.

> Not quite betting the company, but going balls to the wall for autonomy is a blindingly obvious move.

> Everything else is like variations on a horse carriage.

https://twitter.com/elonmusk/status/1780376546148327690

comment 2y ago · link · parent

Not a TikTok fan myself but this article is flimsy fear mongering.

The outlined risks are no worse than any other social media app. From the perspective of a US citizen, there is arguably less consequence to being spied on by the CCP than the FBI. You could make a better argument based on national security, though.

Regarding the key logger [1]:

> Mr. Krause, 28, said he was unable to ascertain whether keystrokes were actively being tracked, and whether that data was being sent to TikTok.

[1] https://archive.is/srCg4#selection-669.0-669.143 (https://www.nytimes.com/2022/08/19/technology/tiktok-browser...)

comment 2y ago · link · parent

Also recently released as a series on Hulu. Pretty faithful to the book from what I've seen so far.

comment 2y ago · link · parent

OpenCL is a Khronos open spec for GPU compute, and what you’d use on Apple platforms before Metal compute shaders and CoreML were released. If you wanted to run early ML models on Apple hardware, it was an option. There was an OpenCL backend for torch, for example.

comment 2y ago · link · parent

Apple killed off OpenCL for their platforms when they created Metal which was disappointing. Sounds like ROCm will keep it alive but the fragmentation sucks. Gotta support CUDA, OpenCL, and Metal now to be cross-platform.
12345
41