Hacker Newsnew | past | comments | ask | show | jobs | submit | tracymiranda's commentslogin

Some recent fixes went into 6.2.3 which really help with C interop, this post shows what that looks like in practice https://www.swift.org/blog/improving-usability-of-c-librarie...

These look mostly like toy examples where the type of the pointer can be inferred from the return values of the functions.

How do I call this function in swift?

SDL_AudioSpec* SDL_LoadWAV_RW(SDL_RWops * src, int freesrc, SDL_AudioSpec * spec, Uint8 * * audio_buf, Uint32 * audio_len);


It's ugly[0] and I haven't checked it deeply for correctness, but you should get the gist (:

I hate vibecoding. The cognitive toll is higher than you expect, the days feel fast, but the weeks move slowly.

With that said, these are the new compilers. Hopefully they make some software better[1] even with the massive increase in slop.

[0]https://gist.github.com/jumploops/b8e6cbbce7d24993cdd2fe2425...

[1]https://red.anthropic.com/2026/mythos-preview/


yup, it got much better recently

Tiled logs are cool & Chrome are starting to forge a path towards adoption: https://groups.google.com/a/chromium.org/g/ct-policy/c/HBFZH...


Thanks for flagging this - I've updated the post to fix the link


yeah, though unlike wave, warp is not open source and only really works on mac


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: