Post 3398305 by thecanterlonian@mastodon.social
(DIR) More posts by thecanterlonian@mastodon.social
(DIR) Post #3397973 by lynnesbian@fedi.lynnesbian.space
2019-01-26T16:30:16Z
7 likes, 5 repeats
*extremely good app developer voice* we were storing IDs as integers because *mumbles* and now pleroma is introducing a change that they've been talking about for a long time and they have broken my app. there is no way for me to fix this ever. thanks for buying my app
(DIR) Post #3398032 by chillallmen@witches.live
2019-01-26T16:32:13Z
0 likes, 0 repeats
@lynnesbian lmao buying masto apps
(DIR) Post #3398033 by trickster@mastodon.technology
2019-01-26T16:35:09Z
0 likes, 0 repeats
@chillallmen @lynnesbian What is this "buy" you speak of?
(DIR) Post #3398304 by lynnesbian@fedi.lynnesbian.space
2019-01-26T16:37:37Z
1 likes, 1 repeats
reasons to store numbers as integers instead of strings:- to save memory (note: this only matters if your programming for SNES-level hardware)- you are going to be performing arithmetic on the numbersstoring phone numbers, IDs, etc. as integers when they don't need to be just leads to countless issues for no benefit
(DIR) Post #3398305 by thecanterlonian@mastodon.social
2019-01-26T16:38:23Z
0 likes, 0 repeats
@lynnesbian who stores numbers as strings? wtf?
(DIR) Post #3398306 by lynnesbian@fedi.lynnesbian.space
2019-01-26T16:39:00Z
0 likes, 0 repeats
@thecanterlonian the popular mastodon iphone app "toot" does, which has broken compatibility with pleroma's new ID format
(DIR) Post #3398307 by thecanterlonian@mastodon.social
2019-01-26T16:39:29Z
0 likes, 0 repeats
@lynnesbian jesus christ, that's really not good!
(DIR) Post #3398308 by lain@kawen.space
2019-01-26T16:42:00.316111Z
0 likes, 0 repeats
@thecanterlonian @lynnesbian it's unfortunate. The mastodon documentation says ids are sortable strings, but they look like numbers, so the toot devs assumed they actually are always numbers. And sadly our new ids are sortable strings, but not numbers.
(DIR) Post #3398351 by thecanterlonian@mastodon.social
2019-01-26T16:42:49Z
1 likes, 0 repeats
@lain funny story, all of my integers are explicitly converted to strings for those operations and then converted back into integers after that because i never even thought to make a number be a string...
(DIR) Post #3398357 by lynnesbian@fedi.lynnesbian.space
2019-01-26T16:42:58Z
5 likes, 5 repeats
thankfully, as with any open source program, the community can modify the app and release a version that supports pleroma, or even open a pull request to incorpo-- oh it's closed source!enjoy your $3.99 App Crashing Simulator i guess :blobcat:
(DIR) Post #3398608 by lynnesbian@fedi.lynnesbian.space
2019-01-26T16:49:35Z
4 likes, 3 repeats
paying for a commercial and closed source app to access a free and libre social network is such a galaxy brain move
(DIR) Post #3399079 by lynnesbian@fedi.lynnesbian.space
2019-01-26T16:53:06Z
0 likes, 0 repeats
if i knew how i'd modify my masto instance to use slightly longer post IDs just to break toot! tbh
(DIR) Post #3399081 by lynnesbian@fedi.lynnesbian.space
2019-01-26T17:02:24Z
0 likes, 1 repeats
:blobnotlike: making your app open source and allowing the community to provide bug fixes, patches, and helpful insight into your code, such as people telling you not to store an ID as an integer:blobthinkingfast: making your app closed source, charging $4, adding a note to three description saying that it's paid because it doesn't provide ads and thus needs your money despite the fact that your app works with mastodon and pleroma, which are both free/Iibre software that *don't* have ads, and only using github to host your bug tracker
(DIR) Post #3399155 by lynnesbian@fedi.lynnesbian.space
2019-01-26T17:04:16Z
0 likes, 0 repeats
this is some galaxy brain, no, supercluster brain shit
(DIR) Post #3399156 by ibrokemypie@boopsnoot.gq
2019-01-26T17:05:43.431Z
0 likes, 0 repeats
@lynnesbian@fedi.lynnesbian.space i mean, tbf, apple does charge a ridiculous amount even for free apps...
(DIR) Post #3399267 by lynnesbian@fedi.lynnesbian.space
2019-01-26T17:07:07Z
0 likes, 0 repeats
@ibrokemypie yeah, that's true
(DIR) Post #3399268 by ibrokemypie@boopsnoot.gq
2019-01-26T17:08:44.279Z
0 likes, 0 repeats
@lynnesbian@fedi.lynnesbian.space dont see why he couldnt open source it though, like, especially for apple i reckon theres no way itd negatively effect salesprobably positively effect them if anything, bugs can be fixed quicker etc and some people like to support open source development
(DIR) Post #3402904 by vamp898@mastodon.juggler.jp
2019-01-26T17:12:21Z
0 likes, 0 repeats
@lynnesbianReasons to store numbers as a string: Non, they are numbers.How about arithmetic operations? Try to execute them on strings, this can only go wrong. Also strings are numbers too because for the CPU, strings don't exist. So they get saved in the memory as numbers anyway, you just lack all the advantages of numbers, for advantages you don't need.And the memory difference is huge12345678901234567890 as string is 160bit12345678901234567890 as short is 16bit
(DIR) Post #3402905 by trickster@mastodon.technology
2019-01-26T19:22:02Z
0 likes, 0 repeats
@vamp898 @lynnesbianA telephone number is a number, but you wouldn't store it as such. For example, in most of europe, telephone number begin with a 0, and certain landline phone numbers begin with multiple 0s.Maybe you have a use case where the only thing you're gonna do with said numbers is sorting them lexicographically. Pretty sure that's computed more speedily on strings.
(DIR) Post #3403044 by trickster@mastodon.technology
2019-01-26T19:27:16Z
0 likes, 0 repeats
@vamp898 @lynnesbian Maybe you want to keep track of a dense array of numbers that range from 0 to 1e9 and have no duplicates. You could conceivably make the whole thing a bit array, where the nth bit signals if the number n is in said array or not. That saves even more space, because each number now takes up 1 bit instead of 32.Data storage schemes are all made-up and the central point is if they serve your program or not. Sure, the vast majority of times, you'll want to 2's complement numbers.
(DIR) Post #3403109 by trickster@mastodon.technology
2019-01-26T19:29:36Z
0 likes, 0 repeats
@vamp898 @lynnesbianBut that doesn't mean 2's complement is somehow uniquely suited to representing numbers. Only that for the general use case (I have a number with which I'll do basic arithmetic with) it's good, and if you don't have a good reason to change it, you shouldn't.
(DIR) Post #3409552 by vamp898@mastodon.juggler.jp
2019-01-26T23:58:06Z
0 likes, 0 repeats
@trickster @lynnesbian Telephone Numbers are more strings, thats true, and its _very_ rare that anyone does arithmetic on telephone numbers :PBut Phone Numbers are, like ZIP Codes, rather rare exceptions, in general you want to store numbers as numbers
(DIR) Post #3422131 by kelly_clowers@mastodon.technology
2019-01-27T09:35:14Z
0 likes, 0 repeats
@lain @lynnesbian @thecanterlonian Why though?
(DIR) Post #3422132 by lain@kawen.space
2019-01-27T10:03:22.838410Z
0 likes, 0 repeats
@kelly_clowers @lynnesbian @thecanterlonian why though what?
(DIR) Post #3424377 by succfemboi@iscute.moe
2019-01-27T11:28:47.217969Z
0 likes, 0 repeats
@lynnesbian has anyone tried pinafore.social? One can add it to the homescreen and it looks like a real app while taking up less memory
(DIR) Post #3427238 by Bisexuhell@snouts.online
2019-01-26T16:54:51Z
0 likes, 0 repeats
@lynnesbian Regular brain: Paying for a closed source app that doesn't work with part of the fediverse for a really silly reason is badGalaxy brain: You're actually paying for the feature of never seeing pleroma
(DIR) Post #3427239 by lynnesbian@fedi.lynnesbian.space
2019-01-26T16:55:48Z
0 likes, 0 repeats
@Bisexuhell :ellen:
(DIR) Post #3427240 by neb@fosstodon.org
2019-01-27T13:05:09Z
0 likes, 0 repeats
:helen:
(DIR) Post #3427258 by neb@fosstodon.org
2019-01-27T13:05:54Z
0 likes, 0 repeats
:ellen:
(DIR) Post #3429619 by kaniini@pleroma.site
2019-01-27T14:38:38.116169Z
0 likes, 0 repeats
@lynnesbian but Toot! doesn't work with Pleroma :D
(DIR) Post #3434070 by kelly_clowers@mastodon.technology
2019-01-27T17:03:28Z
0 likes, 0 repeats
@lain @kelly_clowers @lynnesbian @thecanterlonian why change it from a number
(DIR) Post #3434071 by lain@kawen.space
2019-01-27T17:04:51.487993Z
1 likes, 0 repeats
@kelly_clowers @thecanterlonian @lynnesbian the new ids are better for user privacy and scaling, as well as enabling easy insert of posts at any point in time, not just when they come in. (https://git.pleroma.social/pleroma/pleroma/merge_requests/645)