Better HN
topnewbestaskshowjobs
Log inSign up

Joker_vD

7,679 karma · joined Dec 26, 2019 (6y ago) · 3,589 submissions

Submissions

comment 9h ago · link · parent

Can it be made faster (and smaller)? I recall that there are some hard limits against making FHE too efficient, because the memory blow-up is precisely what keeps the schemes secure, so you if you make it merely 2 orders less performant that operations on plain text — which is about the threshold for being practically useful — then it will be insecure no matter what scheme you chose, simply because (almost-)brute-force attacks will feasible at this scale.

Right now, we look at the difference of 9 orders of magnitude in speed.

comment 21h ago · link · parent

This idea will always be strictly inferior, in the economical sense, for any purpose, so there is nothing brilliant about it. If anything, it's anti-brilliant: it takes a very peculiar kind of brilliance to invent something absolutely useless, something that, whatever goal you try to apply it to, you can always achieve the said goal better with some other tool...

A 2 Hz cloud compute that costs $3 per hour ($42,000 for 1 MFLOPs delivered in about 6 days) is suitable for literally nothing.

comment 1d ago · link · parent

> You only need 8 B200 to run that.

If I have eight B200, not only can I run something much better than Llama 3.1 8B, I can also run it much faster without bothering with encryption at all. And if I don't have eight B200, but I am okay with Llama 3.1 8B at about 2 tokens/s, then I can just run it locally, maybe even just on CPU only? I've just tried it with 12 threads on Ryzen 9 7900X @ 4.7 GHz, for the Q6_K version, and it gave me the speed of slightly above 7 tokens/s, so... what was the point of using FHE, again?

I mean, I guess if the user wants to use this model from their smartphone, and they want iron-clad privacy, and they're willing to bear the very slow speeds, but they don't want to drain their battery, and they're willing to pay for it as if they were paying for a much better model at much better speeds... yeah, this trade-off makes sense in this use case. Is this a realistic use case?

comment 1d ago · link · parent

> We benchmark Phantom on a AWS r6i.metal, with support for AVX2 and FMA instructions, parallelized across 32 cores, and measure the runtime of a single cycle and all 6 components.

> Average Cycle Time: 655.711279ms

And what is r6i.metal, exactly?

    R6i instances are powered by 3rd Generation Intel Xeon Scalable processors
    (Ice Lake) with an all-core turbo frequency of 3.5 GHz and include support
    for always-on memory encryption using Intel Total Memory Encryption (TME).
    R6i instances also support new Intel Advanced Vector Extensions (AVX-512)
    instructions for faster processing of cryptographic algorithms.


    Instance Size    vCPU    Memory (GiB)

    r6i.metal        128     1,024
Amazing. So we're at ≈1.53 Hz now, when executed on top of 32 vCPUs @ 3.5 GHz. And how much memory does it use?

People complain about AI datacenters using a whole 8 oz cup of water to answer a single prompt (meanwhile, a single burger apparently takes ≈600 gallons of water to make) but this is an even bigger waste of compute.

comment 1d ago · link · parent

But what's the practical point? To quote myself:

    I've seen a paper [0] that ingeniously uses homomorphic encryption to implement arbitrary algorithmic
    computations, totally secret, by encoding a (custom-crafted) CPU together with RAM and then running
    "tick a clock" algorithm on them. And it works, so you can borrow some AWS huge instance and run you
    super-important calculations there — at 1 Hz. I am not kidding, it's literally 1 virtual CPU
    instruction per second. Well, if you are okay with such speed and costs, you either have very small
    data — at which point just run your computation locally, or you're really, really rich — at which
    point just buy your own goddamn hardware and, again, run it locally.
[0] https://arxiv.org/abs/2010.09410

comment 1d ago · link · parent

> Apparently it does not boost fertility, but slows absorption of "the pill".

> Weight loss leads to a decrease in inflammation. (not new) Weight and testosterone link. (not new) Weight loss and increased ovulation. (not new)

That's... pretty much what indirect causation is, isn't it? Event A causes event B, which then causes event C, so A is an indirect cause of C. The end effect is that the fertility rates are higher in the ozempic-takers.

I mean, that's also pretty much what "the urbanization and improved public education lead to declining fertility" means — those things don't literally make people sterile; the causation is indirect. So, in pretty much the same sense, ozempic boosts fertility.

comment 2d ago · link · parent

Wait, do LLMs have the source code of NVIDIA drivers in their learning data set? If not, how is "clean room" inapplicable here?

comment 2d ago · link · parent

> I have no wishes to think about custom memory allocators. I don't want them. I consider those as unnecessary complexity for a niche use case,

Well, not to be rude, but Python and Go exist, you know. But if you're picking Rust (or Zig) — you will have to think about lifetimes, ownership, and allocations, that's the language's raison d'être.

> with features to please everyone and a lack of simplicity.

Like async! Compared to that barrel of worms, the new allocators are a complete non-issue. A two-functions trait, that Vec's and Box's "new_in" method use under the hood, with straightforward semantics — that's as complicated as having xmalloc()/xfree() in your C project.

comment 2d ago · link · parent

That's really the problem with constructors being anonymous (or equivalently, having exactly the same name as the class they belong to), isn't it? In e.g. Object Pascal the constructors are special methods (they have to be marked with the keyword 'constructor'), but they have names, and you can have several of them with different names.

    auto v = std::vector::from_values("foo", "bar");
    // v is std::vector<char*>

    auto w = std::vector::from_iters("foobar", "foobar" + 3);
    // w is std::vector<char>

comment 2d ago · link · parent

Every time I complain about having to use apt, people tell me "it's the distro's package manager, you're supposed to use it, so stop worrying and learn to love it". But now Snaps is also the distro's official package manager, you're supposed to use it... and the same exact people complain about having to use it. With almost the same arguments, mind you. It's surreal.

comment 3d ago · link · parent

The corporate money. Like, the USSR had a two-contour financial system where the cash roubles that the population was paid with and used to buy the goods were almost completely divorced from the accounting roubles the kolkhozes, factories, and institutes used to pay each other for the goods. The over-profitable firm simply couldn't use those profits to e.g. pay bonuses to the managers and the workers; when it became possible in the late 80s during perestroika, the whole system collapsed in a couple of years — and was one of the driving forces of the (hyper)-inflation in the early 90s.

comment 3d ago · link · parent

Yes, it can. That's one of the most obvious and logical outcomes, really — unless you factor in the possibility of radical upheavals and revolts.

comment 4d ago · link · parent

> It wouldn't be ethical for the employee to take the $780K, violate the contract, try to make money from that violation too, and then present themselves as a victim of the whole situation.

In your opinion, perhaps. In my book, when presented with an option to get $780k in exchange of not exposing the unethical and borderline illegal behavior of the company, the ethical thing to do is to take the money and then expose the company's wrong-doings anyway.

Whether this whole ordeal is legal or not, and whether it should be or not, is a different question entirely.

comment 4d ago · link · parent

I believe it's because I was brought up as an atheist, in a family of atheists, and never really had any serious encounters with organized religion until I was 19, I think, at which point it all sounded patently ridiculous anyhow.

comment 4d ago · link · parent

By being an atheist of non-idealist persuasion.

comment 4d ago · link · parent

...that's literally Windows 3.1, but with less window chrome, and less color.

comment 5d ago · link · parent

Well, seL4 arguably can do something useful, so... yes, they can?

comment 5d ago · link · parent

> “mond what is a fursona”, ok sorry, it’s a furry subculture thing where you identify as a (generally bipedal) animal that represents some aspect of your beautiful hidden soul.

Huh. Sometimes I wish I had one (the soul, that is). Can I adopt a fursona if I only have a personality? Does it have to reflect only one aspect of it?

> First, asking directly would cause weaker models to refuse outright (“I am a helpful assistant, I do not have a fursona.”).

Oh. So the strength of the model is (in part) measured by how well they can reject their system prompt? Then give me weaker models, please.

comment 5d ago · link · parent

> which won't be possible if the agent use pattern is similar enough to human or the app itself masks usage patterns.

There is no much reason to have an agent that reads 0.2 email/s, one by one, is there? And if you still decide to have it for some reason, sure, we can serve it 1 lightweight request every 5 seconds, that's not a problem. The problem is that most agents don't have such use patterns, theirs are much more aggressive.

comment 6d ago · link · parent

First of all, there is a question of syntax, which ironically could be solved by taking a page out of BCPL's book (the irony is that BCPL is C's ancestor, but C lost several of its more advanced features, like statement expressions):

    double m[1024 * 1024] = ?;
    Foo x = ?;
Second, there is a question of semantics. You only get to have 1 destructor, and it's called unconditionally — so we force the author of Foo (or of any class, really) to either 1) write the destructor that can properly destruct an unitialized object which is a bit tricky since reading any of the fields of such an object is UB; 2) shift the blame to the users: "don't do that with this class" — which completely negates your "decided at the call site (not in the class declaration)" point, because this decision is made in the class declaration, and can be made only there, not at the call site.

So as usual with C++, we end up with a half-working system, with subtle footguns, pervading all of the program code, and impossible to ignore.

comment 1w ago · link · parent

> the only thing you couldn't do in a film is criticize the government,

And you still could criticize "isolated imperfections of the system", up to a certain level of the command chain.

comment 1w ago · link · parent

Dude. One doesn't need to be a Chinese spy to be willing to re-sell the sanctioned items (including GPUs) to Chinese — it's a pretty lucrative business in the Southeast Asia, and China pays good money. Of course, to do so, one is not required to sleep with NVIDIA's CEO neither — although it helps to get priority contracts.

But I assure you, even if Jensen Huang were not reinstated, the trickle of the NVIDIA chips into China would not cease unless NVIDIA completely stopped shipping to Singapore/Malaysia/etc. Which it wouldn't for obvious reasons.

comment 1w ago · link · parent

There was a recent discussion about the C++ contracts, and one of the top comments [0][1] in it was that, well, there are already assertion libraries (especially after C++20's concepts) that already do all of that, and better.

[0] https://news.ycombinator.com/item?id=50361334

[1] https://news.ycombinator.com/item?id=50361455

comment 1w ago · link · parent

I am fairly certain that even today, C89 compilers (or compilers for later C standards in the C89 mode, if they have it) can still compile the C89 programs just fine.

The desire to compile C89 programs with e.g. a C26 compiler (that is, a compiler for a similar, but different language), and yet still get the program with exactly the same observable behaviour, always struck me as strange. If you want to keep using your old compiler, you can use it. If you want to port your program to a newer version — well, you'll have to port it. They way to actually make this porting easier would be to have required diagnostics in the compilers but that seems to be counter-cultural to the C community in large.

Of course, the proper way to ensure backward compatibility would be to have every translation unit start with something like "#pragma std(c99)" and then mandate that the semantics of the corresponding language standard shall apply during translation of this translation unit, and that the conforming implementation must support all the previous language standards (in conformant way)... but again, that'd never fly with the C community, neither with the implementers nor the programmers — instead we have a vague definition of what "C code" is (and what is its semantics), which is time-dependent, but efforts are made to ensure that things that used to be C code, and their semantics, still count as C code and their semantics don't noticeably change over time (well, maybe).

comment 1w ago · link · parent

> Bizarre and ineffective analogy ...

It's a variation of the "apples to oranges" metaphor which is just as stupid. Like, those are both fruits, so they have very similar possible uses, you absolutely can compare them! It's comparing, I don't know, toasters and umbrellas — yeah, that'd be silly, but only because the result of the comparison would be instantaneously apparent. You want toasted bread? Use a toaster. Protection from rain? An umbrella is obviously superior. Painting a roof? Both are equally useless.

So, Rust vs. C++? You want language features, you want tooling, you want the library ecosystem, you want the resulting programs' performance. All of those are things that the languages can, and should, be meaningfully compared with each other on.

comment 1w ago · link · parent

> Ok, we can go with that tone if you want to.

I'm sorry, what? I rephrased my comment several times when writing it, to make it as non-standoffish and "not a statement of fact, merely my opinion as I understand things" as I could.

> This is factually wrong: if you look around, you can find an example where it works pretty well.

And also pretty poorly, e.g. the board of directors in many corporations.

> So you would say that a monarchy that competently manages the state in the interest of the people is... a democracy? And then you give me lessons about the legislature and the executive???

No, I would say that the goal of democracy is to competently manage the state in the interest of the people. That doesn't mean that some other system of government can't put the same goal before itself, although empirically, they tend to not do this, i.e. most of non-democracies tend to have goals other than managing the state in the interest of the people.

So. To go back to your "counter-example" of monarchy — monarchies don't, as a rule, manage the state in the interest of the people, they manage it in the interests of hereditary aristocracy. And when they do, it requires almost completely gutting the aristocracy, making the monarch into the ceremonial figure head, and opening a large-scale franchise/suffrage — effectively turning it into a democracy not unlike e.g. Sweden. But a full-blown autocratic monarchy, with the aristocracy holding most of the official positions? Those never care for the benefit of the people all that much.

> So you do realise it's about representing the people

Yes.

> but you somehow believe that "democracy" means that the people wants it to be done competently

Well, why would anyone want to be represented incompetently? I want my representatives to competently work towards the goals and the vision I and them both share.

> other systems... what... aim for morons?

No, the other systems just don't care about the representation and the interests of the people, so that's a non-issue to them. Again, the whole reason the representation is even important is that it's one of the very few, if not the only, ways to make the government to actually look out for the interests of the people as opposed to the interests of some very small but disproportionally powerful groups.

> So the way a democracy works is that the people elects their government, right? Whether they are represented or not has absolutely no influence: they vote based on what they feel. If the government systematically does stuff that they disagree with, then they don't feel represented.

That's... that's your understanding of democracy, right? Just so we're on the same page? This is not how I would phrase my understanding of it.

> The people all hate the government because they all feel like they are not represented, but somehow you can prove to them that they actually are represented but are just stupid and complaining for nothing, and all is well?

That's how the current systems in many countries work right now (again, cf. "Manufacturing Consent"), and there is nothing perfect about it, things shouldn't be this way; and they are this way, partially, because the people are not actually represented all that well. Lots of politicians never bother to deliver on their promises, or start toying their party's line after elections, or sometimes there is just no viable candidates that share the voter's view on some particular topic e.g. due to the two-party system (voting hardline hawks out, just to get somewhat milder hawks in, doesn't make anti-war, anti-foreign-inteventionist people represented).

So in "my perfect democracy" the people, first of all, would be represented, faithfully. Then there would be much less feelings of not being represented because people, generally, are not complete idiots, and the need for propaganda to "persuade" people that no, they actually want the things the government is doing, would be much smaller, hopefully. There of course would be "tough decisions", but that's why good public education and actually communicating with your voters (as opposed to sucking it up to the regional party bosses) is important.

P.S. Again, to reinstate my main point of disagreement with you: "What is the purpose of a democratic system? IMHO, the goal is for the people to feel represented" — no. That was the goal of the USSR's system of the Soviets — to make people feel represented without actually giving them the representation: you can vote for the members of the local soviets, and the Supreme Soviet all you like, it doesn't really matter since the real decisions are being made by the Party's committees anyway (also, good look getting on the ballot without the Party's approval in the first place). This is not democracy, and you shouldn't call it so.

comment 1w ago · link · parent

There is difference between the legislature and the executive, you know? For the legislature, yes, it should have the multitude of people. For the executive — the chain of command, please; the diffused responsibility ("hey, don't blame me, it was a collegial decision") in such matters works horribly. Besides, the only examples of the executive branch I can think of where there is supposed to be no top honcho but instead a purely collegial organ is Politburo/Standing Committee — and we all know how that actually worked/works in practice. A committee usually will have a leader, so may as well put him in the sights.

> What is the purpose of a democratic system?

Well, I'd personally go with "competently manage the state in the interest of the people, in general and in particular". Being governed by incompetent morons who, nonetheless, fully represent my views is a small consolation; although, of course, being governed by incompetent morons who don't even represent me is even worse.

> the goal is for the people to feel represented.

That's a very cynical take, if I'm reading you correctly, on the par with "Manufacturing Consent" — unless your point is that the people should be both represented and feel represented... but that's arguably a (rather major) implementation issue, not the whole purpose of the system, isn't it?

comment 1w ago · link · parent

The user-defined integer types in Ada are either a subrange of the signed integers, or have modular semantics exactly as that that "unsigned T" have in C/C++. If we're talking about the additional range checks, they're only performed on an assignment to a variable. So, no, I don't exactly see how Ada's semantics would help here.

comment 1w ago · link · parent

Have you seen the wave of recent Whatever2Shell CVEs? Several of them happened precisely because "a type that could only represent positive integers" was used for the sizes.

comment 1w ago · link · parent

Well, Ubuntu (and Debian) definitely have a fair share of blame for both weirdly insisting on packaging parts of Python standard library into separate apt packages, and also on setting the system-wide Python in such a way that packages from different Python versions will end up in the same site-packages/ directory, and also on making apt rely on system-wide Python which can be very easily broken by apt itself... tl;dr is that the only sane way to use Python on Ubuntu is to immediately get virtualenv (yes, it's too distributed separately from Python itself, you need to run "apt install python3-virtualenv" first) — and then never, ever touch system-wide Python or its packages with apt, upgrade the pip inside your venvs only.
12345
120