digitalmars.D - Version identifier for PS4
- Johan Engelen (8/8) Jun 09 2016 Hi all,
- rikki cattermole (3/11) Jun 09 2016 "PS4" is really quite short.
- Johan Engelen (7/9) Jun 09 2016 Nice suggestion.
- Markus Pursche (3/17) Jun 09 2016 Maybe, I doubt a lot of code will be reusable between Playstation
- Markus Pursche (9/24) Jun 09 2016 As the "author"(?) of that pull request I would love to get a
- Steven Schveighoffer (8/32) Jun 09 2016 The precedent is to use whatever the OS defines for the host C compiler.
- Markus Pursche (5/33) Jun 09 2016 I dont think Sony has any official #defines but all game engines
- Jacob Carlborg (6/10) Jun 10 2016 That's only true for the "linux" identifier. The other ones are using
- Markus Pursche (2/15) Jun 10 2016 If this is the case we would want to use Orbis.
- David Nadlinger (8/9) Jun 11 2016 As Seb also pointed out on GitHub, I've seen LLVM use "PS4"
- Markus Pursche (6/16) Jun 11 2016 Another argument for PS4 is that if (when) a PS5 is released and
- Johan Engelen (5/22) Jun 11 2016 Because of that, I prefer "PlayStation". Any additions to a
- Johan Engelen (2/3) Jun 11 2016 +1
- Walter Bright (3/11) Jun 11 2016 As others suggested, me kinda prefer "PlayStation4" as there's little do...
- Markus Pursche (11/26) Jun 12 2016 As per popular request I have changed the commit to reserve
- Jonathan M Davis via Digitalmars-d (8/24) Jun 13 2016 I wouldn't have expected any doubt about what PS4 meant. What else would...
- Walter Bright (8/14) Jun 13 2016 It's not like anyone is going to run out of disk/memory space having
Hi all, PR 5850 is proposing to add a predefined (reserved) version identifier for the PS4 OS: "PS4" [1]. Thanks for your comment (preferably with an alternative suggestion in case you don't like "PS4"). Thanks, Johan [1] https://github.com/dlang/dmd/pull/5850
Jun 09 2016
On 10/06/2016 12:30 AM, Johan Engelen wrote:Hi all, PR 5850 is proposing to add a predefined (reserved) version identifier for the PS4 OS: "PS4" [1]. Thanks for your comment (preferably with an alternative suggestion in case you don't like "PS4"). Thanks, Johan [1] https://github.com/dlang/dmd/pull/5850"PS4" is really quite short. "PlayStation4" would be far better that way it isn't an acronym.
Jun 09 2016
On Thursday, 9 June 2016 at 12:38:51 UTC, rikki cattermole wrote:"PS4" is really quite short. "PlayStation4" would be far better that way it isn't an acronym.Nice suggestion. I don't know about similarities between PlayStation versions, but how about "PlayStation", with 'sub' version "PlayStation4"? Using the spec's "all identifiers derived from the ones listed above [e.g. "PlayStation"] by appending any character(s) are reserved" (Wikipedia says that both PS3 and PS4 are based on FreeBSD)
Jun 09 2016
On Thursday, 9 June 2016 at 13:09:01 UTC, Johan Engelen wrote:On Thursday, 9 June 2016 at 12:38:51 UTC, rikki cattermole wrote:Maybe, I doubt a lot of code will be reusable between Playstation consoles though judging from the past."PS4" is really quite short. "PlayStation4" would be far better that way it isn't an acronym.Nice suggestion. I don't know about similarities between PlayStation versions, but how about "PlayStation", with 'sub' version "PlayStation4"? Using the spec's "all identifiers derived from the ones listed above [e.g. "PlayStation"] by appending any character(s) are reserved" (Wikipedia says that both PS3 and PS4 are based on FreeBSD)
Jun 09 2016
On Thursday, 9 June 2016 at 12:38:51 UTC, rikki cattermole wrote:On 10/06/2016 12:30 AM, Johan Engelen wrote:As the "author"(?) of that pull request I would love to get a discussion going. PS4 vs Orbis vs PlayStation4 so far. The reason I went for the acronym is that all other tools I could find with a reference to PS4 used the acronym, I guess that is a bad reason though. I am open to making another pullrequest with another identifier as long as we can get a general consensus about which one to use.Hi all, PR 5850 is proposing to add a predefined (reserved) version identifier for the PS4 OS: "PS4" [1]. Thanks for your comment (preferably with an alternative suggestion in case you don't like "PS4"). Thanks, Johan [1] https://github.com/dlang/dmd/pull/5850"PS4" is really quite short. "PlayStation4" would be far better that way it isn't an acronym.
Jun 09 2016
On 6/9/16 9:09 AM, Markus Pursche wrote:On Thursday, 9 June 2016 at 12:38:51 UTC, rikki cattermole wrote:The precedent is to use whatever the OS defines for the host C compiler. This is the reason we have lower case "linux" for version, which is inconsistent with other version identifiers, but consistent with Linux's #define in C code. So if Sony uses PS4 as a define, I think that's logical to use for the version statement. -SteveOn 10/06/2016 12:30 AM, Johan Engelen wrote:As the "author"(?) of that pull request I would love to get a discussion going. PS4 vs Orbis vs PlayStation4 so far. The reason I went for the acronym is that all other tools I could find with a reference to PS4 used the acronym, I guess that is a bad reason though. I am open to making another pullrequest with another identifier as long as we can get a general consensus about which one to use.Hi all, PR 5850 is proposing to add a predefined (reserved) version identifier for the PS4 OS: "PS4" [1]. Thanks for your comment (preferably with an alternative suggestion in case you don't like "PS4"). Thanks, Johan [1] https://github.com/dlang/dmd/pull/5850"PS4" is really quite short. "PlayStation4" would be far better that way it isn't an acronym.
Jun 09 2016
On Thursday, 9 June 2016 at 13:16:58 UTC, Steven Schveighoffer wrote:On 6/9/16 9:09 AM, Markus Pursche wrote:I dont think Sony has any official #defines but all game engines I have ever used (proprietary, Unity, Unreal) preferred PLATFORM_PS4 over PLATFORM_PLAYSTATION4 or PLATFORM_ORBIS.On Thursday, 9 June 2016 at 12:38:51 UTC, rikki cattermole wrote:The precedent is to use whatever the OS defines for the host C compiler. This is the reason we have lower case "linux" for version, which is inconsistent with other version identifiers, but consistent with Linux's #define in C code. So if Sony uses PS4 as a define, I think that's logical to use for the version statement. -Steve[...]As the "author"(?) of that pull request I would love to get a discussion going. PS4 vs Orbis vs PlayStation4 so far. The reason I went for the acronym is that all other tools I could find with a reference to PS4 used the acronym, I guess that is a bad reason though. I am open to making another pullrequest with another identifier as long as we can get a general consensus about which one to use.
Jun 09 2016
On 2016-06-09 15:16, Steven Schveighoffer wrote:The precedent is to use whatever the OS defines for the host C compiler. This is the reason we have lower case "linux" for version, which is inconsistent with other version identifiers, but consistent with Linux's #define in C code.That's only true for the "linux" identifier. The other ones are using the more "official" name and casing of the operating system. Example: the C preprocessor identifier for OS X is __APPLE__, but in D it's "OSX". -- /Jacob Carlborg
Jun 10 2016
On Friday, 10 June 2016 at 08:56:57 UTC, Jacob Carlborg wrote:On 2016-06-09 15:16, Steven Schveighoffer wrote:If this is the case we would want to use Orbis.The precedent is to use whatever the OS defines for the host C compiler. This is the reason we have lower case "linux" for version, which is inconsistent with other version identifiers, but consistent with Linux's #define in C code.That's only true for the "linux" identifier. The other ones are using the more "official" name and casing of the operating system. Example: the C preprocessor identifier for OS X is __APPLE__, but in D it's "OSX".
Jun 10 2016
On Friday, 10 June 2016 at 14:37:23 UTC, Markus Pursche wrote:If this is the case we would want to use Orbis.As Seb also pointed out on GitHub, I've seen LLVM use "PS4" internally, and it always seemed rather natural to me. On the other hand, with Orbis I would have had no idea what the code was about, and it's not like you can really install another operating system on a PS4 anyway. (Yes, I'm aware of the Jailbreak/Homebrew community, but that's rather besides the point.) — David
Jun 11 2016
On Saturday, 11 June 2016 at 17:09:59 UTC, David Nadlinger wrote:On Friday, 10 June 2016 at 14:37:23 UTC, Markus Pursche wrote:Another argument for PS4 is that if (when) a PS5 is released and we get D working on it they would follow a pattern instead of calling the PS5 whatever it's OS is nicknamed. I am still leaning PS4, I guess the ultimate decision comes down to whomever can accept/reject the PR.If this is the case we would want to use Orbis.As Seb also pointed out on GitHub, I've seen LLVM use "PS4" internally, and it always seemed rather natural to me. On the other hand, with Orbis I would have had no idea what the code was about, and it's not like you can really install another operating system on a PS4 anyway. (Yes, I'm aware of the Jailbreak/Homebrew community, but that's rather besides the point.) — David
Jun 11 2016
On Saturday, 11 June 2016 at 17:21:18 UTC, Markus Pursche wrote:On Saturday, 11 June 2016 at 17:09:59 UTC, David Nadlinger wrote:Because of that, I prefer "PlayStation". Any additions to a reserved identifier name are also reserved, so it would reserve "PlayStation4", "PlayStation5", "PlayStationOver9000"... And just "PS" would be very tiny.On Friday, 10 June 2016 at 14:37:23 UTC, Markus Pursche wrote:Another argument for PS4 is that if (when) a PS5 is released and we get D working on it they would follow a pattern instead of calling the PS5 whatever it's OS is nicknamed.If this is the case we would want to use Orbis.As Seb also pointed out on GitHub, I've seen LLVM use "PS4" internally, and it always seemed rather natural to me. On the other hand, with Orbis I would have had no idea what the code was about, and it's not like you can really install another operating system on a PS4 anyway. (Yes, I'm aware of the Jailbreak/Homebrew community, but that's rather besides the point.) — David
Jun 11 2016
On Saturday, 11 June 2016 at 17:09:59 UTC, David Nadlinger wrote:with Orbis I would have had no idea what the code was about+1
Jun 11 2016
On 6/9/2016 5:30 AM, Johan Engelen wrote:Hi all, PR 5850 is proposing to add a predefined (reserved) version identifier for the PS4 OS: "PS4" [1]. Thanks for your comment (preferably with an alternative suggestion in case you don't like "PS4"). Thanks, Johan [1] https://github.com/dlang/dmd/pull/5850As others suggested, me kinda prefer "PlayStation4" as there's little doubt what that refers to.
Jun 11 2016
On Sunday, 12 June 2016 at 06:29:08 UTC, Walter Bright wrote:On 6/9/2016 5:30 AM, Johan Engelen wrote:As per popular request I have changed the commit to reserve "PlayStation" and "PlayStation4". First of all, if what Johan says is right about "PlayStation" reserving all additions to the keyword as well (PlayStation4, PlayStation5, PlaystationOver9000) then my reasoning behind reserving "PlayStation4" is for claritys sake and for the documentation. If it isn't right, "PlayStation" is a good keyword because there might be a possibility to reuse code between the PS4 and a theoretical future PS5.Hi all, PR 5850 is proposing to add a predefined (reserved) version identifier for the PS4 OS: "PS4" [1]. Thanks for your comment (preferably with an alternative suggestion in case you don't like "PS4"). Thanks, Johan [1] https://github.com/dlang/dmd/pull/5850As others suggested, me kinda prefer "PlayStation4" as there's little doubt what that refers to.
Jun 12 2016
On Saturday, June 11, 2016 23:29:08 Walter Bright via Digitalmars-d wrote:On 6/9/2016 5:30 AM, Johan Engelen wrote:I wouldn't have expected any doubt about what PS4 meant. What else would it mean other than Playstation 4? I would have thought that that would be obvious, and Playstation4 would be overly verbose in comparison (not to mention, it stands feeling weird without a space when it's all spelled out like that). But I won't be writing any code involving any gaming consoles, so I don't exactly have much of a horse in this race. - Jonathan M DavisHi all, PR 5850 is proposing to add a predefined (reserved) version identifier for the> PS4 OS: "PS4" [1]. Thanks for your comment (preferably with an alternative suggestion in case you don't like "PS4"). Thanks, Johan [1] https://github.com/dlang/dmd/pull/5850As others suggested, me kinda prefer "PlayStation4" as there's little doubt what that refers to.
Jun 13 2016
On 6/13/2016 12:56 PM, Jonathan M Davis via Digitalmars-d wrote:I wouldn't have expected any doubt about what PS4 meant. What else would it mean other than Playstation 4?The TLA space is pretty limited.I would have thought that that would be obvious, and Playstation4 would be overly verbose in comparison (not to mention, it stands feeling weird without a space when it's all spelled out like that).It's not like anyone is going to run out of disk/memory space having "PlayStation4" strings in it. :-) My general stylistic opinion is that global names should be a bit verbose, and local names should be short. (Yes, you can find counterexamples in the code I've written.) Instead of having a naming convention grammar for globals vs locals, I find the length to be quite effective.
Jun 13 2016