@helge@mastodon.social
@helge@mastodon.social avatar

helge

@helge@mastodon.social

https://github.com/helje5 Swift things, FOSS, Apple Apps.

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

finestructure, to random
@finestructure@mastodon.social avatar

Folks who squash their merges, I’m curious why you are making that trade-off. I’m guessing the pro argument is a cleaner merge graph?

The big argument against it for me is that you lose granularity for git bisect. I've often been able to narrow down breakage (sometimes long past the merge) due to individual commits in the merge. If I'd merged in a giant blob all I'd have had to go by is that giant blob. (1/2)

helge,
@helge@mastodon.social avatar

@finestructure @fabianfett It is still a tooling issue, I don't see why you'd ever want to throw away history.
The fixit commits are hidden exactly the same way in the collapsed mode and you could also just hide them if you wanted to, and the tool allows for that.

schwa, to random
@schwa@mastodon.social avatar

deleted_by_author

  • Loading...
  • helge,
    @helge@mastodon.social avatar

    @schwa @jackbrewster I think people actually did think a lot about this. And actually (not) used iPads for a long time to understand the issue.
    iOS is a shrunk down OSX built specifically for very weak hardware. Scaling that up again is kinda funny (and didn't work).

    helge, to random
    @helge@mastodon.social avatar

    The Project Builder info panel auto-adjusts the copyright year 🙈

    helge,
    @helge@mastodon.social avatar

    @matadan Yes, date and timezone handling in Foundation was quite advanced for the time. There has been no Y2K on that side.

    nicklockwood, to random
    @nicklockwood@mastodon.social avatar

    In a fit of madness I've agreed to give an internal talk about advanced Swift at my company. Has anybody got any favorite Swift tricks they'd like to share?

    helge,
    @helge@mastodon.social avatar

    @cocoafrog @ctietze @nicklockwood For this you can also use sequence, like for item in sequence(item) { $0.parent } { ... }.
    But I also like the where, though I don't actually use it that often.

    helge, to random
    @helge@mastodon.social avatar

    Wonder why iPad Pro's get along w/ just 8GB of RAM? They don't run Electron apps.

    helge,
    @helge@mastodon.social avatar

    When people wish for macOS on iPads, they are going to get those Electron apps. Just saying ;-)

    helge,
    @helge@mastodon.social avatar

    @finestructure It is funny how macOS nowadays actually has a (working) RAM doubler builtin.

    simonbs, to random
    @simonbs@mastodon.social avatar

    No, the thinnest Apple product ever is the polishing cloth.

    (Just catching up on the event now)

    helge,
    @helge@mastodon.social avatar

    @simonbs The Apple stickers are thinner.

    helge,
    @helge@mastodon.social avatar

    @simonbs I guess there are no real products because they are not sold, so that point is still on you.

    helge, to random
    @helge@mastodon.social avatar

    One important thing iPad is still lacking is: multi user! I'd buy one for each room, but not one for each person in each room. 🤷‍♀️

    helge, to random
    @helge@mastodon.social avatar

    sometimes is a lot about writing code in such a way that you get compilation speed down.

    helge,
    @helge@mastodon.social avatar

    "Fix" is easy enough: OTHER_SWIFT_FLAGS = -Xfrontend -warn-long-function-bodies=270

    tonyarnold, to random
    @tonyarnold@mastodon.social avatar

    Is it just me, or does this fit modern day Apple as well? https://chaos.social/@obrhoff/112369907442905273

    helge,
    @helge@mastodon.social avatar

    @tonyarnold No, I don't think it fits. Apple just introduced a new product category they make. And did so before w/ set-tops, speakers, watches, etc. I really don't think it is run by marketing, the issues are elsewhere.

    tonyarnold, to random
    @tonyarnold@mastodon.social avatar

    The idea of using Wasm to solve compilation performance issues with Swift Macros feels to me like sidestepping the actual problems that are affecting us all. Given how long the blockers and problems with SwiftPM's handling of binary artefacts have hung around, this'll end up being a "for now" solution that never goes away.

    Cool use of tech, but it's plastering over the cracks.

    https://forums.swift.org/t/poc-improving-macro-build-times-with-webassembly/70967/14

    helge,
    @helge@mastodon.social avatar
    simonbs, to random
    @simonbs@mastodon.social avatar

    I can't fathom that this still hasn't been fixed. It's not as if Xcode has a teeny tiny user base and this is an obscure edge case. Every single Swift developer experiences this all the time. It's our IDE failing to communicate whether our codebase could compile or not. That's kind of a biggie.

    🤦‍♂️

    helge,
    @helge@mastodon.social avatar

    @passim @simonbs More importantly fixing that bug won’t yield a bonus. (I think they don’t even consider it a bug, the “feature” was shown and explained on stage at WWDC, 2022 I think)

    helge,
    @helge@mastodon.social avatar

    @simonbs @passim It’s a b0rked feature, I’ll see whether I find the session later.
    It seems like the bug is in multiple schemes.

    helge, to random
    @helge@mastodon.social avatar

    128-bit integers … preparing for those times when 16 Exabytes of memory are not enough for everyone https://github.com/apple/swift-evolution/blob/main/proposals/0425-int128.md

    dasdom, to random
    @dasdom@chaos.social avatar

    I just realised that Lucifer by @jsq flips the menu bar icon in dark mode. 😂
    Nicely done!

    https://hexedbits.gumroad.com/l/lucifer

    image/png

    helge,
    @helge@mastodon.social avatar

    @jsq @dasdom This is pretty cool, not sure I haven't seen such a thing before 🙂

    stroughtonsmith, to random
    @stroughtonsmith@mastodon.social avatar

    So what does rewriting a Swift app in Swift 6 actually get you, that staying on Swift 5.x won’t? Will new Swift language/compiler features come to both language modes for the foreseeable future?

    helge,
    @helge@mastodon.social avatar

    @cocoaphony @aleck @stroughtonsmith The key question is whether you found the bugs because of the actual language feature or because you did the rewrite (and had to rethink the code). It's probably not b&w, but I suspect more of it can be attributed to the rewriting itself.

    helge, to random
    @helge@mastodon.social avatar

    It is a bit unfortunate that one can't backup to and restore a database from a byte buffer. Otherwise one could also use it to send serialized data over the network 🙈

    helge,
    @helge@mastodon.social avatar

    @inthehands Yes, but you have to do the I/O to write it to a file, and then load it into a buffer, then delete the file. I'd like the byte representation of an in-memory db w/o doing any I/O.

    helge,
    @helge@mastodon.social avatar

    @finestructure @inthehands This is not the ask, SQLite has an in-memory DB which that stuff is probably using.
    The question is how to serialize that in-memory SQLite DB to say a Data. I think the only way is to backup the DB to a file, then load the file into a Data and drop the file.

    helge,
    @helge@mastodon.social avatar

    @finestructure @inthehands SQLite has a backup API, but it can only backup to a file (or another in memory DB), not into a buffer.
    There is also some kind of virtual file system thing, maybe that could be used somehow. 🤷‍♀️

    helge, to random
    @helge@mastodon.social avatar

    What do people use as a more efficient Codable coder but JSON, or is it essentially hopeless because Codable?

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