I am 60 years old and as a person always learning I have accumulated a huge stack of knowledge and I think my mind is in a very good shape so I still can learn new things quickly.
Long time ago I found a good balance between life and work, and a good paid job by european standards. The only problem is that sometimes I envy the 200K $ paid jobs, but there are two main walls to pursue that salary:
First: I have no work experience in the IT sector.
Second: I have never used AWS and other cloud services.I am risk adverse and receiving a huge bill for cloud services while learning AWS is something that I have avoided.
I can solve leetcode and hackerrank problems more or less easily, have a CS and math degree, a Ph.D. in Math, can program in a long list of computer languages, know a lot of stats, machine learning, algorithm, complexity, etc.
But at 60, if you have learned to focus in what is important, you will be able to provide an answer to many unknowns and that is a precious skill. So to summarize, at 60 I am in my best moment but you always want more (now is more money).
Perhaps this is the kind of problem in which a macro system, like that in common lisp, allow you to solve the problem paying the prize in a little more compilation time but not in runtime.
At first sight, in the examples:
inc1(7) pure, inc2(8) impure, what's the meaning of inc2? (some kind of increment?)
Then in the definion of map there is an argument function f, and in the definition there is a new function g that comes from nowhere, so for me at first sight the examples are not insightful.
If you are using integers to represent subsets then int.bit_count is the number of elements of the set. There is a machine instruction to count the number of ones in the binary representation, maybe popcnt is the name, I am not sure.
Edited, more info: AMD's Barcelona architecture introduced the advanced bit manipulation (ABM) ISA introducing the POPCNT instruction as part of the SSE4a extensions in 2007.
Intel Core processors introduced a POPCNT instruction with the SSE4.2 instruction set extension, first available in a Nehalem-based Core i7 processor, released in November 2008.
The service is only free until you reach their limit. The post has 166 comments.