Today I uploaded a small library for comparing Haskell values using a textual diff. This has served me well when diagnosing failing tests, or comparing a function with a proposed replacement.
Let's try it on some disassembled x86 code:
$ ghci
λ> :m + Hdis86 Debug.Diff Data.ByteString
λ> let f = disassemble amd64 . pack
λ> diff (f [0x31,0xff,0x41,0x5e,0x48,0x89,0xc7])
(f [0x31,0xff,0x41,0x5c,0x48,0x89,0xc7])
--- /tmp/ddiff_x15061 2011-09-13 22:52:13.911842969 -0400
+++ /tmp/ddiff_y15061 2011-09-13 22:52:13.911842969 -0400
@@ -1,3 +1,3 @@
[Inst [] Ixor [Reg (Reg32 RDI), Reg (Reg32 RDI)],
- Inst [Rex] Ipop [Reg (Reg64 R14)],
+ Inst [Rex] Ipop [Reg (Reg64 R12)],
Inst [Rex] Imov [Reg (Reg64 RDI), Reg (Reg64 RAX)]]
This uses groom
as a pretty-printer, and shells out to colordiff
by default.
Sadly, a textual diff does not always produce usable results. I'm also interested in generic diffs for algebraic data types. There are some packages for this (1, 2) but I haven't yet learned how to use them. This could also be a good application for the new generics support in GHC 7.2.
You know a lot about web developing. Thanks for sharing your experience with us. Nice job!
ReplyDeleteGiven article is very helpful and very useful for my admin, and pardon me permission to share articles here hopefully helped :
ReplyDeleteCara mengobati paru paru basah secara alami
Metode penyembuhan herbal
Cara mengatasi gatal di selangkangan secara alami
Obat Gabagen Untuk Bayi 10 Bulan
Cara Menyembuhkan Dismenore Secara Alami
Cara Mengobati Biduran Secara Alami
Cara Mengobati Varises Vagina
Thank you very useful information admin, and pardon me permission to share articles here may help :
ReplyDeleteCara Menyembuhkan Rhinitis Secara Alami
Cara Menyembuhkan Rheumatoid Arthritis Secara Alami
Obat infeksi saluran kencing ampuh
Cara mengatasi gatal di sela sela jari
Cara Menyembuhkan Tukak Lambung Secara Alami
I am very happy to visit your blog. This is definitely helpful to me, eagerly waiting for more updates.
ReplyDeleteAutomation Anywhere Training in Chennai
Automation Training in Chennai
Automation courses in Chennai
RPA Training in Chennai
Robotics Process Automation Training in Chennai
Blue Prism Training in Chennai
Blue Prism Training Chennai
RPA Training in Chennai
Hi, Amazing your article you know I'm too lazy to sign up an account just for comment your article. it's really good and helping dude. thanks!
ReplyDeleteSalesforce Training | Online Course | Certification in chennai | Salesforce Training | Online Course | Certification in bangalore | Salesforce Training | Online Course | Certification in hyderabad | Salesforce Training | Online Course | Certification in pune
very interesting, good job and thanks for sharing such a good blog. Seo Services Delhi
ReplyDeleteHi.Very Good Article.Thanks For Sharing. Keep Up Tha Good Work
ReplyDeleteSEO Training in Pune
SEO Training in Mumbai
SEO Training in Delhi
SEO Training in Bangalore
SEO Training in Hyderabad
I read this post your post so nice and very informative post thanks for sharing this post. Youtube Mp3 Converter
ReplyDeletewonderful article contains lot of valuable information. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
ReplyDeleteThis article resolved my all queries.good luck an best wishes to the team members.continue posting.learn digital marketing use these following link
Digital Marketing Course in Chennai
Get Packers and Movers Jaipur List of Top Reliable, 100% Affordable, Verified and Secured Service Provider. Get Free ###Packers and Movers Jaipur Price Quotation instantly and Save Cost and Time. Packers and Movers Jaipur ✔✔✔Reviews and Compare Charges for household Shifting, Home/Office Relocation, ***Car Transportation, Pet Relocation, Bike SHifting @ Packers And Movers Jaipur
ReplyDeleteEverybody loves it when individuals get together and share sees. Incredible blog, keep it up!unblocked tamilrockers
ReplyDelete
ReplyDeleteيعتبر ستوديو الفهد للتصوير النسائي من أفضل الاستديوهات للتصوير بالأخص لحفلات الأعراس. تعمل
مصورات من النساء على تقديم صور في غاية الحرفية والمهنية بالإضافة إلى فيديوهات إبداعية. يشمل هذا الإستديو كل أنواع التصوير من ديكورات داخلية وصور زفاف بالإضافة إلى جلسات تصويرية وتصوير شخصي وعائلي إلى جانب تصوير الأطفال داخل الإستديو.
إذا كنت تبحثين عن استديو احترافي في مجال التصوير، إليك استديو الفهد الذي يقدّم أفضل الخدمات مع الأخذ بعين الإعتبار خصوصية المرأة. يعمل فريق كامل من النساء المتخصصات في فن التصوير من أجل تخليد أجمل المناسبات السعيدة واللقطات الخاصة. يقدّّم هذا الإستديو صوراً فردية وجماعية لمختلف أنواع المناسبات إلى جانب تصوير الفيديوهات
إليك استديو الفهد للتصوير النسائي الذي يقدّم كل أنواع التصوير النسائي لمختلف المناسبات من تصوير شخصي وتصوير حفلات تخرج وتصوير مواليد وغيرها من أنواع الصور. يتميّز هذا الإستديو بالجودة العالية في الصور إلى جانب السرعة في التسليم.
استديو تصوير نسائي
المناسبات السعيدة هي تلك اللحظات التي نلتقطها من هذه الحياة التي نحياها ، تلك اللحظات التي تبقى محفورة في ذاكرتنا مهما طالت الأيام ، و هناك العديد من الطرق التي يمكن الاعتماد عليها في تنسيق الحفلات ، و لكن يفضل الاعتماد على شركات متخصصة في هذا الأمر ، و هناك العديد من شركات كوش افراح الرياض و لعل افضلهم و اشهرهم على الاطلاق شركة الفهد :
الشركة توفر العديد من الخدمات المختلفة التي تتعلق باعياد الميلاد العملاء ، هذا بالإضافة إلى توفير مختلف أنواع الديكورات الخاصة بهذه الحفلات ،.
كوفي يسوي عيد ميلاد بالرياض
الشركة توفر العديد من الخدمات المختلفة التي تتعلق بتنسيق الحفلات ، حيث تعمل الشركة على توفير قاعات مختلفة بمساحات متنوعة ، لإقامة مختلف أنواع الحفلات التي يحتاجها العملاء ، هذا بالإضافة إلى توفير مختلف أنواع الديكورات الخاصة بهذه الحفلات ، و من بينها كوش الأفراح ، هذا فضلا عن توفير دي جي و تغليف هدايا و غيرها ،.
و هذه الشركة أيضا تعتبر واحدة من أشهر الشركات المتخصصة في تجهيز الحفلات و المناسبات و الأعراس ،و حفلات التخرج حيث تعمل الشركة على توفير مختلف الأماكن الخاصة بإقامة الحفلات ، و التي يمكن الاعتماد عليها في مختلف المناسبات الخاصة بالعملاء ، هذا بالإضافة إلى إمكانية تأجير لوازم الأفراح من قبل الشركة ، كذلك توفر الشركة أيضا مختلف الديكورات المعتمد عليها في المناسبات ، و التي تشمل كوش الأفراح و أشكال البلالين و غيرها العديد من الأفكار المختلفة ، مع توفير قائمة عريضة بأشكال الورود و أشكال الهدايا المقدمة للضيوف.
كوش افراح الرياض
Gutt Websäit : Zonahobisaya
ReplyDeleteGutt Websäit : Zonahobisaya
Gutt Websäit : Sinopsis Film
Gutt Websäit : Zonahobisaya
Gutt Websäit : Zonahobisaya
Gutt Websäit : Zonahobisaya
Gutt Websäit : Zonahobisaya
Gutt Websäit : One Piece