Better HN
topnewbestaskshowjobs
Log inSign up

hdevalence

2,179 karma · joined Aug 27, 2009 (17y ago) · 285 submissions

http://hdevalence.ca

cryptographer

Submissions

comment 12y ago · link · parent

The problem is that you're now forcing all of your users to use the library you bundled. First, this bloats the system, since you now don't share dependencies between applications. Second, it makes the system more complicated because there are multiple library copies floating around the filesystem. Third, it means that when you really do need to change a library/dependency, you can't just update the libfoo package, you have to update every application.

In my experience (Linux on the desktop), bundling dependencies is an indicator of poor software quality, but I realize that the situation may be different on other systems.

In this case, I think that the solution is to use the distro's package manager to pin minor versions and rely on the distribution's updates for security fixes. Hosting your own repo is a bad idea, since it means you won't get any software updates. Software updates are really important -- they have security patches and bug fixes. If you're worried about the distro changing something from under your feet, you should pick something more stable. Debian or CentOS are good choices.

comment 12y ago · link · parent

No, because you need to debug the code you're actually running, not some other code that's easier to debug.

comment 12y ago · link · parent

Whereas you get the smug satisfaction of feeling superior to people who are actually doing anything at all.

comment 12y ago · link · parent

In this case, we want to have a logical history that says: this branch has these features A, B, C, D, and rebasing means that we can have the feature branch just have these commits, instead of "A, and then merge in some changes someone else happened to do, then B, C, then some other merges, then D."

comment 12y ago · link · parent

> It'd be so much better to just be able to click "I'm working on a new feature" and "I'm done with the new feature."

Maybe, but it might instead be better to ask people to invest a small amount of time in learning to use tools that make them more effective at doing their job. "I'm working on a new feature" and "I'm done with the new feature" are, sadly, not actually expressive enough concepts to deal with the problem.

Syncing files with FTP is pretty much at the same conceptual level as "Use Dropbox". Git solves problems significantly more complicated than "I'm working on a new feature / I'm done working on a new feature".

EDIT: when I say "conceptual level", I mean, "what you do with it", not "how easy it is to use". Obviously, Dropbox is more usable than FTP. My claim is that Git provides a much different level of power than "I'm working on a feature/I'm done with a feature", which is not a sufficiently expressive concept to deal with software development.

comment 12y ago · link · parent

Not the OP, but: the GPL is more restrictive, in that you are not free to reduce the software freedom of some other person (say, by turning it into a proprietary product). This is the perspective that considers GPL more 'free': though the software itself is more restricted, the freedom of all of the users of the software is protected.

Not everyone agrees with this position (I also am not interested in arguing about it) but this is my explanation of this point of view.

comment 12y ago · link · parent

Maybe starting out programming in C++ isn't a good idea, then. I don't think it is, for this and many, many, many other reasons besides. Shoving a graphics library into C++ doesn't make it substantially easier for beginners -- the biggest problem with C++ is not that it doesn't have enough features.

But if you insist on having a GUI library for C++, why not use Qt? Linking to Qt isn't really that complicated. If you're beginning, you can just use qmake and you're done.

comment 12y ago · link · parent

"A master of C must have the same views of what's important and the same writing style that I do"

i.e., 'a hacker is someone who looks like me'.

comment 12y ago · link · parent

It's not exactly what you're looking for, but clang can give you record dumps of C and C++ structs and classes. (In general, clang has lots of interesting tooling for C and C++, and I highly recommend looking into using it).

I wrote here [1] about using it in a KDE program (KStars) to cut 10% off the memory usage. In particular you can also use this tool to see some of the many bad effects of deeply nested classes: your class may be 8-byte aligned, so a 'char' at the end can take up eight bytes with padding, and it's not possible (AFAIK) to rearrange fields up and down inheritance heirarchies [2].

[1]: http://www.hdevalence.ca/blog/2013-12-22-better-living-throu...

[2]: C++ is not my favorite programming language.

comment 12y ago · link · parent

Note also that income is not shown on a zero-indexed scale, exaggerating its decline.

comment 12y ago · link · parent

I don't really see what's so useful about giving parents tools to block their children from accessing sites like Childline.

comment 12y ago · link · parent

Yeah, Rust is really interesting, and something I'd like to try on a real project. Hopefully I'll be able to do something with it this spring. But it's certainly more appealing as a replacement than, say, Go, which I don't think is really even that interesting as a language (but this is a personal opinion which I'm not willing to argue about on the internet).

Rust also would immediately solve some things I find particulary annoying about C++ (lack of sum types, inability to create new types that behave identically to old types, etc).

One thing that I think would be nice to have in a hypothetical language is vector support for integral types, the same way OpenCL has.

The Eigen library for C++ is IMO a really good example of the "Edward C++hands" phenomenon. It's a terrific library, using C++ template magic to produce optimized assembly for your platform, to achieve performance you just can't get with C. On the other hand, it can be annoying to use, since there are places where the C++ warts come out, and the developers have to put in an extraordinary amount of effort just to get there. If you had this kind of thing built into the language, it's much easier for everyone involved: compiler authors, programmers, library developers, etc.

comment 12y ago · link · parent

> You'll find crap in C++ like const *const char &, and hell if anyone knows what that really means since even though the pointer to a const to a const reference is consted to hell and back, oh look you can still increment it. They'd have been better off to just invent a new keyword: doesnotfuckingchange and stop there.

As I recall, Stoustrup originally wanted to call the const keyword 'readonly', which is a more accurate description of what it does (const data is not constant, it's read-only: something else can change it while you're not looking, but you can't change it). They didn't, for compatibility reasons with C.

That said, the const keyword allows you to move contracts about, e.g., "this method does not alter its object", from the programmer's head into the code where it can be checked by the compiler. (unless you have people doing stupid things with mutable or const_cast).

But yeah, C++ has flaws. Big flaws [1]. Anyone who tells you otherwise is probably uninformed or lying. The interesting question is, why do people keep using it in spite of its flaws? Certainly a large part of that is inertia, but I don't think that that's the only thing. I think there's a niche where there's really not a lot of good options other than C++, and that's quite unfortunate. But "C++ sucks" removes the possibility that there's anything useful there, making discussion of better alternatives (e.g., would D work? what is it about C++ that makes it useful? how do these languages compare? etc.) impossible. See, for example, Rob Pike's complaint about why C++ programmers aren't all moving to Go, which essentially ignores a bunch of reasons why you might use C++ (since Go is not a replacement for them). See [2], [3].

[1]: http://bartoszmilewski.com/2013/09/19/edward-chands/

"I’ve been looking for a good analogy of what programming in C++ feels like and I remembered this 1990 Tim Burton movie, Edward Scissorhands."

[2]: http://blog.grok.se/2013/10/on-comparing-languages-c-and-go/

[3]: http://commandcenter.blogspot.se/2012/06/less-is-exponential...

comment 12y ago · link · parent

Well, except that as I recall, Lavabit didn't use SSL with PFS, so giving the FBI their SSL keys means that all previously-captured ciphertext is decodable.

comment 12y ago · link · parent

Yes. The contest is not about actually exposing flaws in their cryptosystem, which is why the rules are rigged up in a way that would allow even a terribly insecure protocol (like Telegram's, or Moxie's counter-challenge protocol) to pass as "secure".

comment 12y ago · link · parent

You can build your own steam machine without a $500 graphics card.

comment 12y ago · link · parent

Yeah, it's got a really handy CLI interface, called journalctl.

comment 12y ago · link · parent

Note that the second point is quite important -- it provides a rolling hash of the journal contents that you can send to another machine, so that in the event of a break-in, you can detect any tampering with the syslogs. As I recall, this was inspired by the break-in to the kernel.org servers, where the attacker tampered with the log files. That would be impossible with journald.

comment 12y ago · link · parent

"And make no mistake: irony tyrannizes us. The reason why our pervasive cultural irony is at once so powerful and so unsatisfying is that an ironist is impossible to pin down. All irony is a variation on a sort of existential poker-face. All U.S. irony is based on an implicit "I don't really mean what I say." So what does irony as a cultural norm mean to say? That it's impossible to mean what you say? That maybe it's too bad it's impossible, but wake up and smell the coffee already? Most likely, I think, today's irony ends up saying: "How very banal to ask what I mean." Anyone with the heretical gall to ask an ironist what he actually stands for ends up looking like a hysteric or a prig. And herein lies the oppressiveness of institutionalized irony, the too-successful rebel: the ability to interdict the question without attending to its content is tyranny. It is the new junta, using the very tool that exposed its enemy to insulate itself."

From David Foster Wallace's "E Unibus Pluram".

comment 12y ago · link · parent

Moreover, Bell Labs' position as part of a state-regulated monopoly meant that the research created at Bell Labs was publically available. For instance, UNIX was given away, since Bell was prohibited from selling it.

I doubt that Google's research will have the same public benefit; it seems much more likely that Google will keep it for themselves.

comment 12y ago · link · parent

Warning. If PDFs are too much for your browser to handle, you may want to use a different browser that doesn't have this problem.

comment 12y ago · link · parent

Why not just use bcache?

comment 12y ago · link · parent

Moxie has also pointed out that the choice is not simply "Do I want to be surveilled by Google?" or "Do I want the telco to track my every move?". It's stuff like "Do I want to stop talking to all of my friends who use GMail?". Or "Do I want to not have a cellphone and prevent myself from participating in informal social event planning?".

comment 12y ago · link · parent

"That you will become way less concerned with what other people think of you when you realize how seldom they do."

(David Foster Wallace, Infinite Jest)

(But this isn't to disagree with the grandparent post, either. Just a statement on perspective.)

comment 12y ago · link · parent

Speak for yourself, I have an NFC debit card and it's quite convenient, and has none of these problems.

comment 12y ago · link · parent

There is already a project whose name sadly escapes me that does this, using information theory to derive lower bounds on the number of bits of entropy in data read from a line-in jack.

EDIT: I'm thinking of Turbid: http://www.av8n.com/turbid/paper/turbid.htm

EDIT2: There's also a wealth of information in this thread from the metzdowd cryptography mailing list: http://www.metzdowd.com/pipermail/cryptography/2013-Septembe...

comment 12y ago · link · parent

It would be interesting to see numbers for a country like the Netherlands that actually has cycling infrastructure.

comment 12y ago · link · parent

Candidate Obama did, pointing out that maintaining adequate tire pressure would obviate the need for more drilling.

http://abcnews.go.com/blogs/politics/2008/08/obama-pushes-ba...

1
567
10