212 karma · joined Mar 22, 2008 (18y ago) · 100 submissions
1.
Real-time Audio Effects on the SNES [video](youtube.com ↗)
1 points · by rian · 2y ago · discuss
2.
Real-time Audio Effects on the SNES [video](youtube.com ↗)
1 points · by rian · 2y ago · discuss
4.
Indirect vs. Direct Function Call Overhead in C/C++(gist.github.com ↗)
2 points · by rian · 11y ago · discuss
comment 11y ago · link · parent
My grandpa has a Netflix account. If he wants to buy a tv that can play Netflix, It's so much easier for me to tell him "buy a TV with the Netflix logo" than "buy a TV and then buy either chromecast/Apple tv/roku."
comment 11y ago · link · parent
Most Netflix subscribers (edit from people) just want to watch Netflix on their TV. If you're buying a new TV, the easiest way to do that is to get one that supports Netflix out of the box.
comment 11y ago · link · parent
I never wrote you have to support how it's wielded but that it is wielded. Your freedom of speech analogy doesn't apply to what I wrote.
I agree with your last point, but I think that's exactly the job of lawmakers. Once you've found an abuse of the law, you refine the law. You don't just throw your hands up and say "well the pros outweigh the cons." Legislation isn't futile. In this specific case, copyright law has only grown more powerful without any significant negative feedback.
All I'm saying is, if you feel there is something wrong with the GPL, well it's not the only instance of copyright abuse and maybe you should focus on copyright law itself, not the GPL.
comment 11y ago · link · parent
If one supports the level of power that current copyright law provides for authors, then you must support the fact that any particular author wields it. If you think the author is abusing power, then that means the current copyright law is too broad, and if it's too broad you ultimately don't agree with the law.
comment 11y ago · link · parent
If you disagree with the GPL then you disagree with copyright law. The GPL is only as powerful as current copyright law allows it to be.
Don't hate on the GPL, it's satire. Hate on the last century of corporate-lobbied legislation that has granted unprecedented levels of power to copyright: http://en.wikipedia.org/wiki/Copyright_law_of_the_United_Sta.... E.g. Mickey Mouse still isn't in the public domain!
comment 11y ago · link · parent
check out type traits: http://en.cppreference.com/w/cpp/types and std::enable_if: http://en.cppreference.com/w/cpp/types/enable_if
"concepts lite" is a proposal to add syntactic sugar for type traits as well as enhance them a bit.
in general this is how C++ does things now: first add library-level solutions as far as possible, then add language-level syntactic sugar once the usage and implementation is fully understood.
comment 11y ago · link · parent
template<typename T>
typename std::enable_if<std::is_trivial<T>::value, T>::type
getValue(std::array<char, sizeof(T)> bytes) {
T toret;
std::memcpy(&toret, bytes.data(), sizeof(toret));
return toret;
}
there is no-performance hit compared to your function. this is a type-safe and well-defined version of the function above.btw, was your usage of trivial a pun? if so, that's amazing. we need more type traits puns.
comment 11y ago · link · parent
20.
“The news web is straight trash”(twitter.com ↗)
29 points · by rian · 11y ago · 19 comments
comment 11y ago · link · parent
The OP is running GNOME and complaining because he's not using systemd and it broke something (non-standard configuration) and because he can't understand the d-bus-controlled cgroups system (complicated system internals).
comment 11y ago · link · parent
My point isn't that people in general should be hacking up their own Linux desktops, even if they can. Programmers that like to do that probably should though.
My point is that if you are going to commit to using user-oriented systems like GNOME/KDE, don't do non-standard things and don't complain because system internals seem too complicated. They aren't meant to be hackable/simple!
comment 11y ago · link · parent
By "core contributor" I did mean developer but really my point was that there is an explicit gap in the roles of the people involved in these platforms. You have a small group of people explicitly focused on development, and a much larger group of people explicitly focused on usage. Windows and Mac OS X are in the same situation. The best strategy for the people developing these platforms is to focus on a generally applicable UI to accomodate the large heterogeneous group. Ultimately this will result in the platform being more omakase (if you will) and less likely to be everything for everybody, though a decent default.
I don't mean to say that this is a fault with GNOME/KDE themselves but more of a likely unavoidable consequence when you build a product for a large general audience.
If you're a programmer this is really annoying. When something is broken or annoying to you, you have the ability to fix it but because there is so much organization/process/design around these systems, the activation energy is too high.
But if you're a programmer you don't have to deal with this. You can just use a simpler system meant for hackability, a system where the users are the developers.
I see nothing wrong with big vertically integrated Linux systems like GNOME/KDE and in fact I'm glad they exist. If they did not, I would not be able to genuinely recommend Linux to my non-technical friends. Apple has shown the vertical integration is an efficient and successful way to design products for large groups of people, not unsurprising that those systems are mimicking that.
comment 11y ago · link · parent
If you're a technical user/programmer and you want something more minimal, simple, hackable, then don't use GNOME/KDE. Use xmonad or dwm, they are written by programmers for programmers. They are literally only window managers, nothing else. Only what you put in your .Xsession is what gets started when you run startx.
Sure, you don't get a file manager or auto-mounting of usb drives out of the box, that's because no sane programmer would want that by default. If you are one of the few that do, then install udisks and configure it the way you like (e.g. mount specific usb drives to specific locations with specific permissions). As a programmer you'll ultimately be happier. I promise.
Debian doesn't get in the way. It fully supports customization at this level. Take advantage of it!