Subscribe: Comments for The Cliffs of Inanity
http://tromey.com/blog/?feed=comments-rss2
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
code  comment jit  comment  compilation emacs  compilation  emacs  jit compilation  jit  libjit  loop  pkg config  silly loop  silly 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Comments for The Cliffs of Inanity

Comments for The Cliffs of Inanity





Last Build Date: Wed, 14 Feb 2018 07:35:29 +0000

 



Comment on JIT Compilation for Emacs by Luke

Wed, 14 Feb 2018 07:35:29 +0000

Your social buttons make this post extremely difficult to read on mobile because they overlap the tex



Comment on JIT Compilation for Emacs by Vladimir G. Ivanovic

Tue, 13 Feb 2018 21:32:05 +0000

You're right: I did not enable lexical bindings. Once I did, silly-loop, bless its heart, executed 4 times faster (roughly). Thanks.



Comment on JIT Compilation for Emacs by tom

Tue, 13 Feb 2018 17:32:53 +0000

In your example maybe you didn't enable lexical binding. I put the defun into a .el that has ";; -*- lexical-binding: t -*-" at the top, then re-visit the file, then eval the defun. One way to see if something is compiled is to try to disassemble it, like "(jit-disassemble (symbol-function 'silly-loop))".



Comment on JIT Compilation for Emacs by Vladimir G. Ivanovic

Tue, 13 Feb 2018 07:43:43 +0000

How can one tell if one is using a libjit? 'ldd' indicates that the executable includes the correct libjit. (defun silly-loop (n)...) (silly-loop 50000000) 5.673033714294434 (byte-compile 'silly-loop) ... (silly-loop 50000000) 1.2770330905914307 #with or without ji? Probably not since the times are the same #as a no-jit version of emacs.



Comment on JIT Compilation for Emacs by 2018-02-12 Emacs news –

Mon, 12 Feb 2018 23:40:10 +0000

[…] JIT Compilation for Emacs (Reddit, Hacker News) […]



Comment on JIT Compilation for Emacs by tom

Mon, 12 Feb 2018 20:10:40 +0000

I am not a fan of guile and I hope it doesn't get merged. Partly that's because I have an irrational dislike of Scheme, but also there are aspects of Guile I don't like, and I think that introducing more languages into Emacs is likely to make it worse, not better. Based on discussions on #emacs and elsewhere, I'm pretty much alone in this view.



Comment on JIT Compilation for Emacs by mgregoire

Mon, 12 Feb 2018 17:35:47 +0000

What do you think about the effort to host Emacs on the Guile VM? My understanding is that it is slower at present, but is it likely that Guile Emacs would eventually speed up execution of elisp?



Comment on JIT Compilation for Emacs by Vladimir G. Ivanovic

Mon, 12 Feb 2018 07:20:25 +0000

Thank you. I was missing 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' (on my Arch Linux system), and I only got 'libjit.pc' when I cloned the pkg-config branch of libjit: git clone --branch pkg-config https://github.com/tromey/libjit.git. Thanks again.



Comment on JIT Compilation for Emacs by tom

Sun, 11 Feb 2018 06:41:01 +0000

I meant to mention in this post, but forgot, that I took a few bits from Nick Lloyd's branch. I think it was a helper function or two, plus the configure code.



Comment on JIT Compilation for Emacs by tom

Sun, 11 Feb 2018 06:40:10 +0000

You may need to set PKG_CONFIG_PATH to point to the libjit install directory containing the libjit ".pc" file.