1,626 karma · joined Jun 7, 2018 (8y ago) · 350 submissions
comment 1y ago · link · parent
Granted I've never tried it so take it with a grain of salt.
comment 1y ago · link · parent
- Swift has a feature where you can unwrap a nullable which is basically just unusable, as it completely crashes the entire program if it fails, with no way for you to gracefully handle it or present a message to the user. And it's a massive footgun, since it has such convenient syntax that makes it seem like it should be used. But no, you have to avoid to like the plague.
- There are some Apple APIs where they just disregard their own types, and pass nil to your callback where the type says it's non nullable. This means if you access the var at all, crash.
- Concurrent access of dictionary, crash. And very hard to track down why as well since it can be very intermittent; in our case we were using an asynchronous dispatch queue instead of a sync one, so a single keyword. Oops!
- Stack overflow, crash.
- This isn't really Swift's fault, but in general every single macOS API is riddled with bugs and undocumented behavior. As a matter of fact, I would venture to say that almost every macOS API is virtually undocumented, either since there is literally no documentation or the existing documentation is just names of functions and occasionally an extremely out of date sample app.
So IMO it's about as memory safe as C. We're floating around the idea of just porting everything to Rust and moving on, haven't researched or committed to it yet though.
95.
The War Against Indiscipline(en.wikipedia.org ↗)
5 points · by superdisk · 1y ago · discuss
comment 1y ago · link · parent
comment 1y ago · link · parent
For my game Cubeat[0], I put an OPL3-L chip on the cartridge connected to the GB's otherwise unused audio-in pin, which allows for FM music in the game. For the MBC logic I just used a bunch of 7400 discrete logic chips. I'm hoping to finish this thing and get it published at some point since I think it's going to be a really cool little parlor trick for the GB.
comment 1y ago · link · parent
When I finally get around to making my own perfect language I'll have to figure out how to crowbar backtracking and DCGs in somehow.
112.
OCRing Music from YouTube with Common Lisp(nickfa.ro ↗)
63 points · by superdisk · 1y ago · 18 comments
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent