Sunday, November 29, 2009

Reia: now fully compiled (and sometimes JITed)

One of the most frequent questions I get about Reia is its execution model. Is it a simple parse tree walker? Is it interpreted? Is it compiled?

The old branch of Reia made extensive use of the Erlang metacircular interpreter, which is a parse tree walker. Any code within models or classes, however, was compiled to Erlang bytecode. Reia did autodetect HiPE (the Erlang native code compiler/JIT) when available, and would use it when compiling modules/classes.

The new branch of Reia does not make use of the Erlang metacircular interpreter at all. Instead all code, including any code which is eval'd, is translated into Erlang then compiled by the Erlang compiler. This means Reia is 100% fully compiled, and will compile to native code when your Erlang interpreter supports it.

"AutoHiPE" is off by default for now, if only because HiPE has a slightly greater startup time than the normal BEAM interpreter.

HiPE has some additional problems as well. It has limited platform support. x86-64 is not one of the supported platforms. Given that BEAM is fundamentally a register machine you think it'd be ripe for compilation to native code via something like LLVM.

But for now, enjoy native code compilation on the platforms that support it by passing {autohipe, true} as a compiler option.

28 comments:

Pichi said...

Hi, I'm little bit surprised when you write that HiPE doesn't support x86-64 platform. I'm not using it on servers because 32bit serves me better but I believe that 64bit works too. At least they used it there http://shootout.alioth.debian.org/ and results doesn't look like BEAM.

Tony said...

It seems I'm wrong on that, HiPE does indeed appear to support 64-bit systems as well.

قمم التميز said...

شركة تنظيف
تهتم شركة قمم التميز باعمال وخدمات التنظيف فى اى مكان فى تنظيف الشقق – البيوت – المنازل – المصانع واى مكان يحتاج الى اعمال التنظيف من اجل ان تساعد فى الوصول الى افضل ما تجدة من نتائج مميزة شركة تنظيف منازل بالرياض
تنظيف يحتاج للاشياء معقدة من الادوات ، مثل الغرف المنزل لها ادوات التنظيف الخاصة، الصالون المدهب يحتاج لمنظف الخاص ، وسطح فى المنزل يتطلب مواد متخلفة ، فكثير من المنظفات المطلوبة حتى تكون عملية التنظيف سهلة ومن المنظفات : مبيض التواليت ، منظف الحمام، المطهرات ، المنظف للنوافذ شركة تنظيف شقق بالرياض
والارضيات والغسيل ، سائل الغسيل واعمال المنزل الصغيرة يمكن انجازاها بفوطة جافة ومنظف جيد ، المنظف المصنوع بقل الامكنيات ، معلقتين من الخل الابيض مع لتر من الماء الساخن وضعهم فى بخاخة . بيكربونات الصوديم لتنظيف البلاط يمكن مزج ثلاثه اجزاء من الماء الساخن مع جزء من الصودا لتنطيف الفرن والثلاجة ، وبيكربونات الصوديم بقليل من سائل الجلى يتكون معجون سميك صالح لتنظيف الحمام ، يمكن استخدام بيكربونات الصوديم وضعه فى صحن صغير ولطرد الروائح الكريهة من الثلاجة ، كربونات الصوديم فعالة فى ازالة البقع الدهنية لانها قلوية ويجب لبس قفازات لاستخدامها . شركة تنظيف فلل بالرياض
الخل الابيض وعصير الليمون يمكن تنظيف السطوح الزجاجية والخشبية المصقولة ، ويمكن استخدام الخل الابيض والليمون للتخلص من الروائح الكريهة والتعطير .
عند التنظيف يجب لبس القفازات لحماية الايدى من المواد المنظفه ، ويمكن لبس الفقازات عند غسيل الصحون وتكون مخصص لعمل فى المطبخ . شركة تنظيف بالرياض
والمنزل النظيفة من غير فوضوى أجمل بكثير وافضل ،وإذا توفر جميع الادوات النظافة داخل بيت تكون عمليه النظافة سهلة ،شركة تنظيف كنب بالرياض
للتنظيف المنزل من اعلى الى اسفل ، اى تنظيف الغبار من اعلى الى اسفل ويمكن استخدام الاجهزة الكهربائية فى عملية التنظيف .
تنظيف النوافذ باستخدام قطعة قطنية فى مسح الزجاج وللتجفيف بورقة من الجرائد ، وتنظيف الاسطح الزجاجية للمنضدة باستعمال عصير ليمون ودعكها ثم تجفيفها بفوطة ورقية. ويمكن استعمال معجون الاسنان فى ازالة الخدوش الصغيرة من الزجاج . شركة تنظيف واجهات زجاج بالرياض
لتنظيف الاثاث استعمال منظف على قليل من نشادر ، عدم وضع الاثاث فى أشعه الشمس فالشمس تجفف الأثاث ، للتخلص من الحلقات التى تكون على المنضدة بقليل من المنظف مع النشادر ثم مسحها بفوطة جافة ثم تلميعها بالملمع .
لتنظيف الحمام باستخدام الادوات النظافة الخاصة للحمام فى الحمام ، تنظيف السيراميك والمرايا باستخدام مطهر الجراثيم وتنظيف كل شئ فى الحمام مثل مقبض الباب ومفتاح الكهرباء ، والتخلص من القاذورات فى الاركان الضيقة فى الحمام ، تنظيف الخلاطات المياه ومسحها بقطعة قماش مغموسة فى خل او زيت الطعام ، لتنظيف الحمام باستخدام المناديل المعقمة ومسح منطقة الدش والمرحاض .
شركة تنظيف موكيت بالرياض


ahmed said...

There are insects and pests that cause damage to agricultural plants.

• There are insects working on the collapse of buildings and houses and the construction of nests in the infrastructure

For home like a termite insect.شركة مكافحة حشرات بالرياض
شركة رش مبيدات بالرياض
افضل شركة مكافحة حشرات
شركة رش مبيدات بالمجمعة

dadyar said...

Thanks designed for sharing such a good thought, paragraph is fastidious, thats why i have read
it fully
lawyerss.wikidot

geekymr said...

nordvpn mod apk is a modded version of nod vpn. It gives you freedom to use all its premium feature in free.
Pubg mobile mod apk is best mod hack apk for pubg to get unlimited uc without your account ban.

hamed221 said...


دانلود آهنگ مسیح و آرش دست به یکی

دانلود آهنگ محسن ابراهیم زاده گندمی

دانلود آهنگ سهراب پاکزاد میگیرم دست تورو

Unknown said...




Each of the women associated with our agency is strictly professional when it comes to rendering her services to her clients.Call Girls in Gurgaonhere at our escort agency make sure that their talents are such that they will never fall short of giving the best of services to their clients. Check our other Services...
Escorts in Gurgaon
Hi Profile Escorts in Gurgaon
Russian Call Girls in Gurgaon
Call Girls in Gurgaon
Escorts in Gurgaon



Unknown said...

Warrior Pals is a 501(c)3 non-profit organization that provides support to veterans, gold star families and our active military. Warrior Pals created several program services to support our heroes.
https://www.producthunt.com/@freetechnicalsupport_us
http://impression3d.laposte.fr/en/users/WarriorPals
https://developers.oxwall.com/user/WarriorPals
http://www.digitalmoneytalk.com/profile/47712-warrior-pals/
https://gvectors.com/forum/profile/warriorpals/
https://fontlibrary.org/en/member/WarriorPals/
https://www.cybo.com/US-biz/warrior-pals
https://warriorpals.com/american-wounded-warriors-projects/

negin said...

thank for sharing.
خرید بلیط هواپیما

John said...

مسیح و آرش AP
At Smarter we are continually paying special mind to visitor supporters of offer their advertising and SEO mastery and information with our more extensive network on our blog visit
امیر تتلو
At Smarter we are continually paying special mind to visitor supporters of offer their advertising and SEO mastery and information with our more extensive network on our blog visit
مهدی جهانی

hamed221 said...

Thank you for your best website, God willing 🙂
دانلود آهنگ هاي فاطمه مهلبان

دانلود آهنگ ترکيه اي معروف اينستاگرام

آهنگ هاي محمد رضا شجريان

Custom Printing Services.co.uk said...

Wow, incredible weblog layout! How long have you ever been running a blog for? you made running a blog glance easy. The full look of your website is excellent, as well as the content.cosmetic boxes uk | cosmetic boxes uk

custom box manufacturer said...

It is very informative post thanks for sharing the information.
Tuck box with window
affordable kraft boxes

Unknown said...

I enjoyed this thread so much! Thank you for sharing! I really love the fact that I get to discover new things in here! I hope we can continue doing so! Meanwhile, for today, I would like to share to everyone the best farming games for pc that you can play with your friends! You might also want to play the classic plants v zombies heroes if you want more! Have fun and have a great day ahead!

R1se Hluoluo said...

Taruhan bola saat ini ini tidak cuma dicoba lewat metode nonton serempak saja di depan tv. Tetapi, dengan perkembangan teknologi serta kemajuan internet, https://www.betonid.com/ hingga telah dapat membuat tiap orang berjudi bola online tiap dikala.

Apalagi dalam web bola online uang asli terpercaya, sudah diadakan bermacam tipe taruhan bola yang menarik serta pastinya lebih profitabel.

Dengan keringanan yang ditawarkan oleh betting online, nyatanya amat menarik atensi banyak orang dalam melaksanakan taruhan praktis itu.

Edison hope said...


Woh I enjoy your content, saved to bookmarks!!! Turkey transit visa for US citizens... Ordinary passport holders are required to have a visa to enter Turkey. You can get an online visa transit Turkey. You are ready to fill out an application form in the Turkey Visa Pre-Application System.

Qasim Khan said...

It doesn’t matter how many years come and go- Happy New Year Status 2022 I will always cherish all our beautiful moments no matter what. I love you, sweetheart. Happy New Year

delvers Allison said...

Wow.. Very informative article thanks for sharing please keep it up.. if you travel to Pakistan now , you can check how to apply for a Pakistan visa online. Within 5 to 10 minutes you can fill your e visa Pakistan form online.

henryisabella said...

I read this article, it is really informative. Your way of writing and clarifying things is very impressive.. India 5 years tourist visa fee depends on your nationality. You can check the Indian evisa website and check you are eligible country citizens and select your country and your visa type and see India 5 years tourist visa fee.

dennishcaraid said...

Hello everyone, Nice blog. Thanks for sharing. Most people ask how to get an India travel visa? You can get online & you can fill your visa application India within 5 to 10 minutes. You can read all the details on our entry visa India Blog. All information available here..

John Hardy said...

look you spend a lot of time or effort in this article. I must share this one with my good friends. Keep it up. Now it's time to avail luxury airport transfer for more information.

สล็อตเว็บตรง said...

ทดลอง เล่น เกม pg slot คุ้มไหมถ้าเกิดจะวางเดิมพัน PG SLOT ไม่ต้องวิตกกังวลอีกต่อไปด้วยเหตุว่าพวกเรามีบริการ ทดสอบเล่นสล็อตพีจี โดยที่ไม่ต้องเสียเงินเสียทองก็สามารถเล่นได้

รวมสล็อตสุดฮิต said...

slot168 ทางเข้า จึงได้รับความนิยมมากที่สุดในไทย pg พร้อมกับมีระบบสมัครสมาชิก ฝาก-ถอน เเบบอัตโนมัติหรือเรียกว่า Slot ออกเเบบระบบโดยผู้เชี่ยวชาญใช้งานได้ทุกเครือข่ายรวดเร็ว

พีจีสล็อต said...

ทางเข้าเล่น pg slot ที่มีโบนัส คุณยังสามารถรับโบนัสและการตอบแทนจากเว็บไซต์ PG เมื่อทำการสมัครเข้าใช้งานและเล่นเกมสล็อตออนไลน์ โดยโบนัสและการตอบแทนนั้นจะมีอยู่ในรูปแบบต่างๆ เช่น เงินโบนัส

ninja slot said...

รีวิวเกม PG SLOT สล็อต ของค่าย PG SLOT สล็อตออนไลน์ ยอดนิยม พร้อมแนะนำเกมออกใหม่ น่าเล่น ล่าสุด 2022 สมัครสมาชิกใหม่รับโบนัส 100% ทันที กับเว็บสล็อตออนไลน์ยอดฮิตของพวกเรา

Phineas said...

Wow! I'm usually not into blog posts, but this write-up captivated me! Your unique writing style pleasantly surprised me. Excellent job! Keep it up! Feel free to explore more of our content. Discover Effortless Citizenship Routes Worldwide! Simplified Citizenship: Effortless Routes in Various Countries. Unlock your global opportunities with streamlined pathways to citizenship. Explore your dream destination today.

johnson said...

The aforementioned post is quite fascinating and relevant. I appreciate you taking the time to write this. You must have done a tonne of research and distillation to come up with your piece. The informational data and examples are quite helpful. I'm sure a lot of readers will find this piece helpful. Keep up the fantastic work! I'm forward to see more fascinating facts presented from your perspective in the future. I appreciate your contribution so much.
divorcios en nueva jersey