100 karma · joined Jul 21, 2015 (11y ago) · 61 submissions
comment 11y ago · link · parent
There are plenty of simpler things I'd like them to tackle before. Just in the past week of work two examples come to mind (just to illustrate that there are still issues)
- I was trying to get some function calls to inline and had to fight the compiler for half the day to get it to inline them for me (I still don;t understand why it's okay that the compiler ignored the inline keyword. Can't we assume that I as the developer will know what's best if I explicitly put the keyword there?)
- Then the next day I had the opposite problem where a branch was being inlined even though I wanted a if(/rare event/){ jump to some method}. Again the language provides no tools for me to accomplish that
There are tons of issues with the standard library containers and data locality that have been ignored too.
C++ is THE high performance language - can we spend some time on performance and stop pretending that there isn't room for improvement on that front?
comment 11y ago · link · parent
As and aside, with all the offtopic comments going one: while the H1B program is definitely flawed I think it's amazing that no one stops to consider the ethics of draining the 3rd world of its talent.
If there are all these amazing talented programmers in India or wherever, then maybe YC should open an office there
comment 11y ago · link · parent
So almost definitely yes...
comment 11y ago · link · parent
The thing they should worry about is pushing the envelope too far and too fast. I think for-instance WeChat would have totally destroy Facebook if it weren't for its Chinese-gov't tentacles. It has a much saner privacy model where you only see things from your friends ( not to mention it has a much simpler and nicer interface )
comment 11y ago · link · parent
Maybe "trust" isn't quite the right word, but I'm struggling to find a better one. The difference between an acquaintance and a friend is that you can implicitly know they will help you and that you will help them. This involves being willing to do thing while expecting nothing in return. In a work setting that usually leads to bitterness
But that's just like my opinion man...
comment 11y ago · link · parent
comment 11y ago · link · parent
I find it makes finding professionalism a lot harder. Most companies expect you to be friends with your coworkers/boss/etc. and then leverage that to exploit their workforce.
I like the artist alternative he proposes. With github you can now take ownership of your work/contributions. You can go into an open source project and make a contribution and then never touch that software again - yet your accomplishment is something that's tracked and stays with you
comment 11y ago · link · parent
I remember one of the other preset themes was a lot better (though I have a lot of trouble trying to find a list of them)
I absolutely love your libraries and all that you've done with R. You've really transformed data analysis for me. Thank you.
comment 11y ago · link · parent
If you actually read his books, what he actually does is present a mental model for what to take into account when designing. But his style isn't meant to be the end-all of typesetting or data presentation! The books aren't saying "see, I made this design for the following reasons. Now everyone should emulate me!" It's just one solution in the realm of all good design solutions.
One example I would immediately point to would be ggplot2. A wonderful library in a lot of respects, but the defaults are absolutely horrendous!! The default grey background with white lines was just pulled from one of Tufts's books without a second of thought b/c these grey backgrounds are horrible waste of ink when printing and are actually chart-junk b.c most of the time you have a white background - for-instance in a powerpoint (<- that was a funny b/c Tuft hates powerpoint)
Here too, the cream colored background looks gorgeous on paper and just weird and out of place on a webpage.
comment 11y ago · link · parent
Introduced in this year's cppcon https://channel9.msdn.com/Events/CPP/CppCon-2015/Writing-Goo...
comment 11y ago · link · parent
https://channel9.msdn.com/Events/CPP/CppCon-2015/Writing-Goo...
static checking of the core guidelines is the entire reason they are writing them. This isn't just a nice literary exercise
The static checker is found here (obviously still under development) https://github.com/Microsoft/GSL
comment 11y ago · link · parent
How about if the person didn't deliver? Would the project be delayed and reauctioned?
Haven't the problems of lowest-bidder quality been illustrated over and over?
Wouldn't they garner a lot more good will if they just ask for volunteering?
comment 11y ago · link · parent
comment 11y ago · link · parent
95%+ of the work done is thrown away. I'm not talking about cutting edge R&D projects that happened to not work out, but literally work will be done and then never evaluated and throw into the trash. Agencies have so much money that they need to spend that they will have no idea what they want and will just throw half a million at you to go do whatever you want for a year. Then they will look at a powerpoint of what you did for maybe 20 mins, nod their head and scratch their chin and then pretend the whole thing never happened.
The Phase I to Phase III ratio has go to me like 100:1
comment 11y ago · link · parent
I feel like recent history has shows that pension plans plans are a disaster for companies b/c you're just offsetting costs into the unknown future when you may not be able to afford it. (see american car companies and unionized labor)
It also seems to attracts complacent people ie. lifers (see gov't sector)
Though there are irritating artificial tax benefits, I always would rather get cold hard cash
comment 11y ago · link · parent
I think corporations are incredibly immoral institutions (due to skewed incentive structures), however - ultimately it's a collection of investors, owners and employees.
Why not be honest and tax the corporations on the outflow of capital? ie. dividens, wages and sales tax
Corporate tax is ultimately a populist hidden tax on the whole economy b/c no one "feels" it. If you raise it everyone will whoop and cheer (b/c fuck big co!) and not appreciate it's impact on salaries or retirement funds.
Maybe I'm missing something?
comment 11y ago · link · parent
Don't diminish it, b/c the presented solution is non obvious/trivial. If it was, it would have been done ages ago.
So either A - The Mozilla folks may have not thought of this solution
B - At the time of Rust's development C++ was stagnant and not evolving as it is right now. There wasn't a lot of hope for fixing it at the time. It's thanks to the work of several people that the C++ standards committee now is a fast moving organization.
If Mozilla were considering starting the Rust project in 2016 I don't think they would have gone ahead with it
comment 11y ago · link · parent
These are valid concerns, but you're being very dismissive of the benefits
I think confining errors to libraries is generally a good strategy. In effect you are guaranteeing that you're not going to introduce any new unsafe code.
It might uncover errors in the existing code.. but that's a much smaller issue and one that fades with time (esp if you're talking about libraries that a lot of people are using)
Is this "good enough" for a brand new aircraft-control/heart-lung-machine system? Maybe not. Maybe then you should start from the ground up using either Rust or C++/GSL entirely. But I think for most use cases this is sufficient and brings huge immediate benefits now. And of course with time libraries will be updated to include safety guarantees (which for the most part seem like it wouldn't involve a ton of work)
This is more of an organic process that basically in some form preserves the millions of man hours people have invested in C++ and less of a clean slate solution. As I've said before, you gotta make a living now in the current reality with the current codebases and the current tools. You can't just judge languages in a vaccuum.
comment 11y ago · link · parent
Take a look at Herb Sutter's CppCon talk this year:
https://www.youtube.com/watch?v=hEx5DNLWGgA
Reinventing the wheel isn't entirely necessary. Though if you're a SysAdmin and you write your codebase in Rust.. that's some nice job security. ;)