Better HN
topnewbestaskshowjobs
Log inSign up

eatfish

93 karma · joined Nov 4, 2012 (14y ago) · 36 submissions

Submissions

comment 1w ago · link · parent

I keep asking my own agents if prompt injection is a solved problem. By and large the answer seems to be ‘no, anything a model sees can be used to steer it and enters the context’.

I know you can forward raw output through subagents to summarize content and mitigate the risk - but most projects don’t do that.

So why would anyone risk browser or email to agents where your secrets are at their most vulnerable. Serious question, looking for someone who knows this stuff and can reassure me (or not) on the real risks.

comment 3y ago · link · parent

You forgot the stage light effect. Mysteriously Apple give a free fix/service program for the 13" models but not the 15" models. Kind of sucks if you had a 15" model that started to go bad.

comment 4y ago · link · parent

If you consider that Facebook bans around 5B accounts per year (https://www.forbes.com/sites/melissaholzberg/2021/03/22/face...).

At this point that's more noise than signal. Not ideal for you but I can see the problem. For whatever reason you met the bar for requiring more validation. If they had let you in then another N'000 fake accounts would have also passed the automated system. Someone else would be posting here, Reddit or Twitter explaining how Facebook had let in some bot and was posting fake and untruthful stories, on the internet no less.

comment 4y ago · link · parent

True, and I think Quarterdeck (and Pharlap, Rational, etc.) developed the VCPI specification that allowed those DOS extenders to work cooperatively. Some of the early DOS extenders took over the entire machine and did not allow that.

comment 4y ago · link · parent

Around that time DOS programs were still being written to fit within 640KB of memory. However PC's were starting to be shipped with 2, 4 or even 8MB of RAM - memory really was a solution in search of a problem at that point. Windows 3.1 was the primary application for all that memory. But what if you didn't want, or need, to run Windows 3.1? Well that's where DESQview fit in. You could task switch between DOS programs instead using all that sweet memory (but not really, because DOS doesn't multitask, so 4 switchable ttys of DOS programs is a better description)

comment 6y ago · link · parent

Vaguely related: there's Firecracker which boots in 125ms on x86 but that's as a VM, so it's an apples to oranges comparison. From what I recall Firecracker powers AWS Lambda so it's an interesting project in that respect too.

https://firecracker-microvm.github.io/

comment 7y ago · link · parent

Not the OP and I wouldn't say I'm a fan but I've made some peace with it by putting a membrane cover over the top and so far: (a) not one dust related casualty in the past 18 months and (b) it subdues the clackety-clack of the keys into something that's actually quite pleasant.

However, the touchbar...still a pointless gimick.

comment 8y ago · link · parent

I expect they correlated logs from several sources, maybe the guy connected via ssh to Apple's servers at the same time his mac accessed software update or something. If he sent all traffic down the VPN it'd show the same IP address at Apple.

comment 8y ago · link · parent

Don't do this to the space bar! I used the same trick as the video to fix/clean several keys out and had a pretty good feel for what I was doing.

However the stress/weak points on the spacebar are quite different and you're more likely, as I did, to lift the entire butterfly mechanism out. You will not get this back in again. It's $700 to get the thing fixed at Apple but you can buy replacement keys for $100 per shot online.

comment 9y ago · link · parent

That's not a fair comment and you know it.

Yes, instrumentation adds overhead. The absolute numbers cannot be used to determine peak performance but that's never the intention when profiling code.

Instrumentation rarely modifies the execution profile to the point that the numbers are 'worthless' or 'random'. My rule of thumb is that self times near the leaves of the callgraph are more accurate than self times further up the graph but having some indication of timing is important.

Furthermore with something like the call chart in AS3 you are often looking for outliers that you can't see when looking at an aggregated view of the profile. A function that has an average of 1000us might be running alternately at 500us and 1500us and you want to see that. It may indicate an unknown performance bottleneck, maybe a call to OpenGL is causing a GPU sync for some reason. It's rare that the instrumentation overhead would dominate major effects like that. Having a number available is important for this as you may be comparing invocations/looking at different parts of the graph at different zoom levels etc. Having a number available is the only solution.

Furthermore, where do you think the instrumented profiler is getting numbers from in the aggregated views? Answer: exactly the same place that the callchart gets it's numbers from. In essence you are saying all instrumented profilers are inaccurate and reporting bogus numbers, demonstrably untrue.

comment 9y ago · link · parent

Only played with it a bit so far but it seems to me that the call and flame charts are now missing any timing information. Unless I've overlooked it you can't actually see how long a function takes to execute - defeats the purpose of instrumented profiling surely!

comment 10y ago · link · parent

When the robots become self aware that guy from 1:25 has it coming.

comment 11y ago · link · parent

Actually, Nintendo were releasing 3D games even before the PS1. Starfox was the first poly 3D game from Nintendo and was released in 1992, at least a year, maybe more, before the PS1.

comment 11y ago · link · parent

I think it would be a lot more palettable if Nim enforced one of those coding conventions per module, while letting users of that module reference it any way they liked. e.g. my team could exclusively use camelCase and the compiler enforced that in our modules, while the same code could be handed off to some other team that exclusively uses snake_case.

comment 12y ago · link · parent

It is not other vendors that you need to be worried about. For example, when joining Khronos (OpenGL, GLES and others) you get royalty free permission to use any technology in Khronos' specifications and you, as a vendor, have to offer your tech to other Khronos members for free. I wasn't involved in the DirectX side of things but I imagine Microsoft operate a similar IP framework. There is no practical way to be a GPU vendor today and hoard your IP.

Patent trolls though. A different story. In 5 years we were sued twice (that I know of) by trolls. On both occasions the trolls had some trivial enhancement to a well known technique. I imagine they are operating a mud slinging operation where eventually something sticks. Once it does then either (1) the cost of licensing this 'new' tech is priced less than legal costs or (2) the troll is looking for testimony from some respected entity that the tech is innovative which gives them validation to go after the next biggest vendor up the chain.

comment 12y ago · link · parent

Stop pulling numbers out your ass. The specs for the MBA are online and it draws 6.5W with the display on.

comment 12y ago · link · parent

Oh, I'm not dismissing Rust. I think my overall point is that nothing is ever going to perfect. Plan for imperfection.

comment 12y ago · link · parent

Sorry, I'm not limiting the discussion to SSL vulnerabilities.

A remote code exploit is as bad as a memory leak.

I posted these two: CVE-2013-1493 and CVE-2013-0809 in another reply. These 2 were memorable to me just because visiting a page (or a compromised page) would allow the exploit to proceed without any password/prompt/warning.

comment 12y ago · link · parent

.NET isn't something I work with but that's good to hear.

Maybe you could tell me why this one doesn't count though? http://technet.microsoft.com/en-us/security/bulletin/ms10-06...

This is just the first I found. Sorry I'm not being awkward, I just don't work with CLR/Silverlight. What in your mind prevents this remote execution exploit from being serious? CVE denote it as a 9.3 and Microsoft claim it allows remote execution on a server too (under some circumstances).

comment 12y ago · link · parent

That is true, but I don't think this invalidates my central point that the rational response to heartbleed is to update your contigency plans. The irrational response is to plan the perfect world.

After 20 years of Java we still don't have our perfect VM. It still sees critical security vulnerabilities. I don't think I'm picking on Java unfairly here. Java is a well written code base, it has plenty of unit tests, a proper code review process, a sound architecture. Pretty much all of these have been put forward as ideas that would 'cure' the OpenSSL project. Yet it doesn't seem to be a perfect cure. At some point no matter what your language, VM, OS is you are going to experience something similar.

comment 12y ago · link · parent

1. I think a lot of people believe Rust will just type-check any old program and tell you when it has faults. So you can start with a bit of Ruby/C/Python, translate it to Rust and presto, all your bugs are exposed for the world to see.

In practice Rust's type checker accepts only a _very_ small subset of correct programs. I've been in a position to write some decent sized Rust code recently and it takes a shift in your mindset to start writing decent Rust code.

Even now there are patterns I'm unsure how to model in Rust. Arena allocation is a good example because it was partly the cause of Heartbleed too. Arena allocation in rust seems to require unsafe pointers and unsafe code blocks. You can look at Rust's standard library and see this.

2. The point being that the Rust language exposes unsafe code blocks and pointers. At some point you're going to hit those blocks (if nothing else in 3rd party code) and you're back to square one: You need to trust unsafe code that it is correct. It doesn't matter if that code is a VM or unsafe code.

*edited for some legibility.

comment 12y ago · link · parent

But even 'safe' languages have unsafe VMs. There is no question that over the years these VMs (or the runtimes) have had equally severe vulnerabilities.

The thing that really sets heartbleed apart is not the details of the bug, it's the scale of the 'infection'. OpenSSL is a core dependency of so many distributions and of so many pieces of software.

I think we could argue for lots of different solutions (diversity of implementations, safe languages, more tests) and all of them might be good in one way or another but none of them are a silver bullet for any possible bug either.

I think the take away is that you need to in a position to upgrade any part of your software stack at a moment's notice not just the obvious top-level (e.g. Rails/Django/Jetty).

comment 12y ago · link · parent

That's the hack. It probably transfers more bitcoins somewhere.

comment 12y ago · link · parent

I thought it was neat that they let me email myself with a reminder. This is an MVP, it's just the right response.

comment 12y ago · link · parent

Agreed. My experiments with rust have been uphill because I've been fighting with lifetimes, ownership and borrowing.

For the most part I failed to see that I -needed- unsafe code in some situations. Instead I was trying (failing) to annotate my code to ridiculous levels with lifetimes. It was really frustrating.

I don't think the current docs do a great job of putting unsafe in a suitable perspective. It's somewhat downplayed IMO.

Still, I've learned now and it's been pretty pleasant after that.

FWIW I've been doing c++ for maybe 18 years, writing device drivers, game engines, compiler development. I thought rust was made for me but it's been tough, much more so than any other language except maybe SML!

comment 12y ago · link · parent

Is this for good or bad in the Taiwanese market? I can't imagine carriers in the UK trying to lower prices or give a better deal without persuasion from outside.

When the first iPhones were introduced it had the first affordable data plan I'd ever seen in the UK. I think o2 we're asking around £50/month for some tiny data plan on my Nokia N95, on top of the contract cost(there was no data bundles). The iPhone was £35 month on contract, phone and unlimited data.

comment 12y ago · link · parent

Here's the first result from Google: http://www.cmu.edu/patent-lawsuit/ CMU vs Marvell.

Here's an article from Stanford law school: 'Are universities the new patent trolls?' http://papers.ssrn.com/sol3/papers.cfm?abstract_id=980776

Universities often (and unfairly IMHO) claim rights on graduate research precisely to monetize and act as patent gatekeepers.

comment 13y ago · link · parent

Yes, played entire Portal/Portal2 on it. It was fine. Maybe you should be railing at game developers that port to the Mac but then don’t update their acceleration curves to fit the platform. That’s the problem, when games are developed on Windows with the Windows mouse curve and then never adjusted on the Mac port.

comment 13y ago · link · parent

Google are blacklisting Microsoft. But they can't say that so they're whitelisting everyone else.
12