Better HN
topnewbestaskshowjobs
Log inSign up

wfunction

3,901 karma · joined Oct 15, 2012 (14y ago) · 1,547 submissions

Submissions

comment 11y ago · link · parent

So there's no run-time dynamic linking? Or is it possible, but only with additional metadata files present? Or maybe the assumptions are statically verified according to the interface and it is assumed that they are never broken by clients?

comment 11y ago · link · parent

I'm skeptical. Did they really make the type information stored in the ABI that advanced? Storing that kind of information outside of name mangling is a nontrivial feat (i.e. they'd need to rewrite the linker) and there's not a whole lot of information you can pack into name mangling.

comment 11y ago · link · parent

You really think auto and cbegin/cend make any difference here?

comment 11y ago · link · parent

How does Rust handle multiple object files and dynamic linking? It seems to me that pretty much all of these guarantees break down if the compiler can't see the source code for the whole program at once.

comment 11y ago · link · parent

What would your alternative be? Not buying their products?

comment 11y ago · link · parent

I didn't see a compelling argument for why they should be publicized in the article.

comment 11y ago · link · parent

Why in the world are they even using c_str so often in the first place? That makes me worry more about security holes than performance...

1088.

Faster integer multiplication: Fürer's algorithm(en.wikipedia.org ↗)

2 points · by wfunction · 11y ago · discuss

comment 11y ago · link · parent

I'd always wondered why no one seemed to notice this. I guess someone finally has.

comment 12y ago · link · parent

> per-object vtable

You mean per-object vtable pointer? Or per-type vtable?

comment 12y ago · link · parent

Thanks for listing them! See my comments below.

> Nullability

What do you think of boost::optional?

> Polymorphism

unique_ptr is probably the wrong choice here. You should be using ptr_vector: http://stackoverflow.com/questions/9469968

> Reassignment/swap

The indirection and heap (de)allocation also imposes a slowdown, though. Have you actually experienced this to be worth it in some cases, or is this just a guess?

> Release

I don't think this is a valid reason...? This is a pretty common idiom for releasing value types:

Type().swap(existing); // release 'existing'

comment 12y ago · link · parent

> There are many reasons why you may not want by-value containment of objects

I'm interested in reading them actually, would you mind listing them?

comment 12y ago · link · parent

Sorry I meant to ask why is it a habitual thing.

comment 12y ago · link · parent

Why are you using delete so often in C++...? 'delete' should be rare in your code.

comment 12y ago · link · parent

> This is why we need not only password locks and full encryption but panic passwords and hidden logins on every piece of electronics we own.

http://xkcd.com/538/

comment 12y ago · link · parent

In my experiments conditional moves have been actually slower than predicted branches.

comment 12y ago · link · parent

So it's a 21-minute workout?

comment 12y ago · link · parent

Ok thanks

comment 12y ago · link · parent

I should mention that I don't really want to put myself on a possible internal blacklist either (if I were to get a job there or something in the future)... I'd like it to get fixed but I'm hoping there's a better way than publishing it and ticking someone off internally, I just don't know what way.

comment 12y ago · link · parent

I don't have a confirmed exploit (other than a DoS, but I don't think that's very interesting). I think it may be exploitable but I haven't looked into the "how" and don't really intend to. I just know it's a hole.

comment 12y ago · link · parent

> apart from ingenuity, clever guesswork

That's what I'm asking though: what is the ingenuity or cleverness required to solve this problem? The only technique I can think of is guess and check.

comment 12y ago · link · parent

Not really related, but I reported a kernel-level bug to Microsoft over a year ago. It seems like it could be exploitable (it's easy enough to trigger from user-mode, but I'm not sure how easy it is to exploit for malicious uses other than DoS attacks). I received a reply that they would look into it, and that in the meantime I shouldn't disseminate it. However I'm fairly sure it hasn't been fixed, and it may never be. Should I make it public? Why or why not?

comment 12y ago · link · parent

Is there an actual technique for solving this that you can reasonably expect to work? Seems like you basically have to code it, needs a lot of patience but not much ingenuity on the math side (maybe on the CS side for coding it practically efficiently though).

comment 12y ago · link · parent

I'm talking about the ones enumerated in the Constitution, which are incidentally also the ones used to declare something unconstitutional.

comment 12y ago · link · parent

Same kinds of people as the ones the Constitution referred to when it was written?

comment 12y ago · link · parent

> There is no practical difference between "don't know where it is" and "don't have the password."

I think you forget you're living in the real world.

There is also no practical difference between accidental and intentional murder, so by your logic we should treat those the same way too.

comment 12y ago · link · parent

We have rights against unreasonable searches, not undesirable searches.
1
363738
52