←back to thread

287 points todsacerdoti | 3 comments | | HN request time: 0.672s | source
Show context
jlarocco ◴[] No.45958907[source]
IIRC MacRuby used to compile to native code on OSX using LLVM, and was supposed to support native OSX APIs and Objective-C frameworks. It always seemed like a neat idea, and a slick integration, but I guess Apple moved to Swift instead.

I'll have to pick up a copy of this "Ruby Under a Microscope" book when the new version comes out. I've always liked Ruby, I just haven't had much chance to use it.

replies(4): >>45959389 #>>45960079 #>>45962420 #>>45962682 #
hk1337 ◴[] No.45960079[source]
AFAIK, you can still use Objective-C and create apps for macOS, iOS, and iPadOS? The APIs previously used may not be available anymore.
replies(2): >>45960522 #>>45961629 #
1. jlarocco ◴[] No.45960522[source]
I'm sure you can still use Objective-C, but MacRuby stopped being updated around 2011, and I don't know how well it'd support newer versions of OSX.

I dropped OSX long ago, so can't even try it out any more.

I wonder how much of the LLVM bits could be reused? I'm sure LLVM's changed a bunch in the last 15 years, too.

replies(1): >>45961143 #
2. moltopoco ◴[] No.45961143[source]
My understanding is that MacRuby relied on Apple's ill-fated attempts to migrate from reference counting to regular garbage collection. I would be surprised if GC still worked on modern arm64 macOS. RubyMotion later adopted ARC but then it's not really Ruby anymore.
replies(1): >>45966852 #
3. jlarocco ◴[] No.45966852[source]
Gees, I forgot about their move to Arm. Almost certainly wouldn't work out of the box any more.