Hacker Timesnew | past | comments | ask | show | jobs | submit | Muted's commentslogin

1) What makes a language like Fortran so intimidating?

I'm not sure, I would like to know the answer to this. At least for modern Fortran.

2) What makes Fortran so much 'faster' at computation than C?

I don't know if the computation of Fortran is always faster than C (I thought they were comparable), but at least in development time, it was a huge improvement for me. I was forced to use Fortran 2003 at university for numerical simulations etc and expected it to be terrifying but found it very pleasant. Instead it was when programming C later on that I got slightly frustrated.

- It's easy to learn. No need to learn about pointers etc.

- It's very math friendly. The fact that you can easily extract and use sub matrices/array is probably my favorite feature. In C I needed to write loops, pass around array length or matrix sizes, etc. Multi dimensional arrays got annoying to work with and ended up writing matrices as column-major vectors.

- It has some nice built in functions such as matrix multiplications (no loops for this). It also has great math libraries like BLAS/LAPACK

- Offers OOP

I haven't made use yet of the advantage I hear most often i.e. for HPC.


As others have mentioned this is indeed not true and is referred to as the Martingale betting system [0]. In the case of casino games Martingale still has negative EV. Your EV for any round n is (1-q^n)B-q^n(B^n-1) (chance of winning within n rounds times amount won minus chance of losing n rounds times amount lost) [1] which is B(1-(2q)^n) with B the initial betting amount and q the chance of losing. Since in any round your chance of losing is always slightly greater than 1/2, you will have a negative EV in any round you play, there is no number of rounds for which the EV becomes positive.

The standard deviation of this is fairly large though so that the chance of this happening is very small but nevertheless it isn't zero and what you lose is more than you can expect to win. As sleepychu mentioned, the amount you bet goes up exponentially ($1M after 20 rounds).

Aside: It is sometimes said that in order to do this "double when you lose" strategy, you need to e.g. "stick to red for the entire run". This is false. If I bet red-red-red-...-red-red I am just as likely to win/lose as when I bet red-black-odd-odd-even-...-red

[0] https://en.wikipedia.org/wiki/Martingale_%28betting_system%2...

[1] https://en.wikipedia.org/wiki/Expected_value


I understand this for products that have product-market fit. But what about products that aren't generating any revenue yet? Wouldn't the fact that someone is willing to pay to develop it further for them indicate demand for the product? Also couldn't this be viewed as doing things that don't scale by building a product that one company loves? How do you draw the line between this, and creating technical debt?


Paul Graham wrote an essay on this topic which might help you. http://paulgraham.com/startupideas.html


I love this article. I'm very much inspired by what is written here, but for the most part can't find an 'itch' to scratch.

Right now I'm just building stuff I consider is cool / fun and see how it goes from there.


Just curious, what do you find cool / fun?


Unprecedented applications mostly enabled by new / disruptive technology. Things that do scratch my itch (even though most of them don't resonate with others)

Right now I'm working on Ethereum dApps as I have a strong feeling that the world will gravitate towards p2p / distributed tech and Ethereum is arguably one of the key technologies that will bring us there


I can't wait to see how the Ethereum ecosystem progresses from now up through sharding. Plus the drama is priceless entertainment.


Michael has also talked about how to pitch investors in a similar, clear way. [0] It's part of the "how to start a startup" series.

[0] https://youtu.be/SHAh6WKBgiE?t=1227


I experience the exact same thing. I get an idea for a side project, get really excited about it, think about all the great things it could do, work on it like crazy for a weekend, and then never touch it again. I got to a point where I got really frustrated with myself that I can't finish anything. So this past Saturday I picked a really small simple project I had and said to myself "No matter what, I'm doing a ShowHN before I go to bed." So (after some hesitation) I did [0]. It really helped knowing that the HN community doesn't tear down ideas or projects. And while this was not a big, badass, super cool project like some others, it does feel good to have finally put a project out there.

Based on this I would say, define a small simple project that you can finish before losing motivation or succumbing to fear of failure, and then just get it out there. You will receive valuable feedback and learn a lot. You have little to fear as the HN community seems to shine at not making you feel embarrassed about what you've made. At least this is the impression I got from watching previous ShowHNs.

[0] https://qht.co/item?id=11930331


the HN community seems to shine at not making you feel embarrassed about what you've made.

Not in my experience. Several Show HN type of things I posted were highly criticized with harsh words. I'm not posting anything on HN ever again.


Earlier this year I finally bought a decent keyboard (Kinesis Advantage). While I was searching for what I wanted, I put together a list of keyboards with some features and have just put it online. Hopefully it can help others in search of a good keyboard. I'm sure the list is incomplete (both in terms of keyboards and listed features). I'll be adding keyboards in the coming days. Feel free to give feedback and suggestions if there are certain things missing.

(e.g. I was thinking about adding filter for cherry mx key color)


It is a pretty comprehensive list of desirable (non-gaming) keyboards, but I'm not sure that many of them fit the description of "ergonomic" at all.

This keyboard is basically the ultimate version of what your list tries to compile: * Ergonomic (split) * Hackable (macros and programmable keys) * Mechanical

https://ultimatehackingkeyboard.com/

It's not out yet, but you can pre-order one.


In a similar vein, there is https://shop.keyboard.io/ I pre-ordered one earlier today to replace a TECK.

I agree that most of the keyboards on this list are not ergonomic at all. Most are simply mechanical keyboards.


Thanks for building this. I made a similar (but much simpler) list a few years ago when I was searching for an ergonomic keyboard. Your site would have saved me some time. I'm missing the ErgoDox in your list BTW.


Thanks for the feedback! The ErgoDox is indeed one that's on my todo list =), along with the unicomp, ultimate hacking keyboard and a few others.


If you are interested in learning the basics of Machine Learning I really recommend Andrew Ng's course on Coursera[0]. It starts off very basic and requires almost no prior knowledge other than some linear algebra. It evolves to more advance topics like Neural Networks, Support Vector Machines, Recommender Systems, etc. It is amazing how much you can do after just a few weeks of lessons. It's a very practical course with real world examples and exercises each week. The focus is mostly on using and implementing machine learning algorithms and less so on how and why the math behind them works. (To me this is a negative, but I'm sure some people will appreciate that.)

[0] https://www.coursera.org/learn/machine-learning


I saw my dad looking at charts one day and asked him what he was doing. He explained some stuff and the idea of owning part of a business really appealed to me. I could sit behind a pc, own part of a business, and make money doing it, what wasn't to like?

Since my dad wasn't the richest investor in the world, he wasn't the best so I started googling and quickly came across Warren Buffett. Not only is he the best (personal opinion), he also had a strategy that resonated with me. I had read basic books on technical traders, position traders, day traders and none of that made sense to me since they often neglects the underlying business. (I also didn't find traders close to the top of forbes' list.)

Once I found something that made sense, I pretty much watched every video online or tried to read every book he recommended. Luckily Warren Buffett loves teaching so there is plenty online you can find. The intelligent investor is definitely a must read. So is "security analysis", "common stocks uncommon profits" and a bunch of others. Here [1] you can find a list of "Buffett approved" books in case you run out.

[1] http://www.bookwormomaha.com/store/c-2-berkshire-hathaway-20...


Warren Buffett has also talked about this in numerous interviews. He says that it really depends on what interest rates will do in the future that will determine whether stock prices are currently high. If they stay the way they are now for a while (close to zero, and even negative in some countries), stock prices are not high. The reason for this is that interest rates act like gravity on stock prices. If interest rates go to zero, P/E ratios can go to infinity. Mathematically this can be seen by looking at DCF or NPV analysis where you divide by the discount rate, which is highly correlated with the interest rate. Take for instance a security that yields $C/year in perpetuity. The NPV of that security is NPV=C/r. As the interest rate r approaches 0, the NPV goes to infinity and hence has infinite value. This means that it is ok to pay a very large amount for the security, since you can't get a better return anywhere else.

But of course the question is, will interest rates remain low? Basic economics would tell us the answer is no, because the FED and ECB have pumped billions and billions of dollars/euros in the economy on a monthly basis meaning the supply of money has greatly increased and hence the value should drop and lead to inflation and hence higher interest rates. But this clearly hasn't happened (yet) and I haven't really found anyone who has a good explanation. Warren Buffett, Charlie Munger and Bill Gates all expected this would of already happened a while ago. (TV interview on CNBC)


That's not how PV is calculated. It's C/(1+r) where r is the rate between now and the time of the cashflow. When rates are zero, it just means that the cashflow is worth today the same as it'll be when it's paid. As rates increase, the PV of that cashflow reduces.

Also, although base rates are around zero, long term interest rates are higher. True they're not high by historic standards but you still get some discounting for cashflows beyond the short term.


NPV = SUM_t Rt/(1+i)^t (wikipedia). This is similar to your formula. If Rt=constant for all t and t is infinite (hence in perpetuity), the formula simplifies to what I have. More info can also be found here: http://www.investopedia.com/walkthrough/corporate-finance/3/...


You are missing the time in the formula, should be: (1+r)^t.

When t --> inf, it becomes r.


Right just replied the same. It's about the interest rates prevailing in the market.

But I do believe that there was and still is a lot of overvaluation in tech even after discounting at low interest rates.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: