similar to: [LLVMdev] Running Objective-C in the JIT

Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Running Objective-C in the JIT"

2012 May 08
3
[LLVMdev] Running Objective-C in the JIT
Thanks for the info! Yes, the problem is certainly that the JITed code isn't registering its classes, but even after digging through all the runtime code I can't find anything that seems suitable for doing this.. The nearest function I could find was _objc_init_image, but that seems to be for win32! I assume that the way it works must be that clang creates some static data structures
2012 May 07
0
[LLVMdev] Running Objective-C in the JIT
Le 7 mai 2012 à 17:07, Jules a écrit : > Hello, I've been trying to get some OSX code to execute within the JIT, > and it's been causing me some major headaches! > > I'm attempting to JIT-compile some code which uses external OSX obj-C > classes (Cocoa, etc), and also contains its own embedded obj-C classes. > > My first hurdle in doing this was that when the
2012 May 08
0
[LLVMdev] Running Objective-C in the JIT
And also, the hook to load/unload image is installed in objc-os.m using dyld_register_image_state_change_handler() function. Le 8 mai 2012 à 15:07, Julian Storer a écrit : > Thanks for the info! > > Yes, the problem is certainly that the JITed code isn't registering > its classes, but even after digging through all the runtime code I > can't find anything that seems
2018 Feb 14
3
Is it possible to execute Objective-C code via LLVM JIT?
> On 13 Feb 2018, at 17:42, Stanislav Pankevich <s.pankevich at gmail.com> wrote: > > On Tue, Feb 13, 2018 at 12:18 PM, David Chisnall > <David.Chisnall at cl.cam.ac.uk> wrote: >> On 12 Feb 2018, at 22:31, Stanislav Pankevich via llvm-dev <llvm-dev at lists.llvm.org> wrote: >>> >>> Specifically I explored the latest objc4-723 >>>
2018 Feb 13
2
Is it possible to execute Objective-C code via LLVM JIT?
On 12 Feb 2018, at 22:31, Stanislav Pankevich via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Specifically I explored the latest objc4-723 > from Apple Open Source and it looks like all of the APIs that allow > the registration of Objective-C classes, selectors, etc. are all very > private. The Objective-C runtime provides public APIs for doing all of this. They’re
2018 Feb 13
0
Is it possible to execute Objective-C code via LLVM JIT?
On Tue, Feb 13, 2018 at 12:18 PM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote: > On 12 Feb 2018, at 22:31, Stanislav Pankevich via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Specifically I explored the latest objc4-723 >> from Apple Open Source and it looks like all of the APIs that allow >> the registration of Objective-C classes,
2018 Feb 15
2
Is it possible to execute Objective-C code via LLVM JIT?
Hi David, Stanislav, Sorry for the delayed reply. Short version: There hasn't been any progress on this just yet, as I have been busy with an overhaul of the underlying ORC APIs. 1) Hack up something in RuntimeDyldMachO to handle the data structures > currently generated by clang. This is fragile, because the interface > between the compiler and the runtime is not documented, and is
2018 Apr 06
0
Is it possible to execute Objective-C code via LLVM JIT?
Hi again, I had tried to follow David's suggestion to take a step back and look into codegen instead of hacking on RuntimeDyld but then I quickly realized that I don't understand what exactly needs to be done to fully register Objective-C runtime. I decided to iterate on JIT code again and somehow I found that I can hook into SectionMemory by subclassing it and working with its
2018 May 03
2
Is it possible to execute Objective-C code via LLVM JIT?
Hi Stanislav, Sorry -- I am not much help here. I would like to get ObjC runtime support for the JIT, but have not had time to look in to it closely. When I last tested the idea (a couple of years ago now) we used selector registration and objc_readClassPair to get basic test cases working as you have, but ran into (possibly similar) failures on non-trivial test cases. I think the interpretation
2018 Feb 12
0
Is it possible to execute Objective-C code via LLVM JIT?
Hi all, > I actually looked into this recently. It is possible, but takes some non-trivial effort right now: You have to hook into the JIT memory allocator, parse the objective C metadata sections in the object file, then call the objective C runtime to register any newly added classes, protocols and selectors. > I can't release my code as-is: I built it against a hacked up copy of the
2016 Nov 11
2
Is it possible to execute Objective-C code via LLVM JIT?
Hi Kevin I am just pointing out that is a good place to look at how metadata is parsed and it supports parsing metadata from pre-linked object file which is important to JIT. My code pretty much replicate most of the functions in MachODump in C++ and hope it can much more reusable than the c parser. The biggest missing part is the resilience to bad metadata due to the fact we currently don't
2012 Feb 27
2
compare two data frames of different dimensions and only keep unique rows
Dear list, I am still struggling with something that should be easy: I compare two data frames with a lot of common rows and want to keep only rows that are NOT in both data frames, unique. Here are an example of these data frame. reported <- structure(list(Product = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 3L, 4L, 5L, 5L), .Label = c("Cocoa", "Coffee C", "GC",
2013 Apr 13
1
[LLVMdev] Q: clang, obj-c: Hashing selectors to SEL's.
I'm trying to understand the method dispatch in objc_MsgSend. At some point during compilation, ascii selectors are hashed into integer SEL's. Is this hash somehow guaranteed to be unique? If so, how? If not, how are collisions handled? Is this hashing done during the link phase? Any insights/pointers to the code/documentation related to this hashing would be greatly appreciated.
2020 Oct 19
1
usage of #import in grDevices/src/qdCocoa.h
I happened to notice that this header file uses #import <Cocoa/Cocoa.h> This is the first time I came across the preprocessor directive #import; the first thing I found about it is this Q&A suggesting it's not portable nor standard C: https://stackoverflow.com/q/39280248/3576984 On the other hand, this exact invocation seems pretty common on GitHub
2006 Nov 21
4
Embedding Rails in a Cocoa app.
Hi, Has anyone tried to embed rails into a Cocoa app? I have got this working to a very primitive point using RubyCocoa. After about half an hour of playing I was able to get WEBrick to serve the rails starter page inside of a Cocoa app, but that is as far as I have got. I have an idea for a client/server app where the server is a Cocoa application that embeds WEBrick (or another server solution
2012 Feb 27
1
compare two data frames with same columns names but of different dimensions
Dear List, I want to compare and return the rows which are NOT in the two data frames. Classic methods don't work as the df have NOT the same dimensions. Here are one example of my df: reported <- structure(list(Product = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 3L, 4L, 5L, 5L), .Label = c("Cocoa", "Coffee C", "GC", "Sugar No 11", "ZS"),
2007 Dec 06
2
R-Cocoa Bridge
I had seen old posts on the list (circa 2002) regarding a Cocoa-R bridge that was under development, but I can't find anything recent about it. Does anyone know if this is available somewhere? If not, does anyone have any experience/pointers calling R functions from Cocoa? Thanks for your time, Lee Falin
2009 Nov 26
1
compiling on snow leopard: Cocoa errors?!?!?!
Dear R-gurus, I'm trying to compile R on my new mac. It's snow leopard. So far I've seemed to be doing pretty well. I've looked at http://cran.r-project.org/bin/macosx/tools/ http://r.research.att.com/exp/ http://r.research.att.com/building.html http://r.research.att.com/tools/ All of which have been very helpful. Looking at the threads I've got around some X11 issues
2008 Sep 18
2
Unbuffered stdout?
Hello, I'm running a DOS mode text program under Wine via a Mac OSX Objective-C/Cocoa program. I use NSTask to run Wine and capture stdin, stdout and stderr via NSPipes. I'm having an issue where output from the DOS mode text program doesn't get to the Objective-C/Cocoa program until after the program ends in Wine. I think this is happening because stdout is buffered. Is there a
2009 Jun 05
2
[LLVMdev] Using LLVM JIT inside a Cocoa application
Hello, I am trying to compile a project I am writing with Xcode that will use LLVM libraries to generate code executed with the JIT. I would be curious to learn how you deal with LLVM header files, libraries, makefiles and Cocoa application projects. My candid understanding is that LLVM projects need to be built with LLVM makefiles (hence the previous message I sent about LLVM Projects). I am