I’ve heard that in Smalltalk/X and possibly other flavors you can include C code inside a method, is this possible with other Smalltalk implementations? which ones?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Smalltalk/X is the only Smalltalk I am aware of that supports writing C code directly within Smalltalk methods. Of course, most other Smalltalks (Pharo, VisualWorks, GemStone, …) allow you to write and use primitive methods written in C, but this is rather cumbersome and requires one to use an external C compiler.
An interesting alternative could be NativeBoost, a library to dynamically generate and run machine code from within Pharo.