Earlier quoted context omitted.
Could they handle this by generating a collective attribution file that covers every (permissively licensed) repository that Copilot learned from? Of course this would be massive, so from a practical consideration the attribution file that Copilot generates in the local repository would have to just link to the full file, but I don't think that would be an issue in and of itself.
Maybe? Might depend on the license, I doubt the courts would be amused. Almost certainly a link would not suffice, basically every license requires that the attribution be directly included with the modified material. Links can rot, can be inaccessible if you don't have internet access, can change out from underneath you, etc. (I am not a lawyer, btw)
Copilot regurgitating Quake code, including sweary comments
181–190 of 672 posts
Re: Copilot regurgitating Quake code, including sweary comments
#182Earlier quoted context omitted.
Every front office finance project I have ever worked on has used floating point, so take the dogma with a grain of salt. It depends entirely on the context.
They probably just accumulate the rounding errors into an account and write it off periodically without even realising why it happens.
The models also use transcendental functions which cannot be accurately calculated with fixed point, rationals, integers etc.
Re: Copilot regurgitating Quake code, including sweary comments
#183Re: Copilot regurgitating Quake code, including sweary comments
#184Earlier quoted context omitted.
Depends what you’re doing. In fact it’s not always wrong to use floats for currency. For accounting you should probably use a fixed-precision decimal type.
If someone asks how to handle money the best answer is integers or fixed precision decimals. There may be a valid case for using floats, but if someone asks they shouldn't be using floats. Also I'm hard pressed to come up with a case where floats would work. Can you give an example?
The answer is the same as _any_ time you should use floats: where you don't care about answers being exact, either (1) because calculation speed is more important than exactness, or (2) because your inputs or computations involve uncertainty anyway, so it doesn't matter.
This is more likely to be the case in, say, physics than it is in finance, but it's not impossible in the latter. For example, if you are a hedge fund and some model computes "the true price of this financial instrument is 214.55", you certainly want to buy if it's being sold for 200, and certainly don't if it's being sold for 250, but if it's being sold for 214.54, the correct interpretation is that _you aren't sure_.
When people say "you should never use floats for currency", their error is in thinking that the only applications for currency are in accounting, billing, and so on. In those applications, one should indeed use a decimal type, because we do care about the rounding behavior exactly matching human customs.
Re: Copilot regurgitating Quake code, including sweary comments
#185They have 4 hand picked examples on their homepage: https://copilot.github.com/ One has the issue with form encoding: https://news.ycombinator.com/item?id=27697884 The python example is using floats for currency, in an expense tracking context. The golang one uses a word ("value") for a field name that's been a reserved word since SQL-1999. It will work in popular open source SQL databases, but I believe it would bom…
> And these are the hand picked examples. This product seems like it needs some more thought. Everyone's self-preservation instincts kicking in to attack Copilot is kinda amusing to watch. Copilot is not supposed to produce excellent code. It's not even supposed to produce final code, period. It produces suggestions to speed you up, and it's on you to weed out stupid shit, which is INEVITABLE. As a side note, Excel a…
My suggestion was a way to comment or flag, not to kill the product. These were particularly notable to me because someone hand-picked these 4 to be the front page examples of what a good product it was.
Re: Copilot regurgitating Quake code, including sweary comments
#186Earlier quoted context omitted.
In its base unit. So cents in USD. Which can be an int64 Or if your language has something specific built in, use that.
> Or if your language has something specific built in, use that. Unless your language is PostgreSQL's dialect of SQL, apparently. https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use...
Re: Copilot regurgitating Quake code, including sweary comments
#187Re: Copilot regurgitating Quake code, including sweary comments
#188This is utterly damning. I have already instructed my team that Copilot can never be used for our projects. Compromising the product because of unknowable license demands isn't acceptable in the professional world of software engineering. But if we put the licensing to one side for a moment... 1/ Everything I've seen it generate so far is 'imperative hell'. It is practically a 'boilerplate generator'. That might be u…
Re: Copilot regurgitating Quake code, including sweary comments
#189Re: Copilot regurgitating Quake code, including sweary comments
#190We need legislation banning companies from ingesting data into AI training sets without explicit permission.