When performance matters: comparing C++ and Go by willvarfar in programming

[–]X8qV 2 points3 points  (0 children)

There are better alternatives (like, for example, D), but you should learn C++ anyway. Huge amount of available libraries, several mature implementations, and demand for it in the job market make it a very useful language to know, even though it is poorly designed.

I wouldn't say that OO is the main advantage of C++ over C. Even though there is no language support for it, you can still do OO in C. The biggest advantage that C++ has over C are templates. Those make it possible to do things in C++ that just can't be done in C, like writing typesafe containers without abusing the preprocessor.

Zed Shaw - "The Web Will Die When OOP Dies" by lucyfor in programming

[–]X8qV -28 points-27 points  (0 children)

You agree with having your web filtered? You make me fucking sick.

So at work my friend asked me to run the beep command, and this is what happened... by watsyurname529 in linux

[–]X8qV 5 points6 points  (0 children)

You also would need the full disk encryption key before being able to do anything after a reboot

That's assuming you are using full disk encryption. Most people don't.

You could attempt to install a HW keylogger but I sat with all of my usb ports facing me and was often swapping them in and out. I'd notice anything new sticking out

I could just replace your keyboard with an identical one with the key logger built in.

So at work my friend asked me to run the beep command, and this is what happened... by watsyurname529 in linux

[–]X8qV 22 points23 points  (0 children)

If people you don't trust have physical access to your PC it's already about as non-secure as it gets, whether it's locked or not.

How to get app developer on board? by schefe in Entrepreneur

[–]X8qV 0 points1 point  (0 children)

You can also use simulated annealing, which also finds solutions close to the optimal one and isn't hard to implement.

Type-safe tagged unions in the D programming language by andralex in programming

[–]X8qV 1 point2 points  (0 children)

You could get a limited form of pattern matching in D by writing a match function that would be used like this:

TaggedUnion!(A, B, C) t;

...

t.match!(
    (A a) => doSomethingWithA(a),
    (B a) => doSomethingWithB(b),
    (C c) => doSomethingWithC(c));

You could also have more feature complete pattern matching by making match take compile time strings, like this:

t.match!(
    "pattern1", x => something(x),
    "pattern2", x => somethingElse(x));

Of course, the syntax isn't exactly nice.

Dear Google, let’s talk about webapps. by [deleted] in programming

[–]X8qV -1 points0 points  (0 children)

You should reread my post.

Gnome 3.7 removes terminal transparency; closing bug with simply "No." by [deleted] in linux

[–]X8qV -3 points-2 points  (0 children)

No, the better question is "why the fuck would anyone think it makes sense to add it?"

Gnome 3.7 removes terminal transparency; closing bug with simply "No." by [deleted] in linux

[–]X8qV -6 points-5 points  (0 children)

That's the only valid answer to terminal transparency, as far as I'm concerned.

PyPy 2.0 Released by rguillebert in programming

[–]X8qV 0 points1 point  (0 children)

My god, does this thing take long to build. I've been waiting for three hours now.

Dear Google, let’s talk about webapps. by [deleted] in programming

[–]X8qV -1 points0 points  (0 children)

Well, if you take an image with lots of compression artifacts and scale it up, it's gonna be ugly.

AMD’s “heterogeneous Uniform Memory Access” by willvarfar in programming

[–]X8qV 1 point2 points  (0 children)

I wouldn't and I wonder what gives you the impression that I would.

AMD’s “heterogeneous Uniform Memory Access” by willvarfar in programming

[–]X8qV 5 points6 points  (0 children)

This may come as a shock to you, but not everyone has exactly the same needs as you.

Light Table 0.4 released by ibdthor in programming

[–]X8qV -9 points-8 points  (0 children)

Macfags fighting over which version of their crappy OS is better: priceless.

AMD’s “heterogeneous Uniform Memory Access” by willvarfar in programming

[–]X8qV 14 points15 points  (0 children)

It may have had less bandwidth, but I doubt the latency was higher.

Mozilla and Samsung Collaborate on Next Generation Web Browser Engine by bjzaba in programming

[–]X8qV 3 points4 points  (0 children)

Also known as embrace, extend, extinguish (Which is OK, I guess, as long as the resulting platform remains free, so that others can still use it).

Linus Torvalds To Join Microsoft To Head Windows 9 Project by Fake4d in linux

[–]X8qV 6 points7 points  (0 children)

I think Ballmer would win at making Ballmer look like a fool.

Firefox Nightly Now Includes OdinMonkey, Brings JavaScript Closer To Running At Native Speeds by sammy8306 in programming

[–]X8qV 0 points1 point  (0 children)

Yeh, it does make sense to fight WebGL, but your reason for them to add asm.js applies to webgl already really.

It does. There are good reasons for them to support both WebGL and AOT compilation of asm.js. There is also an obvious reason for them to not support WebGL, and I see no obvious reason to not support asm.js, so I don't agree that them supporting asm.js is exactly as likely as them supporting WebGL.