I guess 12% of Americans eat half the nation's lentils would not be as headline grabbing?
3,559 karma · joined November 24, 2011
I guess 12% of Americans eat half the nation's lentils would not be as headline grabbing?
Expected to take far longer than expected is a rather strange phrasing...
Occasionally you see code that uses combinations of these in less obvious ways to do some more complex operation and I can see how one could argue that in rare cases that ends up less clear than if then statements but I've never really encountered that in many years of reading shader code.
There are other reasons to prefer functions over if then in shader code not discussed here as well, like replacing step with smoothstep for antialiasing.
I enjoyed the courses and learning the techniques through the exercises but I still haven't really found a good application to a problem I need to solve for work or side projects.
It sounds like a neat idea but I haven't seen a problem where it works well in practice. I'm curious if there are real world success stories.
Starling lets you divide your account into spaces and you can have virtual debit cards associated with a space, or pay bills by direct debit straight from a space. At the beginning of the month the monthly budget for each space is put into that space and most spending comes directly from its space using a virtual card (in Google Wallet for physical purchases or with the appropriate card info for online purchases) or via direct debit. A few transactions are on the main card and are categorised later by transferring from the right space in the app.
Some budgets we expect to pretty much fully use each month, like groceries or bills. Others like the car budget we aim for rollover to cover occasional big expenses like a service. We also have an emergency fund to cover unanticipated bigger expenses.
I've tried various methods and software in the past and this has worked best. Tracking everything in an app or using ledger / beancount is too much work for too little benefit in my experience. It also hasn't worked well for me for budgeting as it tells you after the fact where your money went but doesn't by itself help / force you to stick to a budget the way the envelope method does.
I've found Rust just formalises and gives the compiler the ability to check and enforce concepts already familiar to most C++ programmers confidante with move semantics, the lifetime of temporaries, etc.
Deciphering errors from the borrow checker take some practice still but for C++ programmers used to deciphering template instantiation errors it's not so hard.
Even Unity which uses garbage collected C# for game code is still a C++ engine under the hood for much of the performance critical engine code.
Having worked in games and VR development for many years I can say that memory management was not a major problem in C++ and for tricky areas of memory and resource management like GPU memory garbage collection doesn't generally help you.
When it comes time to optimize memory usage and performance it's often easier when memory management is explicit, deterministic and visible as well as highly customizable than when you have to work with a garbage collector which is a bit of a black box and has a lot of non deterministic and unpredictable behaviour.
Even after working for several years primarily in Unity with C# I still tend to prefer non garbage collected languages for games.
I got rid of the code gen and visitor pattern stuff by using records in C# with pattern matching which felt a lot simpler to me.
- Stanford algorithms specialization: https://coursera.org/specializations/algorithms
- University of Melbourne Discrete Optimization: https://coursera.org/learn/discrete-optimization
- Basic Modeling for Discrete Optimization: https://coursera.org/learn/basic-modeling
- Advanced Modeling for Discrete Optimization: https://coursera.org/learn/advanced-modeling
Crafting Interpreters book mentioned elsewhere also very good.
I think id's open source code has been great for lots of reasons. I just think there is untapped potential in "fully" open source games where all the assets (including the source assets like Blender files and not just the intermediate formats like .fbx) are open source as well as the code as that makes it easier for people to experiment, learn and remix the content.
If you want to open source a game you generally need to plan for it from the start and only use assets that you fully own or that have licenses that allow redistribution.
You can open source just the code but this is limited in what it allows others to do in terms of contributing to or remixing the game. Even learning from the code is limited if you don't have access to the assets such that you can run the code and make changes.
"Steve Jobs had Bill Campbell as a mentor; Mark Zuckerberg had Steve Jobs; Bill Gates had Warren Buffett" - https://www.forbes.com/sites/brianrashid/2017/05/02/3-reason...
A quick search seems to confirm that both Steve Jobs and Bill Gates had mentors at various points in their careers.
Full disclosure: I'm a startup founder with a profile on that site but there are other similar services out there I believe.
I tried several times to stop drinking previously, the longest I managed was for about 3 months. I think the hardest part is really deciding that you want to stop drinking. Once I did that, I read the book and it was easy. I haven't had a drink in about 6 years since.
What I like about this book is it doesn't make it into such a big thing like AA does. I don't think I was an alcoholic, though I did have some problem drinking types of patterns, and maybe the AA approach is necessary for full on alcoholics but I don't have to avoid going to bars or social situations where others drink for fear of relapsing, I just don't drink anymore.
I know this book has worked for a lot of people but no doubt it doesn't work for everybody. It made something that at times seemed impossible for me seem easy though.
Obviously the author understands this distinction so I'm not sure why it seems to be ignored / glossed over here.
You can make a case that what values ought to be is also connected to facts and I would tend to agree with that argument but it's not really the case that is being made here.
It suggests to me that what most current approaches are doing is something fairly different from what human / animal intelligence is doing in important ways. That means we will likely continue to see AI do increasingly amazing things while at the same time struggling to perform a lot of tasks that are quite basic for humans.
It is the fact that AI is proving to be a better artist than most humans while not being able to do many things that are simple for a 4 year old that suggests strongly to me that some of the fundamental mechanisms are fairly different still, or current AI approaches are missing some key insights.
I could be wrong. I'd bet money that I'm right if there was an easy way to do it though.