17,493 karma · joined May 14, 2013 (13y ago) · 5,497 submissions
Revenue focused web analytics to help you quickly identify where to focus your effort to best increase revenue.
And embersofvictory.com
Retro turn-based strategy game.
comment 10y ago · link · parent
https://groups.google.com/forum/#!topic/mechanical-sympathy/...
One of the juicier replies discussing some of the undefined behavior in C (by Rajiv Kurian):
1. A program in a hosted environment does not define a function named main using one of the specified forms - not a compile time error, it's UB.
2. The arguments to certain operators are such that could produce a negative zero result, but the implementation does not support negative zeros.
3. Two declarations of the same object or function specify types that are not compatible - again not a compilation error, it's UB.
4. An unmatched ' or " character is encountered on a logical source line during tokenization. During tokenization!!
5. An exceptional condition occurs during the evaluation of an expression - how specific.
6. An exceptional condition occurs during the evaluation of an expression - hmmm
7. A structure or union is defined as containing no named members - ookay.
8. The value of an unnamed member of a structure or union is used - why is there a compiler at all!
9. The character sequence in an #include preprocessing directive does not start with a letter - lol
10. The program modifies the string pointed to by the value returned by the setlocale function - dear god.
11. The string set up by the getenv or strerror function is modified by the program .
12. The array being searched by the bsearch function does not have its elements in proper order - not a logical error just straight up UB.
This is the tip of the iceberg. How confident is any one now that their program doesn't invoke UB? Things many programmer would assume are compiler errors are actually UB. What would happen if gcc/clang exploited each one of these?
comment 10y ago · link · parent
[1]http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Removing (reducing to be more realistic) the influence of money on politics is a great idea. I'd love to see a system that leverages technology to provide a finer-grained representational democracy. One where you can vote for a representative on any given issue, or group of issues, or type of issues, etc and you can change that vote whenever you want. Google experimented with such a system internally at one point. Pure direct democracy is too dangerous, it's mob rule and would stomp all over minority rights and issues. Representational democracy is too far removed from the people. Something in between is likely the sweet spot. But it may never happen. Politicians have no incentive to dismantle the system that supports them.
I too disagree that alternative systems would work better in Africa, but it's clear that democracy doesn't work very well either compared to developed countries.
Well Gates might not be investing in things that people in the US would vote for, he's doing a great job in service of humanity. One could say that maybe the people he's actually trying to help, e.g. in Africa should vote on what to do, rather than him making the decisions - but would they make smart decision? These are uneducated people who don't know anything about economics, or science, or anything outside of their day to day struggle for survival. Well they might be better aware of the issues that they face, they almost certainly are not well equipped to solve them - democracy is of no help here.
Anyway it's all moot, the money is his, and it's his right to decide what to do with it. Good on him for using it to help humanity.
comment 10y ago · link · parent
The best form of government has often been described as a benevolent dictatorship. This is closer to the form of governance of corporations and open-source projects. The problem is, there's no easy way to guarantee the benevolent part.
I see no problem with people like Bill Gates having amassed power, money, and influence, because he can use it far more effectively than a mob of your average citizens would - the average citizen being a lot less educated and less intelligent than Bill Gates. Now, among the wealthy and powerful you also get types like the Koch brothers, who use their power for dubious ends - that's inevitable in a capitalist system. There's no way to prevent that aside from very strict socialism - which has the same economic problems seen in any communist country past or present. So for better or worse, I think we have to accept the influence of the wealthy.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
On Ubuntu it updated the kernel, which made it unbootable. I could still boot the old kernel, but after taking out a ticket and being asked to upgrade my BIOS, that became unbootable as well.
On Debian it was just too much work to get to a point where it supported the real resolution of my displays and my multi-monitor setup. I eventually just threw in the towel and went and installed Ubuntu in a VM, which at least got me up and running quickly.
I'm leaving out a variety of colorful failure stories, but the bottom line is very little worked out of the box, it was insanely time consuming and difficult to get things into a decent state, and then it didn't stay in that state for long.
comment 10y ago · link · parent
comment 10y ago · link · parent
Now I need Linux for work (software dev) again, so I gave dual-boot a try. I installed OpenSuse, Ubuntu, and Debian a total of 7 times since Christmas, each time ending up with something unbootable within days. And I spent a couple thousand dollars of my time getting them to work, fixing the horrible fonts on OpenSuse, etc. Eventually I gave up and bought VMWare where Ubuntu now sits happily isolated from real hardware, a configuration that it's somehow more stable in. And at least I have automatic snapshots on every reboot, so when something goes wrong I just roll back.
Honestly, desktop Linux is the most expensive OS out there if you count the value of your time. I really like Windows, not because it's a pleasure to use (Windows 8 with that metro crap was terrible!) but because it just works. If I can't get desktop Linux to work nicely as software engineer, what chance does your average person have? Unless some company does to Linux what Apple did to BSD (SteamOS?), I don't see any hope for it ever being anything but a niche desktop OS.
comment 10y ago · link · parent
I don't see why that can't be done for software engineers. That is essentially dividends though, and it's obvious why growth companies don't want to do that. But it's also not clear that stock options have the intended motivating effect (it's not even clear that increases in salary or some kind of profit sharing would have the intended effect either[1])
I think it's clear that stock options are sub-optimal for the intended purpose, but it's not obvious to me how to fix that.
comment 10y ago · link · parent
So I think Canada has a long way to go before it can stop or reverse the brain drain in the software industry.
comment 10y ago · link · parent