Knowledge (XXG)

Discriminator

Source đź“ť

664: 214: 384:
type may contain AX as the selected field, but the discriminator value may be either 'a' or 'b' and is stored in memory separately. Therefore, IDL logically separates information about the currently selected field name and the union effective value from information about the current discriminator
176:
studio noted that it could no longer claim its own name on the platform. Discord pointed to its processes for users with high visibility and longstanding business relationships with the company for reserving a username under the new system. The old discriminator-oriented system also mitigated the
133:
caused by the discriminator system, stating that the system resulted in nearly half of the company's friend requests failing to connect. The platform implemented discriminators in the early days of the service, he wrote. When the platform was initially introduced, the
288:
switch construct as part of the classic C union. Unlike in some conventional programming languages offering support for unions, the discriminator in IDL is not identical to the selected field name. Here is an example of an IDL union type definition:
145:
Discord also introduced a global display name system, wherein a user may input a default nickname to be shown on top of the messages they sent in lieu of their platform-wide username, Vishnevskiy touted on
138:' priority was to let its users take any username they want without receiving a “your desired username is taken” error. Discord had no friend system at first, thus letting people take names in different 169:. The transition would happen over the course of months, with the accounts that were registered the oldest, and paid subscribers, receiving the opportunity to reserve their name earlier. 232: 512: 633: 729: 385:
value. In the example above, the discriminator value may be any of the following: 'a', 'b', 'c', as well as all other characters belonging to the IDL
269: 705: 406: 724: 574: 250: 82: 480: 24: 43: 20: 425:
is a unique twelve-digit number that could be exchanged with friends and be used to maintain individual friend lists in each
273: 430: 284:
that determine which union member is selected in the current union instance. This is done by introduction of the classic
698: 552: 172:
This change was criticized online for being a step backward, as users could be a risk of being impersonated. A notable
47: 451: 285: 39: 691: 277: 126: 671: 74: 135: 663: 582: 614: 186: 78: 675: 522: 94: 410: 130: 718: 429:. Friend codes were generated from an identifier unique to a copy of a game and the 513:"Discord's Controversial New Policy Has Prevented A Dev From Claiming Its Own Name" 281: 178: 114: 596: 157:
wherein all new usernames would be case-insensitive lowercase and limited to the
422: 139: 544: 426: 197: 173: 166: 42:
of characters designed to separate a certain element from others of the same
490: 485: 162: 154: 31: 517: 409:
also supports tagged unions, allowing to choose the discriminator via an
182: 110: 452:"Discord's New Usernames: Everything You Need To Know About The Update" 106: 16:
Method of distinguishing elements with the same identifier in computing
54:. To ensure the two objects are not conflated, the program may assign 147: 634:"How to Add Friends on Nintendo Switch: In 5 Easy Steps With Photos" 158: 109:, a discriminator is a four-digit suffix added to the end of a 97:
from other users who wish to identify under the same username.
644: 207: 46:. As an example, suppose that a program must save two unique 200:
implements a suffix of four-digit numbers to its usernames.
397:
type allows the use of the remaining characters as well.
153:
The platform created a transition process to a system of
679: 228: 545:"Discord plans to make everyone change their username" 268:
A discriminator is a typed tag field present in the
223:
may be too technical for most readers to understand
67: 63: 59: 51: 50:to memory, both of whose identifiers happen to be 615:"Microsoft discriminator attribute documentation" 474: 472: 597:"CORBA 3.0 - IDL Syntax and Semantics chapter" 481:"Discord's username change is causing discord" 699: 280:. It exists as type and value definitions of 177:rush to get unique usernames for sale on the 58:to the objects in the form of numbers; thus, 8: 706: 692: 573:Object Management Group (March 12, 2004). 433:corresponding to that of a user's device. 93:A discriminator is used to disambiguate a 270:Common Object Request Broker Architecture 264:Common Object Request Broker Architecture 251:Learn how and when to remove this message 235:, without removing the technical details. 442: 413:in an enclosing structure or function. 407:Microsoft Interface Definition Language 129:wrote on a company blog post about the 233:make it understandable to non-experts 7: 660: 658: 401:Other interface definition languages 142:, making usernames case-sensitive. 121:Transition away from discriminators 678:. You can help Knowledge (XXG) by 83:massively multiplayer online games 14: 450:Mehrotra, Shikhar (May 7, 2023). 77:as well as digital platforms for 730:Programming language topic stubs 662: 632:Studdard, Kim (April 19, 2023). 575:"CORBA/IIOP Specification 3.0.3" 393:branch specified in the example 212: 511:Wright, Steven (May 22, 2023). 113:. This allowed for up to 10000 66:distinguish both objects named 21:Constant fraction discriminator 274:interface description language 1: 431:universally unique identifier 553:British Broadcasting Company 479:Shakir, Umar (May 6, 2023). 161:characters of A–Z, 0–9, the 725:Programming language topics 543:Gerken, Tom (May 4, 2023). 380:The effective value of the 25:Foster–Seeley discriminator 746: 657: 18: 73:This has been adopted by 291: 204:In computer data storage 278:Object Management Group 193:In digital distribution 117:to take the same name. 674:-related article is a 127:Stanislav Vishnevskiy 75:programming languages 672:programming-language 585:on October 15, 2007. 125:In 2023, co-founder 89:In instant messaging 19:For other uses, see 621:. October 25, 2019. 136:software developers 687: 686: 603:. March 12, 2004. 261: 260: 253: 187:online harassment 79:instant messaging 737: 708: 701: 694: 666: 659: 649: 648: 642: 640: 629: 623: 622: 611: 605: 604: 593: 587: 586: 581:. Archived from 570: 564: 563: 561: 559: 540: 534: 533: 531: 529: 508: 502: 501: 499: 497: 476: 467: 466: 464: 462: 447: 392: 389:type, since the 388: 376: 373: 370: 367: 364: 361: 358: 355: 352: 349: 346: 343: 340: 337: 334: 331: 328: 325: 322: 319: 316: 313: 310: 307: 304: 301: 298: 295: 256: 249: 245: 242: 236: 216: 215: 208: 69: 65: 61: 53: 745: 744: 740: 739: 738: 736: 735: 734: 715: 714: 713: 712: 655: 653: 652: 638: 636: 631: 630: 626: 619:Microsoft Learn 613: 612: 608: 595: 594: 590: 572: 571: 567: 557: 555: 542: 541: 537: 527: 525: 510: 509: 505: 495: 493: 478: 477: 470: 460: 458: 449: 448: 444: 439: 419: 403: 390: 386: 378: 377: 374: 371: 368: 365: 362: 359: 356: 353: 350: 347: 344: 341: 338: 335: 332: 329: 326: 323: 320: 317: 314: 311: 308: 305: 302: 299: 296: 293: 266: 257: 246: 240: 237: 229:help improve it 226: 217: 213: 206: 195: 123: 103: 91: 28: 17: 12: 11: 5: 743: 741: 733: 732: 727: 717: 716: 711: 710: 703: 696: 688: 685: 684: 667: 651: 650: 624: 606: 588: 565: 535: 503: 468: 441: 440: 438: 435: 418: 415: 402: 399: 292: 265: 262: 259: 258: 220: 218: 211: 205: 202: 194: 191: 131:technical debt 122: 119: 102: 99: 90: 87: 56:discriminators 15: 13: 10: 9: 6: 4: 3: 2: 742: 731: 728: 726: 723: 722: 720: 709: 704: 702: 697: 695: 690: 689: 683: 681: 677: 673: 668: 665: 661: 656: 646: 635: 628: 625: 620: 616: 610: 607: 602: 598: 592: 589: 584: 580: 576: 569: 566: 554: 550: 546: 539: 536: 524: 520: 519: 514: 507: 504: 492: 488: 487: 482: 475: 473: 469: 457: 453: 446: 443: 436: 434: 432: 428: 424: 416: 414: 412: 408: 400: 398: 396: 383: 290: 287: 283: 282:tagged unions 279: 275: 271: 263: 255: 252: 244: 234: 230: 224: 221:This section 219: 210: 209: 203: 201: 199: 192: 190: 188: 184: 181:, leading to 180: 175: 170: 168: 164: 160: 156: 151: 149: 143: 141: 137: 132: 128: 120: 118: 116: 115:user accounts 112: 108: 100: 98: 96: 88: 86: 84: 80: 76: 71: 57: 49: 45: 41: 37: 36:discriminator 33: 26: 22: 680:expanding it 669: 654: 643:– via 637:. Retrieved 627: 618: 609: 600: 591: 583:the original 578: 568: 556:. Retrieved 548: 538: 523:Fandom, Inc. 516: 506: 494:. Retrieved 484: 459:. Retrieved 455: 445: 420: 417:Alternatives 404: 394: 381: 379: 267: 247: 241:October 2011 238: 222: 196: 179:black market 171: 152: 144: 140:letter cases 124: 104: 92: 72: 55: 35: 29: 456:Screen Rant 423:friend code 345:'c' 327:'b' 318:'a' 719:Categories 526:Retrieved 437:References 427:video game 198:Battle.net 174:indie game 167:underscore 155:pseudonyms 44:identifier 491:Vox Media 486:The Verge 411:attribute 163:full stop 32:computing 639:June 12, 558:June 12, 549:BBC News 528:June 12, 518:GameSpot 496:June 12, 461:June 12, 395:Register 382:Register 297:Register 183:swatting 165:and the 111:username 601:OMG.org 579:OMG.org 391:default 360:default 276:of the 227:Please 107:Discord 101:Discord 64:foo (2) 60:foo (1) 48:objects 300:switch 272:, the 148:Reddit 670:This 366:octet 333:short 294:union 159:ASCII 40:field 38:is a 676:stub 641:2023 560:2023 530:2023 498:2023 463:2023 405:The 387:char 351:long 342:case 324:case 315:case 306:char 185:and 95:user 81:and 62:and 34:, a 23:and 645:MSN 354:EAX 231:to 105:On 68:foo 52:foo 30:In 721:: 617:. 599:. 577:. 551:. 547:. 521:. 515:. 489:. 483:. 471:^ 454:. 421:A 375:}; 369:AL 336:AX 189:. 150:. 85:. 70:. 707:e 700:t 693:v 682:. 647:. 562:. 532:. 500:. 465:. 372:; 363:: 357:; 348:: 339:; 330:: 321:: 312:{ 309:) 303:( 286:C 254:) 248:( 243:) 239:( 225:. 27:.

Index

Constant fraction discriminator
Foster–Seeley discriminator
computing
field
identifier
objects
programming languages
instant messaging
massively multiplayer online games
user
Discord
username
user accounts
Stanislav Vishnevskiy
technical debt
software developers
letter cases
Reddit
pseudonyms
ASCII
full stop
underscore
indie game
black market
swatting
online harassment
Battle.net
help improve it
make it understandable to non-experts
Learn how and when to remove this message

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.

↑