Lurker News

Comments (289) 55 threads

Earlier comments
aarreedd#
Would you be interested in a PR for function to show market holidays? The terminal can pull the data from my site TradingHours.com.
maximente4 replies#
this is nice - it looks like it's linked against at least one GPL lib (fuzzywuzzy) though, so the MIT license almost certainly isn't allowed. looks like there's only one usage though, the other is an unused import, so may be easy to change
moonchild3 replies#
The MIT license is ‘allowed’. The code in itself is MIT licensed. It's just that, when compiled and linked against fuzzywuzzy, the aggregate work that results must be GPLed.
maximente1 reply#
interesting: given that it may at any time hit that line of GPL'd code, your claim is that the rest of the code can be MIT licensed? i am not a lawyer but that sure seems like a borderline case at best.
GoOnThenDoTell7 replies#
The author can licence their source code however they want. The GPL doesn’t relicense other code either, it’s that the GPL asks you to additionally follow its terms for the whole resulting compiled distribution

Continue this thread — 7 replies

lmm1 reply#
Coding against a library is usually understood to result in creating something that's a derivative work of that library.
moonchild3 replies#
The act of linking against a library produces a derivative work of that library. But since APIs are not copyrightable (in europe, at least), the act of using an API does not produce a derivative work, and thus code which uses an API is not bound to any particular license wrt it.

Continue this thread — 3 replies

eek04_#
It's not clear that the aggregate work is allowed to be distributed under the GPL. My legal hypothesis (from having worked with BSD licensed code and noticed how much hassle having many licenses is) is that the extra requirement of repeating the MIT license could be challenged against the "extra restrictions" clause of the GPL. Think of the case of having 500 variant MIT/BSD3-clause/et licenses that CLAIM to mean the same thing and need full reproduction; the cost of having lawyers verify this is substantial, so it is an actual substantial restriction.

GNU believes that the lax licenses (MIT, advertising clause free BSD) are "compatible with GPL" because the GPL requires attribution and the licenses can be considered a form of attribution.
The actual status of this has, to the best of my knowledge, not been tested in court. Because this is a claim from the group that wants to add restrictions (the GPL side) and they generally want to be able to take BSD code and apply extra restrictions to it, it's not clear it's a large risk in practice.

yellowapple#
The Julia programming language does the exact same thing, last I checked (language itself is MIT-licensed, but the reliance on GPL-licensed math libraries makes the whole shebang GPL'd).
antman#
Can easily be changed to rapidfuzz, which is based on the older 2011 MIT fuzzywuzzy before it was forced to GPL after incorporating python-levenstein. Also a lot faster.

https://github.com/maxbachmann/RapidFuzz

emosenkis1 reply#
It's written in Python... It never gets compiled or linked.
diarrhea#
Yeah this has me confused as well, why is nobody talking about that here?

In Python, it's literally just a line of text, an instruction to import something. If that thing doesn't exist, too bad. The user is responsible for supplying it, not the Python code.

stewbrew2 replies#
How good does this work for non US stocks? I don't think you should invest all your money in stocks of just one nation.
greatpatton2 replies#
You can trade shares of companies from all around the world on US stock exchange.
grenoire1 reply#
You can trade global depository receipts* of companies from all around the world.
findthewords#
That's what money is.
stewbrew#
I wish you luck trying to sell your shares from some unknown European company in the US that nobody in the US wants to buy.
throwaway2037#
What percentage of profits in the S&P 500 index do you think comes from outside the United States? The nice thing about S&P 500, EuroSTOXX 50, and Nikkei 225 indices: A huge portion of their profits come from outside their home regions: US, EU(rope), Japan. Think: FAANG, Microsoft, Intel, AMD, NVidia, HP, Ford, Boeing, Phillip Morris, Tesla, Siemens, EADS, Phillips, NXP Semi, Alstom, ABB, SAP, Santander, Volvo, Volkswagon, Hitachi, Panasonic, Toyota, Kyocera, Nintendo, Sony, etc. Upon closer inspection, they act like international indices. Don't bother with indices focused upon developing economies -- they are already covered by the Big Three indices!

My take: Of these Big Three indices, the S&P 500 will outperform others over the long term. That is not blind pro-US bias. The US economy (and, correspondingly, the S&P 500 index) is much more dynamic than EU and Japan. It can recover faster after downturns -- recessions & depressions.
As a retail investor, put your money into a very low commission ETF that tracks the S&P 500 index. See: Fidelity, State Street, or Vanguard. Enable dividend reinvestment programme ("DRIP") to buy more shares with dividends. Go to sleep for 30 years. Wake up rich. Simples.

Load more comments