kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #38398
Re: [RFC 1/2] New coordinate framework
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Thomas Pointhuber <thomas.pointhuber@xxxxxx>
-
Date:
Wed, 21 Nov 2018 20:48:28 +0100
-
Autocrypt:
addr=thomas.pointhuber@xxxxxx; prefer-encrypt=mutual; keydata= xsFNBFKxhfoBEADDCVK/vsBRi6BnOVSNa+2+xDQt+rBZt7D7BiTm6vaH/NYh+MFyujViIwIt dducp1y09Bkheqfy1tZVBznAC9L/+scePboOeTRTOMtghp041RXC6K7B4J3RMO0++9XdgDlC KLkNhpyPhb2uKVtGBzZjAPyV9udScv5AnQGrPvE1fIs7CreUPj+sSnRYb0sp5qZRaSpXSmKU NyTFEQtuaR1RXl0Dekj4BfXOr+RBdy8oewvGL64uJYd1ddsJ+uKLURbAZCd4n76g/7y1M+T+ Z0fsO7JT8HPA/4O9FrYHEl6dQTgCos3HsWqqP0xHzW9eR/xTXtNGJ8NSMO11Fla6U27Fb6os XFutSczwkoF3bkhLufodg1y9z+MZ3G5hBidYKRJMxFBLcKqtmcgwfSFI9IP50XH0RY1aOLXJ YsSO/1U+h5LHIYWirLvy6UvWdPD/+cSZgG6JxrHnd/gz0YxzNy8RNo9eGZx34+UTVw6OlKfP CnHvT56Dd9ntRxZ+okKvxSE2/Lc97/xrQj/L1Lgqo6QeHRRmn0V7tAGQR5iYTTVzitjnwGxm St8W4rUJRGdOhpig4r5vy8tZvZ9sJlNkQ2ah1iVTCV1+YBivuKi9EtMCEIoks9AfAPs9iFgl ftmT+5GKq5AA6QuXH9wwlgzJZKQi1UeB4i8RxKnN0De1tINesQARAQABzTBUaG9tYXMgUG9p bnRodWJlciA8dGhvbWFzLnBvaW50aHViZXJAb2U1dHBvLmNvbT7CwZQEEwEIAD4CGyMFCwkI BwIGFQgJCgsCBBYCAwECHgECF4AWIQRXjJ4CFfR08N6JUkbHCdh07a8lVgUCW/FNIQU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vrVJuA/201713zWXzbMFjF98s ShXD1nWIcPaQX2fU
-
In-reply-to:
<a7135e92-9c09-92c4-c14f-023cbe795780@gmail.com>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
Stupid question:
why not use long instead of int? Most computer systems nowadays are
64bit anyway. Are there Speed/Memory considerations which would block
this? I think having an unified codebase without unit quirks would be an
important improvement.
Regards, Thomas
Am 21.11.18 um 20:35 schrieb Wayne Stambaugh:
> On 11/21/2018 2:18 PM, Simon Richter wrote:
>> Hi,
>>
>> On 21.11.2018 20:02, jp charras wrote:
>>
>>> what do you mean by:
>>> "that the entire code uses nanometers as internal units
>> That would be the goal, to use the same internal unit everywhere.
>> Nanometers make the most sense, because of the metric/imperial
>> conversion issues you mention.
>>
>>> In Pcbnew, one nanometer is used mainly to avoid any conversion issue
>>> between inches and nanometers.
>>> Without this constraint, 10 nm will be better.
>>
>> Hm, 1mil is 25400nm, so we could even go to 100nm without introducing
>> conversion issues. Would that work for all apps?
>
> This would break pcb files so nm has to stay for board and footprint
> files. I was planning on using 100nm for the new schematic and symbol
> file formats since it seems to me that we really don't need any more
> absolute positional accuracy than that.
>
>>
>>> By the way, I am pretty sure the the gtk3/Cairo overflow issue is not
>>> inside Kicad.
>>
>> Indeed, that is a Cairo problem, but I tried to debug this with -ftrapv,
>> and found that we have surprisingly many integer overflows within KiCad.
>>
>> They seem to be mostly harmless, but from a code quality point of view
>> I'd also like to see them gone.
>
> These absolutely should be flagged and fixed whether they are harmless
> or not. This is just a good coding policy.
>
>>
>> Simon
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Attachment:
signature.asc
Description: OpenPGP digital signature
References
-
[RFC 0/2] New coordinate framework
From: Simon Richter, 2018-11-20
-
[RFC 1/2] New coordinate framework
From: Simon Richter, 2018-11-20
-
Re: [RFC 1/2] New coordinate framework
From: Mark Roszko, 2018-11-21
-
Re: [RFC 1/2] New coordinate framework
From: Simon Richter, 2018-11-21
-
Re: [RFC 1/2] New coordinate framework
From: Mark Roszko, 2018-11-21
-
Re: [RFC 1/2] New coordinate framework
From: Wayne Stambaugh, 2018-11-21
-
Re: [RFC 1/2] New coordinate framework
From: Simon Richter, 2018-11-21
-
Re: [RFC 1/2] New coordinate framework
From: jp charras, 2018-11-21
-
Re: [RFC 1/2] New coordinate framework
From: Simon Richter, 2018-11-21
-
Re: [RFC 1/2] New coordinate framework
From: Wayne Stambaugh, 2018-11-21