@gregtitus@social.coop avatar

gregtitus

@gregtitus@social.coop

Chief Technical Officer at Omni Group, OmniPlan architect, Swift contributor. @hollie is my better half. My teens both seem to actually like me. He/him.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

gregtitus, to random
@gregtitus@social.coop avatar

Teeny tiny little Swift compiler PR today. First in years.

I hadn't realized it'd been quite so long, but one of the things that happened for me when the pandemic hit was (because stress?) I started running low on Brain, which had previously been in abundant supply. So I had to save it for actual work, instead of hobby projects.

jsq, to random
@jsq@mastodon.social avatar
gregtitus,
@gregtitus@social.coop avatar

@mattiem @jsq @mattiem @nicklockwood @jsq It may have been! I just wanted to mention that I didn't read it as mockery but just as an amusing prediction about what 50-years-from-now language might look like. I have a 21yo who habitually uses 'they' as the pronoun for literally everyone and I smiled at the idea of his eventual child referring to me as grand-they.

gregtitus, to random
@gregtitus@social.coop avatar

Fun terrible software story:

In 2022 a trader at CitiBank in London wanted to sell $58M worth of a pre-defined basket of 349 stocks trading at about $7K per share.

The sell screen had two textfields so you could enter # of shares or total value in $. And they accidentally put 58M in the # of shares box.

There's a confirmation screen that should have said "do you really want to sell 444 billion dollars worth of this?!?" but the live price feeds were turned off, so the code…

1/2

mattblaze, (edited ) to random
@mattblaze@federate.social avatar

The Google AI summary suggesting that people eat rocks is amusing, but it's not a great example of AI "hallucination". The text is a pretty straight and accurate summary of a satirical Onion article. This isn't a complex algorithm synthesizing bogus conclusions from good data (something that's definitely a real risk in AI systems). This is simply Google mis-categorizing non factual input as factual, something it could have (and has) done just as easily without "AI".

gregtitus,
@gregtitus@social.coop avatar

@mattblaze @PlasmaGryphon Is there some specific definition of "AI hallucination" that you are referencing? Because it seems that the main difference between this case and other cases is just that it's easier to localize and identify where the algorithm picked up the wrong information.

Just because a different algorithm also makes this mistake doesn't really distinguish this LLM screwup from other LLM screwups.

pixel, to mentalhealth
@pixel@social.pixels.pizza avatar

Swift debugging driving me nuts. #helpMe

I have a multiline file that I’ve loaded into a string using String(contentsOfFile:encoding:)

I'm trying to split the string using “someString.components(separatedBy: "==========\n“)

But it... just doesn’t. I know that particular string does exist in the file multiple times.

If I change the separator to just a linefeed it does split the file into 1600 items just fine. So for some reason it's not finding the "==========\n“ ?

I'm stumped.

gregtitus,
@gregtitus@social.coop avatar

@pixel @GeekAndDad @krzyzanowskim It looks like each individual clipping was originally a separate text file in utf-16 (which you would expect would start with a BOM), but then whatever did the combining wasn't aware and did either raw binary concatenation or expected utf-8 or some other encoding like that.

grimalkina, to random
@grimalkina@mastodon.social avatar

I can't figure out if mastodon is a high context culture or not. People seem to be expected to give long introductions and do a lot of identity/positionality disclosure, but also an enormous reply guy culture which is defined by low context drive-by. Conversational turn-taking is extremely low compared to other platforms ime, but depth-seeking is high. What an interesting mix.

*obviously, these experiences are all situated within my own network effects, and I'm not well networked here.

gregtitus,
@gregtitus@social.coop avatar

@grimalkina I'm curious what you mean by turn-taking is low. The number of turns in the average conversation? Or (relatedly) low number of obvious transition points, or long length of turns between transitions? It seems like any or all of these could be true.

I ask because I honestly haven't noticed any difference in these respects from when I was on Twitter, and I'm interested in your experience of platform difference.

gregtitus, to random
@gregtitus@social.coop avatar

I'm seeing the usual iPad complaints about lack of Xcode and poor multi-app switching and ultimately the lack of macOS-ness.

And so can I suggest that the iPad is just not the right device for all of us?

It certainly isn't for me. I love it as a portable media screen, but my actual work is all text: code and occasionally words. Touch and a pen just aren't compelling features for me. Why wouldn't I just use a laptop?

And so why would Apple try to build iPads for us when laptops work better?

glennf, (edited ) to random
@glennf@twit.social avatar

Over on Bluesky I have people working at pharmaceutical companies saying that, no, insurers are the real problem with a drug that costs $2.1 million (single lifetime dose)

gregtitus,
@gregtitus@social.coop avatar

@glennf There are reasonable arguments in this direction. Basically that $2.1 million may be a bargain compared to the lifetime costs of older therapies for the same thing, but that US insurance companies (unlike, say, the NHS), aren't incentivized that way since people can and do change insurance so often. A good post about this: https://balloon-juice.com/2022/12/28/super-high-cost-drugs-and-the-insurance-model/

gregtitus,
@gregtitus@social.coop avatar

@glennf Allowing unfettered pricing is obviously bad, and I have no idea what the actual cost to research and produce these sorts of drugs is. It could easily be price gouging by the pharmecuetical companies. But if it's also still societally beneficial at that price, it isn't necessarily that.

I think Biden's move to have Medicare negotiate drug prices is a step in the right direction, although I too would love to see more direct regulation and management of all of healthcare.

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

We're 5 years in now and even the most talented and experienced SwiftUI devs aren't building apps that are better than what you could build before, nor does it seem like there are kinds of apps that weren't possible before.

And still, a large chunk of dev energy is spent just trying to make it ‘as good as' before, too. Churn for the sake of churn. Some big apps have fancy new UIs with terrible layout performance, completely squandering the long-held lead Apple's chip teams bought the platform

gregtitus,
@gregtitus@social.coop avatar

@stroughtonsmith The goals of SwiftUI are ease of learning, ease of use, less code, cross-platform.

Your measuring stick here is what could be built before or things that weren't possible before. That is, uniqueness or newness. Or else performance of apps that did exist.

Hopefully you see that you are measuring non-goals and failing to measure things (new devs, new apps, dev productivity, app availability on more platforms) that would tell you whether SwiftUI is meeting its goals or not.

schwa, to random
@schwa@mastodon.social avatar

deleted_by_author

  • Loading...
  • gregtitus,
    @gregtitus@social.coop avatar

    @schwa @GeekAndDad Very cool! You might want to weight things like prefer width over height and prefer closer to the centroid of the polygon.

    christianselig, to random
    @christianselig@mastodon.social avatar

    What is the "SwiftUI way" to prevent an unrelated view from updating as a result of a model change? I know I can separate into a separate view, but it feels off for something so simple. Totally cool if that's the way, just want to make sure!

    Code: https://gist.github.com/christianselig/2ae2e42d5edc3ffab513f5d7af72d740

    gregtitus,
    @gregtitus@social.coop avatar

    @christianselig I think Option 1 is as expected? You are changing the structure of this View based on the existence or not of the optional, so of course it has to rebuild itself.

    But regarding naming in Option 2: I'd just call this IceCreamOverlayView.

    Whether the overlay contents are valid to display or not should really be logic that is confined to the overlay view, so I don't see this as weird, but as a good design for separation of concerns.

    gregtitus,
    @gregtitus@social.coop avatar

    @christianselig I'm not sure if it's because I've already grown used to this pattern (because views that decide whether to appear or not based on some validity test become VERY common), but it's natural for me to think .overlay { IceCreamView() } always means "this is the spot the ice cream view goes if there is one".

    gregtitus, to random
    @gregtitus@social.coop avatar

    This series of articles comparing Swift to C++ is really great, even coming from the opposite direction (I consider myself fairly expert at Swift and only adequate in C++).

    https://www.douggregor.net/posts/swift-for-cxx-practitioners-value-types/

    For example (and this fits with "Most Swift programmers never think about the Law of Exclusivity"): I had no idea the runtime exclusivity checking even existed. I've literally never run into it.

    gregtitus, to random
    @gregtitus@social.coop avatar

    Warning to old-school AppKit peeps: Remember the change to make clipsToBounds default to NO in macOS 14, which potentially causes drawing problems in your custom -drawRect: methods because the dirtyRect can be bigger than your view bounds now?

    The documentation for clipsToBounds does kind of mention this, but we just ran into our first bug in old code having to do with visibleRect computations. That method can also now return a rect that is bigger than your bounds, which was very unexpected.

    KFosterMarks, to random
    @KFosterMarks@mastodon.social avatar

    Reading Amy J. Ko's online book "Cooperative Software Development" and she writes:

    "There are some approaches to specifying requirements formally. These techniques allow requirements engineers to automatically identify conflicting requirements, so they don’t end up proposing a design that can’t possibly exist. Some even use systems to make requirements traceable, meaning the high level requirement can be linked directly to the code that meets that requirement."

    (❓ question in comments)

    gregtitus,
    @gregtitus@social.coop avatar

    @KFosterMarks Sort of the minimum here is requirements go in your issue tracker (JIRA or whatever), and then you train devs to make their commit messages include issue #s. A commit-hook adds the message and link to the commit as a note to your issue.

    This way you have bidirectional commit<->issue links so you can see which code has been written for X issue or (via commit history) what issue(s) prompted the writing of X code.

    sindresorhus, to random
    @sindresorhus@mastodon.social avatar

    I'm still hoping for Apple to add support for time-limited trials and paid upgrades to the App Store. No, I'm not interested in IAP. Maybe EU could force them.

    gregtitus,
    @gregtitus@social.coop avatar

    @sindresorhus Personally I'd be happy with just some indicator on the buy button in-between "Free (has in-app purchases)" and "Buy". I don't mind implementing our own timed-trials but it leads to poor reviews from potential users who think we're trying to do some kind of bait-and-switch. Please give us "BUY (but you can wait to decide later)".

    schwa, to random
    @schwa@mastodon.social avatar

    deleted_by_author

  • Loading...
  • gregtitus,
    @gregtitus@social.coop avatar

    @schwa Clearly "Math(s)?.md" to cover both bases, and simultaneously make it nearly impossible to work with from a command line and a magnet for errors in improperly written shell scripts.

    sindresorhus, to random
    @sindresorhus@mastodon.social avatar

    I'm planning to add a setting to Dato to show free time between events. How should it be presented? This is my first take.

    gregtitus,
    @gregtitus@social.coop avatar

    @wilhel1812 @sindresorhus Yeah, I think I'd want both less vertical spacing BUT also be confused that it was part of the previous event or something.

    What about a subtle horizontal rule and centering the duration? E.g.
    ------------- 2 hours ----------------

    gregtitus, to random
    @gregtitus@social.coop avatar

    Helped fix a bug this morning in our code that was last modified on May 1, 2003.

    20 years, 10 months, and 27 days ago.

    Our code (which we were able to clean up references to and delete, fortunately) was an Obj-C category on NSTableView that now causes a bug in SwiftUI List on recent macOS because SwiftUI uses AppKit for that underneath.

    It's simultaneously amazing how long-lived things can be and also what an unstable house of cards all of modern computing is.

    drahardja, to random
    @drahardja@sfba.social avatar

    Not gonna lie, but Jensen Huang sounds like a walking bag of red flags. I guess you don’t become CEO of a large public corporation by being a nice person.

    Nothing like an 80-billionaire telling people to suck it up, buttercup.

    “NVIDIA CEO WISHES "PAIN AND SUFFERING" ON YOUNG PEOPLE
    "I WISH UPON YOU AMPLE DOSES OF PAIN AND SUFFERING.””

    https://futurism.com/the-byte/nvidia-ceo-pain-and-suffering-young-people

    gregtitus,
    @gregtitus@social.coop avatar

    @drahardja I mean, there's a big difference in context between wishing some pain on "young people" and wishing it on people graduating from Stanford...

    mcc, to random
    @mcc@mastodon.social avatar

    Today is my birthday!

    If you'd like to do something for me for my birthday, would you please reply to this with—or by other means send me— something with colors you liked? Like an image or a video or a link. Music would also be acceptable if it gives you a strong synesthesiac association with color.

    If this request confuses you, here are some examples of images with colors I found striking [Artists: Laurie Barmore, Vian Borchert, Erica Aurahack]. But your reply can be whatever colors you like.

    Abstract art by Vian Borchert
    Abstract art by Vian Borchert

    gregtitus,
    @gregtitus@social.coop avatar

    @mcc Happy Birthday! (I have a big print of this photo in my living room because the colors and patterns hit me.)

    gregtitus, to random
    @gregtitus@social.coop avatar

    OH SURE, let's do a daylight savings change right at midnight on a leap day. AND combine two time zone regions into one at the same time.

    Kazakhstan is really trying as hard as they can to test every aspect of your date/time code tomorrow.

    https://www.timeanddate.com/time/change/kazakhstan

    GottaLaff, (edited ) to random
    @GottaLaff@mastodon.social avatar

    1/... MORE IN NEXT TOOT.

    Via Kyle Griffin:

    Reuters: DONALD LOSES BID TO DELAY ENFORCEMENT OF $454.2 MLN JUDGMENT IN NEW YORK CIVIL FRAUD CASE WHILE HE APPEALS - COURT RECORDS

    gregtitus,
    @gregtitus@social.coop avatar

    @poe1178 @GottaLaff Not really! Kushner was given $2 billion to manage by the Saudi royal family. So he can certainly make a ton of money by buying and selling securities with it and skimming off fees, but it's ultimately not his money and the Saudi's can fire him or just withdraw their money from the fund whenever they want.

    hollie, to random
    @hollie@social.coop avatar

    Watched an interview with a linguistics professor today, discussing the Sapir-Whorf hypothesis. She said, "Sometimes people say, 'I feel more passionate when I speak Spanish,' or 'I feel more precise and organized when I speak German,' but they often don't take culture into account...".

    I speak neither Spanish nor German so I just nodded, taking this in. Tonight scrolling videos I see one for a German TV game show where contestants have to cut something precisely in half. I laughed out loud.

    gregtitus,
    @gregtitus@social.coop avatar

    @hollie "Sapir-Whorf hypothesis" always makes me think of "Worf", as in Star Trek. It's a Star Trek-ian phrase. It belongs with other Trek-ian phrases like "Kobiyashi Maru scenario".

    Obviously the Sapir-Whorf hypothesis states that only a speaker of Klingon can TRULY understand HONOR.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • Durango
  • ethstaker
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • Leos
  • osvaldo12
  • tacticalgear
  • cubers
  • cisconetworking
  • anitta
  • provamag3
  • modclub
  • mdbf
  • GTA5RPClips
  • tester
  • megavids
  • normalnudes
  • lostlight
  • All magazines